VTK  9.2.6
vtkAnnotatedCubeActor.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAnnotatedCubeActor.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
38
39#ifndef vtkAnnotatedCubeActor_h
40#define vtkAnnotatedCubeActor_h
41
42#include "vtkProp3D.h"
43#include "vtkRenderingAnnotationModule.h" // For export macro
44
45class vtkActor;
47class vtkAssembly;
48class vtkCubeSource;
49class vtkFeatureEdges;
51class vtkProperty;
52class vtkRenderer;
53class vtkTransform;
55class vtkVectorText;
56
57class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
58{
59public:
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
70
72
75 int RenderOpaqueGeometry(vtkViewport* viewport) override;
78
83
87 void ShallowCopy(vtkProp* prop) override;
88
95
97
101 void GetBounds(double bounds[6]);
102 double* GetBounds() VTK_SIZEHINT(6) override;
104
109
111
114 void SetFaceTextScale(double);
115 vtkGetMacro(FaceTextScale, double);
117
119
129
134
139
141
144 vtkSetStringMacro(XPlusFaceText);
145 vtkGetStringMacro(XPlusFaceText);
146 vtkSetStringMacro(XMinusFaceText);
147 vtkGetStringMacro(XMinusFaceText);
148 vtkSetStringMacro(YPlusFaceText);
149 vtkGetStringMacro(YPlusFaceText);
150 vtkSetStringMacro(YMinusFaceText);
151 vtkGetStringMacro(YMinusFaceText);
152 vtkSetStringMacro(ZPlusFaceText);
153 vtkGetStringMacro(ZPlusFaceText);
154 vtkSetStringMacro(ZMinusFaceText);
155 vtkGetStringMacro(ZMinusFaceText);
157
159
165
167
173
175
181
183
186 vtkSetMacro(XFaceTextRotation, double);
187 vtkGetMacro(XFaceTextRotation, double);
188 vtkSetMacro(YFaceTextRotation, double);
189 vtkGetMacro(YFaceTextRotation, double);
190 vtkSetMacro(ZFaceTextRotation, double);
191 vtkGetMacro(ZFaceTextRotation, double);
193
197 vtkAssembly* GetAssembly() { return this->Assembly; }
198
199protected:
202
205
209
211
218
220
224
231
238
241
243
244private:
246 void operator=(const vtkAnnotatedCubeActor&) = delete;
247};
248
249#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:46
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:70
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:34
an ordered list of Props
represent surface properties of a geometric object
Definition vtkProperty.h:62
abstract specification for renderers
Definition vtkRenderer.h:67
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
create polygonal text
abstract specification for Viewports
Definition vtkViewport.h:50
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_SIZEHINT(...)