OpenGL Volumizer 2.7 Reference Pages


NAME
vzGraphicsState - A graphics state class.

INHERITS FROM
vzObject

HEADER FILE
#include <Volumizer2/GraphicsState.h>

PUBLIC METHOD SUMMARY
vzGraphicsState (  );
void setModelviewMatrix ( const GLdouble modelMat[16]);
void setProjectionMatrix ( const GLdouble projMat[16]);
void getModelviewMatrix ( GLdouble modelMat[16]);
void getProjectionMatrix ( GLdouble projMat[16]);

PROTECTED METHOD SUMMARY
virtual ~vzGraphicsState (  );

CLASS DESCRIPTION
vzGraphicsState provides an encapsulation for graphics state associated with volumetric shapes. The class provides an interface for applications to pass the necessary viewing and other graphics state related information to other Volumizer objects. Currently, the graphics state associated with a vzShapeSet is used by the vzParameterClipTextures in the set to update their center of interest when the view direction changes.

METHOD DESCRIPTIONS

   vzGraphicsState()
vzGraphicsState (  );

Constructor for a graphics state object. By default, all state variables are uninitialized, meaning that a request to retrieve them causes the invocation of a glGet(...) function. Once a state variable is set by a user, it is used directly by the object associated with this graphics state.

   ~vzGraphicsState()
virtual ~vzGraphicsState (  );

Destructor for a vzGraphicsState object.

   getModelviewMatrix()
void getModelviewMatrix ( GLdouble modelMat[16]);

Get the current modelview matrix. If it has previously been initialized using setModelviewMatrix(), then the cached value will be retrieved. Otherwise, the latest modelview matrix entries will be retrieved using the OpenGL glGetDoublev(GL_MODELVIEW_MATRIX) command.

   getProjectionMatrix()
void getProjectionMatrix ( GLdouble projMat[16]);

Get the current projection matrix. If it has previously been initialized using setProjectionMatrix(), then this cached value will be retrieved. Otherwise, the latest projection matrix entries will be retrieved using the OpenGL glGetDoublev(GL_PROJECTION_MATRIX) command.

   setModelviewMatrix()
void setModelviewMatrix ( const GLdouble modelMat[16]);

Set the modelview matrix. The viewing information associated with the object will be updated accordingly.

   setProjectionMatrix()
void setProjectionMatrix ( const GLdouble projMat[16]);

Set the projection matrix. The viewing information associated with the object will be updated accordingly.

SEE ALSO
vzGraphicsState, vzObject, vzParameterClipTexture, vzShapeSet

Back to Index