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};
85 this->SetBlockColor(index, color);
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];
a PolyDataMapper for the OpenGL library
represents an object (geometry & properties) in a rendered scene
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
static vtkOpenGLPolyDataMapper * New()
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
mapper for composite dataset consisting of polygonal data.
record modification and/or execution time
rendering attributes for a multi-block dataset.
std::stack< bool > Visibility
abstract specification for renderers
Superclass for all pipeline executives in VTK.
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
std::stack< double > Opacity
std::stack< vtkColor3d > AmbientColor
virtual void ComputeBounds()
Called in GetBounds().
vtkTypeUInt64 vtkMTimeType
void SetBlockColor(unsigned int index, double r, double g, double b)
Set/get the color for a block given its flat index.
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
RenderBlockState BlockState
window superclass for vtkRenderWindow
vtkTimeStamp RenderValuesBuildTime
a simple class to control print indentation
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
std::stack< vtkColor3d > DiffuseColor
std::stack< vtkColor3d > SpecularColor
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
virtual void Render(vtkRenderer *ren, vtkActor *act)
This calls RenderPiece (in a for loop if streaming is necessary).
general representation of visualization data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.