25#ifndef vtkCompositePolyDataMapper2_h
26#define vtkCompositePolyDataMapper2_h
28#include "vtkRenderingOpenGL2Module.h"
37class vtkCompositeMapperHelper2;
38class vtkCompositeMapperHelperData;
84 double color[3] = {r, g, b};
142 std::map<const std::string, vtkCompositeMapperHelper2 *>
Helpers;
162 unsigned int &flat_index);
169 unsigned int &flat_index);
176 friend class vtkCompositeMapperHelper2;
180 bool LastOpaqueCheckValue;
181 double ColorResult[3];
represents an object (geometry & properties) in a rendered scene
rendering attributes for a multi-block dataset.
std::stack< bool > Visibility
std::stack< vtkColor3d > SpecularColor
std::stack< vtkColor3d > DiffuseColor
std::stack< double > Opacity
std::stack< vtkColor3d > AmbientColor
mapper for composite dataset consisting of polygonal data.
void BuildRenderValues(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
void RemoveBlockVisibility(unsigned int index)
void SetBlockColor(unsigned int index, double color[3])
Set/get the color for a block given its flat index.
vtkTimeStamp RenderValuesBuildTime
virtual void ComputeBounds()
Need to loop over the hierarchy to compute bounds.
static vtkCompositePolyDataMapper2 * New()
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
double GetBlockOpacity(unsigned int index)
void SetBlockVisibility(unsigned int index, bool visible)
Set/get the visibility for a block given its flat index.
double * GetBlockColor(unsigned int index)
vtkCompositePolyDataMapper2()
bool GetBlockVisibility(unsigned int index) const
void RemoveBlockVisibilites()
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
void SetBlockOpacity(unsigned int index, double opacity)
Set/get the opacity for a block given its flat index.
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
vtkCompositeDataDisplayAttributes * GetCompositeDataDisplayAttributes()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void RemoveBlockColor(unsigned int index)
RenderBlockState BlockState
void CopyMapperValuesToHelper(vtkCompositeMapperHelper2 *helper)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Need to define the type of data handled by this mapper.
void RenderBlock(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
vtkExecutive * CreateDefaultExecutive()
We need to override this method because the standard streaming demand driven pipeline is not what we ...
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
void SetBlockColor(unsigned int index, double r, double g, double b)
~vtkCompositePolyDataMapper2()
void RemoveBlockOpacity(unsigned int index)
void RemoveBlockOpacities()
void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes)
Set/get the composite data set attributes.
virtual void Render(vtkRenderer *ren, vtkActor *act)
This calls RenderPiece (in a for loop if streaming is necessary).
general representation of visualization data
Superclass for all pipeline executives in VTK.
a simple class to control print indentation
a PolyDataMapper for the OpenGL library
abstract specification for renderers
record modification and/or execution time
window superclass for vtkRenderWindow
vtkTypeUInt64 vtkMTimeType