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
vtkTextActor3D::RenderOverlay
int RenderOverlay(vtkViewport *viewport)
vtkTextActor3D::GetBounds
virtual double * GetBounds()
Get the bounds for this Prop3D as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:47
vtkTextActor3D
An actor that displays text.
Definition: vtkTextActor3D.h:50
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkTextActor3D::ImageActor
vtkImageActor * ImageActor
Definition: vtkTextActor3D.h:130
vtkTextActor3D::~vtkTextActor3D
~vtkTextActor3D()
vtkTextActor3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTextActor3D::New
static vtkTextActor3D * New()
vtkTextActor3D::SetTextProperty
virtual void SetTextProperty(vtkTextProperty *p)
Set/Get the text property.
vtkTextActor3D::GetRenderedDPI
static int GetRenderedDPI()
Since a 3D text actor is not pixel-aligned and positioned in 3D space, the text is rendered at a cons...
Definition: vtkTextActor3D.h:78
vtkTextActor3D::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkTextActor3D::UpdateImageActor
virtual int UpdateImageActor()
vtkTextActor3D::GetBounds
void GetBounds(double bounds[6])
Definition: vtkTextActor3D.h:90
vtkTextActor3D::ShallowCopy
void ShallowCopy(vtkProp *prop)
Shallow copy of this text actor.
vtkTextActor3D::BuildTime
vtkTimeStamp BuildTime
Definition: vtkTextActor3D.h:134
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkTextActor3D::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
Does this prop have some translucent polygonal geometry?
vtkTextActor3D::TextProperty
vtkTextProperty * TextProperty
Definition: vtkTextActor3D.h:132
vtkTextActor3D::GetBoundingBox
int GetBoundingBox(int bbox[4])
Get the vtkTextRenderer-derived bounding box for the given vtkTextProperty and text string str.
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:40
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
vtkTextActor3D::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
vtkImageActor
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:50
vtkTextActor3D::Input
char * Input
Definition: vtkTextActor3D.h:128
vtkTextActor3D::ImageData
vtkImageData * ImageData
Definition: vtkTextActor3D.h:131
vtkTextActor3D::vtkTextActor3D
vtkTextActor3D()
vtkTextActor3D::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkProp3D.h
vtkProp3D::GetBounds
virtual double * GetBounds()=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).