VTK  9.5.20251121
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
108
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
181
183
186 void SetFaceTextScale(double);
187 vtkGetMacro(FaceTextScale, double);
189
191
201
206
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
237
239
245
247
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
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: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
an ordered list of Props
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:66
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:322
#define VTK_SIZEHINT(...)
#define VTK_MARSHALAUTO