RiReader

Base class for model file readers.

This is an abstract class and cannot be directly instanced.


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

Quick Index

DESCRIPTION

Class Summary

class RiReader
{
public:
// Constructors and assignment
RiReader();
~RiReader() ;
// Accessors
RiThinLensCamera* GetCamera() const;
RiPolygonBuilder* GetPolygonBuilder() const;
RiSphereBuilder* GetSphereBuilder() const;
RiBackground* GetBackground() const;
RiCylinderBuilder* GetCylinderBuilder() const;
int GetNumLights() const;
RiLightObject *GetLight(int i) const;
int GetNumOtherObjects() const;
RiRayObject *GetOtherObject(int i) const;
// Members
bool Read(); // pure virtual
RiRayObject *BuildRayObject();
protected:
RiPolygonBuilder *polygonBuilderPtr;
RiSphereBuilder *sphereBuilderPtr;
RiCylinderBuilder *cylinderBuilderPtr;
RiThinLensCamera *cameraPtr;
RiBackground *backgroundPtr;
void AddLight(RiLightObject *vLight);
void AddOtherObject(RiRayObject *obj);
}; // RiReader


DESCRIPTION

Note that the derived classes create the builders that they can handle.


RiReader();

Default Constructor

    RiReader();

~RiReader() ;

Destructor Does not delete the builders or the camera, or anything else...

    virtual ~RiReader()   
;

Function is currently defined inline.


RiThinLensCamera* GetCamera() const;

Returns pointer to camera (initially NULL)

    virtual RiThinLensCamera* GetCamera() const;

RiPolygonBuilder* GetPolygonBuilder() const;

Returns pointer to polygon builder (initially NULL)

    virtual RiPolygonBuilder* GetPolygonBuilder() const;

RiSphereBuilder* GetSphereBuilder() const;

Returns pointer to sphere builder (initially NULL)

    virtual RiSphereBuilder*  GetSphereBuilder() const;

RiBackground* GetBackground() const;

Returns pointer to background (initially NULL)

    virtual RiBackground*  	GetBackground() const;

RiCylinderBuilder* GetCylinderBuilder() const;

Returns pointer to cylinder builder (initially NULL)

    virtual RiCylinderBuilder*  GetCylinderBuilder() const;

int GetNumLights() const;

Return the number of lights (NOT emitting object, virtual lights)

    int     			GetNumLights() const;

RiLightObject *GetLight(int i) const;

Return the ith light

    RiLightObject	       *GetLight(int i) const;

int GetNumOtherObjects() const;

Return the number of other objects (NOT simple primitives)

    int     			GetNumOtherObjects() const;

RiRayObject *GetOtherObject(int i) const;

Return the ith other object

    RiRayObject 	       *GetOtherObject(int i) const;

bool Read();

Processes current input stream

    virtual bool Read();    

RiRayObject *BuildRayObject();

    RiRayObject *BuildRayObject();

RiPolygonBuilder *polygonBuilderPtr;

builder for polygons. Set to null by RiReader

    RiPolygonBuilder *polygonBuilderPtr;

RiSphereBuilder *sphereBuilderPtr;

builder for spheres. Set to null by RiReader

    RiSphereBuilder  *sphereBuilderPtr;

RiCylinderBuilder *cylinderBuilderPtr;

builder for cylinder. Set to null by RiReader

    RiCylinderBuilder  *cylinderBuilderPtr;

RiThinLensCamera *cameraPtr;

the camera(should be an array...). Set to null by RiReader

    RiThinLensCamera *cameraPtr;

RiBackground *backgroundPtr;

ckground *backgroundPtr;No documentation available.

    RiBackground     *backgroundPtr;

void AddLight(RiLightObject *vLight);

Add a light that isn't associated with geometry.

    void		AddLight(RiLightObject *vLight);

void AddOtherObject(RiRayObject *obj);

Add a light that isn't associated with geometry.

    void		AddOtherObject(RiRayObject *obj);

All Members

public:
// Accessors
RiThinLensCamera* GetCamera() const;
RiPolygonBuilder* GetPolygonBuilder() const;
RiSphereBuilder* GetSphereBuilder() const;
RiBackground* GetBackground() const;
RiCylinderBuilder* GetCylinderBuilder() const;
int GetNumLights() const;
RiLightObject *GetLight(int i) const;
int GetNumOtherObjects() const;
RiRayObject *GetOtherObject(int i) const;
// Members
bool Read(); // pure virtual
RiRayObject *BuildRayObject();
protected:
RiPolygonBuilder *polygonBuilderPtr;
RiSphereBuilder *sphereBuilderPtr;
RiCylinderBuilder *cylinderBuilderPtr;
RiThinLensCamera *cameraPtr;
RiBackground *backgroundPtr;
void AddLight(RiLightObject *vLight);
void AddOtherObject(RiRayObject *obj);

Ancestors

Class does not inherit from any other class.


Descendants


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