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=========================================================================*/
41
42#ifndef vtkAnnotatedCubeActor_h
43#define vtkAnnotatedCubeActor_h
44
45#include "vtkProp3D.h"
46#include "vtkRenderingAnnotationModule.h" // For export macro
47
48class vtkActor;
50class vtkAssembly;
51class vtkCubeSource;
52class vtkFeatureEdges;
54class vtkProperty;
55class vtkRenderer;
56class vtkTransform;
58class vtkVectorText;
59
60class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
61{
62public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
73
75
78 int RenderOpaqueGeometry(vtkViewport* viewport) override;
81
86
90 void ShallowCopy(vtkProp* prop) override;
91
98
100
104 void GetBounds(double bounds[6]);
105 double* GetBounds() VTK_SIZEHINT(6) override;
107
112
114
117 void SetFaceTextScale(double);
118 vtkGetMacro(FaceTextScale, double);
120
122
132
137
142
144
147 vtkSetStringMacro(XPlusFaceText);
148 vtkGetStringMacro(XPlusFaceText);
149 vtkSetStringMacro(XMinusFaceText);
150 vtkGetStringMacro(XMinusFaceText);
151 vtkSetStringMacro(YPlusFaceText);
152 vtkGetStringMacro(YPlusFaceText);
153 vtkSetStringMacro(YMinusFaceText);
154 vtkGetStringMacro(YMinusFaceText);
155 vtkSetStringMacro(ZPlusFaceText);
156 vtkGetStringMacro(ZPlusFaceText);
157 vtkSetStringMacro(ZMinusFaceText);
158 vtkGetStringMacro(ZMinusFaceText);
160
162
168
170
176
178
184
186
189 vtkSetMacro(XFaceTextRotation, double);
190 vtkGetMacro(XFaceTextRotation, double);
191 vtkSetMacro(YFaceTextRotation, double);
192 vtkGetMacro(YFaceTextRotation, double);
193 vtkSetMacro(ZFaceTextRotation, double);
194 vtkGetMacro(ZFaceTextRotation, double);
196
200 vtkAssembly* GetAssembly() { return this->Assembly; }
201
202protected:
205
208
212
214
221
223
227
234
241
244
246
247private:
249 void operator=(const vtkAnnotatedCubeActor&) = delete;
250};
251
252#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:52
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:73
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:40
an ordered list of Props
represent surface properties of a geometric object
Definition vtkProperty.h:68
abstract specification for renderers
Definition vtkRenderer.h:73
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
create polygonal text
abstract specification for Viewports
Definition vtkViewport.h:56
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287
#define VTK_SIZEHINT(...)