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
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkImageActor * ImageActor
vtkTimeStamp BuildTime
abstract specification for Viewports
Definition: vtkViewport.h:47
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:222
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
Definition: vtkProp.h:294
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:228
record modification and/or execution time
Definition: vtkTimeStamp.h:35
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:303
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
void ShallowCopy(vtkProp *prop)
Shallow copy of this vtkProp3D.
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:49
a simple class to control print indentation
Definition: vtkIndent.h:39
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageData * ImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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 GetBounds(double bounds[6])
An actor that displays text.
represent text properties.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:224
virtual double * GetBounds()=0
Return a reference to the Prop3D's composite transform.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkTextProperty * TextProperty