VTK  9.7.1
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
30 #ifndef vtkAnnotatedCubeActor_h
31 #define vtkAnnotatedCubeActor_h
32 
33 #include "vtkProp3D.h"
34 #include "vtkRenderingAnnotationModule.h" // For export macro
35 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
36 
37 VTK_ABI_NAMESPACE_BEGIN
38 class vtkActor;
39 class vtkAppendPolyData;
40 class vtkAssembly;
41 class vtkCubeSource;
42 class vtkFeatureEdges;
43 class vtkPropCollection;
44 class vtkProperty;
45 class vtkRenderer;
46 class vtkTransform;
47 class vtkTransformFilter;
48 class vtkVectorText;
49 
50 class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkAnnotatedCubeActor : public vtkProp3D
51 {
52 public:
53  static vtkAnnotatedCubeActor* New();
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
62  void GetActors(vtkPropCollection*) override;
63 
65 
68  int RenderOpaqueGeometry(vtkViewport* viewport) override;
69  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
71 
76 
80  void ShallowCopy(vtkProp* prop) override;
81 
87  void ReleaseGraphicsResources(vtkWindow*) override;
88 
90 
94  void GetBounds(double bounds[6]);
95  double* GetBounds() VTK_SIZEHINT(6) override;
97 
101  vtkMTimeType GetMTime() override;
102 
104 
107  void SetFaceTextScale(double);
108  vtkGetMacro(FaceTextScale, double);
110 
112 
115  vtkProperty* GetXPlusFaceProperty();
116  vtkProperty* GetXMinusFaceProperty();
117  vtkProperty* GetYPlusFaceProperty();
118  vtkProperty* GetYMinusFaceProperty();
119  vtkProperty* GetZPlusFaceProperty();
120  vtkProperty* GetZMinusFaceProperty();
122 
126  vtkProperty* GetCubeProperty();
127 
131  vtkProperty* GetTextEdgesProperty();
132 
134 
137  vtkSetStringMacro(XPlusFaceText);
138  vtkGetStringMacro(XPlusFaceText);
139  vtkSetStringMacro(XMinusFaceText);
140  vtkGetStringMacro(XMinusFaceText);
141  vtkSetStringMacro(YPlusFaceText);
142  vtkGetStringMacro(YPlusFaceText);
143  vtkSetStringMacro(YMinusFaceText);
144  vtkGetStringMacro(YMinusFaceText);
145  vtkSetStringMacro(ZPlusFaceText);
146  vtkGetStringMacro(ZPlusFaceText);
147  vtkSetStringMacro(ZMinusFaceText);
148  vtkGetStringMacro(ZMinusFaceText);
150 
152 
155  void SetTextEdgesVisibility(int);
156  int GetTextEdgesVisibility();
158 
160 
163  void SetCubeVisibility(int);
164  int GetCubeVisibility();
166 
168 
171  void SetFaceTextVisibility(int);
172  int GetFaceTextVisibility();
174 
176 
179  vtkSetMacro(XFaceTextRotation, double);
180  vtkGetMacro(XFaceTextRotation, double);
181  vtkSetMacro(YFaceTextRotation, double);
182  vtkGetMacro(YFaceTextRotation, double);
183  vtkSetMacro(ZFaceTextRotation, double);
184  vtkGetMacro(ZFaceTextRotation, double);
186 
190  vtkAssembly* GetAssembly() { return this->Assembly; }
191 
192 protected:
194  ~vtkAnnotatedCubeActor() override;
195 
198 
202 
203  void UpdateProps();
204 
211 
213 
217 
224 
231 
234 
236 
237 private:
239  void operator=(const vtkAnnotatedCubeActor&) = delete;
240 };
241 
242 VTK_ABI_NAMESPACE_END
243 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
vtkTransformFilter * InternalTransformFilter
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
a 3D cube with face labels
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:318
abstract specification for Viewports
Definition: vtkViewport.h:46
represent surface properties of a geometric object
Definition: vtkProperty.h:59
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:236
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:300
vtkVectorText * XPlusFaceVectorText
abstract specification for renderers
Definition: vtkRenderer.h:63
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:50
vtkVectorText * YMinusFaceVectorText
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:39
an ordered list of Props
int vtkTypeBool
Definition: vtkABI.h:64
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:321
window superclass for vtkRenderWindow
Definition: vtkWindow.h:41
vtkVectorText * YPlusFaceVectorText
create a polygonal representation of a cube
Definition: vtkCubeSource.h:26
a simple class to control print indentation
Definition: vtkIndent.h:28
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
appends one or more polygonal datasets together
vtkVectorText * ZMinusFaceVectorText
#define VTK_SIZEHINT(...)
vtkAppendPolyData * AppendTextEdges
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:61
vtkVectorText * XMinusFaceVectorText
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkVectorText * ZPlusFaceVectorText
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:237
transform points and associated normals and vectors
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkFeatureEdges * ExtractTextEdges
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes...
Definition: vtkProp.h:60
create polygonal text
Definition: vtkVectorText.h:36