19 #ifndef vtkCompositePolyDataMapper2_h
20 #define vtkCompositePolyDataMapper2_h
23 #include "vtkRenderingOpenGL2Module.h"
28 #ifndef GL_ES_VERSION_3_0
30 #define vtkOpenGLPolyDataMapperImplementation vtkOpenGLPolyDataMapper
33 #define vtkOpenGLPolyDataMapperImplementation vtkOpenGLES30PolyDataMapper
42 VTK_ABI_NAMESPACE_BEGIN
54 void PrintSelf(ostream& os,
vtkIndent indent)
override;
62 bool HasOpaqueGeometry()
override;
63 bool HasTranslucentPolygonalGeometry()
override;
78 void SetBlockVisibility(
unsigned int index,
bool visible);
79 bool GetBlockVisibility(
unsigned int index);
80 void RemoveBlockVisibility(
unsigned int index);
81 void RemoveBlockVisibilities();
88 void SetBlockColor(
unsigned int index,
const double color[3]);
91 double color[3] = { r, g, b };
92 this->SetBlockColor(index, color);
94 double* GetBlockColor(
unsigned int index);
95 void RemoveBlockColor(
unsigned int index);
96 void RemoveBlockColors();
103 void SetBlockOpacity(
unsigned int index,
double opacity);
104 double GetBlockOpacity(
unsigned int index);
105 void RemoveBlockOpacity(
unsigned int index);
106 void RemoveBlockOpacities();
115 vtkSetMacro(ColorMissingArraysWithNanColor,
bool);
116 vtkGetMacro(ColorMissingArraysWithNanColor,
bool);
117 vtkBooleanMacro(ColorMissingArraysWithNanColor,
bool);
125 void ReleaseGraphicsResources(
vtkWindow*)
override;
135 void SetVBOShiftScaleMethod(
int m)
override;
141 void SetPauseShiftScale(
bool pauseShiftScale)
override;
148 void SetInputArrayToProcess(
149 int idx,
int port,
int connection,
int fieldAssociation,
const char*
name)
override;
150 void SetInputArrayToProcess(
151 int idx,
int port,
int connection,
int fieldAssociation,
int fieldAttributeType)
override;
164 void ProcessSelectorPixelBuffers(
191 void ComputeBounds()
override;
209 std::map<const std::string, vtkCompositeMapperHelper2*>
Helpers;
231 bool RecursiveHasTranslucentGeometry(
vtkDataObject* dobj,
unsigned int& flat_index);
235 void BuildRenderValues(
259 double ColorResult[3];
265 VTK_ABI_NAMESPACE_END
abstract superclass for all actors, volumes and annotations
bool HasTranslucentGeometry
represents an object (geometry & properties) in a rendered scene
vtkTypeUInt32 vtkMTimeType
mapper for composite dataset consisting of polygonal data.
std::vector< vtkPolyData * > GetRenderedList()
Accessor to the ordered list of PolyData that we end last drew.
record modification and/or execution time
Rendering attributes for a multi-block dataset.
std::stack< bool > Visibility
std::stack< bool > Pickability
vtkStateStorage TranslucentState
abstract specification for renderers
Superclass for all pipeline executives in VTK.
std::stack< vtkColor3d > SelectionColor
std::stack< double > Opacity
std::stack< vtkColor3d > AmbientColor
void SetBlockColor(unsigned int index, double r, double g, double b)
Set/get the color for a block given its flat index.
virtual void InitializeHelpersBeforeRendering(vtkRenderer *vtkNotUsed(ren), vtkActor *vtkNotUsed(act))
This method is called before RenderPiece is called on helpers.
std::stack< float > SelectionOpacity
RenderBlockState BlockState
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
window superclass for vtkRenderWindow
#define VTK_DEPRECATED_IN_9_3_0(reason)
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
#define vtkOpenGLPolyDataMapperImplementation
a simple class to control print indentation
Helper class for vtkCompositePolyDataMapper2 that is a subclass of vtkOpenGLPolyDataMapper.
std::stack< vtkColor3d > DiffuseColor
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Composite data set attributes.
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
std::stack< vtkColor3d > SpecularColor
std::vector< vtkPolyData * > RenderedList
vtkStateStorage RenderValuesState
bool ColorMissingArraysWithNanColor
If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's...
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
general representation of visualization data
Class to make storing and comparing state quick and easy.
a class that renders hierarchical polygonal data