VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkOpenGLModelViewProjectionMonitor Class Reference

#include <vtkOpenGLModelViewProjectionMonitor.h>

Inheritance diagram for vtkOpenGLModelViewProjectionMonitor:
Inheritance graph
[legend]
Collaboration diagram for vtkOpenGLModelViewProjectionMonitor:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLModelViewProjectionMonitorNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
bool StateChanged ()
void Update ()
void SetProjection (float *val)
void SetModelView (float *val)

Static Public Member Functions

static
vtkOpenGLModelViewProjectionMonitor
New ()
static int IsTypeOf (const char *type)
static
vtkOpenGLModelViewProjectionMonitor
SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkOpenGLModelViewProjectionMonitor ()
 ~vtkOpenGLModelViewProjectionMonitor ()
void Initialize ()

Detailed Description

tracks state of OpenGL model-view and projection matrices.

vtkOpenGLModelViewProjectionMonitor -- A helper for painters that tracks state of OpenGL model-view and projection matrices. A Painter could use this to skip expensive processing that is only needed when the model-view or projection matrices change.

this is not intended to be shared. each object should use it's own instance of this class. it's intended to be called once per render.

Tests:
vtkOpenGLModelViewProjectionMonitor (Tests)

Definition at line 38 of file vtkOpenGLModelViewProjectionMonitor.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 42 of file vtkOpenGLModelViewProjectionMonitor.h.


Constructor & Destructor Documentation

Definition at line 63 of file vtkOpenGLModelViewProjectionMonitor.h.

Definition at line 66 of file vtkOpenGLModelViewProjectionMonitor.h.


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

static int vtkOpenGLModelViewProjectionMonitor::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

virtual int vtkOpenGLModelViewProjectionMonitor::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkOpenGLModelViewProjectionMonitor::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

Fetches the current GL state and updates the internal copies of the data. returns true if any of the tracked OpenGL matrices have changed. Typically this is the only function a user needs to call.

Fetch and store OpenGL model view matrix. Note, this is done automatically in SateChanged.

Set the matrix data.

Set the matrix data.


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