28 #ifndef vtkCompositePolyDataMapper2_h
29 #define vtkCompositePolyDataMapper2_h
31 #include "vtkRenderingOpenGL2Module.h"
40 class vtkCompositeMapperHelper2;
41 class vtkCompositeMapperHelperData;
87 double color[3] = {r, g, b};
145 std::map<const std::string, vtkCompositeMapperHelper2 *>
Helpers;
165 unsigned int &flat_index);
172 unsigned int &flat_index);
179 friend class vtkCompositeMapperHelper2;
183 bool LastOpaqueCheckValue;
184 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.
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.
vtkExecutive * CreateDefaultExecutive()
We need to override this method because the standard streaming demand driven pipeline is not what we ...
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
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void RemoveBlockColor(unsigned int index)
static vtkCompositePolyDataMapper2 * New()
RenderBlockState BlockState
void CopyMapperValuesToHelper(vtkCompositeMapperHelper2 *helper)
vtkCompositeDataDisplayAttributes * GetCompositeDataDisplayAttributes()
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)
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()
double * GetBlockColor(unsigned int index)
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