VTK  9.4.20241114
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
116VTK_ABI_NAMESPACE_BEGIN
117class vtkActor;
119class vtkAssembly;
120class vtkCubeSource;
121class vtkFeatureEdges;
123class vtkProperty;
124class vtkRenderer;
125class vtkTransform;
127class vtkVectorText;
128
129class VTKRENDERINGANNOTATION_EXPORT VTK_MARSHALAUTO vtkAnnotatedCubeActor : public vtkProp3D
130{
131public:
134 void PrintSelf(ostream& os, vtkIndent indent) override;
135
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
271protected:
274
277
281
283
290
292
296
303
310
313
315
316private:
318 void operator=(const vtkAnnotatedCubeActor&) = delete;
319};
320
321VTK_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.
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: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
abstract specification for renderers
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
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