VTK  9.1.0
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 =========================================================================*/
98 #ifndef vtkAnnotatedCubeActor_h
99 #define vtkAnnotatedCubeActor_h
100 
101 #include "vtkProp3D.h"
102 #include "vtkRenderingAnnotationModule.h" // For export macro
103 
104 class vtkActor;
105 class vtkAppendPolyData;
106 class vtkAssembly;
107 class vtkCubeSource;
108 class vtkFeatureEdges;
109 class vtkPropCollection;
110 class vtkProperty;
111 class vtkRenderer;
112 class vtkTransform;
113 class vtkTransformFilter;
114 class vtkVectorText;
115 
116 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
117 {
118 public:
121  void PrintSelf(ostream& os, vtkIndent indent) override;
122 
128  void GetActors(vtkPropCollection*) override;
129 
131 
134  int RenderOpaqueGeometry(vtkViewport* viewport) override;
137 
142 
146  void ShallowCopy(vtkProp* prop) override;
147 
154 
156 
160  void GetBounds(double bounds[6]);
161  double* GetBounds() VTK_SIZEHINT(6) override;
163 
167  vtkMTimeType GetMTime() override;
168 
170 
173  void SetFaceTextScale(double);
174  vtkGetMacro(FaceTextScale, double);
176 
178 
181  vtkProperty* GetXPlusFaceProperty();
182  vtkProperty* GetXMinusFaceProperty();
183  vtkProperty* GetYPlusFaceProperty();
184  vtkProperty* GetYMinusFaceProperty();
185  vtkProperty* GetZPlusFaceProperty();
186  vtkProperty* GetZMinusFaceProperty();
188 
192  vtkProperty* GetCubeProperty();
193 
197  vtkProperty* GetTextEdgesProperty();
198 
200 
203  vtkSetStringMacro(XPlusFaceText);
204  vtkGetStringMacro(XPlusFaceText);
205  vtkSetStringMacro(XMinusFaceText);
206  vtkGetStringMacro(XMinusFaceText);
207  vtkSetStringMacro(YPlusFaceText);
208  vtkGetStringMacro(YPlusFaceText);
209  vtkSetStringMacro(YMinusFaceText);
210  vtkGetStringMacro(YMinusFaceText);
211  vtkSetStringMacro(ZPlusFaceText);
212  vtkGetStringMacro(ZPlusFaceText);
213  vtkSetStringMacro(ZMinusFaceText);
214  vtkGetStringMacro(ZMinusFaceText);
216 
218 
221  void SetTextEdgesVisibility(int);
222  int GetTextEdgesVisibility();
224 
226 
229  void SetCubeVisibility(int);
230  int GetCubeVisibility();
232 
234 
237  void SetFaceTextVisibility(int);
238  int GetFaceTextVisibility();
240 
242 
245  vtkSetMacro(XFaceTextRotation, double);
246  vtkGetMacro(XFaceTextRotation, double);
247  vtkSetMacro(YFaceTextRotation, double);
248  vtkGetMacro(YFaceTextRotation, double);
249  vtkSetMacro(ZFaceTextRotation, double);
250  vtkGetMacro(ZFaceTextRotation, double);
252 
256  vtkAssembly* GetAssembly() { return this->Assembly; }
257 
258 protected:
261 
264 
268 
269  void UpdateProps();
270 
277 
279 
283 
290 
297 
300 
302 
303 private:
305  void operator=(const vtkAnnotatedCubeActor&) = delete;
306 };
307 
308 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
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:109
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:113
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:93
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:67
represent surface properties of a geometric object
Definition: vtkProperty.h:171
abstract specification for renderers
Definition: vtkRenderer.h:173
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:164
create polygonal text
abstract specification for Viewports
Definition: vtkViewport.h:47
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)