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