#include <vtkOpenGLProperty.h>
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.
vtkOpenGLProperty::vtkOpenGLProperty | ( | ) | [protected] |
vtkOpenGLProperty::~vtkOpenGLProperty | ( | ) | [protected] |
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 vtkTypeMacro 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 vtkTypeMacro 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 vtkShaderProgram2* vtkOpenGLProperty::GetPropProgram | ( | ) | [virtual] |
Set/Get the shader program of the vtkProp. It can be set directly or by defining a Material.
void vtkOpenGLProperty::SetPropProgram | ( | vtkShaderProgram2 * | ) |
Set/Get the shader program of the vtkProp. It can be set directly or by defining a Material.
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.
virtual void vtkOpenGLProperty::AddShaderVariable | ( | const char * | name, | |
int | numVars, | |||
int * | x | |||
) | [virtual] |
Provide values to initialize shader variables. Useful to initialize shader variables that change over time (animation, GUI widgets inputs, etc. ) - name
- hardware name of the uniform variable - numVars
- number of variables being set - x
- values
Reimplemented from vtkProperty.
virtual void vtkOpenGLProperty::AddShaderVariable | ( | const char * | name, | |
int | numVars, | |||
float * | x | |||
) | [virtual] |
Provide values to initialize shader variables. Useful to initialize shader variables that change over time (animation, GUI widgets inputs, etc. ) - name
- hardware name of the uniform variable - numVars
- number of variables being set - x
- values
Reimplemented from vtkProperty.
virtual void vtkOpenGLProperty::AddShaderVariable | ( | const char * | name, | |
int | numVars, | |||
double * | x | |||
) | [virtual] |
Provide values to initialize shader variables. Useful to initialize shader variables that change over time (animation, GUI widgets inputs, etc. ) - name
- hardware name of the uniform variable - numVars
- number of variables being set - x
- values
Reimplemented from vtkProperty.
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.
vtkShaderProgram2* vtkOpenGLProperty::CachedShaderProgram2 [protected] |
Definition at line 99 of file vtkOpenGLProperty.h.
Definition at line 101 of file vtkOpenGLProperty.h.
vtkShaderProgram2* vtkOpenGLProperty::LastPropProgram [protected] |
Definition at line 102 of file vtkOpenGLProperty.h.
vtkShaderProgram2* vtkOpenGLProperty::PropProgram [protected] |
Definition at line 103 of file vtkOpenGLProperty.h.
Definition at line 107 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultMainVS [protected] |
Definition at line 109 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultMainFS [protected] |
Definition at line 110 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultPropVS [protected] |
Definition at line 111 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultPropFS [protected] |
Definition at line 112 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultMainVS [protected] |
Definition at line 113 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultMainFS [protected] |
Definition at line 114 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultPropVS [protected] |
Definition at line 115 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultPropFS [protected] |
Definition at line 116 of file vtkOpenGLProperty.h.
Definition at line 117 of file vtkOpenGLProperty.h.