VTK  9.3.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 
36 VTK_ABI_NAMESPACE_BEGIN
37 class vtkActor;
38 class vtkAppendPolyData;
39 class vtkAssembly;
40 class vtkCubeSource;
41 class vtkFeatureEdges;
42 class vtkPropCollection;
43 class vtkProperty;
44 class vtkRenderer;
45 class vtkTransform;
46 class vtkTransformFilter;
47 class vtkVectorText;
48 
49 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
50 {
51 public:
52  static vtkAnnotatedCubeActor* New();
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
61  void GetActors(vtkPropCollection*) override;
62 
64 
67  int RenderOpaqueGeometry(vtkViewport* viewport) override;
68  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
70 
75 
79  void ShallowCopy(vtkProp* prop) override;
80 
86  void ReleaseGraphicsResources(vtkWindow*) override;
87 
89 
93  void GetBounds(double bounds[6]);
94  double* GetBounds() VTK_SIZEHINT(6) override;
96 
100  vtkMTimeType GetMTime() override;
101 
103 
106  void SetFaceTextScale(double);
107  vtkGetMacro(FaceTextScale, double);
109 
111 
114  vtkProperty* GetXPlusFaceProperty();
115  vtkProperty* GetXMinusFaceProperty();
116  vtkProperty* GetYPlusFaceProperty();
117  vtkProperty* GetYMinusFaceProperty();
118  vtkProperty* GetZPlusFaceProperty();
119  vtkProperty* GetZMinusFaceProperty();
121 
125  vtkProperty* GetCubeProperty();
126 
130  vtkProperty* GetTextEdgesProperty();
131 
133 
136  vtkSetStringMacro(XPlusFaceText);
137  vtkGetStringMacro(XPlusFaceText);
138  vtkSetStringMacro(XMinusFaceText);
139  vtkGetStringMacro(XMinusFaceText);
140  vtkSetStringMacro(YPlusFaceText);
141  vtkGetStringMacro(YPlusFaceText);
142  vtkSetStringMacro(YMinusFaceText);
143  vtkGetStringMacro(YMinusFaceText);
144  vtkSetStringMacro(ZPlusFaceText);
145  vtkGetStringMacro(ZPlusFaceText);
146  vtkSetStringMacro(ZMinusFaceText);
147  vtkGetStringMacro(ZMinusFaceText);
149 
151 
154  void SetTextEdgesVisibility(int);
155  int GetTextEdgesVisibility();
157 
159 
162  void SetCubeVisibility(int);
163  int GetCubeVisibility();
165 
167 
170  void SetFaceTextVisibility(int);
171  int GetFaceTextVisibility();
173 
175 
178  vtkSetMacro(XFaceTextRotation, double);
179  vtkGetMacro(XFaceTextRotation, double);
180  vtkSetMacro(YFaceTextRotation, double);
181  vtkGetMacro(YFaceTextRotation, double);
182  vtkSetMacro(ZFaceTextRotation, double);
183  vtkGetMacro(ZFaceTextRotation, double);
185 
189  vtkAssembly* GetAssembly() { return this->Assembly; }
190 
191 protected:
193  ~vtkAnnotatedCubeActor() override;
194 
197 
201 
202  void UpdateProps();
203 
210 
212 
216 
223 
230 
233 
235 
236 private:
238  void operator=(const vtkAnnotatedCubeActor&) = delete;
239 };
240 
241 VTK_ABI_NAMESPACE_END
242 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:45
vtkTransformFilter * InternalTransformFilter
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:40
a 3D cube with face labels
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
abstract specification for Viewports
Definition: vtkViewport.h:44
represent surface properties of a geometric object
Definition: vtkProperty.h:56
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:213
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:277
vtkVectorText * XPlusFaceVectorText
abstract specification for renderers
Definition: vtkRenderer.h:61
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:49
vtkVectorText * YMinusFaceVectorText
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:38
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:298
window superclass for vtkRenderWindow
Definition: vtkWindow.h:27
vtkVectorText * YPlusFaceVectorText
create a polygonal representation of a cube
Definition: vtkCubeSource.h:25
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:214
transform points and associated normals and vectors
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:56
create polygonal text
Definition: vtkVectorText.h:36