RiRaySphere

A sphere that can be intersected by RiRay.

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

Quick Index

DESCRIPTION

Class Summary

class RiRaySphere : public RiRayObject, public RiObject
{
public:
// Constructors and assignment
RiRaySphere(const RiVector3 &center, RiReal radius);
// Members
void SetMaterial(RiMaterial *mat);
RiInterval GetMinMax(const RiUnitVector3 &) const;
bool Shadow(RiRay3 &) const;
bool Intersect(RiRay3 &, RiRayHit &);
void Accept(RiRayObjectVisitor &visitor);
protected:
}; // RiRaySphere


DESCRIPTION


RiRaySphere(const RiVector3 &center, RiReal radius);

Default Constructor

    RiRaySphere(const RiVector3 &center, RiReal radius);

void SetMaterial(RiMaterial *mat);

Set the material

    void SetMaterial(RiMaterial *mat);

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.

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

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;
// Members
void SetMaterial(RiMaterial *mat);
protected:

Ancestors

Inheritance chain for RiRaySphere:


Descendants

Class is not inherited by any others.


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