RiRadFlatHierarchy


[ Rad | Source | Search | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

DESCRIPTION

Class Summary

class RiRadFlatHierarchy : public RiRadObject
{
public:
// Constructors and assignment
RiRadFlatHierarchy();
// Members
RiReal GetSample(RiRadRegion &sample, const RiVector2 &uv);
RiReal GetFormFactorSample(RiRadRegion &sample, const RiMaterialRegion &interestedSample, const RiVector2 &uv);
RiRadData *GetRadData();
RiConvexHull GetConvexHull();
bool IsVisible(const RiConvexHull &hull);
void ComputeTransfer(const RiMaterialRegion &sample, RiTransferData &data);
// Structural
int GetNumChildren();
RiRadObject *GetChild(int i);
bool Subdivide();
RiReal GetArea();
void AddObject(RiRadObject *obj);
void DoneBuilding();
RiReal area;
RiRadObject *obj;
bool operator==(const ObjNode &n) const ;
RWTValOrderedVector<ObjNode> objList;
RiReal totalArea;
RiRadData data;
protected:
}; // RiRadFlatHierarchy


DESCRIPTION


RiRadFlatHierarchy();

Default Constructor

    RiRadFlatHierarchy();

RiReal GetSample(RiRadRegion &sample, const RiVector2 &uv);

Fills in the data in sample, and returns the Area Weight for the sample (area of the object.

    virtual RiReal GetSample(RiRadRegion &sample, const RiVector2 &uv);

RiReal GetFormFactorSample(RiRadRegion &sample, const RiMaterialRegion &interestedSample, const RiVector2 &uv);

Fills in the data in sample, and returns the Form Factor weight for the sample to the interestedSample. interestedSample is used to direct the object so that it will hopefully pick a point visible to the intersted point, reducing variance.

    virtual RiReal GetFormFactorSample(RiRadRegion &sample, const RiMaterialRegion &interestedSample,
				       const RiVector2 &uv);

RiRadData *GetRadData();

Get the Rad Data from the object

    virtual RiRadData  *GetRadData();

RiConvexHull GetConvexHull();

Get a convex hull containing the object

    virtual RiConvexHull GetConvexHull();

bool IsVisible(const RiConvexHull &hull);

Can the object see the convex hull. Note that this operation ONLY involves the object and the hull, not the environment. This is the equivalent of back face culling.

    virtual bool	 IsVisible(const RiConvexHull &hull);

void ComputeTransfer(const RiMaterialRegion &sample, RiTransferData &data);

Compute transfer data for links and lighting

    virtual void	 ComputeTransfer(const RiMaterialRegion &sample, RiTransferData &data);

int GetNumChildren();

Determine the number of children this object has. (0 if no subdivision has been done

    virtual int		 GetNumChildren();

RiRadObject *GetChild(int i);

Get the ith child (i MUST be less than GetNumChildren)

    virtual RiRadObject *GetChild(int i);

bool Subdivide();

Subdivide if possible. If already subdivided, do nothing. Return true if subdividable.

    virtual bool	 Subdivide();

RiReal GetArea();

Compute the surface area (or a good estimate of it) of the object

    virtual RiReal	 GetArea();

void AddObject(RiRadObject *obj);

Add an object to the list.

    void AddObject(RiRadObject *obj);

void DoneBuilding();

DoneBuilding();No documentation available.

    void DoneBuilding();

RiReal area;

al area;No documentation available.

	RiReal       area;

RiRadObject *obj;

dObject *obj;No documentation available.

	RiRadObject *obj;

bool operator==(const ObjNode &n) const ;

operator==(const ObjNode &n) const {return obj == n.obj;}No documentation available.

	bool operator==(const ObjNode &n) const                       
;

Function is currently defined inline.


RWTValOrderedVector<ObjNode> objList;

alOrderedVector objList;No documentation available.

    RWTValOrderedVector<ObjNode>  objList;

RiReal totalArea;

al totalArea;No documentation available.

    RiReal 			  totalArea;

RiRadData data;

dData data;No documentation available.

    RiRadData			  data;

All Members

public:
// Members
RiReal GetSample(RiRadRegion &sample, const RiVector2 &uv); // pure virtual
RiReal GetFormFactorSample(RiRadRegion &sample, const RiMaterialRegion &interestedSample, const RiVector2 &uv);
void ComputeTransfer(const RiMaterialRegion &sample, RiTransferData &data); // pure virtual
RiRadData *GetRadData(); // pure virtual
RiConvexHull GetConvexHull(); // pure virtual
bool IsVisible(const RiConvexHull &hull); // pure virtual
// Structural
int GetNumChildren(); // pure virtual
RiRadObject *GetChild(int i); // pure virtual
bool Subdivide(); // pure virtual
RiReal GetArea(); // pure virtual
RiRadObject *GetRadObject(const RiMaterialRegion &sample);
void SetParent(RiRadObject *obj);
RiRadObject *GetParent();
// Structural
void AddObject(RiRadObject *obj);
void DoneBuilding();
RiReal area;
RiRadObject *obj;
bool operator==(const ObjNode &n) const ;
RWTValOrderedVector<ObjNode> objList;
RiReal totalArea;
RiRadData data;
protected:

Ancestors

Inheritance chain for RiRadFlatHierarchy:


Descendants

Class is not inherited by any others.


Generated from source by the Cocoon utilities on Fri Feb 25 15:15:47 2000 .