28 #ifndef vtkCompositePolyDataMapper2_h 29 #define vtkCompositePolyDataMapper2_h 31 #include "vtkRenderingOpenGL2Module.h" 40 class vtkCompositeMapperHelper2;
41 class vtkCompositeMapperHelperData;
74 void SetBlockVisibility(
unsigned int index,
bool visible);
75 bool GetBlockVisibility(
unsigned int index)
const;
76 void RemoveBlockVisibility(
unsigned int index);
77 void RemoveBlockVisibilites();
84 void SetBlockColor(
unsigned int index,
double color[3]);
87 double color[3] = {r, g, b};
88 this->SetBlockColor(index, color);
90 double* GetBlockColor(
unsigned int index);
91 void RemoveBlockColor(
unsigned int index);
92 void RemoveBlockColors();
99 void SetBlockOpacity(
unsigned int index,
double opacity);
100 double GetBlockOpacity(
unsigned int index);
101 void RemoveBlockOpacity(
unsigned int index);
102 void RemoveBlockOpacities();
112 vtkGetMacro(ColorMissingArraysWithNanColor,
bool)
156 std::map<const std::string, vtkCompositeMapperHelper2 *>
Helpers;
161 void CopyMapperValuesToHelper(vtkCompositeMapperHelper2 *helper);
176 unsigned int &flat_index);
183 unsigned int &flat_index);
190 friend class vtkCompositeMapperHelper2;
200 bool LastOpaqueCheckValue;
201 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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
std::stack< vtkColor3d > SpecularColor
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
bool ColorMissingArraysWithNanColor
If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's...
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
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.