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=========================================================================*/
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
111 vtkMTimeType GetMTime() override;
112
114
117 void SetFaceTextScale(double);
118 vtkGetMacro(FaceTextScale, double);
120
122
125 vtkProperty* GetXPlusFaceProperty();
126 vtkProperty* GetXMinusFaceProperty();
127 vtkProperty* GetYPlusFaceProperty();
128 vtkProperty* GetYMinusFaceProperty();
129 vtkProperty* GetZPlusFaceProperty();
130 vtkProperty* GetZMinusFaceProperty();
132
136 vtkProperty* GetCubeProperty();
137
141 vtkProperty* GetTextEdgesProperty();
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
165 void SetTextEdgesVisibility(int);
166 int GetTextEdgesVisibility();
168
170
173 void SetCubeVisibility(int);
174 int GetCubeVisibility();
176
178
181 void SetFaceTextVisibility(int);
182 int GetFaceTextVisibility();
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
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: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
represents an 3D object for placement in a rendered scene
Definition vtkProp3D.h:50
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:57
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(...)