VTK
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
51 class VTKRENDERINGFREETYPE_EXPORT vtkTextActor3D : public vtkProp3D
52 {
53 public:
54  static vtkTextActor3D *New();
55  vtkTypeMacro(vtkTextActor3D,vtkProp3D);
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 
76  virtual double *GetBounds();
77 
82  virtual int GetBoundingBox(int bbox[4]);
83 
84  //BTX
89  virtual void ReleaseGraphicsResources(vtkWindow *);
90 
92 
95  int RenderOpaqueGeometry(vtkViewport* viewport);
96  virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
97  int RenderOverlay(vtkViewport* viewport);
99 
101 
102  virtual int HasTranslucentPolygonalGeometry();
103  //ETX
105 
106 protected:
107  vtkTextActor3D();
108  ~vtkTextActor3D();
109 
110  char *Input;
111 
112  vtkImageActor *ImageActor;
113  vtkImageData *ImageData;
114  vtkTextProperty *TextProperty;
115 
116  vtkTimeStamp BuildTime;
117 
118  virtual int UpdateImageActor();
119 
120 private:
121  vtkTextActor3D(const vtkTextActor3D&); // Not implemented.
122  void operator=(const vtkTextActor3D&); // Not implemented.
123 };
124 
125 
126 #endif
127 
vtkImageActor * ImageActor
vtkTimeStamp BuildTime
vtkImageData * ImageData
An actor that displays text.
vtkTextProperty * TextProperty