Go to the documentation of this file.
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];
virtual void Render(vtkRenderer *ren, vtkActor *act)
This calls RenderPiece (in a for loop if streaming is necessary).
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.
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
vtkTimeStamp RenderValuesBuildTime
std::stack< double > Opacity
std::stack< bool > Visibility
record modification and/or execution time
~vtkCompositePolyDataMapper2()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
mapper for composite dataset consisting of polygonal data.
void RemoveBlockColor(unsigned int index)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Need to define the type of data handled by this mapper.
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
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.
vtkTypeUInt64 vtkMTimeType
vtkCompositeDataDisplayAttributes * GetCompositeDataDisplayAttributes()
Superclass for all pipeline executives in VTK.
double GetBlockOpacity(unsigned int index)
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
void SetBlockColor(unsigned int index, double r, double g, double b)
std::map< const std::string, vtkCompositeMapperHelper2 * > Helpers
virtual void ComputeBounds()
Need to loop over the hierarchy to compute bounds.
void RemoveBlockOpacity(unsigned int index)
std::map< vtkPolyData *, vtkCompositeMapperHelperData * > HelperDataMap
std::stack< vtkColor3d > SpecularColor
static vtkCompositePolyDataMapper2 * New()
std::stack< vtkColor3d > DiffuseColor
abstract specification for renderers
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)
void CopyMapperValuesToHelper(vtkCompositeMapperHelper2 *helper)
vtkExecutive * CreateDefaultExecutive()
We need to override this method because the standard streaming demand driven pipeline is not what we ...
general representation of visualization data
void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes)
Set/get the composite data set attributes.
a PolyDataMapper for the OpenGL library
void BuildRenderValues(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
bool GetBlockVisibility(unsigned int index) const
vtkCompositePolyDataMapper2()
RenderBlockState BlockState