VTK
|
OpenGL property. More...
#include <vtkOpenGLProperty.h>
OpenGL property.
vtkOpenGLProperty is a concrete implementation of the abstract class vtkProperty. vtkOpenGLProperty interfaces to the OpenGL rendering library.
Definition at line 36 of file vtkOpenGLProperty.h.
Reimplemented from vtkProperty.
Definition at line 40 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.
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkProperty.
virtual vtkObjectBase* vtkOpenGLProperty::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkProperty.
vtkOpenGLProperty* vtkOpenGLProperty::NewInstance | ( | ) | const |
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.
Set/Get the shader program of the vtkProp. It can be set directly or by defining a Material.
virtual vtkShaderDeviceAdapter2* vtkOpenGLProperty::GetShaderDeviceAdapter2 | ( | ) | [virtual] |
Get the object that can pass vertex attribute to a vtkShaderProgram2.
Reimplemented from vtkProperty.
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.
static void vtkOpenGLProperty::SetMaterialProperties | ( | unsigned int | face, |
double | ambient, | ||
const double | ambient_color[3], | ||
double | diffuse, | ||
const double | diffuse_color[3], | ||
double | specular, | ||
const double | specular_color[3], | ||
double | specular_power, | ||
double | opacity, | ||
vtkOpenGLRenderWindow * | context | ||
) | [static] |
Helper method to set OpenGL material properties.
bool vtkOpenGLProperty::RenderShaders | ( | vtkActor * | actor, |
vtkRenderer * | renderer | ||
) | [protected] |
Method called in vtkOpenGLProperty::Render() to render shaders and/or related entities like shader variables. Returns true if any shaders were rendered.
bool vtkOpenGLProperty::RenderTextures | ( | vtkActor * | actor, |
vtkRenderer * | renderer, | ||
bool | using_shader_program2 | ||
) | [protected] |
Method called in vtkOpenGLProperty::Render() to render textures. Last argument is the value returned from RenderShaders() call.
void vtkOpenGLProperty::LoadMultiTexturingExtensions | ( | vtkRenderer * | ren | ) | [protected] |
Load OpenGL extensions for multi texturing.
vtkShaderProgram2* vtkOpenGLProperty::CachedShaderProgram2 [protected] |
Definition at line 118 of file vtkOpenGLProperty.h.
Definition at line 120 of file vtkOpenGLProperty.h.
vtkShaderProgram2* vtkOpenGLProperty::LastPropProgram [protected] |
Definition at line 121 of file vtkOpenGLProperty.h.
vtkShaderProgram2* vtkOpenGLProperty::PropProgram [protected] |
Definition at line 122 of file vtkOpenGLProperty.h.
Definition at line 126 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultMainVS [protected] |
Definition at line 128 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultMainFS [protected] |
Definition at line 129 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultPropVS [protected] |
Definition at line 130 of file vtkOpenGLProperty.h.
vtkShader2* vtkOpenGLProperty::DefaultPropFS [protected] |
Definition at line 131 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultMainVS [protected] |
Definition at line 132 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultMainFS [protected] |
Definition at line 133 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultPropVS [protected] |
Definition at line 134 of file vtkOpenGLProperty.h.
bool vtkOpenGLProperty::UseDefaultPropFS [protected] |
Definition at line 135 of file vtkOpenGLProperty.h.
Definition at line 136 of file vtkOpenGLProperty.h.