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 "vtkProp3D.h"
45 
46 class vtkImageActor;
47 class vtkImageData;
48 class vtkTextProperty;
49 
51 {
52 public:
53  static vtkTextActor3D *New();
54  vtkTypeMacro(vtkTextActor3D,vtkProp3D);
55  void PrintSelf(ostream& os, vtkIndent indent);
56 
58 
59  vtkSetStringMacro(Input);
60  vtkGetStringMacro(Input);
62 
64 
65  virtual void SetTextProperty(vtkTextProperty *p);
66  vtkGetObjectMacro(TextProperty,vtkTextProperty);
68 
71  void ShallowCopy(vtkProp *prop);
72 
75  virtual double *GetBounds();
76 
81  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
126