VTK  9.1.0
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=========================================================================*/
48#ifndef vtkAnnotatedCubeActor_h
49#define vtkAnnotatedCubeActor_h
50
51#include "vtkProp3D.h"
52#include "vtkRenderingAnnotationModule.h" // For export macro
53
54class vtkActor;
56class vtkAssembly;
57class vtkCubeSource;
58class vtkFeatureEdges;
60class vtkProperty;
61class vtkRenderer;
62class vtkTransform;
64class vtkVectorText;
65
66class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
67{
68public:
71 void PrintSelf(ostream& os, vtkIndent indent) override;
72
79
81
84 int RenderOpaqueGeometry(vtkViewport* viewport) override;
87
92
96 void ShallowCopy(vtkProp* prop) override;
97
104
106
110 void GetBounds(double bounds[6]);
111 double* GetBounds() VTK_SIZEHINT(6) override;
113
117 vtkMTimeType GetMTime() override;
118
120
123 void SetFaceTextScale(double);
124 vtkGetMacro(FaceTextScale, double);
126
128
131 vtkProperty* GetXPlusFaceProperty();
132 vtkProperty* GetXMinusFaceProperty();
133 vtkProperty* GetYPlusFaceProperty();
134 vtkProperty* GetYMinusFaceProperty();
135 vtkProperty* GetZPlusFaceProperty();
136 vtkProperty* GetZMinusFaceProperty();
138
142 vtkProperty* GetCubeProperty();
143
147 vtkProperty* GetTextEdgesProperty();
148
150
153 vtkSetStringMacro(XPlusFaceText);
154 vtkGetStringMacro(XPlusFaceText);
155 vtkSetStringMacro(XMinusFaceText);
156 vtkGetStringMacro(XMinusFaceText);
157 vtkSetStringMacro(YPlusFaceText);
158 vtkGetStringMacro(YPlusFaceText);
159 vtkSetStringMacro(YMinusFaceText);
160 vtkGetStringMacro(YMinusFaceText);
161 vtkSetStringMacro(ZPlusFaceText);
162 vtkGetStringMacro(ZPlusFaceText);
163 vtkSetStringMacro(ZMinusFaceText);
164 vtkGetStringMacro(ZMinusFaceText);
166
168
171 void SetTextEdgesVisibility(int);
172 int GetTextEdgesVisibility();
174
176
179 void SetCubeVisibility(int);
180 int GetCubeVisibility();
182
184
187 void SetFaceTextVisibility(int);
188 int GetFaceTextVisibility();
190
192
195 vtkSetMacro(XFaceTextRotation, double);
196 vtkGetMacro(XFaceTextRotation, double);
197 vtkSetMacro(YFaceTextRotation, double);
198 vtkGetMacro(YFaceTextRotation, double);
199 vtkSetMacro(ZFaceTextRotation, double);
200 vtkGetMacro(ZFaceTextRotation, double);
202
206 vtkAssembly* GetAssembly() { return this->Assembly; }
207
208protected:
211
214
218
220
227
229
233
240
247
250
252
253private:
255 void operator=(const vtkAnnotatedCubeActor&) = delete;
256};
257
258#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:55
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:79
create a polygonal representation of a cube
Definition: vtkCubeSource.h:40
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
a simple class to control print indentation
Definition: vtkIndent.h:43
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:53
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:71
abstract specification for renderers
Definition: vtkRenderer.h:73
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:64
create polygonal text
Definition: vtkVectorText.h:51
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:45
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)