31 #ifndef vtkCompositePolyDataMapper2_h
32 #define vtkCompositePolyDataMapper2_h
35 #include "vtkRenderingOpenGL2Module.h"
76 void SetBlockVisibility(
unsigned int index,
bool visible);
77 bool GetBlockVisibility(
unsigned int index);
78 void RemoveBlockVisibility(
unsigned int index);
79 void RemoveBlockVisibilities();
86 void SetBlockColor(
unsigned int index,
const double color[3]);
89 double color[3] = { r, g, b };
90 this->SetBlockColor(index, color);
92 double* GetBlockColor(
unsigned int index);
93 void RemoveBlockColor(
unsigned int index);
94 void RemoveBlockColors();
101 void SetBlockOpacity(
unsigned int index,
double opacity);
102 double GetBlockOpacity(
unsigned int index);
103 void RemoveBlockOpacity(
unsigned int index);
104 void RemoveBlockOpacities();
113 vtkSetMacro(ColorMissingArraysWithNanColor,
bool);
114 vtkGetMacro(ColorMissingArraysWithNanColor,
bool);
115 vtkBooleanMacro(ColorMissingArraysWithNanColor,
bool);
147 int idx,
int port,
int connection,
int fieldAssociation,
const char*
name)
override;
149 int idx,
int port,
int connection,
int fieldAssociation,
int fieldAttributeType)
override;
207 std::map<const std::string, vtkCompositeMapperHelper2*>
Helpers;
229 bool RecursiveHasTranslucentGeometry(
vtkDataObject* dobj,
unsigned int& flat_index);
233 void BuildRenderValues(
257 double ColorResult[3];
abstract superclass for all actors, volumes and annotations
bool HasTranslucentGeometry
PolyDataMapper using OpenGL to render.
void ComputeBounds() override
Called in GetBounds().
represents an object (geometry & properties) in a rendered scene
static vtkOpenGLPolyDataMapper * New()
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
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
virtual bool HasOpaqueGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
std::stack< bool > Pickability
vtkStateStorage TranslucentState
virtual bool HasTranslucentPolygonalGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
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
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
a simple class to control print indentation
virtual void SetVBOShiftScaleMethod(int m)
A convenience method for enabling/disabling the VBO's shift+scale transform.
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 ...
virtual void SetPauseShiftScale(bool pauseShiftScale)
Pause per-render updates to VBO shift+scale parameters.
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
Helper class for vtkCompositePolyDataMapper2 that is a subclass of vtkOpenGLPolyDataMapper.
std::stack< vtkColor3d > DiffuseColor
vtkMTimeType GetMTime() override
Overload standard modified time function.
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Composite data set attributes.
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
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.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
general representation of visualization data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Class to make storing and comparing state quick and easy.