24 #ifndef vtkCompositeDataDisplayAttributes_h
25 #define vtkCompositeDataDisplayAttributes_h
27 #include "vtkRenderingCoreModule.h"
41 void PrintSelf(ostream& os,
vtkIndent indent) VTK_OVERRIDE;
46 bool HasBlockVisibilities() const;
52 void SetBlockVisibility(
unsigned int flat_index,
bool visible);
53 bool GetBlockVisibility(
unsigned int flat_index) const;
60 bool HasBlockVisibility(
unsigned int flat_index) const;
65 void RemoveBlockVisibility(
unsigned int flat_index);
71 void RemoveBlockVisibilites();
77 void SetBlockColor(
unsigned int flat_index, const
double color[3]);
78 void GetBlockColor(
unsigned int flat_index,
double color[3]) const;
79 vtkColor3d GetBlockColor(
unsigned int flat_index) const;
85 bool HasBlockColors() const;
90 bool HasBlockColor(
unsigned int flat_index) const;
95 void RemoveBlockColor(
unsigned int flat_index);
100 void RemoveBlockColors();
106 void SetBlockOpacity(
unsigned int flat_index,
double opacity);
107 double GetBlockOpacity(
unsigned int flat_index) const;
113 bool HasBlockOpacities() const;
118 bool HasBlockOpacity(
unsigned int flat_index) const;
123 void RemoveBlockOpacity(
unsigned int flat_index);
128 void RemoveBlockOpacities();
134 static
void ComputeVisibleBounds(
141 ~vtkCompositeDataDisplayAttributes() VTK_OVERRIDE;
144 vtkCompositeDataDisplayAttributes(const vtkCompositeDataDisplayAttributes&) VTK_DELETE_FUNCTION;
145 void operator=(const vtkCompositeDataDisplayAttributes&) VTK_DELETE_FUNCTION;
156 static
void ComputeVisibleBoundsInternal(
157 vtkCompositeDataDisplayAttributes* cda,
159 unsigned int& flat_index,
161 bool parentVisible = true);
163 std::map<
unsigned int,
bool> BlockVisibilities;
164 std::map<
unsigned int,
vtkColor3d> BlockColors;
165 std::map<
unsigned int,
double> BlockOpacities;
169 #endif // vtkCompositeDataDisplayAttributes_h
abstract base class for most VTK objects
rendering attributes for a multi-block dataset.
a simple class to control print indentation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
general representation of visualization data
Fast Simple Class for dealing with 3D bounds.