VTK
|
a PolyDataMapper for the OpenGL library More...
#include <vtkOpenGLPolyDataMapper.h>
a PolyDataMapper for the OpenGL library
PolyDataMapper using OpenGL to render.
vtkOpenGLPolyDataMapper is a subclass of vtkPolyDataMapper. vtkOpenGLPolyDataMapper is a geometric PolyDataMapper for the OpenGL rendering library.
@par Events: vtkCommand::StartEvent vtkCommand::EndEvent
PolyDataMapper that uses a OpenGL to do the actual rendering.
Definition at line 42 of file vtkOpenGLPolyDataMapper.h.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
Definition at line 46 of file vtkOpenGLPolyDataMapper.h.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
Definition at line 38 of file vtkOpenGLPolyDataMapper.h.
vtkOpenGLPolyDataMapper::vtkOpenGLPolyDataMapper | ( | ) | [protected] |
vtkOpenGLPolyDataMapper::~vtkOpenGLPolyDataMapper | ( | ) | [protected] |
vtkOpenGLPolyDataMapper::vtkOpenGLPolyDataMapper | ( | ) | [protected] |
vtkOpenGLPolyDataMapper::~vtkOpenGLPolyDataMapper | ( | ) | [protected] |
static vtkOpenGLPolyDataMapper* vtkOpenGLPolyDataMapper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
static int vtkOpenGLPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
virtual int vtkOpenGLPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
static vtkOpenGLPolyDataMapper* vtkOpenGLPolyDataMapper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
virtual vtkObjectBase* vtkOpenGLPolyDataMapper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
virtual void vtkOpenGLPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
virtual void vtkOpenGLPolyDataMapper::RenderPiece | ( | vtkRenderer * | ren, |
vtkActor * | a | ||
) | [virtual] |
Implement superclass render method.
Implements vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
void vtkOpenGLPolyDataMapper::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkMapper.
virtual int vtkOpenGLPolyDataMapper::Draw | ( | vtkRenderer * | ren, |
vtkActor * | a | ||
) | [virtual] |
Draw method for OpenGL.
void vtkOpenGLPolyDataMapper::DrawPoints | ( | int | idx, |
vtkPoints * | p, | ||
vtkDataArray * | n, | ||
vtkUnsignedCharArray * | c, | ||
vtkDataArray * | t, | ||
vtkIdType & | cellNum, | ||
int & | noAbort, | ||
vtkCellArray * | ca, | ||
vtkRenderer * | ren | ||
) | [protected] |
void vtkOpenGLPolyDataMapper::DrawLines | ( | int | idx, |
vtkPoints * | p, | ||
vtkDataArray * | n, | ||
vtkUnsignedCharArray * | c, | ||
vtkDataArray * | t, | ||
vtkIdType & | cellNum, | ||
int & | noAbort, | ||
vtkCellArray * | ca, | ||
vtkRenderer * | ren | ||
) | [protected] |
void vtkOpenGLPolyDataMapper::DrawPolygons | ( | int | idx, |
vtkPoints * | p, | ||
vtkDataArray * | n, | ||
vtkUnsignedCharArray * | c, | ||
vtkDataArray * | t, | ||
vtkIdType & | cellNum, | ||
int & | noAbort, | ||
GLenum | rep, | ||
vtkCellArray * | ca, | ||
vtkRenderer * | ren | ||
) | [protected] |
void vtkOpenGLPolyDataMapper::DrawTStrips | ( | int | idx, |
vtkPoints * | p, | ||
vtkDataArray * | n, | ||
vtkUnsignedCharArray * | c, | ||
vtkDataArray * | t, | ||
vtkIdType & | cellNum, | ||
int & | noAbort, | ||
GLenum | rep, | ||
vtkCellArray * | ca, | ||
vtkRenderer * | ren | ||
) | [protected] |
static vtkOpenGLPolyDataMapper* vtkOpenGLPolyDataMapper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
static int vtkOpenGLPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
virtual int vtkOpenGLPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
static vtkOpenGLPolyDataMapper* vtkOpenGLPolyDataMapper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
virtual vtkObjectBase* vtkOpenGLPolyDataMapper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
void vtkOpenGLPolyDataMapper::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 vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkCompositePolyDataMapper2, vtkOpenGLGlyph3DHelper, vtkOpenGLSphereMapper, and vtkOpenGLStickMapper.
virtual void vtkOpenGLPolyDataMapper::RenderPiece | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
Implements vtkPolyDataMapper.
Reimplemented in vtkCompositePolyDataMapper2.
virtual void vtkOpenGLPolyDataMapper::RenderPieceStart | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
virtual void vtkOpenGLPolyDataMapper::RenderPieceDraw | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
Reimplemented in vtkOpenGLStickMapper, vtkOpenGLSphereMapper, and vtkCompositePolyDataMapper2.
virtual void vtkOpenGLPolyDataMapper::RenderPieceFinish | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
virtual void vtkOpenGLPolyDataMapper::RenderEdges | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [virtual] |
Implemented by sub classes. Actual rendering is done here.
Reimplemented in vtkCompositePolyDataMapper2.
void vtkOpenGLPolyDataMapper::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.
Reimplemented from vtkMapper.
virtual int vtkOpenGLPolyDataMapper::GetPopulateSelectionSettings | ( | ) | [virtual] |
void vtkOpenGLPolyDataMapper::SetPopulateSelectionSettings | ( | int | v | ) | [inline] |
Definition at line 58 of file vtkOpenGLPolyDataMapper.h.
virtual bool vtkOpenGLPolyDataMapper::GetSupportsSelection | ( | ) | [inline, virtual] |
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERING PROCESS Used by vtkHardwareSelector to determine if the prop supports hardware selection.
Reimplemented from vtkMapper.
Definition at line 64 of file vtkOpenGLPolyDataMapper.h.
virtual bool vtkOpenGLPolyDataMapper::GetIsOpaque | ( | ) | [virtual] |
Returns if the mapper does not expect to have translucent geometry. This may happen when using ScalarMode is set to not map scalars i.e. render the scalar array directly as colors and the scalar array has opacity i.e. alpha component. Note that even if this method returns true, an actor may treat the geometry as translucent since a constant translucency is set on the property, for example. Overridden to use the actual data and ScalarMode to determine if we have opaque geometry.
Reimplemented from vtkMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, and vtkCompositePolyDataMapper2.
virtual vtkIdType vtkOpenGLPolyDataMapper::GetConvertedPickValue | ( | vtkIdType | idIn, |
int | fieldassociation, | ||
vtkActor * | act | ||
) | [virtual] |
Props may provide a mapping from picked value to actual value This is useful for hardware based pickers where there is a mapping between the color in the buffer and the actual pick value
virtual void vtkOpenGLPolyDataMapper::ComputeBounds | ( | ) | [protected, virtual] |
Called in GetBounds(). When this method is called, the consider the input to be updated depending on whether this->Static is set or not. This method simply obtains the bounds from the data-object and returns it.
Reimplemented from vtkPolyDataMapper.
Reimplemented in vtkGenericCompositePolyDataMapper2, and vtkCompositePolyDataMapper2.
virtual void vtkOpenGLPolyDataMapper::UpdateShader | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Make sure an appropriate shader is defined, compiled and bound. This method orchistrates the process, much of the work is done in other methods
virtual bool vtkOpenGLPolyDataMapper::GetNeedToRebuildShader | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Does the shader source need to be recomputed
virtual void vtkOpenGLPolyDataMapper::BuildShader | ( | std::string & | VertexCode, |
std::string & | fragmentCode, | ||
std::string & | geometryCode, | ||
int | lightComplexity, | ||
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Build the shader source code, called by UpdateShader
virtual void vtkOpenGLPolyDataMapper::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 in vtkOpenGLGlyph3DHelper, vtkOpenGLStickMapper, and vtkOpenGLSphereMapper.
virtual void vtkOpenGLPolyDataMapper::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 in vtkOpenGLGlyph3DHelper, vtkOpenGLStickMapper, and vtkOpenGLSphereMapper.
virtual void vtkOpenGLPolyDataMapper::ReplaceShaderColorMaterialValues | ( | std::string & | VertexCode, |
std::string & | fragmentCode, | ||
std::string & | geometryCode, | ||
int | lightComplexity, | ||
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Perform string replacments on the shader templates, called from ReplaceShaderValues
virtual void vtkOpenGLPolyDataMapper::SetMapperShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameteres related to the mapper/input data, called by UpdateShader
Reimplemented in vtkOpenGLGlyph3DHelper, vtkOpenGLStickMapper, and vtkOpenGLSphereMapper.
virtual void vtkOpenGLPolyDataMapper::SetLightingShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameteres related to lighting, called by UpdateShader
virtual void vtkOpenGLPolyDataMapper::SetCameraShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameteres related to the Camera, called by UpdateShader
Reimplemented in vtkOpenGLGlyph3DHelper, vtkOpenGLStickMapper, and vtkOpenGLSphereMapper.
virtual void vtkOpenGLPolyDataMapper::SetPropertyShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameteres related to the property, called by UpdateShader
Reimplemented in vtkOpenGLGlyph3DHelper.
virtual void vtkOpenGLPolyDataMapper::UpdateBufferObjects | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [protected, virtual] |
Update the VBO/IBO to be current
virtual bool vtkOpenGLPolyDataMapper::GetNeedToRebuildBufferObjects | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [protected, virtual] |
Does the VBO/IBO need to be rebuilt
Reimplemented in vtkOpenGLStickMapper, and vtkOpenGLSphereMapper.
virtual void vtkOpenGLPolyDataMapper::BuildBufferObjects | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [protected, virtual] |
Build the VBO/IBO, called by UpdateBufferObjects
Reimplemented in vtkOpenGLStickMapper, vtkOpenGLSphereMapper, and vtkCompositePolyDataMapper2.
bool vtkOpenGLPolyDataMapper::IsShaderVariableUsed | ( | const char * | ) | [protected] |
vtkIdType vtkOpenGLPolyDataMapper::TotalCells [protected] |
Definition at line 106 of file vtkOpenGLPolyDataMapper.h.
int vtkOpenGLPolyDataMapper::ListId [protected] |
Definition at line 107 of file vtkOpenGLPolyDataMapper.h.
Definition at line 108 of file vtkOpenGLPolyDataMapper.h.
Definition at line 79 of file vtkOpenGLPolyDataMapper.h.
vtkgl::BufferObject vtkOpenGLPolyDataMapper::VBO [protected] |
Definition at line 167 of file vtkOpenGLPolyDataMapper.h.
vtkgl::VBOLayout vtkOpenGLPolyDataMapper::Layout [protected] |
Definition at line 168 of file vtkOpenGLPolyDataMapper.h.
vtkgl::CellBO vtkOpenGLPolyDataMapper::Points [protected] |
Definition at line 171 of file vtkOpenGLPolyDataMapper.h.
vtkgl::CellBO vtkOpenGLPolyDataMapper::Lines [protected] |
Definition at line 172 of file vtkOpenGLPolyDataMapper.h.
vtkgl::CellBO vtkOpenGLPolyDataMapper::Tris [protected] |
Definition at line 173 of file vtkOpenGLPolyDataMapper.h.
vtkgl::CellBO vtkOpenGLPolyDataMapper::TriStrips [protected] |
Definition at line 174 of file vtkOpenGLPolyDataMapper.h.
vtkgl::CellBO vtkOpenGLPolyDataMapper::TrisEdges [protected] |
Definition at line 175 of file vtkOpenGLPolyDataMapper.h.
vtkgl::CellBO vtkOpenGLPolyDataMapper::TriStripsEdges [protected] |
Definition at line 176 of file vtkOpenGLPolyDataMapper.h.
vtkgl::CellBO* vtkOpenGLPolyDataMapper::LastBoundBO [protected] |
Definition at line 177 of file vtkOpenGLPolyDataMapper.h.
bool vtkOpenGLPolyDataMapper::DrawingEdges [protected] |
Definition at line 178 of file vtkOpenGLPolyDataMapper.h.
int vtkOpenGLPolyDataMapper::LastLightComplexity [protected] |
Definition at line 181 of file vtkOpenGLPolyDataMapper.h.
Definition at line 182 of file vtkOpenGLPolyDataMapper.h.
bool vtkOpenGLPolyDataMapper::LastSelectionState [protected] |
Definition at line 184 of file vtkOpenGLPolyDataMapper.h.
Definition at line 185 of file vtkOpenGLPolyDataMapper.h.
int vtkOpenGLPolyDataMapper::LastDepthPeeling [protected] |
Definition at line 187 of file vtkOpenGLPolyDataMapper.h.
Definition at line 188 of file vtkOpenGLPolyDataMapper.h.
bool vtkOpenGLPolyDataMapper::UsingScalarColoring [protected] |
Definition at line 190 of file vtkOpenGLPolyDataMapper.h.
vtkTimeStamp vtkOpenGLPolyDataMapper::VBOBuildTime [protected] |
Definition at line 191 of file vtkOpenGLPolyDataMapper.h.
Definition at line 194 of file vtkOpenGLPolyDataMapper.h.
int vtkOpenGLPolyDataMapper::pickingAttributeIDOffset [protected] |
Definition at line 195 of file vtkOpenGLPolyDataMapper.h.
vtkMatrix4x4* vtkOpenGLPolyDataMapper::TempMatrix4 [protected] |
Definition at line 197 of file vtkOpenGLPolyDataMapper.h.
vtkMatrix3x3* vtkOpenGLPolyDataMapper::TempMatrix3 [protected] |
Definition at line 198 of file vtkOpenGLPolyDataMapper.h.
std::vector<std::string> vtkOpenGLPolyDataMapper::ShaderVariablesUsed [protected] |
Definition at line 206 of file vtkOpenGLPolyDataMapper.h.