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 =========================================================================*/
88 #ifndef vtkAnnotatedCubeActor_h
89 #define vtkAnnotatedCubeActor_h
90 
91 #include "vtkProp3D.h"
92 #include "vtkRenderingAnnotationModule.h" // For export macro
93 
94 class vtkActor;
95 class vtkAppendPolyData;
96 class vtkAssembly;
97 class vtkCubeSource;
98 class vtkFeatureEdges;
99 class vtkPropCollection;
100 class vtkProperty;
101 class vtkRenderer;
102 class vtkTransform;
103 class vtkTransformFilter;
104 class vtkVectorText;
105 
106 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
107 {
108 public:
111  void PrintSelf(ostream& os, vtkIndent indent) override;
112 
118  void GetActors(vtkPropCollection*) override;
119 
121 
124  int RenderOpaqueGeometry(vtkViewport* viewport) override;
127 
132 
136  void ShallowCopy(vtkProp* prop) override;
137 
144 
146 
150  void GetBounds(double bounds[6]);
151  double* GetBounds() VTK_SIZEHINT(6) override;
153 
157  vtkMTimeType GetMTime() override;
158 
160 
163  void SetFaceTextScale(double);
164  vtkGetMacro(FaceTextScale, double);
166 
168 
171  vtkProperty* GetXPlusFaceProperty();
172  vtkProperty* GetXMinusFaceProperty();
173  vtkProperty* GetYPlusFaceProperty();
174  vtkProperty* GetYMinusFaceProperty();
175  vtkProperty* GetZPlusFaceProperty();
176  vtkProperty* GetZMinusFaceProperty();
178 
182  vtkProperty* GetCubeProperty();
183 
187  vtkProperty* GetTextEdgesProperty();
188 
190 
193  vtkSetStringMacro(XPlusFaceText);
194  vtkGetStringMacro(XPlusFaceText);
195  vtkSetStringMacro(XMinusFaceText);
196  vtkGetStringMacro(XMinusFaceText);
197  vtkSetStringMacro(YPlusFaceText);
198  vtkGetStringMacro(YPlusFaceText);
199  vtkSetStringMacro(YMinusFaceText);
200  vtkGetStringMacro(YMinusFaceText);
201  vtkSetStringMacro(ZPlusFaceText);
202  vtkGetStringMacro(ZPlusFaceText);
203  vtkSetStringMacro(ZMinusFaceText);
204  vtkGetStringMacro(ZMinusFaceText);
206 
208 
211  void SetTextEdgesVisibility(int);
212  int GetTextEdgesVisibility();
214 
216 
219  void SetCubeVisibility(int);
220  int GetCubeVisibility();
222 
224 
227  void SetFaceTextVisibility(int);
228  int GetFaceTextVisibility();
230 
232 
235  vtkSetMacro(XFaceTextRotation, double);
236  vtkGetMacro(XFaceTextRotation, double);
237  vtkSetMacro(YFaceTextRotation, double);
238  vtkGetMacro(YFaceTextRotation, double);
239  vtkSetMacro(ZFaceTextRotation, double);
240  vtkGetMacro(ZFaceTextRotation, double);
242 
246  vtkAssembly* GetAssembly() { return this->Assembly; }
247 
248 protected:
251 
254 
258 
259  void UpdateProps();
260 
267 
269 
273 
280 
287 
290 
292 
293 private:
295  void operator=(const vtkAnnotatedCubeActor&) = delete;
296 };
297 
298 #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(...)