VTK
|
#include <vtkOpenGLModelViewProjectionMonitor.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLModelViewProjectionMonitor * | NewInstance () 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 vtkObjectBase * | NewInstanceInternal () const |
vtkOpenGLModelViewProjectionMonitor () | |
~vtkOpenGLModelViewProjectionMonitor () | |
void | Initialize () |
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.
Definition at line 38 of file vtkOpenGLModelViewProjectionMonitor.h.
Reimplemented from vtkObject.
Definition at line 42 of file vtkOpenGLModelViewProjectionMonitor.h.
vtkOpenGLModelViewProjectionMonitor::vtkOpenGLModelViewProjectionMonitor | ( | ) | [inline, protected] |
Definition at line 63 of file vtkOpenGLModelViewProjectionMonitor.h.
vtkOpenGLModelViewProjectionMonitor::~vtkOpenGLModelViewProjectionMonitor | ( | ) | [inline, protected] |
Definition at line 66 of file vtkOpenGLModelViewProjectionMonitor.h.
static vtkOpenGLModelViewProjectionMonitor* vtkOpenGLModelViewProjectionMonitor::New | ( | ) | [static] |
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.
static vtkOpenGLModelViewProjectionMonitor* vtkOpenGLModelViewProjectionMonitor::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkOpenGLModelViewProjectionMonitor::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
Reimplemented from vtkObject.
void vtkOpenGLModelViewProjectionMonitor::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
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.
void vtkOpenGLModelViewProjectionMonitor::SetProjection | ( | float * | val | ) |
Set the matrix data.
void vtkOpenGLModelViewProjectionMonitor::SetModelView | ( | float * | val | ) |
Set the matrix data.
void vtkOpenGLModelViewProjectionMonitor::Initialize | ( | ) | [protected] |