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 =========================================================================*/
44 #ifndef vtkAnnotatedCubeActor_h
45 #define vtkAnnotatedCubeActor_h
46 
47 #include "vtkRenderingAnnotationModule.h" // For export macro
48 #include "vtkProp3D.h"
49 
50 class vtkActor;
51 class vtkAppendPolyData;
52 class vtkAssembly;
53 class vtkCubeSource;
54 class vtkFeatureEdges;
55 class vtkPropCollection;
56 class vtkProperty;
57 class vtkRenderer;
58 class vtkTransform;
59 class vtkTransformFilter;
60 class vtkVectorText;
61 
63 {
64 public:
67  void PrintSelf(ostream& os, vtkIndent indent);
68 
72  virtual void GetActors(vtkPropCollection *);
73 
75 
76  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
79 
82 
84  void ShallowCopy(vtkProp *prop);
85 
90 
92 
95  void GetBounds(double bounds[6]);
96  double *GetBounds();
98 
100  unsigned long int GetMTime();
101 
103 
104  void SetFaceTextScale(double);
105  vtkGetMacro(FaceTextScale, double);
107 
109 
117 
120 
123 
125 
126  vtkSetStringMacro( XPlusFaceText );
127  vtkGetStringMacro( XPlusFaceText );
128  vtkSetStringMacro( XMinusFaceText );
129  vtkGetStringMacro( XMinusFaceText );
130  vtkSetStringMacro( YPlusFaceText );
131  vtkGetStringMacro( YPlusFaceText );
132  vtkSetStringMacro( YMinusFaceText );
133  vtkGetStringMacro( YMinusFaceText );
134  vtkSetStringMacro( ZPlusFaceText );
135  vtkGetStringMacro( ZPlusFaceText );
136  vtkSetStringMacro( ZMinusFaceText );
137  vtkGetStringMacro( ZMinusFaceText );
139 
141 
145 
147 
148  void SetCubeVisibility(int);
151 
153 
157 
159 
160  vtkSetMacro(XFaceTextRotation,double);
161  vtkGetMacro(XFaceTextRotation,double);
162  vtkSetMacro(YFaceTextRotation,double);
163  vtkGetMacro(YFaceTextRotation,double);
164  vtkSetMacro(ZFaceTextRotation,double);
165  vtkGetMacro(ZFaceTextRotation,double);
167 
169 
171  { return this->Assembly; }
173 
174 protected:
177 
180 
184 
185  void UpdateProps();
186 
193 
195 
199 
206 
213 
216 
218 
219 private:
220  vtkAnnotatedCubeActor(const vtkAnnotatedCubeActor&); // Not implemented.
221  void operator=(const vtkAnnotatedCubeActor&); // Not implemented.
222 };
223 
224 #endif
225 
vtkAnnotatedCubeActor::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkRenderingAnnotationModule.h
vtkAnnotatedCubeActor::XMinusFaceVectorText
vtkVectorText * XMinusFaceVectorText
Definition: vtkAnnotatedCubeActor.h:201
vtkAnnotatedCubeActor::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkAnnotatedCubeActor::SetCubeVisibility
void SetCubeVisibility(int)
vtkAnnotatedCubeActor::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
vtkAnnotatedCubeActor::ZMinusFaceVectorText
vtkVectorText * ZMinusFaceVectorText
Definition: vtkAnnotatedCubeActor.h:205
vtkAnnotatedCubeActor::TextEdgesActor
vtkActor * TextEdgesActor
Definition: vtkAnnotatedCubeActor.h:183
vtkAnnotatedCubeActor::GetAssembly
vtkAssembly * GetAssembly()
Definition: vtkAnnotatedCubeActor.h:170
vtkAnnotatedCubeActor::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkAnnotatedCubeActor::XPlusFaceVectorText
vtkVectorText * XPlusFaceVectorText
Definition: vtkAnnotatedCubeActor.h:200
vtkAnnotatedCubeActor::UpdateProps
void UpdateProps()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkAnnotatedCubeActor::GetActors
virtual void GetActors(vtkPropCollection *)
vtkAnnotatedCubeActor::XMinusFaceText
char * XMinusFaceText
Definition: vtkAnnotatedCubeActor.h:188
vtkAnnotatedCubeActor::New
static vtkAnnotatedCubeActor * New()
vtkAnnotatedCubeActor::Transform
vtkTransform * Transform
Definition: vtkAnnotatedCubeActor.h:215
vtkAnnotatedCubeActor::GetYPlusFaceProperty
vtkProperty * GetYPlusFaceProperty()
vtkAnnotatedCubeActor::YMinusFaceText
char * YMinusFaceText
Definition: vtkAnnotatedCubeActor.h:190
vtkTransform
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
vtkVectorText
create polygonal text
Definition: vtkVectorText.h:47
vtkAnnotatedCubeActor::GetZMinusFaceProperty
vtkProperty * GetZMinusFaceProperty()
vtkAnnotatedCubeActor::XPlusFaceText
char * XPlusFaceText
Definition: vtkAnnotatedCubeActor.h:187
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkAnnotatedCubeActor::YPlusFaceActor
vtkActor * YPlusFaceActor
Definition: vtkAnnotatedCubeActor.h:209
vtkAnnotatedCubeActor::ZPlusFaceText
char * ZPlusFaceText
Definition: vtkAnnotatedCubeActor.h:191
vtkAnnotatedCubeActor::GetMTime
unsigned long int GetMTime()
vtkAnnotatedCubeActor::vtkAnnotatedCubeActor
vtkAnnotatedCubeActor()
vtkAnnotatedCubeActor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAnnotatedCubeActor::GetFaceTextVisibility
int GetFaceTextVisibility()
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:48
vtkAnnotatedCubeActor::XPlusFaceActor
vtkActor * XPlusFaceActor
Definition: vtkAnnotatedCubeActor.h:207
vtkAnnotatedCubeActor::YFaceTextRotation
double YFaceTextRotation
Definition: vtkAnnotatedCubeActor.h:197
vtkAnnotatedCubeActor::TransformFilter
vtkTransformFilter * TransformFilter
Definition: vtkAnnotatedCubeActor.h:214
vtkAnnotatedCubeActor::GetXMinusFaceProperty
vtkProperty * GetXMinusFaceProperty()
vtkAnnotatedCubeActor::GetBounds
void GetBounds(double bounds[6])
vtkAnnotatedCubeActor::GetBounds
double * GetBounds()
vtkAnnotatedCubeActor::YPlusFaceText
char * YPlusFaceText
Definition: vtkAnnotatedCubeActor.h:189
vtkAnnotatedCubeActor::GetZPlusFaceProperty
vtkProperty * GetZPlusFaceProperty()
vtkAnnotatedCubeActor::ZPlusFaceVectorText
vtkVectorText * ZPlusFaceVectorText
Definition: vtkAnnotatedCubeActor.h:204
vtkAnnotatedCubeActor::GetYMinusFaceProperty
vtkProperty * GetYMinusFaceProperty()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkAnnotatedCubeActor::~vtkAnnotatedCubeActor
~vtkAnnotatedCubeActor()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkAnnotatedCubeActor::YMinusFaceActor
vtkActor * YMinusFaceActor
Definition: vtkAnnotatedCubeActor.h:210
vtkFeatureEdges
extract boundary, non-manifold, and/or sharp edges from polygonal data
Definition: vtkFeatureEdges.h:52
vtkAnnotatedCubeActor::ZPlusFaceActor
vtkActor * ZPlusFaceActor
Definition: vtkAnnotatedCubeActor.h:211
vtkAnnotatedCubeActor::AppendTextEdges
vtkAppendPolyData * AppendTextEdges
Definition: vtkAnnotatedCubeActor.h:181
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkAnnotatedCubeActor::GetCubeVisibility
int GetCubeVisibility()
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkAnnotatedCubeActor::ZMinusFaceText
char * ZMinusFaceText
Definition: vtkAnnotatedCubeActor.h:192
vtkAnnotatedCubeActor::XMinusFaceActor
vtkActor * XMinusFaceActor
Definition: vtkAnnotatedCubeActor.h:208
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkAnnotatedCubeActor::SetTextEdgesVisibility
void SetTextEdgesVisibility(int)
vtkAnnotatedCubeActor::CubeSource
vtkCubeSource * CubeSource
Definition: vtkAnnotatedCubeActor.h:178
vtkAnnotatedCubeActor::ZFaceTextRotation
double ZFaceTextRotation
Definition: vtkAnnotatedCubeActor.h:198
vtkCubeSource
create a polygonal representation of a cube
Definition: vtkCubeSource.h:36
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkAnnotatedCubeActor::SetFaceTextVisibility
void SetFaceTextVisibility(int)
vtkAnnotatedCubeActor::FaceTextScale
double FaceTextScale
Definition: vtkAnnotatedCubeActor.h:194
vtkAnnotatedCubeActor::YMinusFaceVectorText
vtkVectorText * YMinusFaceVectorText
Definition: vtkAnnotatedCubeActor.h:203
vtkAnnotatedCubeActor::GetTextEdgesVisibility
int GetTextEdgesVisibility()
vtkTransformFilter
transform points and associated normals and vectors
Definition: vtkTransformFilter.h:49
vtkAnnotatedCubeActor::ShallowCopy
void ShallowCopy(vtkProp *prop)
vtkAnnotatedCubeActor::ExtractTextEdges
vtkFeatureEdges * ExtractTextEdges
Definition: vtkAnnotatedCubeActor.h:182
vtkAnnotatedCubeActor::SetFaceTextScale
void SetFaceTextScale(double)
vtkAnnotatedCubeActor::Assembly
vtkAssembly * Assembly
Definition: vtkAnnotatedCubeActor.h:217
vtkProperty
represent surface properties of a geometric object
Definition: vtkProperty.h:64
vtkAnnotatedCubeActor::XFaceTextRotation
double XFaceTextRotation
Definition: vtkAnnotatedCubeActor.h:196
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkAnnotatedCubeActor::ZMinusFaceActor
vtkActor * ZMinusFaceActor
Definition: vtkAnnotatedCubeActor.h:212
vtkAnnotatedCubeActor::YPlusFaceVectorText
vtkVectorText * YPlusFaceVectorText
Definition: vtkAnnotatedCubeActor.h:202
vtkAnnotatedCubeActor::GetXPlusFaceProperty
vtkProperty * GetXPlusFaceProperty()
vtkAnnotatedCubeActor::GetTextEdgesProperty
vtkProperty * GetTextEdgesProperty()
vtkAnnotatedCubeActor::CubeActor
vtkActor * CubeActor
Definition: vtkAnnotatedCubeActor.h:179
vtkAnnotatedCubeActor
a 3D cube with face labels
Definition: vtkAnnotatedCubeActor.h:63
VTKRENDERINGANNOTATION_EXPORT
#define VTKRENDERINGANNOTATION_EXPORT
Definition: vtkRenderingAnnotationModule.h:15
vtkProp3D.h
vtkAssembly
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
vtkAnnotatedCubeActor::GetCubeProperty
vtkProperty * GetCubeProperty()