VTK
|
#include <vtkOpenGLLightMonitor.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLLightMonitor * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
bool | StateChanged () |
void | Update () |
virtual void | SetLightId (int) |
virtual int | GetLightId () |
void | SetEnabled (int val) |
void | SetAmbient (float *val) |
void | SetDiffuse (float *val) |
void | SetSpecular (float *val) |
void | SetPosition (float *val) |
void | SetSpotDirection (float *val) |
void | SetSpotExponent (float val) |
void | SetSpotCutoff (float val) |
void | SetAttenuation (float *val) |
Static Public Member Functions | |
static vtkOpenGLLightMonitor * | New () |
static vtkOpenGLLightMonitor * | New (int lightId) |
static int | IsTypeOf (const char *type) |
static vtkOpenGLLightMonitor * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
tracks state of OpenGL model-view and projection matrices.
vtkOpenGLLightMonitor -- A helper for painters that tracks state of OpenGL lights. A Painter could use this to skip expensive processing that is only needed when lights 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 vtkOpenGLLightMonitor.h.
Reimplemented from vtkObject.
Definition at line 43 of file vtkOpenGLLightMonitor.h.
static vtkOpenGLLightMonitor* vtkOpenGLLightMonitor::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static vtkOpenGLLightMonitor* vtkOpenGLLightMonitor::New | ( | int | lightId | ) | [static] |
static int vtkOpenGLLightMonitor::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 vtkOpenGLLightMonitor::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 vtkOpenGLLightMonitor* vtkOpenGLLightMonitor::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkObject.
virtual vtkObjectBase* vtkOpenGLLightMonitor::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkObject.
Reimplemented from vtkObject.
void vtkOpenGLLightMonitor::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
virtual void vtkOpenGLLightMonitor::SetLightId | ( | int | ) | [virtual] |
Set/Get the light id of the OpenGL light to track. The light id must be set prior to use. Default value 0.
virtual int vtkOpenGLLightMonitor::GetLightId | ( | ) | [virtual] |
Set/Get the light id of the OpenGL light to track. The light id must be set prior to use. Default value 0.
bool vtkOpenGLLightMonitor::StateChanged | ( | ) |
Fetches the current GL state and updates the internal copies of the data. returns true if any of the tracked OpenGL lights have changed. Typically this is the only function a user needs to call.
void vtkOpenGLLightMonitor::Update | ( | ) |
Fetch and save OpenGL light state. Note, this is done automatically in SateChanged.
void vtkOpenGLLightMonitor::SetEnabled | ( | int | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetAmbient | ( | float * | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetDiffuse | ( | float * | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetSpecular | ( | float * | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetPosition | ( | float * | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetSpotDirection | ( | float * | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetSpotExponent | ( | float | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetSpotCutoff | ( | float | val | ) |
Setters for internal state.
void vtkOpenGLLightMonitor::SetAttenuation | ( | float * | val | ) |
Setters for internal state.