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);
61  vtkGetStringMacro(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 
106  virtual void ReleaseGraphicsResources(vtkWindow *);
107 
109 
114  int RenderOpaqueGeometry(vtkViewport* viewport);
115  virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
116  int RenderOverlay(vtkViewport* viewport);
118 
122  virtual int HasTranslucentPolygonalGeometry();
123 
124 protected:
125  vtkTextActor3D();
126  ~vtkTextActor3D();
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
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
vtkProp::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:225
vtkTextActor3D
An actor that displays text.
Definition: vtkTextActor3D.h:49
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkProp::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:219
vtkTextActor3D::ImageActor
vtkImageActor * ImageActor
Definition: vtkTextActor3D.h:130
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
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkProp3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTextActor3D::GetBounds
void GetBounds(double bounds[6])
Definition: vtkTextActor3D.h:90
vtkTextActor3D::BuildTime
vtkTimeStamp BuildTime
Definition: vtkTextActor3D.h:134
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkTextActor3D::TextProperty
vtkTextProperty * TextProperty
Definition: vtkTextActor3D.h:132
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkProp::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:221
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:39
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
vtkProp3D::ShallowCopy
void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp3D.
vtkImageActor
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:49
vtkTextActor3D::Input
char * Input
Definition: vtkTextActor3D.h:128
vtkTextActor3D::ImageData
vtkImageData * ImageData
Definition: vtkTextActor3D.h:131
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:300
vtkProp::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:291
vtkProp3D.h
vtkProp3D::GetBounds
virtual double * GetBounds()=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).