vtkOpenGLProperty Class Reference

#include <vtkOpenGLProperty.h>

Inheritance diagram for vtkOpenGLProperty:

Inheritance graph
[legend]
Collaboration diagram for vtkOpenGLProperty:

Collaboration graph
[legend]

List of all members.


Detailed Description

OpenGL property.

vtkOpenGLProperty is a concrete implementation of the abstract class vtkProperty. vtkOpenGLProperty interfaces to the OpenGL rendering library.

Definition at line 33 of file vtkOpenGLProperty.h.


Public Types

typedef vtkProperty Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
void Render (vtkActor *a, vtkRenderer *ren)
void BackfaceRender (vtkActor *a, vtkRenderer *ren)
virtual void ReleaseGraphicsResources (vtkWindow *win)
virtual void PostRender (vtkActor *a, vtkRenderer *r)
virtual vtkShader2CollectionGetShader2Collection ()
void SetShader2Collection (vtkShader2Collection *)
virtual
vtkGLSLShaderDeviceAdapter2
GetShaderDeviceAdapter2 ()
virtual vtkShaderProgram2GetCurrentShaderProgram2 ()

Static Public Member Functions

static vtkOpenGLPropertyNew ()
static int IsTypeOf (const char *type)
static vtkOpenGLPropertySafeDownCast (vtkObject *o)

Protected Member Functions

 vtkOpenGLProperty ()
 ~vtkOpenGLProperty ()
void LoadMultiTexturingExtensions (vtkRenderer *ren)
virtual void ReadFrameworkMaterial ()

Protected Attributes

vtkShader2CollectionShader2Collection
vtkShaderProgram2CachedShaderProgram2
vtkShaderProgram2LastCachedShaderProgram2
vtkShaderProgram2PropProgram
vtkShader2DefaultMainVS
vtkShader2DefaultMainFS
vtkShader2DefaultPropVS
vtkShader2DefaultPropFS
bool UseDefaultMainVS
bool UseDefaultMainFS
bool UseDefaultPropVS
bool UseDefaultPropFS
vtkGLSLShaderDeviceAdapter2ShaderDeviceAdapter2
vtkShaderProgram2CurrentShaderProgram2

Member Typedef Documentation

Reimplemented from vtkProperty.

Definition at line 37 of file vtkOpenGLProperty.h.


Constructor & Destructor Documentation

vtkOpenGLProperty::vtkOpenGLProperty (  )  [protected]

vtkOpenGLProperty::~vtkOpenGLProperty (  )  [protected]


Member Function Documentation

static vtkOpenGLProperty* vtkOpenGLProperty::New (  )  [static]

Construct object with object color, ambient color, diffuse color, specular color, and edge color white; ambient coefficient=0; diffuse coefficient=0; specular coefficient=0; specular power=1; Gouraud shading; and surface representation. Backface and frontface culling are off.

Reimplemented from vtkProperty.

virtual const char* vtkOpenGLProperty::GetClassName (  )  [virtual]

Reimplemented from vtkProperty.

static int vtkOpenGLProperty::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkProperty.

virtual int vtkOpenGLProperty::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkProperty.

static vtkOpenGLProperty* vtkOpenGLProperty::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::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 vtkProperty.

void vtkOpenGLProperty::Render ( vtkActor a,
vtkRenderer ren 
) [virtual]

Implement base class method.

Reimplemented from vtkProperty.

void vtkOpenGLProperty::BackfaceRender ( vtkActor a,
vtkRenderer ren 
) [virtual]

Implement base class method.

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::PostRender ( vtkActor a,
vtkRenderer r 
) [virtual]

This method is called after the actor has been rendered. Don't call this directly. This method cleans up any shaders allocated.

Reimplemented from vtkProperty.

virtual void vtkOpenGLProperty::ReleaseGraphicsResources ( vtkWindow win  )  [virtual]

Release any graphics resources that are being consumed by this property. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkProperty.

virtual vtkShader2Collection* vtkOpenGLProperty::GetShader2Collection (  )  [virtual]

Get the collection of property shaders. If Material is not set/or not loaded properly, this will return null.

void vtkOpenGLProperty::SetShader2Collection ( vtkShader2Collection  ) 

Get the collection of property shaders. If Material is not set/or not loaded properly, this will return null.

virtual vtkGLSLShaderDeviceAdapter2* vtkOpenGLProperty::GetShaderDeviceAdapter2 (  )  [virtual]

Get the object that can pass vertex attribute to a vtkShaderProgram2.

virtual vtkShaderProgram2* vtkOpenGLProperty::GetCurrentShaderProgram2 (  )  [virtual]

Get the vtkShaderProgram2 object in use.

void vtkOpenGLProperty::LoadMultiTexturingExtensions ( vtkRenderer ren  )  [protected]

Load OpenGL extensions for multi texturing.

virtual void vtkOpenGLProperty::ReadFrameworkMaterial (  )  [protected, virtual]

Read this->Material from new style shaders.

Reimplemented from vtkProperty.


Member Data Documentation

Definition at line 87 of file vtkOpenGLProperty.h.

Definition at line 89 of file vtkOpenGLProperty.h.

Definition at line 90 of file vtkOpenGLProperty.h.

Definition at line 91 of file vtkOpenGLProperty.h.

Definition at line 93 of file vtkOpenGLProperty.h.

Definition at line 94 of file vtkOpenGLProperty.h.

Definition at line 95 of file vtkOpenGLProperty.h.

Definition at line 96 of file vtkOpenGLProperty.h.

Definition at line 97 of file vtkOpenGLProperty.h.

Definition at line 98 of file vtkOpenGLProperty.h.

Definition at line 99 of file vtkOpenGLProperty.h.

Definition at line 100 of file vtkOpenGLProperty.h.

Definition at line 101 of file vtkOpenGLProperty.h.

Definition at line 103 of file vtkOpenGLProperty.h.


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

Generated on Wed Jun 3 19:20:48 2009 for VTK by  doxygen 1.5.6