VTK
|
PolyDataMapper using OpenGL to render. More...
#include <vtkOpenGLGlyph3DHelper.h>
Public Types | |
typedef vtkOpenGLPolyDataMapper | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLGlyph3DHelper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetModelTransform (float *matrix) |
void | SetModelNormalTransform (float *matrix) |
void | SetModelColor (unsigned char *color) |
void | SetUseFastPath (bool fastpath) |
void | GlyphRender (vtkRenderer *ren, vtkActor *actor, vtkIdType numPts, std::vector< unsigned char > &colors, std::vector< float > &matrices, std::vector< float > &normalMatrices, std::vector< vtkIdType > &pickIds, unsigned long pointMTime) |
Static Public Member Functions | |
static vtkOpenGLGlyph3DHelper * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLGlyph3DHelper * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkOpenGLGlyph3DHelper () | |
~vtkOpenGLGlyph3DHelper () | |
void | GlyphRenderInstances (vtkRenderer *ren, vtkActor *actor, vtkIdType numPts, std::vector< unsigned char > &colors, std::vector< float > &matrices, std::vector< float > &normalMatrices, unsigned long pointMTime) |
virtual void | SetCameraShaderParameters (vtkgl::CellBO &cellBO, vtkRenderer *ren, vtkActor *act) |
virtual void | SetPropertyShaderParameters (vtkgl::CellBO &cellBO, vtkRenderer *ren, vtkActor *act) |
virtual void | SetMapperShaderParameters (vtkgl::CellBO &cellBO, vtkRenderer *ren, vtkActor *act) |
virtual void | GetShaderTemplate (std::string &VertexCode, std::string &fragmentCode, std::string &geometryCode, int lightComplexity, vtkRenderer *ren, vtkActor *act) |
virtual void | ReplaceShaderValues (std::string &VertexCode, std::string &fragmentCode, std::string &geometryCode, int lightComplexity, vtkRenderer *ren, vtkActor *act) |
Protected Attributes | |
bool | UseFastPath |
bool | UsingInstancing |
float * | ModelTransformMatrix |
float * | ModelNormalMatrix |
unsigned char * | ModelColor |
vtkgl::BufferObject | NormalMatrixBuffer |
vtkgl::BufferObject | MatrixBuffer |
vtkgl::BufferObject | ColorBuffer |
vtkTimeStamp | InstanceBuffersLoadTime |
PolyDataMapper using OpenGL to render.
PolyDataMapper that uses a OpenGL to do the actual rendering.
Definition at line 28 of file vtkOpenGLGlyph3DHelper.h.
Reimplemented from vtkOpenGLPolyDataMapper.
Definition at line 32 of file vtkOpenGLGlyph3DHelper.h.
vtkOpenGLGlyph3DHelper::vtkOpenGLGlyph3DHelper | ( | ) | [protected] |
vtkOpenGLGlyph3DHelper::~vtkOpenGLGlyph3DHelper | ( | ) | [protected] |
static vtkOpenGLGlyph3DHelper* vtkOpenGLGlyph3DHelper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkOpenGLPolyDataMapper.
static int vtkOpenGLGlyph3DHelper::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 vtkOpenGLPolyDataMapper.
virtual int vtkOpenGLGlyph3DHelper::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 vtkOpenGLPolyDataMapper.
static vtkOpenGLGlyph3DHelper* vtkOpenGLGlyph3DHelper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkOpenGLPolyDataMapper.
virtual vtkObjectBase* vtkOpenGLGlyph3DHelper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkOpenGLPolyDataMapper.
Reimplemented from vtkOpenGLPolyDataMapper.
void vtkOpenGLGlyph3DHelper::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 vtkOpenGLPolyDataMapper.
void vtkOpenGLGlyph3DHelper::SetModelTransform | ( | float * | matrix | ) | [inline] |
Definition at line 35 of file vtkOpenGLGlyph3DHelper.h.
void vtkOpenGLGlyph3DHelper::SetModelNormalTransform | ( | float * | matrix | ) | [inline] |
Definition at line 40 of file vtkOpenGLGlyph3DHelper.h.
void vtkOpenGLGlyph3DHelper::SetModelColor | ( | unsigned char * | color | ) | [inline] |
Definition at line 45 of file vtkOpenGLGlyph3DHelper.h.
void vtkOpenGLGlyph3DHelper::SetUseFastPath | ( | bool | fastpath | ) | [inline] |
Definition at line 50 of file vtkOpenGLGlyph3DHelper.h.
void vtkOpenGLGlyph3DHelper::GlyphRender | ( | vtkRenderer * | ren, |
vtkActor * | actor, | ||
vtkIdType | numPts, | ||
std::vector< unsigned char > & | colors, | ||
std::vector< float > & | matrices, | ||
std::vector< float > & | normalMatrices, | ||
std::vector< vtkIdType > & | pickIds, | ||
unsigned long | pointMTime | ||
) |
Fast path for rendering glyphs comprised of only one type of primative
void vtkOpenGLGlyph3DHelper::GlyphRenderInstances | ( | vtkRenderer * | ren, |
vtkActor * | actor, | ||
vtkIdType | numPts, | ||
std::vector< unsigned char > & | colors, | ||
std::vector< float > & | matrices, | ||
std::vector< float > & | normalMatrices, | ||
unsigned long | pointMTime | ||
) | [protected] |
virtual void vtkOpenGLGlyph3DHelper::GetShaderTemplate | ( | std::string & | VertexCode, |
std::string & | fragmentCode, | ||
std::string & | geometryCode, | ||
int | lightComplexity, | ||
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Create the basic shaders before replacement
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkOpenGLGlyph3DHelper::ReplaceShaderValues | ( | std::string & | VertexCode, |
std::string & | fragmentCode, | ||
std::string & | geometryCode, | ||
int | lightComplexity, | ||
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Perform string replacments on the shader templates
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkOpenGLGlyph3DHelper::SetCameraShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameteres related to the Camera
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkOpenGLGlyph3DHelper::SetPropertyShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameteres related to the property
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkOpenGLGlyph3DHelper::SetMapperShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameteres related to the actor/mapper
Reimplemented from vtkOpenGLPolyDataMapper.
bool vtkOpenGLGlyph3DHelper::UseFastPath [protected] |
Definition at line 104 of file vtkOpenGLGlyph3DHelper.h.
bool vtkOpenGLGlyph3DHelper::UsingInstancing [protected] |
Definition at line 105 of file vtkOpenGLGlyph3DHelper.h.
float* vtkOpenGLGlyph3DHelper::ModelTransformMatrix [protected] |
Definition at line 107 of file vtkOpenGLGlyph3DHelper.h.
float* vtkOpenGLGlyph3DHelper::ModelNormalMatrix [protected] |
Definition at line 108 of file vtkOpenGLGlyph3DHelper.h.
unsigned char* vtkOpenGLGlyph3DHelper::ModelColor [protected] |
Definition at line 109 of file vtkOpenGLGlyph3DHelper.h.
Definition at line 111 of file vtkOpenGLGlyph3DHelper.h.
Definition at line 112 of file vtkOpenGLGlyph3DHelper.h.
Definition at line 113 of file vtkOpenGLGlyph3DHelper.h.
Definition at line 114 of file vtkOpenGLGlyph3DHelper.h.