RiRayObjectInstance

An instance of a RiRayObject

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

Quick Index

DESCRIPTION

Class Summary

class RiRayObjectInstance : public RiRayObject
{
public:
// Constructors and assignment
RiRayObjectInstance(const RiAffineTMatrix3 &trans, RiRayObject *obj);
// Members
RiInterval GetMinMax(const RiUnitVector3 &) const;
bool Shadow(RiRay3 &) const;
bool Intersect(RiRay3 &, RiRayHit &);
void Accept(RiRayObjectVisitor &visitor);
RiLightObject *BuildLightObject(const RiAffineTMatrix3 &mat);
RiReal ConditionalHit() const;
protected:
}; // RiRayObjectInstance


DESCRIPTION


RiRayObjectInstance(const RiAffineTMatrix3 &trans, RiRayObject *obj);

Default Constructor

    RiRayObjectInstance(const RiAffineTMatrix3 &trans, RiRayObject *obj);

RiInterval GetMinMax(const RiUnitVector3 &) const;

General interface for acceleration querries such as bounding boxes and spheres.

    virtual RiInterval  GetMinMax(const RiUnitVector3 &) const;

bool Shadow(RiRay3 &) const;

Does the ray hit the object. Nothing more.

    virtual bool	Shadow(RiRay3 &) const;

bool Intersect(RiRay3 &, RiRayHit &);

Compute an intersection and return it and any other data in the RiRayHit structure. The T value for the ray is set correctly based on the intersection point.

    virtual bool	Intersect(RiRay3 &, RiRayHit &);

void Accept(RiRayObjectVisitor &visitor);

Accept a visitor to perform (structure preserving) actions on the hierarchy

    virtual void	Accept(RiRayObjectVisitor &visitor);

RiLightObject *BuildLightObject(const RiAffineTMatrix3 &mat);

Build a RiLightObject if possible, otherwise return NULL;

    virtual RiLightObject *BuildLightObject(const RiAffineTMatrix3 &mat);

RiReal ConditionalHit() const;

Estimated probability of hitting a primitive given that a ray hits this object's bounding box.

    virtual RiReal 	ConditionalHit() const;

All Members

public:
// Members
RiInterval GetMinMax(const RiUnitVector3 &) const; // pure virtual
bool Shadow(RiRay3 &) const; // pure virtual
bool Intersect(RiRay3 &, RiRayHit &); // pure virtual
void Accept(RiRayObjectVisitor &visitor); // pure virtual
RiLightObject *BuildLightObject(const RiAffineTMatrix3 &mat);
RiReal ConditionalHit() const;
protected:

Ancestors

Inheritance chain for RiRayObjectInstance:


Descendants

Class is not inherited by any others.


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