OpenGL Volumizer 2.7 Reference Pages


NAME
vzShape - Container node for a volume's geometry and appearance.

INHERITS FROM
vzObject

HEADER FILE
#include <Volumizer2/Shape.h>

PUBLIC METHOD SUMMARY
vzShape ( vzGeometry* geometry, vzAppearance* appearance);
void setGeometry ( vzGeometry* geometry);
vzGeometry* getGeometry (  ) const;
void setAppearance ( vzAppearance* appearance);
vzAppearance* getAppearance (  ) const;

PROTECTED METHOD SUMMARY
virtual ~vzShape (  );

CLASS DESCRIPTION
vzShape provides a complete abstraction of a volumetric shape. Each shape has a geometry (vzGeometry) and an appearance (vzAppearance) associated with it. The geometry controls the spatial attributes of the shape while the appearance controls the visual attributes of the shape.

Shape nodes are parameters to the draw() method of render actions (vzRenderAction). Shape nodes are atomic, by definition; it is not possible to render part of a shape. Hence, they can be used to represent the leaf nodes of a scene graph.

METHOD DESCRIPTIONS

   vzShape()
vzShape ( vzGeometry* geometry, vzAppearance* appearance);

Constructor for a volume shape.

   ~vzShape()
virtual ~vzShape (  );

Destructor for a volume shape.

   getAppearance()
vzAppearance* getAppearance (  ) const;

Retrieve the appearance of this volume shape.

   getGeometry()
vzGeometry* getGeometry (  ) const;

Retrieve the geometry of this volume shape.

   setAppearance()
void setAppearance ( vzAppearance* appearance);

Set the appearance of this volume shape. Increases the reference count of the appearance by one. Calls the unref() method of the previous appearance, if there was one.

   setGeometry()
void setGeometry ( vzGeometry* geometry);

Set the geometry of this volume shape. Increases the reference count of the geometry by one. Calls the unref() method of the previous geometry, if there was one.

SEE ALSO
vzAppearance, vzGeometry, vzObject, vzRenderAction

Back to Index