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 =========================================================================*/
33 #ifndef vtkTextActor3D_h
34 #define vtkTextActor3D_h
35 
36 #include "vtkRenderingCoreModule.h" // For export macro
37 #include "vtkProp3D.h"
38 
39 class vtkImageActor;
40 class vtkImageData;
41 class vtkTextProperty;
42 
43 class VTKRENDERINGCORE_EXPORT vtkTextActor3D : public vtkProp3D
44 {
45 public:
46  static vtkTextActor3D *New();
47  vtkTypeMacro(vtkTextActor3D,vtkProp3D);
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
49 
51 
54  vtkSetStringMacro(Input);
55  vtkGetStringMacro(Input);
57 
59 
62  virtual void SetTextProperty(vtkTextProperty *p);
63  vtkGetObjectMacro(TextProperty,vtkTextProperty);
65 
72  static int GetRenderedDPI() { return 72; }
73 
78  void ShallowCopy(vtkProp *prop) VTK_OVERRIDE;
79 
83  double *GetBounds() VTK_OVERRIDE;
84  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
85 
91  int GetBoundingBox(int bbox[4]);
92 
100  void ReleaseGraphicsResources(vtkWindow *) VTK_OVERRIDE;
101 
106  virtual void SetForceOpaque(bool opaque);
107  virtual bool GetForceOpaque();
108  virtual void ForceOpaqueOn();
109  virtual void ForceOpaqueOff();
110  virtual void SetForceTranslucent(bool trans);
111  virtual bool GetForceTranslucent();
112  virtual void ForceTranslucentOn();
113  virtual void ForceTranslucentOff();
122  int RenderOpaqueGeometry(vtkViewport* viewport) VTK_OVERRIDE;
123  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) VTK_OVERRIDE;
124  int RenderOverlay(vtkViewport* viewport) VTK_OVERRIDE;
126 
130  int HasTranslucentPolygonalGeometry() VTK_OVERRIDE;
131 
132 protected:
133  vtkTextActor3D();
134  ~vtkTextActor3D() VTK_OVERRIDE;
135 
136  char *Input;
137 
138  vtkImageActor *ImageActor;
139  vtkImageData *ImageData;
140  vtkTextProperty *TextProperty;
141 
143 
144  virtual int UpdateImageActor();
145 
146 private:
147  vtkTextActor3D(const vtkTextActor3D&) VTK_DELETE_FUNCTION;
148  void operator=(const vtkTextActor3D&) VTK_DELETE_FUNCTION;
149 };
150 
151 
152 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:44
vtkTimeStamp BuildTime
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
abstract specification for Viewports
Definition: vtkViewport.h:44
record modification and/or execution time
Definition: vtkTimeStamp.h:32
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:297
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:43
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
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...
An actor that displays text.
represent text properties.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...