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

#include <vtkOpenGLLightMonitor.h>

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

List of all members.

Public Types

typedef vtkObject Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLLightMonitorNewInstance () 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 vtkOpenGLLightMonitorNew ()
static vtkOpenGLLightMonitorNew (int lightId)
static int IsTypeOf (const char *type)
static vtkOpenGLLightMonitorSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const

Detailed Description

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.

Tests:
vtkOpenGLLightMonitor (Tests)

Definition at line 38 of file vtkOpenGLLightMonitor.h.


Member Typedef Documentation

Reimplemented from vtkObject.

Definition at line 43 of file vtkOpenGLLightMonitor.h.


Member Function Documentation

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.

Reimplemented from vtkObject.

virtual vtkObjectBase* vtkOpenGLLightMonitor::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkObject.

Reimplemented from vtkObject.

void vtkOpenGLLightMonitor::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.

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.

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.

Fetch and save OpenGL light state. Note, this is done automatically in SateChanged.

Setters for internal state.

Setters for internal state.

Setters for internal state.

Setters for internal state.

Setters for internal state.

Setters for internal state.

Setters for internal state.

Setters for internal state.

Setters for internal state.


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