Go to the documentation of this file.
28 #ifndef vtkCompositePolyDataMapper2_h
29 #define vtkCompositePolyDataMapper2_h
31 #include "vtkRenderingOpenGL2Module.h"
90 double color[3] = {r, g, b};
114 vtkSetMacro(ColorMissingArraysWithNanColor,
bool)
115 vtkGetMacro(ColorMissingArraysWithNanColor,
bool)
116 vtkBooleanMacro(ColorMissingArraysWithNanColor,
bool)
136 void SetInputArrayToProcess(
137 int idx,
int port,
int connection,
int fieldAssociation, const
char*
name) override;
138 void SetInputArrayToProcess(
139 int idx,
int port,
int connection,
int fieldAssociation,
int fieldAttributeType) override;
148 return this->RenderedList;
156 std::vector<unsigned int> &pixeloffsets,
194 std::map<const std::string, vtkCompositeMapperHelper2 *>
Helpers;
217 unsigned int &flat_index);
224 unsigned int &flat_index);
243 bool LastOpaqueCheckValue;
244 double ColorResult[3];
void RemoveBlockOpacities()
double * GetBlockColor(unsigned int index)
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...
Superclass for all sources, filters, and sinks in VTK.
vtkTimeStamp RenderValuesBuildTime
std::stack< double > Opacity
std::stack< bool > Visibility
record modification and/or execution time
~vtkCompositePolyDataMapper2() override
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Composite data set attributes.
bool GetIsOpaque() override
Returns if the mapper does not expect to have translucent geometry.
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
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 RemoveBlockColor(unsigned int index)
window superclass for vtkRenderWindow
Rendering attributes for a multi-block dataset.
std::stack< vtkColor3d > AmbientColor
void SetBlockOpacity(unsigned int index, double opacity)
Set/get the opacity for a block given its flat index.
vtkCompositeDataDisplayAttributes * GetCompositeDataDisplayAttributes()
std::stack< bool > Pickability
Superclass for all pipeline executives in VTK.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual vtkCompositeMapperHelper2 * CreateHelper()
double GetBlockOpacity(unsigned int index)
represents an object (geometry & properties) in a rendered scene
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)
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
void RemoveBlockOpacity(unsigned int index)
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
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)
std::stack< vtkColor3d > DiffuseColor
abstract specification for renderers
void RemoveBlockVisibilities()
concrete dataset represents vertices, lines, polygons, and triangle strips
void ComputeBounds() override
Need to loop over the hierarchy to compute bounds.
void RenderBlock(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
void RemoveBlockVisibilites()
void SetBlockColor(unsigned int index, double color[3])
Set/get the color for a block given its flat index.
void RemoveBlockVisibility(unsigned int index)
general representation of visualization data
void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes)
Set/get the composite data set attributes.
PolyDataMapper using OpenGL to render.
void BuildRenderValues(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
vtkCompositePolyDataMapper2()
RenderBlockState BlockState
vtkTypeUInt32 vtkMTimeType