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:
66  static vtkAnnotatedCubeActor *New();
68  void PrintSelf(ostream& os, vtkIndent indent);
69 
75  virtual void GetActors(vtkPropCollection *);
76 
78 
81  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
82  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
84 
88  virtual int HasTranslucentPolygonalGeometry();
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 
128  vtkProperty *GetXPlusFaceProperty();
129  vtkProperty *GetXMinusFaceProperty();
130  vtkProperty *GetYPlusFaceProperty();
131  vtkProperty *GetYMinusFaceProperty();
132  vtkProperty *GetZPlusFaceProperty();
133  vtkProperty *GetZMinusFaceProperty();
135 
139  vtkProperty *GetCubeProperty();
140 
144  vtkProperty *GetTextEdgesProperty();
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 
168  void SetTextEdgesVisibility(int);
169  int GetTextEdgesVisibility();
171 
173 
176  void SetCubeVisibility(int);
177  int GetCubeVisibility();
179 
181 
184  void SetFaceTextVisibility(int);
185  int GetFaceTextVisibility();
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 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
a 3D cube with face labels
abstract specification for Viewports
Definition: vtkViewport.h:47
represent surface properties of a geometric object
Definition: vtkProperty.h:64
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:222
vtkTransformFilter * TransformFilter
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:294
vtkVectorText * XPlusFaceVectorText
abstract specification for renderers
Definition: vtkRenderer.h:63
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
vtkVectorText * YMinusFaceVectorText
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
a list of Props
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:303
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
vtkVectorText * YPlusFaceVectorText
vtkAssembly * GetAssembly()
Get the assembly so that user supplied transforms can be applied.
create a polygonal representation of a cube
Definition: vtkCubeSource.h:36
void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp3D.
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
extract boundary, non-manifold, and/or sharp edges from polygonal data
appends one or more polygonal datasets together
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkVectorText * ZMinusFaceVectorText
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkAppendPolyData * AppendTextEdges
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
vtkMTimeType GetMTime()
Get the vtkProp3D's mtime.
vtkVectorText * XMinusFaceVectorText
vtkVectorText * ZPlusFaceVectorText
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:224
transform points and associated normals and vectors
virtual double * GetBounds()=0
Return a reference to the Prop3D's composite transform.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkFeatureEdges * ExtractTextEdges
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes...
Definition: vtkProp.h:61
create polygonal text
Definition: vtkVectorText.h:47