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 =========================================================================*/
51 #ifndef vtkAnnotatedCubeActor_h
52 #define vtkAnnotatedCubeActor_h
53 
54 #include "vtkProp3D.h"
55 #include "vtkRenderingAnnotationModule.h" // For export macro
56 
57 class vtkActor;
58 class vtkAppendPolyData;
59 class vtkAssembly;
60 class vtkCubeSource;
61 class vtkFeatureEdges;
62 class vtkPropCollection;
63 class vtkProperty;
64 class vtkRenderer;
65 class vtkTransform;
66 class vtkTransformFilter;
67 class vtkVectorText;
68 
69 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
70 {
71 public:
74  void PrintSelf(ostream& os, vtkIndent indent) override;
75 
81  void GetActors(vtkPropCollection*) override;
82 
84 
87  int RenderOpaqueGeometry(vtkViewport* viewport) override;
90 
95 
99  void ShallowCopy(vtkProp* prop) override;
100 
107 
109 
113  void GetBounds(double bounds[6]);
114  double* GetBounds() VTK_SIZEHINT(6) override;
116 
120  vtkMTimeType GetMTime() override;
121 
123 
126  void SetFaceTextScale(double);
127  vtkGetMacro(FaceTextScale, double);
129 
131 
134  vtkProperty* GetXPlusFaceProperty();
135  vtkProperty* GetXMinusFaceProperty();
136  vtkProperty* GetYPlusFaceProperty();
137  vtkProperty* GetYMinusFaceProperty();
138  vtkProperty* GetZPlusFaceProperty();
139  vtkProperty* GetZMinusFaceProperty();
141 
145  vtkProperty* GetCubeProperty();
146 
150  vtkProperty* GetTextEdgesProperty();
151 
153 
156  vtkSetStringMacro(XPlusFaceText);
157  vtkGetStringMacro(XPlusFaceText);
158  vtkSetStringMacro(XMinusFaceText);
159  vtkGetStringMacro(XMinusFaceText);
160  vtkSetStringMacro(YPlusFaceText);
161  vtkGetStringMacro(YPlusFaceText);
162  vtkSetStringMacro(YMinusFaceText);
163  vtkGetStringMacro(YMinusFaceText);
164  vtkSetStringMacro(ZPlusFaceText);
165  vtkGetStringMacro(ZPlusFaceText);
166  vtkSetStringMacro(ZMinusFaceText);
167  vtkGetStringMacro(ZMinusFaceText);
169 
171 
174  void SetTextEdgesVisibility(int);
175  int GetTextEdgesVisibility();
177 
179 
182  void SetCubeVisibility(int);
183  int GetCubeVisibility();
185 
187 
190  void SetFaceTextVisibility(int);
191  int GetFaceTextVisibility();
193 
195 
198  vtkSetMacro(XFaceTextRotation, double);
199  vtkGetMacro(XFaceTextRotation, double);
200  vtkSetMacro(YFaceTextRotation, double);
201  vtkGetMacro(YFaceTextRotation, double);
202  vtkSetMacro(ZFaceTextRotation, double);
203  vtkGetMacro(ZFaceTextRotation, double);
205 
209  vtkAssembly* GetAssembly() { return this->Assembly; }
210 
211 protected:
214 
217 
221 
222  void UpdateProps();
223 
230 
232 
236 
243 
250 
253 
255 
256 private:
258  void operator=(const vtkAnnotatedCubeActor&) = delete;
259 };
260 
261 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:61
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.
double * GetBounds() override
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
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
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?
static vtkAnnotatedCubeActor * New()
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:82
create a polygonal representation of a cube
Definition: vtkCubeSource.h:46
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
a simple class to control print indentation
Definition: vtkIndent.h:49
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:59
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:66
represent surface properties of a geometric object
Definition: vtkProperty.h:77
abstract specification for renderers
Definition: vtkRenderer.h:82
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:70
create polygonal text
Definition: vtkVectorText.h:57
abstract specification for Viewports
Definition: vtkViewport.h:65
window superclass for vtkRenderWindow
Definition: vtkWindow.h:48
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287
#define VTK_SIZEHINT(...)