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();
52  vtkTypeMacro(vtkTextActor3D,vtkProp3D);
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 
71  static int GetRenderedDPI() { return 72; }
72 
75  void ShallowCopy(vtkProp *prop);
76 
78 
79  virtual double *GetBounds();
80  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
82 
87  int GetBoundingBox(int bbox[4]);
88 
89  //BTX
94  virtual void ReleaseGraphicsResources(vtkWindow *);
95 
97 
100  int RenderOpaqueGeometry(vtkViewport* viewport);
101  virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
102  int RenderOverlay(vtkViewport* viewport);
104 
106 
107  virtual int HasTranslucentPolygonalGeometry();
108  //ETX
110 
111 protected:
112  vtkTextActor3D();
113  ~vtkTextActor3D();
114 
115  char *Input;
116 
120 
122 
123  virtual int UpdateImageActor();
124 
125 private:
126  vtkTextActor3D(const vtkTextActor3D&); // Not implemented.
127  void operator=(const vtkTextActor3D&); // Not implemented.
128 };
129 
130 
131 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
vtkImageActor * ImageActor
vtkTimeStamp BuildTime
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual int RenderOpaqueGeometry(vtkViewport *)
Definition: vtkProp.h:198
virtual int HasTranslucentPolygonalGeometry()
Definition: vtkProp.h:262
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:204
record modification and/or execution time
Definition: vtkTimeStamp.h:34
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:42
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkProp.h:270
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
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
static int GetRenderedDPI()
void GetBounds(double bounds[6])
An actor that displays text.
represent text properties.
#define VTKRENDERINGCORE_EXPORT
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:200
virtual double * GetBounds()=0
static vtkObject * New()
vtkTextProperty * TextProperty