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 =========================================================================*/
39 #ifndef vtkTextActor3D_h
40 #define vtkTextActor3D_h
41 
42 #include "vtkRenderingCoreModule.h" // For export macro
43 #include "vtkProp3D.h"
44 
45 class vtkImageActor;
46 class vtkImageData;
47 class vtkTextProperty;
48 
49 class VTKRENDERINGCORE_EXPORT vtkTextActor3D : public vtkProp3D
50 {
51 public:
52  static vtkTextActor3D *New();
53  vtkTypeMacro(vtkTextActor3D,vtkProp3D);
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
57 
60  vtkSetStringMacro(Input);
63 
65 
68  virtual void SetTextProperty(vtkTextProperty *p);
69  vtkGetObjectMacro(TextProperty,vtkTextProperty);
71 
78  static int GetRenderedDPI() { return 72; }
79 
84  void ShallowCopy(vtkProp *prop);
85 
89  virtual double *GetBounds();
90  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
91 
97  int GetBoundingBox(int bbox[4]);
98 
107 
109 
116  int RenderOverlay(vtkViewport* viewport);
118 
123 
124 protected:
127 
128  char *Input;
129 
133 
135 
136  virtual int UpdateImageActor();
137 
138 private:
139  vtkTextActor3D(const vtkTextActor3D&) VTK_DELETE_FUNCTION;
140  void operator=(const vtkTextActor3D&) VTK_DELETE_FUNCTION;
141 };
142 
143 
144 #endif
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:50
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
virtual double * GetBounds()=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
An actor that displays text.
static int GetRenderedDPI()
Since a 3D text actor is not pixel-aligned and positioned in 3D space, the text is rendered at a cons...
void ShallowCopy(vtkProp *prop)
Shallow copy of this text actor.
vtkImageActor * ImageActor
int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetTextProperty(vtkTextProperty *p)
Set/Get the text property.
int RenderOverlay(vtkViewport *viewport)
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
int GetBoundingBox(int bbox[4])
Get the vtkTextRenderer-derived bounding box for the given vtkTextProperty and text string str.
vtkImageData * ImageData
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
virtual double * GetBounds()
Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkTextProperty * TextProperty
void GetBounds(double bounds[6])
vtkTimeStamp BuildTime
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
static vtkTextActor3D * New()
virtual int UpdateImageActor()
represent text properties.
record modification and/or execution time
Definition: vtkTimeStamp.h:36
abstract specification for Viewports
Definition: vtkViewport.h:48
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.