VTK
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 =========================================================================*/
45 #ifndef vtkAnnotatedCubeActor_h
46 #define vtkAnnotatedCubeActor_h
47 
48 #include "vtkRenderingAnnotationModule.h" // For export macro
49 #include "vtkProp3D.h"
50 
51 class vtkActor;
52 class vtkAppendPolyData;
53 class vtkAssembly;
54 class vtkCubeSource;
55 class vtkFeatureEdges;
56 class vtkPropCollection;
57 class vtkProperty;
58 class vtkRenderer;
59 class vtkTransform;
60 class vtkTransformFilter;
61 class vtkVectorText;
62 
63 class VTKRENDERINGANNOTATION_EXPORT vtkAnnotatedCubeActor : public vtkProp3D
64 {
65 public:
68  void PrintSelf(ostream& os, vtkIndent indent);
69 
75  virtual void GetActors(vtkPropCollection *);
76 
78 
81  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
84 
89 
93  void ShallowCopy(vtkProp *prop);
94 
101 
103 
107  void GetBounds(double bounds[6]);
108  double *GetBounds();
110 
115 
117 
120  void SetFaceTextScale(double);
121  vtkGetMacro(FaceTextScale, double);
123 
125 
135 
140 
145 
147 
150  vtkSetStringMacro( XPlusFaceText );
151  vtkGetStringMacro( XPlusFaceText );
152  vtkSetStringMacro( XMinusFaceText );
153  vtkGetStringMacro( XMinusFaceText );
154  vtkSetStringMacro( YPlusFaceText );
155  vtkGetStringMacro( YPlusFaceText );
156  vtkSetStringMacro( YMinusFaceText );
157  vtkGetStringMacro( YMinusFaceText );
158  vtkSetStringMacro( ZPlusFaceText );
159  vtkGetStringMacro( ZPlusFaceText );
160  vtkSetStringMacro( ZMinusFaceText );
161  vtkGetStringMacro( ZMinusFaceText );
163 
165 
171 
173 
176  void SetCubeVisibility(int);
179 
181 
187 
189 
192  vtkSetMacro(XFaceTextRotation,double);
193  vtkGetMacro(XFaceTextRotation,double);
194  vtkSetMacro(YFaceTextRotation,double);
195  vtkGetMacro(YFaceTextRotation,double);
196  vtkSetMacro(ZFaceTextRotation,double);
197  vtkGetMacro(ZFaceTextRotation,double);
199 
204  { return this->Assembly; }
205 
206 protected:
209 
212 
216 
217  void UpdateProps();
218 
225 
227 
231 
238 
245 
248 
250 
251 private:
252  vtkAnnotatedCubeActor(const vtkAnnotatedCubeActor&) VTK_DELETE_FUNCTION;
253  void operator=(const vtkAnnotatedCubeActor&) VTK_DELETE_FUNCTION;
254 };
255 
256 #endif
257 
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
a 3D cube with face labels
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkVectorText * YPlusFaceVectorText
vtkAppendPolyData * AppendTextEdges
vtkProperty * GetYPlusFaceProperty()
void SetFaceTextVisibility(int)
Enable/disable drawing the vector text.
vtkVectorText * XPlusFaceVectorText
vtkProperty * GetTextEdgesProperty()
Get the text edges properties.
void SetCubeVisibility(int)
Enable/disable drawing the cube.
vtkProperty * GetZPlusFaceProperty()
void SetFaceTextScale(double)
Set/Get the scale factor for the face text.
vtkVectorText * YMinusFaceVectorText
vtkProperty * GetCubeProperty()
Get the cube properties.
vtkVectorText * ZPlusFaceVectorText
vtkVectorText * ZMinusFaceVectorText
vtkAssembly * GetAssembly()
Get the assembly so that user supplied transforms can be applied.
double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkProperty * GetXPlusFaceProperty()
Get the individual face text properties.
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes.
void ShallowCopy(vtkProp *prop)
Shallow copy of an axes actor.
static vtkAnnotatedCubeActor * New()
vtkProperty * GetXMinusFaceProperty()
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
void GetBounds(double bounds[6])
Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkVectorText * XMinusFaceVectorText
vtkTransformFilter * TransformFilter
vtkFeatureEdges * ExtractTextEdges
void SetTextEdgesVisibility(int)
Enable/disable drawing the vector text edges.
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
Support the standard render methods.
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this actor.
vtkProperty * GetYMinusFaceProperty()
vtkProperty * GetZMinusFaceProperty()
vtkMTimeType GetMTime()
Get the actors mtime plus consider its properties and texture if set.
appends one or more polygonal datasets together
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:76
create a polygonal representation of a cube
Definition: vtkCubeSource.h:37
extract 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:47
a list of Props
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
represent surface properties of a geometric object
Definition: vtkProperty.h:65
abstract specification for renderers
Definition: vtkRenderer.h:64
transform points and associated normals and vectors
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
create polygonal text
Definition: vtkVectorText.h:48
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248