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
91 double color[3] = { r, g, b };
115 vtkSetMacro(ColorMissingArraysWithNanColor,
bool);
116 vtkGetMacro(ColorMissingArraysWithNanColor,
bool);
117 vtkBooleanMacro(ColorMissingArraysWithNanColor,
bool);
149 int idx,
int port,
int connection,
int fieldAssociation,
const char*
name)
override;
151 int idx,
int port,
int connection,
int fieldAssociation,
int fieldAttributeType)
override;
209 std::map<const std::string, vtkCompositeMapperHelper2*>
Helpers;
259 double ColorResult[3];
265 VTK_ABI_NAMESPACE_END
represents an object (geometry & properties) in a rendered scene
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
Rendering attributes for a multi-block dataset.
Helper class for vtkCompositePolyDataMapper2 that is a subclass of vtkOpenGLPolyDataMapper.
std::stack< bool > Visibility
std::stack< vtkColor3d > SelectionColor
std::stack< vtkColor3d > SpecularColor
std::stack< vtkColor3d > DiffuseColor
std::stack< float > SelectionOpacity
std::stack< double > Opacity
std::stack< bool > Pickability
std::stack< vtkColor3d > AmbientColor
mapper for composite dataset consisting of polygonal data.
void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) override
Call SetInputArrayToProcess on helpers.
void BuildRenderValues(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
void RemoveBlockVisibility(unsigned int index)
Set/get the visibility for a block given its flat index.
bool HasTranslucentGeometry
vtkExecutive * CreateDefaultExecutive() override
We need to override this method because the standard streaming demand driven pipeline is not what we ...
vtkStateStorage TranslucentState
int FillInputPortInformation(int port, vtkInformation *info) override
Need to define the type of data handled by this mapper.
~vtkCompositePolyDataMapper2() override
std::vector< vtkPolyData * > GetRenderedList()
Accessor to the ordered list of PolyData that we end last drew.
virtual vtkCompositeMapperHelper2 * CreateHelper()
void 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 ...
bool HasOpaqueGeometry() override
Some introspection on the type of data the mapper will render used by props to determine if they shou...
double GetBlockOpacity(unsigned int index)
Set/get the opacity for a block given its flat index.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
void SetBlockVisibility(unsigned int index, bool visible)
Set/get the visibility for a block given its flat index.
void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name) override
Call SetInputArrayToProcess on helpers.
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
vtkCompositePolyDataMapper2()
bool RecursiveHasTranslucentGeometry(vtkDataObject *dobj, unsigned int &flat_index)
void SetVBOShiftScaleMethod(int m) override
A convenience method for enabling/disabling the VBO's shift+scale transform.
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
virtual void InitializeHelpersBeforeRendering(vtkRenderer *vtkNotUsed(ren), vtkActor *vtkNotUsed(act))
This method is called before RenderPiece is called on helpers.
void PrintSelf(ostream &os, vtkIndent indent) override
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
void SetBlockOpacity(unsigned int index, double opacity)
Set/get the opacity for a block given its flat index.
void SetBlockColor(unsigned int index, const double color[3])
Set/get the color for a block given its flat index.
void SetPauseShiftScale(bool pauseShiftScale) override
Pause updates of shift-scale parameters based on camera position.
virtual void CopyMapperValuesToHelper(vtkCompositeMapperHelper2 *helper)
bool GetBlockVisibility(unsigned int index)
Set/get the visibility for a block given its flat index.
void RemoveBlockColor(unsigned int index)
Set/get the color for a block given its flat index.
static vtkCompositePolyDataMapper2 * New()
RenderBlockState BlockState
bool ColorMissingArraysWithNanColor
If the current 'color by' array is missing on some datasets, color these dataset by the LookupTable's...
void RemoveBlockVisibilities()
Set/get the visibility for a block given its flat index.
vtkCompositeDataDisplayAttributes * GetCompositeDataDisplayAttributes()
Set/get the composite data set attributes.
void SetInputArrayToProcess(int idx, vtkInformation *info) override
Call SetInputArrayToProcess on helpers.
void RemoveBlockColors()
Set/get the color for a block given its flat index.
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Composite data set attributes.
void RenderBlock(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
bool HasTranslucentPolygonalGeometry() override
Some introspection on the type of data the mapper will render used by props to determine if they shou...
vtkStateStorage RenderValuesState
std::vector< vtkPolyData * > RenderedList
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
void SetBlockColor(unsigned int index, double r, double g, double b)
Set/get the color for a block given its flat index.
void RemoveBlockOpacity(unsigned int index)
Set/get the opacity for a block given its flat index.
void RemoveBlockOpacities()
Set/get the opacity for a block given its flat index.
double * GetBlockColor(unsigned int index)
Set/get the color for a block given its flat index.
void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes)
Set/get the composite data set attributes.
void ComputeBounds() override
Need to loop over the hierarchy to compute bounds.
vtkMTimeType GetMTime() override
Overridden to include vtkCompositeDataDisplayAttributes' mtime.
a class that renders hierarchical polygonal data
general representation of visualization data
Superclass for all pipeline executives in VTK.
a simple class to control print indentation
abstract superclass for all actors, volumes and annotations
abstract specification for renderers
Class to make storing and comparing state quick and easy.
record modification and/or execution time
window superclass for vtkRenderWindow
#define vtkOpenGLPolyDataMapperImplementation
#define VTK_DEPRECATED_IN_9_3_0(reason)
vtkTypeUInt32 vtkMTimeType