VTK
vtkTextActor3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTextActor3D.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 =========================================================================*/
38 #ifndef vtkTextActor3D_h
39 #define vtkTextActor3D_h
40 
41 #include "vtkRenderingCoreModule.h" // For export macro
42 #include "vtkProp3D.h"
43 
44 class vtkImageActor;
45 class vtkImageData;
46 class vtkTextProperty;
47 
49 {
50 public:
51  static vtkTextActor3D *New();
53  void PrintSelf(ostream& os, vtkIndent indent);
54 
56 
57  vtkSetStringMacro(Input);
58  vtkGetStringMacro(Input);
60 
62 
63  virtual void SetTextProperty(vtkTextProperty *p);
64  vtkGetObjectMacro(TextProperty,vtkTextProperty);
66 
69  void ShallowCopy(vtkProp *prop);
70 
72 
73  virtual double *GetBounds();
74  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
76 
81  virtual int GetBoundingBox(int bbox[4]);
82 
83  //BTX
88  virtual void ReleaseGraphicsResources(vtkWindow *);
89 
91 
94  int RenderOpaqueGeometry(vtkViewport* viewport);
95  virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
96  int RenderOverlay(vtkViewport* viewport);
98 
100 
101  virtual int HasTranslucentPolygonalGeometry();
102  //ETX
104 
105 protected:
106  vtkTextActor3D();
107  ~vtkTextActor3D();
108 
109  char *Input;
110 
114 
116 
117  virtual int UpdateImageActor();
118 
119 private:
120  vtkTextActor3D(const vtkTextActor3D&); // Not implemented.
121  void operator=(const vtkTextActor3D&); // Not implemented.
122 };
123 
124 
125 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
vtkImageActor * ImageActor
vtkTimeStamp BuildTime
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:203
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:267
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:209
record modification and/or execution time
Definition: vtkTimeStamp.h:34
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:42
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:94
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:632
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:275
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
void ShallowCopy(vtkProp *prop)
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:48
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
vtkImageData * ImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
void GetBounds(double bounds[6])
An actor that displays text.
#define vtkGetStringMacro(name)
Definition: vtkSetGet.h:120
represent text properties.
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
#define VTKRENDERINGCORE_EXPORT
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:205
virtual double * GetBounds()=0
static vtkObject * New()
vtkTextProperty * TextProperty
GLfloat GLfloat p
Definition: vtkgl.h:15717