OpenGL Volumizer 2.7 Reference Pages


NAME
vzGeometry - Geometry of a shape node.

INHERITS FROM
vzObject

HEADER FILE
#include <Volumizer2/Geometry.h>

PUBLIC METHOD SUMMARY
vzGeometry (  );
void getBoundingBox ( float bbox[6]);

PROTECTED METHOD SUMMARY
virtual ~vzGeometry (  ) = 0;
void setBoundingBox ( float bbox[6]);

CLASS DESCRIPTION
The vzGeometry class represents any geometry attached to a vzShape node. The geometry of a shape node is used to describe the spatial attributes of the node.

METHOD DESCRIPTIONS

   vzGeometry()
vzGeometry (  );

Constructor for geometry. The bounding box of the geometry is initialized illegal values inside the constructor. This forces a computeBoundingBox() on calling the getBoundingBox() method.

   ~vzGeometry()
virtual ~vzGeometry (  ) = 0;

Destructor for geometry.

   getBoundingBox()
void getBoundingBox ( float bbox[6]);

A method to compute the bounding box of the given geometry data. The bounding box is computed and coordinates are copied into bbox. The first three values give the x, y and z coordinates of the lower bound and the last three values give the coordinates of the upper bound. The computed bounding box is cached internally and hence subsequent calls to getBoundingBox return the cached value.

   setBoundingBox()
void setBoundingBox ( float bbox[6]);

Set the bounding box for the geometry class. This is a protected method which is used by derived classes to update the bounding box for the geometry class whenever the bounding box needs to be computed.

SEE ALSO
vzObject, vzShape

Back to Index