24 #ifndef vtkGenericCompositePolyDataMapper2_h
25 #define vtkGenericCompositePolyDataMapper2_h
36 class vtkCompositeMapperHelper;
63 void SetBlockVisibility(
unsigned int index,
bool visible);
64 bool GetBlockVisibility(
unsigned int index)
const;
65 void RemoveBlockVisibility(
unsigned int index);
66 void RemoveBlockVisibilites();
71 void SetBlockColor(
unsigned int index,
double color[3]);
74 double color[3] = {r, g, b};
75 this->SetBlockColor(index, color);
77 double* GetBlockColor(
unsigned int index);
78 void RemoveBlockColor(
unsigned int index);
79 void RemoveBlockColors();
84 void SetBlockOpacity(
unsigned int index,
double opacity);
85 double GetBlockOpacity(
unsigned int index);
86 void RemoveBlockOpacity(
unsigned int index);
87 void RemoveBlockOpacities();
117 std::map<const vtkDataSet *, vtkCompositeMapperHelper *>
Helpers;
125 void CopyMapperValuesToHelper(vtkCompositeMapperHelper *helper);
128 void FreeGenericStructures();
144 unsigned int &flat_index);
152 friend class vtkCompositeMapperHelper;
155 unsigned long int LastOpaqueCheckTime;
156 bool LastOpaqueCheckValue;
157 double ColorResult[3];
std::stack< vtkColor3d > DiffuseColor
a PolyDataMapper for the OpenGL library
std::map< const vtkDataSet *, vtkCompositeMapperHelper * > Helpers
represents an object (geometry & properties) in a rendered scene
virtual int FillInputPortInformation(int, vtkInformation *)
static vtkOpenGLPolyDataMapper * New()
virtual vtkExecutive * CreateDefaultExecutive()
mapper for composite dataset consisting of polygonal data.
#define VTKRENDERINGOPENGL2_EXPORT
record modification and/or execution time
rendering attributes for a multi-block dataset.
std::stack< vtkColor3d > AmbientColor
abstract specification for renderers
Superclass for all pipeline executives in VTK.
virtual void ComputeBounds()
void SetBlockColor(unsigned int index, double r, double g, double b)
virtual bool GetIsOpaque()
std::stack< bool > Visibility
window superclass for vtkRenderWindow
std::map< const vtkShaderProgram *, bool > ShadersInitialized
a simple class to control print indentation
std::stack< vtkColor3d > SpecularColor
RenderBlockState BlockState
std::stack< double > Opacity
void ReleaseGraphicsResources(vtkWindow *)
general representation of visualization data
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkCompositeDataDisplayAttributes > CompositeAttributes
The ShaderProgram uses one or more Shader objects.