VTK  9.5.2
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
29
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
102
104
107 void SetFaceTextScale(double);
108 vtkGetMacro(FaceTextScale, double);
110
112
122
127
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
158
160
166
168
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
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkVectorText * YPlusFaceVectorText
vtkAppendPolyData * AppendTextEdges
vtkProperty * GetXPlusFaceProperty()
Get the individual face text properties.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkProperty * GetCubeProperty()
Get the cube properties.
vtkProperty * GetYMinusFaceProperty()
Get the individual face text properties.
void SetFaceTextVisibility(int)
Enable/disable drawing the vector text.
vtkMTimeType GetMTime() override
Get the actors mtime plus consider its properties and texture if set.
vtkVectorText * XPlusFaceVectorText
vtkProperty * GetZPlusFaceProperty()
Get the individual face text properties.
void SetCubeVisibility(int)
Enable/disable drawing the cube.
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.
void SetFaceTextScale(double)
Set/Get the scale factor for the face text.
vtkVectorText * YMinusFaceVectorText
vtkVectorText * ZPlusFaceVectorText
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkVectorText * ZMinusFaceVectorText
int GetTextEdgesVisibility()
Enable/disable drawing the vector text edges.
int GetFaceTextVisibility()
Enable/disable drawing the vector text.
~vtkAnnotatedCubeActor() override
int RenderOpaqueGeometry(vtkViewport *viewport) override
Support the standard render methods.
vtkProperty * GetXMinusFaceProperty()
Get the individual face text properties.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
vtkProperty * GetTextEdgesProperty()
Get the text edges properties.
vtkProperty * GetZMinusFaceProperty()
Get the individual face text properties.
vtkTransformFilter * InternalTransformFilter
void GetBounds(double bounds[6])
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkVectorText * XMinusFaceVectorText
vtkFeatureEdges * ExtractTextEdges
void SetTextEdgesVisibility(int)
Enable/disable drawing the vector text edges.
vtkAssembly * GetAssembly()
Get the assembly so that user supplied transforms can be applied.
vtkProperty * GetYPlusFaceProperty()
Get the individual face text properties.
int GetCubeVisibility()
Enable/disable drawing the cube.
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
an ordered list of Props
represent surface properties of a geometric object
Definition vtkProperty.h:61
abstract specification for renderers
Definition vtkRenderer.h:60
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
create polygonal text
abstract specification for Viewports
Definition vtkViewport.h:47
window superclass for vtkRenderWindow
Definition vtkWindow.h:26
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO