29 #ifndef vtkCompositeSurfaceLICMapper_h
30 #define vtkCompositeSurfaceLICMapper_h
32 #include "vtkRenderingLICOpenGL2Module.h"
41 class vtkCompositeLICHelper;
100 double color[3] = {r, g, b};
169 unsigned int &flat_index);
171 std::map<const vtkDataSet *, vtkCompositeLICHelper *>
Helpers;
173 friend class vtkCompositeLICHelper;
182 bool LastOpaqueCheckValue;
183 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 > AmbientColor
std::stack< vtkColor3d > DiffuseColor
std::stack< double > Opacity
std::stack< vtkColor3d > SpecularColor
mapper for composite dataset
vtkTimeStamp BoundsMTime
Time stamp for computation of bounds.
double GetBlockOpacity(unsigned int index)
void SetBlockColor(unsigned int index, double color[3])
Set/get the color for a block given its flat index.
void ReportReferences(vtkGarbageCollector *collector) override
Take part in garbage collection.
void RemoveBlockVisibility(unsigned int index)
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
vtkCompositeDataDisplayAttributes * GetCompositeDataDisplayAttributes()
RenderBlockState BlockState
~vtkCompositeSurfaceLICMapper()
virtual void ReleaseGraphicsResources(vtkWindow *win)
Release any graphics resources that are being consumed by this mapper.
bool GetBlockVisibility(unsigned int index) const
std::map< const vtkDataSet *, vtkCompositeLICHelper * > Helpers
virtual void Render(vtkRenderer *ren, vtkActor *act)
This calls RenderPiece (in a for loop if streaming is necessary).
void RemoveBlockVisibilites()
void RemoveBlockOpacities()
double * GetBlockColor(unsigned int index)
vtkExecutive * CreateDefaultExecutive()
We need to override this method because the standard streaming demand driven pipeline is not what we ...
virtual int FillInputPortInformation(int port, vtkInformation *info)
Need to define the type of data handled by this mapper.
void SetCompositeDataDisplayAttributes(vtkCompositeDataDisplayAttributes *attributes)
Set/get the composite data set attributes.
static vtkCompositeSurfaceLICMapper * New()
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
Composite data set attributes.
virtual void ComputeBounds()
Need to loop over the hierarchy to compute bounds.
void SetBlockVisibility(unsigned int index, bool visible)
Set/get the visibility for a block given its flat index.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void RenderBlock(vtkRenderer *renderer, vtkActor *actor, vtkDataObject *dobj, unsigned int &flat_index)
void SetBlockColor(unsigned int index, double r, double g, double b)
vtkCompositeSurfaceLICMapper()
void RemoveBlockOpacity(unsigned int index)
void CopyMapperValuesToHelper(vtkCompositeLICHelper *helper)
void SetBlockOpacity(unsigned int index, double opacity)
Set/get the opacity for a block given its flat index.
void RemoveBlockColor(unsigned int index)
general representation of visualization data
Superclass for all pipeline executives in VTK.
Detect and break reference loops.
a simple class to control print indentation
abstract specification for renderers
mapper that performs LIC on the surface of arbitrary geometry.
record modification and/or execution time
window superclass for vtkRenderWindow
vtkTypeUInt64 vtkMTimeType