Go to the documentation of this file.
25 #ifndef vtkCompositePolyDataMapper2_h
26 #define vtkCompositePolyDataMapper2_h
28 #include "vtkRenderingOpenGL2Module.h"
37 class vtkCompositeMapperHelper2;
38 class vtkCompositeMapperHelperData;
71 void SetBlockVisibility(
unsigned int index,
bool visible);
72 bool GetBlockVisibility(
unsigned int index)
const;
73 void RemoveBlockVisibility(
unsigned int index);
74 void RemoveBlockVisibilites();
81 void SetBlockColor(
unsigned int index,
double color[3]);
84 double color[3] = {r, g, b};
87 double* GetBlockColor(
unsigned int index);
88 void RemoveBlockColor(
unsigned int index);
89 void RemoveBlockColors();
96 void SetBlockOpacity(
unsigned int index,
double opacity);
97 double GetBlockOpacity(
unsigned int index);
98 void RemoveBlockOpacity(
unsigned int index);
99 void RemoveBlockOpacities();
142 std::map<const std::string, vtkCompositeMapperHelper2 *>
Helpers;
147 void CopyMapperValuesToHelper(vtkCompositeMapperHelper2 *helper);
162 unsigned int &flat_index);
169 unsigned int &flat_index);
176 friend class vtkCompositeMapperHelper2;
180 bool LastOpaqueCheckValue;
181 double ColorResult[3];
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
vtkTimeStamp RenderValuesBuildTime
std::stack< double > Opacity
std::stack< bool > Visibility
record modification and/or execution time
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
static vtkOpenGLPolyDataMapper * New()
mapper for composite dataset consisting of polygonal data.
window superclass for vtkRenderWindow
rendering attributes for a multi-block dataset.
std::stack< vtkColor3d > AmbientColor
vtkTypeUInt64 vtkMTimeType
Superclass for all pipeline executives in VTK.
virtual void ComputeBounds()
Called in GetBounds().
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
void SetBlockColor(unsigned int index, double r, double g, double b)
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
std::stack< vtkColor3d > SpecularColor
std::stack< vtkColor3d > DiffuseColor
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for renderers
general representation of visualization data
virtual void Render(vtkRenderer *ren, vtkActor *act)
This calls RenderPiece (in a for loop if streaming is necessary).
a PolyDataMapper for the OpenGL library
RenderBlockState BlockState
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.