VTK  9.2.6
vtkAnnotatedCubeActor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAnnotatedCubeActor.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
101 #ifndef vtkAnnotatedCubeActor_h
102 #define vtkAnnotatedCubeActor_h
103 
104 #include "vtkProp3D.h"
105 #include "vtkRenderingAnnotationModule.h" // For export macro
106 
107 class vtkActor;
108 class vtkAppendPolyData;
109 class vtkAssembly;
110 class vtkCubeSource;
111 class vtkFeatureEdges;
112 class vtkPropCollection;
113 class vtkProperty;
114 class vtkRenderer;
115 class vtkTransform;
116 class vtkTransformFilter;
117 class vtkVectorText;
118 
119 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
120 {
121 public:
124  void PrintSelf(ostream& os, vtkIndent indent) override;
125 
131  void GetActors(vtkPropCollection*) override;
132 
134 
137  int RenderOpaqueGeometry(vtkViewport* viewport) override;
140 
145 
149  void ShallowCopy(vtkProp* prop) override;
150 
157 
159 
163  void GetBounds(double bounds[6]);
164  double* GetBounds() VTK_SIZEHINT(6) override;
166 
170  vtkMTimeType GetMTime() override;
171 
173 
176  void SetFaceTextScale(double);
177  vtkGetMacro(FaceTextScale, double);
179 
181 
184  vtkProperty* GetXPlusFaceProperty();
185  vtkProperty* GetXMinusFaceProperty();
186  vtkProperty* GetYPlusFaceProperty();
187  vtkProperty* GetYMinusFaceProperty();
188  vtkProperty* GetZPlusFaceProperty();
189  vtkProperty* GetZMinusFaceProperty();
191 
195  vtkProperty* GetCubeProperty();
196 
200  vtkProperty* GetTextEdgesProperty();
201 
203 
206  vtkSetStringMacro(XPlusFaceText);
207  vtkGetStringMacro(XPlusFaceText);
208  vtkSetStringMacro(XMinusFaceText);
209  vtkGetStringMacro(XMinusFaceText);
210  vtkSetStringMacro(YPlusFaceText);
211  vtkGetStringMacro(YPlusFaceText);
212  vtkSetStringMacro(YMinusFaceText);
213  vtkGetStringMacro(YMinusFaceText);
214  vtkSetStringMacro(ZPlusFaceText);
215  vtkGetStringMacro(ZPlusFaceText);
216  vtkSetStringMacro(ZMinusFaceText);
217  vtkGetStringMacro(ZMinusFaceText);
219 
221 
224  void SetTextEdgesVisibility(int);
225  int GetTextEdgesVisibility();
227 
229 
232  void SetCubeVisibility(int);
233  int GetCubeVisibility();
235 
237 
240  void SetFaceTextVisibility(int);
241  int GetFaceTextVisibility();
243 
245 
248  vtkSetMacro(XFaceTextRotation, double);
249  vtkGetMacro(XFaceTextRotation, double);
250  vtkSetMacro(YFaceTextRotation, double);
251  vtkGetMacro(YFaceTextRotation, double);
252  vtkSetMacro(ZFaceTextRotation, double);
253  vtkGetMacro(ZFaceTextRotation, double);
255 
259  vtkAssembly* GetAssembly() { return this->Assembly; }
260 
261 protected:
264 
267 
271 
272  void UpdateProps();
273 
280 
282 
286 
293 
300 
303 
305 
306 private:
308  void operator=(const vtkAnnotatedCubeActor&) = delete;
309 };
310 
311 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:161
a 3D cube with face labels
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkVectorText * YPlusFaceVectorText
vtkAppendPolyData * AppendTextEdges
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkVectorText * XPlusFaceVectorText
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
void ShallowCopy(vtkProp *prop) override
Shallow copy of an axes actor.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this actor.
vtkVectorText * YMinusFaceVectorText
vtkVectorText * ZPlusFaceVectorText
vtkVectorText * ZMinusFaceVectorText
~vtkAnnotatedCubeActor() override
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
static vtkAnnotatedCubeActor * New()
vtkTransformFilter * InternalTransformFilter
void GetBounds(double bounds[6])
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkVectorText * XMinusFaceVectorText
vtkFeatureEdges * ExtractTextEdges
appends one or more polygonal datasets together
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:112
create a polygonal representation of a cube
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
a simple class to control print indentation
Definition: vtkIndent.h:119
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:99
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
represent surface properties of a geometric object
Definition: vtkProperty.h:177
abstract specification for renderers
Definition: vtkRenderer.h:182
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:170
create polygonal text
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)