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 =========================================================================*/
41 #ifndef __vtkTextActor3D_h
42 #define __vtkTextActor3D_h
43 
44 #include "vtkRenderingFreeTypeModule.h" // For export macro
45 #include "vtkProp3D.h"
46 
47 class vtkImageActor;
48 class vtkImageData;
49 class vtkTextProperty;
50 
52 {
53 public:
54  static vtkTextActor3D *New();
56  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  vtkSetStringMacro(Input);
61  vtkGetStringMacro(Input);
63 
65 
66  virtual void SetTextProperty(vtkTextProperty *p);
67  vtkGetObjectMacro(TextProperty,vtkTextProperty);
69 
72  void ShallowCopy(vtkProp *prop);
73 
75 
76  virtual double *GetBounds();
77  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
79 
84  virtual int GetBoundingBox(int bbox[4]);
85 
86  //BTX
91  virtual void ReleaseGraphicsResources(vtkWindow *);
92 
94 
97  int RenderOpaqueGeometry(vtkViewport* viewport);
98  virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
99  int RenderOverlay(vtkViewport* viewport);
101 
103 
104  virtual int HasTranslucentPolygonalGeometry();
105  //ETX
107 
108 protected:
109  vtkTextActor3D();
110  ~vtkTextActor3D();
111 
112  char *Input;
113 
117 
119 
120  virtual int UpdateImageActor();
121 
122 private:
123  vtkTextActor3D(const vtkTextActor3D&); // Not implemented.
124  void operator=(const vtkTextActor3D&); // Not implemented.
125 };
126 
127 
128 #endif
129 
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkImageActor * ImageActor
vtkTimeStamp BuildTime
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:177
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:241
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:183
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 VTKRENDERINGFREETYPE_EXPORT
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:249
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
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:179
virtual double * GetBounds()=0
static vtkObject * New()
vtkTextProperty * TextProperty
GLfloat GLfloat p
Definition: vtkgl.h:15717