VTK  9.3.20240418
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
109 #ifndef vtkAnnotatedCubeActor_h
110 #define vtkAnnotatedCubeActor_h
111 
112 #include "vtkProp3D.h"
113 #include "vtkRenderingAnnotationModule.h" // For export macro
114 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
115 
116 VTK_ABI_NAMESPACE_BEGIN
117 class vtkActor;
118 class vtkAppendPolyData;
119 class vtkAssembly;
120 class vtkCubeSource;
121 class vtkFeatureEdges;
122 class vtkPropCollection;
123 class vtkProperty;
124 class vtkRenderer;
125 class vtkTransform;
126 class vtkTransformFilter;
127 class vtkVectorText;
128 
129 class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkAnnotatedCubeActor : public vtkProp3D
130 {
131 public:
134  void PrintSelf(ostream& os, vtkIndent indent) override;
135 
141  void GetActors(vtkPropCollection*) override;
142 
144 
147  int RenderOpaqueGeometry(vtkViewport* viewport) override;
150 
155 
159  void ShallowCopy(vtkProp* prop) override;
160 
167 
169 
173  void GetBounds(double bounds[6]);
174  double* GetBounds() VTK_SIZEHINT(6) override;
176 
180  vtkMTimeType GetMTime() override;
181 
183 
186  void SetFaceTextScale(double);
187  vtkGetMacro(FaceTextScale, double);
189 
191 
194  vtkProperty* GetXPlusFaceProperty();
195  vtkProperty* GetXMinusFaceProperty();
196  vtkProperty* GetYPlusFaceProperty();
197  vtkProperty* GetYMinusFaceProperty();
198  vtkProperty* GetZPlusFaceProperty();
199  vtkProperty* GetZMinusFaceProperty();
201 
205  vtkProperty* GetCubeProperty();
206 
210  vtkProperty* GetTextEdgesProperty();
211 
213 
216  vtkSetStringMacro(XPlusFaceText);
217  vtkGetStringMacro(XPlusFaceText);
218  vtkSetStringMacro(XMinusFaceText);
219  vtkGetStringMacro(XMinusFaceText);
220  vtkSetStringMacro(YPlusFaceText);
221  vtkGetStringMacro(YPlusFaceText);
222  vtkSetStringMacro(YMinusFaceText);
223  vtkGetStringMacro(YMinusFaceText);
224  vtkSetStringMacro(ZPlusFaceText);
225  vtkGetStringMacro(ZPlusFaceText);
226  vtkSetStringMacro(ZMinusFaceText);
227  vtkGetStringMacro(ZMinusFaceText);
229 
231 
234  void SetTextEdgesVisibility(int);
235  int GetTextEdgesVisibility();
237 
239 
242  void SetCubeVisibility(int);
243  int GetCubeVisibility();
245 
247 
250  void SetFaceTextVisibility(int);
251  int GetFaceTextVisibility();
253 
255 
258  vtkSetMacro(XFaceTextRotation, double);
259  vtkGetMacro(XFaceTextRotation, double);
260  vtkSetMacro(YFaceTextRotation, double);
261  vtkGetMacro(YFaceTextRotation, double);
262  vtkSetMacro(ZFaceTextRotation, double);
263  vtkGetMacro(ZFaceTextRotation, double);
265 
269  vtkAssembly* GetAssembly() { return this->Assembly; }
270 
271 protected:
274 
277 
281 
282  void UpdateProps();
283 
290 
292 
296 
303 
310 
313 
315 
316 private:
318  void operator=(const vtkAnnotatedCubeActor&) = delete;
319 };
320 
321 VTK_ABI_NAMESPACE_END
322 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:151
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:91
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:108
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:89
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:66
represent surface properties of a geometric object
Definition: vtkProperty.h:167
abstract specification for renderers
Definition: vtkRenderer.h:172
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:160
create polygonal text
abstract specification for Viewports
Definition: vtkViewport.h:65
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48
int vtkTypeBool
Definition: vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO