25 #ifndef vtkCompositePolyDataMapper_h
26 #define vtkCompositePolyDataMapper_h
30 #include "vtkRenderingCoreModule.h"
38 VTK_ABI_NAMESPACE_BEGIN
102 void SetBlockVisibility(
unsigned int index,
bool visible);
103 bool GetBlockVisibility(
unsigned int index);
104 void RemoveBlockVisibility(
unsigned int index);
105 void RemoveBlockVisibilities();
112 void SetBlockColor(
unsigned int index,
const double color[3]);
115 double color[3] = { r, g, b };
116 this->SetBlockColor(index, color);
118 void GetBlockColor(
unsigned int index,
double color[3]);
119 void RemoveBlockColor(
unsigned int index);
120 void RemoveBlockColors();
127 void SetBlockOpacity(
unsigned int index,
double opacity);
128 double GetBlockOpacity(
unsigned int index);
129 void RemoveBlockOpacity(
unsigned int index);
130 void RemoveBlockOpacities();
137 void SetBlockScalarMode(
unsigned int index,
int value);
138 int GetBlockScalarMode(
unsigned int index);
139 void RemoveBlockScalarMode(
unsigned int index);
140 void RemoveBlockScalarModes();
147 void SetBlockArrayAccessMode(
unsigned int index,
int value);
148 int GetBlockArrayAccessMode(
unsigned int index);
149 void RemoveBlockArrayAccessMode(
unsigned int index);
150 void RemoveBlockArrayAccessModes();
157 void SetBlockArrayComponent(
unsigned int index,
int value);
158 int GetBlockArrayComponent(
unsigned int index);
159 void RemoveBlockArrayComponent(
unsigned int index);
160 void RemoveBlockArrayComponents();
167 void SetBlockArrayId(
unsigned int index,
int value);
168 int GetBlockArrayId(
unsigned int index);
169 void RemoveBlockArrayId(
unsigned int index);
170 void RemoveBlockArrayIds();
179 void RemoveBlockArrayName(
unsigned int index);
180 void RemoveBlockArrayNames();
189 void RemoveBlockFieldDataTupleId(
unsigned int index);
190 void RemoveBlockFieldDataTupleIds();
203 void RemoveBlockTexture(
unsigned int index);
204 void RemoveBlockTextures();
214 vtkSetMacro(ColorMissingArraysWithNanColor,
bool);
215 vtkGetMacro(ColorMissingArraysWithNanColor,
bool);
216 vtkBooleanMacro(ColorMissingArraysWithNanColor,
bool);
225 int idx,
int port,
int connection,
int fieldAssociation,
const char*
name)
override;
227 int idx,
int port,
int connection,
int fieldAssociation,
int fieldAttributeType)
override;
234 std::vector<vtkPolyData*> GetRenderedList();
264 MapperHashType InsertPolyData(
vtkPolyData* polydata,
const unsigned int& flatIndex);
321 bool RecursiveHasTranslucentGeometry(
vtkDataObject* dobj,
unsigned int& flat_index);
323 void BuildRenderValues(
342 bool ColorMissingArraysWithNanColor =
false;
350 bool HasTranslucentGeometry =
false;
360 std::unique_ptr<vtkInternals> Internals;
363 VTK_ABI_NAMESPACE_END
vtkStateStorage RenderValuesState
abstract superclass for all actors, volumes and annotations
void SetBlockColor(unsigned int index, double r, double g, double b)
Set/get the color for a block given its flat index.
void GetBounds(T a, double bds[6])
void ShallowCopy(vtkAbstractMapper *m) override
Make a shallow copy of this mapper.
represents an object (geometry & properties) in a rendered scene
virtual MapperHashType GenerateHash(vtkPolyData *)
This hash integer is computed by concrete graphics implementation of this class.
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
vtkTypeUInt32 vtkMTimeType
record modification and/or execution time
vtkStateStorage TempState
Rendering attributes for a multi-block dataset.
virtual bool HasOpaqueGeometry()
Some introspection on the type of data the mapper will render used by props to determine if they shou...
vtkNew< vtkPolyDataMapper > PrototypeMapper
A prototype of the object factory override mapper.
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
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
virtual void ProcessSelectorPixelBuffers(vtkHardwareSelector *, std::vector< unsigned int > &, vtkProp *)
allows a mapper to update a selections color buffers Called from a prop which in turn is called from ...
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for all pipeline executives in VTK.
virtual void PreRender(const std::vector< vtkSmartPointer< vtkCompositePolyDataMapperDelegator >> &, vtkRenderer *, vtkActor *)
Invoked just before all delegators render their datasets.
void SetInputArrayToProcess(const char *name, int fieldAssociation, int component=vtkArrayComponents::AllComponents)
Set the input data arrays that this algorithm will process.
virtual void SetPauseShiftScale(bool pauseShiftScale)
Pause per-render updates to VBO shift+scale parameters.
window superclass for vtkRenderWindow
Delegates rendering of multiple polydata that share similar signatures.
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
abstract superclass for composite (multi-block or AMR) datasets
std::uintptr_t MapperHashType
vtkTimeStamp DelegatorMTime
a simple class to control print indentation
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Composite data set attributes.
virtual void PostRender(const std::vector< vtkSmartPointer< vtkCompositePolyDataMapperDelegator >> &, vtkRenderer *, vtkActor *)
Invoked just after all delegators render their datasets.
handles properties associated with a texture map
void Render(vtkRenderer *ren, vtkActor *act) override
This calls RenderPiece (in a for loop if streaming is necessary).
vtkMTimeType GetMTime() override
Overload standard modified time function.
#define VTK_SIZEHINT(...)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ComputeBounds()
Called in GetBounds().
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
abstract class specifies interface to map data
map vtkPolyData to graphics primitives
vtkStateStorage TranslucentState
static vtkPolyDataMapper * New()
double * GetBounds() override
Return bounding box (array of six doubles) of data expressed as (xmin,xmax, ymin,ymax, zmin,zmax).
superclass for composite data iterators
general representation of visualization data
virtual void SetVBOShiftScaleMethod(int)
A convenience method for enabling/disabling the VBO's shift+scale transform.
Class to make storing and comparing state quick and easy.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
a class that renders hierarchical polygonal data