26 #ifndef vtkCompositeDataDisplayAttributesLegacy_h 27 #define vtkCompositeDataDisplayAttributesLegacy_h 31 #include "vtkRenderingCoreModule.h" 43 void PrintSelf(ostream& os,
vtkIndent indent) override;
48 bool HasBlockVisibilities() const;
54 void SetBlockVisibility(
unsigned int flat_index,
bool visible);
55 bool GetBlockVisibility(
unsigned int flat_index) const;
62 bool HasBlockVisibility(
unsigned int flat_index) const;
67 void RemoveBlockVisibility(
unsigned int flat_index);
73 void RemoveBlockVisibilities();
75 VTK_LEGACY(
void RemoveBlockVisibilites());
80 bool HasBlockPickabilities() const;
86 void SetBlockPickability(
unsigned int flat_index,
bool visible);
87 bool GetBlockPickability(
unsigned int flat_index) const;
94 bool HasBlockPickability(
unsigned int flat_index) const;
99 void RemoveBlockPickability(
unsigned int flat_index);
105 void RemoveBlockPickabilities();
111 void SetBlockColor(
unsigned int flat_index, const
double color[3]);
112 void GetBlockColor(
unsigned int flat_index,
double color[3]) const;
113 vtkColor3d GetBlockColor(
unsigned int flat_index) const;
119 bool HasBlockColors() const;
124 bool HasBlockColor(
unsigned int flat_index) const;
129 void RemoveBlockColor(
unsigned int flat_index);
134 void RemoveBlockColors();
140 void SetBlockOpacity(
unsigned int flat_index,
double opacity);
141 double GetBlockOpacity(
unsigned int flat_index) const;
147 bool HasBlockOpacities() const;
152 bool HasBlockOpacity(
unsigned int flat_index) const;
157 void RemoveBlockOpacity(
unsigned int flat_index);
162 void RemoveBlockOpacities();
168 static
void ComputeVisibleBounds(
175 ~vtkCompositeDataDisplayAttributesLegacy() override;
178 vtkCompositeDataDisplayAttributesLegacy(const vtkCompositeDataDisplayAttributesLegacy&) = delete;
179 void operator=(const vtkCompositeDataDisplayAttributesLegacy&) = delete;
190 static
void ComputeVisibleBoundsInternal(
191 vtkCompositeDataDisplayAttributesLegacy* cda,
193 unsigned int& flat_index,
195 bool parentVisible = true);
197 std::map<
unsigned int,
bool> BlockVisibilities;
198 std::map<
unsigned int,
vtkColor3d> BlockColors;
199 std::map<
unsigned int,
double> BlockOpacities;
200 std::map<
unsigned int,
bool> BlockPickabilities;
204 #endif // vtkCompositeDataDisplayAttributesLegacy_h rendering attributes for a multi-block dataset.
abstract base class for most VTK objects
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.