VTK  9.3.0
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
36VTK_ABI_NAMESPACE_BEGIN
37class vtkActor;
39class vtkAssembly;
40class vtkCubeSource;
41class vtkFeatureEdges;
43class vtkProperty;
44class vtkRenderer;
45class vtkTransform;
47class vtkVectorText;
48
49class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
50{
51public:
54 void PrintSelf(ostream& os, vtkIndent indent) override;
55
62
64
67 int RenderOpaqueGeometry(vtkViewport* viewport) override;
70
75
79 void ShallowCopy(vtkProp* prop) override;
80
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
191protected:
194
197
201
203
210
212
216
223
230
233
235
236private:
238 void operator=(const vtkAnnotatedCubeActor&) = delete;
239};
240
241VTK_ABI_NAMESPACE_END
242#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:41
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:39
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:43
represent surface properties of a geometric object
Definition vtkProperty.h:57
abstract specification for renderers
Definition vtkRenderer.h:59
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
create polygonal text
abstract specification for Viewports
Definition vtkViewport.h:45
window superclass for vtkRenderWindow
Definition vtkWindow.h:25
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:270
#define VTK_SIZEHINT(...)