RiParametricRadObject

An RiRadObject made of an RiParametricSurface and an RiParametricMesh

This is an abstract class and cannot be directly instanced.


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

Quick Index

DESCRIPTION

Class Summary

class RiParametricRadObject : public RiRadObject
{
public:
// Constructors and assignment
RiParametricRadObject();
RiParametricRadObject(RiParametricSurface *surf, RiParametricMesh *mesh);
~RiParametricRadObject();
// RiRadObject Members
RiReal GetSample(RiRadRegion &sample, const RiVector2 &uv);
RiRadData *GetRadData();
RiConvexHull GetConvexHull(); // pure virtual
bool IsVisible(const RiConvexHull &hull); // pure virtual
void ComputeTransfer(const RiMaterialRegion &sample, RiTransferData &data); // pure virtual
// Structural
int GetNumChildren();
RiRadObject *GetChild(int i);
bool Subdivide(); // pure virtual
RiReal GetArea();
protected:
RiParametricMesh *mesh;
RiParametricSurface *surface;
RiParametricRadObject *children;
RiRadData data;
}; // RiParametricRadObject


DESCRIPTION


RiParametricRadObject();

Default Constructor

    RiParametricRadObject();

RiParametricRadObject(RiParametricSurface *surf, RiParametricMesh *mesh);

Constructs from basic elements

    RiParametricRadObject(RiParametricSurface *surf, RiParametricMesh *mesh);

~RiParametricRadObject();

Destructor

    virtual ~RiParametricRadObject();

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);

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();

RiParametricMesh *mesh;

rametricMesh *mesh;No documentation available.

    RiParametricMesh 	  *mesh;

RiParametricSurface *surface;

rametricSurface *surface;No documentation available.

    RiParametricSurface   *surface;

RiParametricRadObject *children;

rametricRadObject *children;No documentation available.

    RiParametricRadObject *children;

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();
protected:
RiParametricMesh *mesh;
RiParametricSurface *surface;
RiParametricRadObject *children;
RiRadData data;

Ancestors

Inheritance chain for RiParametricRadObject:


Descendants


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