VTK  9.4.20251203
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
37VTK_ABI_NAMESPACE_BEGIN
38class vtkActor;
40class vtkAssembly;
41class vtkCubeSource;
42class vtkFeatureEdges;
44class vtkProperty;
45class vtkRenderer;
46class vtkTransform;
48class vtkVectorText;
49
50class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkAnnotatedCubeActor : public vtkProp3D
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
63
65
68 int RenderOpaqueGeometry(vtkViewport* viewport) override;
71
76
80 void ShallowCopy(vtkProp* prop) override;
81
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
192protected:
195
198
202
204
211
213
217
224
231
234
236
237private:
239 void operator=(const vtkAnnotatedCubeActor&) = delete;
240};
241
242VTK_ABI_NAMESPACE_END
243#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:42
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.
static vtkAnnotatedCubeActor * New()
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
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
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?
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:62
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:29
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:40
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:47
represent surface properties of a geometric object
Definition vtkProperty.h:60
abstract specification for renderers
Definition vtkRenderer.h:63
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
create polygonal text
abstract specification for Viewports
Definition vtkViewport.h:46
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO