VTK  9.2.6
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 =========================================================================*/
42 #ifndef vtkAnnotatedCubeActor_h
43 #define vtkAnnotatedCubeActor_h
44 
45 #include "vtkProp3D.h"
46 #include "vtkRenderingAnnotationModule.h" // For export macro
47 
48 class vtkActor;
49 class vtkAppendPolyData;
50 class vtkAssembly;
51 class vtkCubeSource;
52 class vtkFeatureEdges;
53 class vtkPropCollection;
54 class vtkProperty;
55 class vtkRenderer;
56 class vtkTransform;
57 class vtkTransformFilter;
58 class vtkVectorText;
59 
60 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
61 {
62 public:
63  static vtkAnnotatedCubeActor* New();
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66 
72  void GetActors(vtkPropCollection*) override;
73 
75 
78  int RenderOpaqueGeometry(vtkViewport* viewport) override;
79  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
81 
86 
90  void ShallowCopy(vtkProp* prop) override;
91 
97  void ReleaseGraphicsResources(vtkWindow*) override;
98 
100 
104  void GetBounds(double bounds[6]);
105  double* GetBounds() VTK_SIZEHINT(6) override;
107 
111  vtkMTimeType GetMTime() override;
112 
114 
117  void SetFaceTextScale(double);
118  vtkGetMacro(FaceTextScale, double);
120 
122 
125  vtkProperty* GetXPlusFaceProperty();
126  vtkProperty* GetXMinusFaceProperty();
127  vtkProperty* GetYPlusFaceProperty();
128  vtkProperty* GetYMinusFaceProperty();
129  vtkProperty* GetZPlusFaceProperty();
130  vtkProperty* GetZMinusFaceProperty();
132 
136  vtkProperty* GetCubeProperty();
137 
141  vtkProperty* GetTextEdgesProperty();
142 
144 
147  vtkSetStringMacro(XPlusFaceText);
148  vtkGetStringMacro(XPlusFaceText);
149  vtkSetStringMacro(XMinusFaceText);
150  vtkGetStringMacro(XMinusFaceText);
151  vtkSetStringMacro(YPlusFaceText);
152  vtkGetStringMacro(YPlusFaceText);
153  vtkSetStringMacro(YMinusFaceText);
154  vtkGetStringMacro(YMinusFaceText);
155  vtkSetStringMacro(ZPlusFaceText);
156  vtkGetStringMacro(ZPlusFaceText);
157  vtkSetStringMacro(ZMinusFaceText);
158  vtkGetStringMacro(ZMinusFaceText);
160 
162 
165  void SetTextEdgesVisibility(int);
166  int GetTextEdgesVisibility();
168 
170 
173  void SetCubeVisibility(int);
174  int GetCubeVisibility();
176 
178 
181  void SetFaceTextVisibility(int);
182  int GetFaceTextVisibility();
184 
186 
189  vtkSetMacro(XFaceTextRotation, double);
190  vtkGetMacro(XFaceTextRotation, double);
191  vtkSetMacro(YFaceTextRotation, double);
192  vtkGetMacro(YFaceTextRotation, double);
193  vtkSetMacro(ZFaceTextRotation, double);
194  vtkGetMacro(ZFaceTextRotation, double);
196 
200  vtkAssembly* GetAssembly() { return this->Assembly; }
201 
202 protected:
204  ~vtkAnnotatedCubeActor() override;
205 
208 
212 
213  void UpdateProps();
214 
221 
223 
227 
234 
241 
244 
246 
247 private:
249  void operator=(const vtkAnnotatedCubeActor&) = delete;
250 };
251 
252 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:56
vtkTransformFilter * InternalTransformFilter
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
a 3D cube with face labels
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
abstract specification for Viewports
Definition: vtkViewport.h:55
represent surface properties of a geometric object
Definition: vtkProperty.h:67
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:224
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:288
vtkVectorText * XPlusFaceVectorText
abstract specification for renderers
Definition: vtkRenderer.h:72
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
vtkVectorText * YMinusFaceVectorText
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:49
an ordered list of Props
int vtkTypeBool
Definition: vtkABI.h:69
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:309
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkVectorText * YPlusFaceVectorText
create a polygonal representation of a cube
Definition: vtkCubeSource.h:36
a simple class to control print indentation
Definition: vtkIndent.h:39
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:72
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:225
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:67
create polygonal text
Definition: vtkVectorText.h:47