VTK  9.3.0
vtkAnnotatedCubeActor.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
39 #ifndef vtkAnnotatedCubeActor_h
40 #define vtkAnnotatedCubeActor_h
41 
42 #include "vtkProp3D.h"
43 #include "vtkRenderingAnnotationModule.h" // For export macro
44 
45 VTK_ABI_NAMESPACE_BEGIN
46 class vtkActor;
47 class vtkAppendPolyData;
48 class vtkAssembly;
49 class vtkCubeSource;
50 class vtkFeatureEdges;
51 class vtkPropCollection;
52 class vtkProperty;
53 class vtkRenderer;
54 class vtkTransform;
55 class vtkTransformFilter;
56 class vtkVectorText;
57 
58 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
59 {
60 public:
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
70  void GetActors(vtkPropCollection*) override;
71 
73 
76  int RenderOpaqueGeometry(vtkViewport* viewport) override;
79 
84 
88  void ShallowCopy(vtkProp* prop) override;
89 
96 
98 
102  void GetBounds(double bounds[6]);
103  double* GetBounds() VTK_SIZEHINT(6) override;
105 
109  vtkMTimeType GetMTime() override;
110 
112 
115  void SetFaceTextScale(double);
116  vtkGetMacro(FaceTextScale, double);
118 
120 
123  vtkProperty* GetXPlusFaceProperty();
124  vtkProperty* GetXMinusFaceProperty();
125  vtkProperty* GetYPlusFaceProperty();
126  vtkProperty* GetYMinusFaceProperty();
127  vtkProperty* GetZPlusFaceProperty();
128  vtkProperty* GetZMinusFaceProperty();
130 
134  vtkProperty* GetCubeProperty();
135 
139  vtkProperty* GetTextEdgesProperty();
140 
142 
145  vtkSetStringMacro(XPlusFaceText);
146  vtkGetStringMacro(XPlusFaceText);
147  vtkSetStringMacro(XMinusFaceText);
148  vtkGetStringMacro(XMinusFaceText);
149  vtkSetStringMacro(YPlusFaceText);
150  vtkGetStringMacro(YPlusFaceText);
151  vtkSetStringMacro(YMinusFaceText);
152  vtkGetStringMacro(YMinusFaceText);
153  vtkSetStringMacro(ZPlusFaceText);
154  vtkGetStringMacro(ZPlusFaceText);
155  vtkSetStringMacro(ZMinusFaceText);
156  vtkGetStringMacro(ZMinusFaceText);
158 
160 
163  void SetTextEdgesVisibility(int);
164  int GetTextEdgesVisibility();
166 
168 
171  void SetCubeVisibility(int);
172  int GetCubeVisibility();
174 
176 
179  void SetFaceTextVisibility(int);
180  int GetFaceTextVisibility();
182 
184 
187  vtkSetMacro(XFaceTextRotation, double);
188  vtkGetMacro(XFaceTextRotation, double);
189  vtkSetMacro(YFaceTextRotation, double);
190  vtkGetMacro(YFaceTextRotation, double);
191  vtkSetMacro(ZFaceTextRotation, double);
192  vtkGetMacro(ZFaceTextRotation, double);
194 
198  vtkAssembly* GetAssembly() { return this->Assembly; }
199 
200 protected:
203 
206 
210 
211  void UpdateProps();
212 
219 
221 
225 
232 
239 
242 
244 
245 private:
247  void operator=(const vtkAnnotatedCubeActor&) = delete;
248 };
249 
250 VTK_ABI_NAMESPACE_END
251 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
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:71
create a polygonal representation of a cube
Definition: vtkCubeSource.h:35
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
a simple class to control print indentation
Definition: vtkIndent.h:38
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:48
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:55
represent surface properties of a geometric object
Definition: vtkProperty.h:66
abstract specification for renderers
Definition: vtkRenderer.h:71
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:59
create polygonal text
Definition: vtkVectorText.h:46
abstract specification for Viewports
Definition: vtkViewport.h:54
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_SIZEHINT(...)