Helper class for vtkCompositePolyDataMapper2 that is a subclass of vtkOpenGLPolyDataMapper.
More...
#include <vtkCompositeMapperHelper2.h>
Inherits vtkOpenGLPolyDataMapperImplementation.
|
virtual vtkObjectBase * | NewInstanceInternal () const |
|
void | UpdateCameraShiftScale (vtkRenderer *ren, vtkActor *actor) override |
| handle updating shift scale based on pose changes
|
|
| vtkCompositeMapperHelper2 () |
|
| ~vtkCompositeMapperHelper2 () override |
|
void | DrawIBO (vtkRenderer *ren, vtkActor *actor, int primType, vtkOpenGLHelper &CellBO, GLenum mode, int pointSize) |
|
virtual void | SetShaderValues (vtkShaderProgram *prog, vtkCompositeMapperHelperData *hdata, size_t primOffset) |
|
void | UpdateShaders (vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override |
| Make sure appropriate shaders are defined, compiled and bound.
|
|
void | ReplaceShaderColor (std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override |
| Perform string replacements on the shader templates, called from ReplaceShaderValues.
|
|
bool | GetNeedToRebuildBufferObjects (vtkRenderer *ren, vtkActor *act) override |
| Does the VBO/IBO need to be rebuilt.
|
|
void | BuildBufferObjects (vtkRenderer *ren, vtkActor *act) override |
| Build the VBO/IBO, called by UpdateBufferObjects.
|
|
virtual void | AppendOneBufferObject (vtkRenderer *ren, vtkActor *act, vtkCompositeMapperHelperData *hdata, vtkIdType &flat_index, std::vector< unsigned char > &colors, std::vector< float > &norms) |
|
void | BuildSelectionIBO (vtkPolyData *poly, std::vector< unsigned int >(&indices)[4], vtkIdType offset) override |
| Build the selection IBOs, called by UpdateBufferObjects.
|
|
int | CanUseTextureMapForColoring (vtkDataObject *) override |
| Returns if we can use texture maps for scalar coloring.
|
|
void | RenderPieceDraw (vtkRenderer *ren, vtkActor *act) override |
|
◆ Superclass
◆ vtkCompositeMapperHelper2()
vtkCompositeMapperHelper2::vtkCompositeMapperHelper2 |
( |
| ) |
|
|
inlineprotected |
◆ ~vtkCompositeMapperHelper2()
vtkCompositeMapperHelper2::~vtkCompositeMapperHelper2 |
( |
| ) |
|
|
overrideprotected |
◆ New()
◆ IsTypeOf()
static vtkTypeBool vtkCompositeMapperHelper2::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ IsA()
virtual vtkTypeBool vtkCompositeMapperHelper2::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ SafeDownCast()
◆ NewInstanceInternal()
virtual vtkObjectBase * vtkCompositeMapperHelper2::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
◆ NewInstance()
◆ PrintSelf()
void vtkCompositeMapperHelper2::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
override |
◆ SetParent()
◆ AddData()
◆ RenderPiece()
Implemented by sub classes.
Actual rendering is done here.
◆ ClearMark()
void vtkCompositeMapperHelper2::ClearMark |
( |
| ) |
|
keep track of what data is being used as the multiblock can change
◆ RemoveUnused()
void vtkCompositeMapperHelper2::RemoveUnused |
( |
| ) |
|
keep track of what data is being used as the multiblock can change
◆ GetMarked()
bool vtkCompositeMapperHelper2::GetMarked |
( |
| ) |
|
|
inline |
◆ SetMarked()
void vtkCompositeMapperHelper2::SetMarked |
( |
bool |
v | ) |
|
|
inline |
◆ GetRenderedList()
std::vector< vtkPolyData * > vtkCompositeMapperHelper2::GetRenderedList |
( |
| ) |
const |
Accessor to the ordered list of PolyData that we last drew.
◆ ProcessSelectorPixelBuffers()
void vtkCompositeMapperHelper2::ProcessSelectorPixelBuffers |
( |
vtkHardwareSelector * |
sel, |
|
|
std::vector< unsigned int > & |
pixeloffsets, |
|
|
vtkProp * |
prop |
|
) |
| |
|
override |
allows a mapper to update a selections color buffers Called from a prop which in turn is called from the selector
◆ ProcessCompositePixelBuffers()
◆ UpdateCameraShiftScale()
handle updating shift scale based on pose changes
◆ DrawIBO()
◆ SetShaderValues()
◆ UpdateShaders()
Make sure appropriate shaders are defined, compiled and bound.
This method orchistrates the process, much of the work is done in other methods
◆ ReplaceShaderColor()
Perform string replacements on the shader templates, called from ReplaceShaderValues.
◆ GetNeedToRebuildBufferObjects()
bool vtkCompositeMapperHelper2::GetNeedToRebuildBufferObjects |
( |
vtkRenderer * |
ren, |
|
|
vtkActor * |
act |
|
) |
| |
|
overrideprotected |
Does the VBO/IBO need to be rebuilt.
◆ BuildBufferObjects()
Build the VBO/IBO, called by UpdateBufferObjects.
◆ AppendOneBufferObject()
◆ BuildSelectionIBO()
void vtkCompositeMapperHelper2::BuildSelectionIBO |
( |
vtkPolyData * |
poly, |
|
|
std::vector< unsigned int >(&) |
indices[4], |
|
|
vtkIdType |
offset |
|
) |
| |
|
overrideprotected |
Build the selection IBOs, called by UpdateBufferObjects.
◆ CanUseTextureMapForColoring()
int vtkCompositeMapperHelper2::CanUseTextureMapForColoring |
( |
vtkDataObject * |
| ) |
|
|
overrideprotected |
Returns if we can use texture maps for scalar coloring.
Note this doesn't say we "will" use scalar coloring. It says, if we do use scalar coloring, we will use a texture. Always off for this mapper.
◆ RenderPieceDraw()
◆ Parent
◆ Data
◆ Marked
bool vtkCompositeMapperHelper2::Marked |
|
protected |
◆ VertexOffsets
std::vector<unsigned int> vtkCompositeMapperHelper2::VertexOffsets |
|
protected |
◆ IndexArray
std::vector<unsigned int> vtkCompositeMapperHelper2::IndexArray[PrimitiveEnd] |
|
protected |
◆ PrimIDUsed
bool vtkCompositeMapperHelper2::PrimIDUsed |
|
protected |
◆ OverideColorUsed
bool vtkCompositeMapperHelper2::OverideColorUsed |
|
protected |
◆ CurrentSelector
◆ PickPixels
std::vector<std::vector<unsigned int> > vtkCompositeMapperHelper2::PickPixels |
|
protected |
◆ ColorArrayMap
The documentation for this class was generated from the following file: