HDK_Sample::VRAY_DemoStamp Class Reference

A procedural which splits into further procedurals during rendering. More...

#include <VRAY_DemoStamp.h>

Inheritance diagram for HDK_Sample::VRAY_DemoStamp:

VRAY_Procedural

List of all members.

Public Member Functions

 VRAY_DemoStamp ()
virtual ~VRAY_DemoStamp ()
virtual const char * getClassName ()
virtual int initialize (const UT_BoundingBox *)
virtual void getBoundingBox (UT_BoundingBox &box)
 The bounding box is the "object space" bounds of the procedural.
virtual void render ()


Detailed Description

A procedural which splits into further procedurals during rendering.
Examples:

VRAY/VRAY_DemoStamp.C.

Definition at line 40 of file VRAY_DemoStamp.h.


Constructor & Destructor Documentation

VRAY_DemoStamp::VRAY_DemoStamp (  ) 

Examples:
VRAY/VRAY_DemoStamp.h.

Definition at line 98 of file VRAY_DemoStamp.C.

VRAY_DemoStamp::~VRAY_DemoStamp (  )  [virtual]

Examples:
VRAY/VRAY_DemoStamp.C, and VRAY/VRAY_DemoStamp.h.

Definition at line 103 of file VRAY_DemoStamp.C.


Member Function Documentation

void VRAY_DemoStamp::getBoundingBox ( UT_BoundingBox box  )  [virtual]

The bounding box is the "object space" bounds of the procedural.

Implements VRAY_Procedural.

Examples:
VRAY/VRAY_DemoStamp.C, and VRAY/VRAY_DemoStamp.h.

Definition at line 140 of file VRAY_DemoStamp.C.

const char * VRAY_DemoStamp::getClassName (  )  [virtual]

The class name is used in diagnostic messages. It can simply be the name of the class, or alternatively, you can choose a unique name for each procedural instance.

Implements VRAY_Procedural.

Examples:
VRAY/VRAY_DemoStamp.C, and VRAY/VRAY_DemoStamp.h.

Definition at line 108 of file VRAY_DemoStamp.C.

int VRAY_DemoStamp::initialize ( const UT_BoundingBox box  )  [virtual]

The initialize method is called when the procedural is created. Returning zero (failure) will abort the rendering of this procedural.

The bounding box passed in is the user defined bounding box. If the user didn't specify a bounding box, then the box will be NULL.

Implements VRAY_Procedural.

Examples:
VRAY/VRAY_DemoStamp.C, and VRAY/VRAY_DemoStamp.h.

Definition at line 114 of file VRAY_DemoStamp.C.

void VRAY_DemoStamp::render (  )  [virtual]

The render method is called when the procedural is required to either generate geometry or split into more procedurals. The level of detail passed in represents the rough screen space projection of the procedural's bounding box. The value is roughly the number of pixels that the bounding box occupies (modified by the LEVEL OF DETAIL rate).

For example, if a box occupies 10 horizontal pixels and 20 vertical pixels, the lod passed in will be roughly 20 (the maximum bounds occupied in screen space). If the object surrounds the camera, the lod will be clamped at a large number.

Note:
The render method may be called more than once during a render to regenerate the geometry.

Implements VRAY_Procedural.

Examples:
VRAY/VRAY_DemoStamp.C, and VRAY/VRAY_DemoStamp.h.

Definition at line 150 of file VRAY_DemoStamp.C.


The documentation for this class was generated from the following files:

Generated on Mon Jan 28 00:30:26 2013 for HDK by  doxygen 1.5.9