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 #include <string> // for ivar
39 
40 class vtkImageActor;
41 class vtkImageData;
42 class vtkTextProperty;
43 
44 class VTKRENDERINGCORE_EXPORT vtkTextActor3D : public vtkProp3D
45 {
46 public:
47  static vtkTextActor3D *New();
48  vtkTypeMacro(vtkTextActor3D,vtkProp3D);
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  vtkSetStringMacro(Input);
56  vtkGetStringMacro(Input);
58 
60 
63  virtual void SetTextProperty(vtkTextProperty *p);
64  vtkGetObjectMacro(TextProperty,vtkTextProperty);
66 
73  static int GetRenderedDPI() { return 72; }
74 
79  void ShallowCopy(vtkProp *prop) override;
80 
84  double *GetBounds() VTK_SIZEHINT(6) override;
85  void GetBounds(double bounds[6]) {this->vtkProp3D::GetBounds( bounds );}
86 
92  int GetBoundingBox(int bbox[4]);
93 
101  void ReleaseGraphicsResources(vtkWindow *) override;
102 
107  virtual void SetForceOpaque(bool opaque);
108  virtual bool GetForceOpaque();
109  virtual void ForceOpaqueOn();
110  virtual void ForceOpaqueOff();
111  virtual void SetForceTranslucent(bool trans);
112  virtual bool GetForceTranslucent();
113  virtual void ForceTranslucentOn();
114  virtual void ForceTranslucentOff();
123  int RenderOpaqueGeometry(vtkViewport* viewport) override;
124  int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;
125  int RenderOverlay(vtkViewport* viewport) override;
127 
131  int HasTranslucentPolygonalGeometry() override;
132 
133 protected:
134  vtkTextActor3D();
135  ~vtkTextActor3D() override;
136 
137  char *Input;
138 
142 
145 
146  virtual int UpdateImageActor();
147 
148 private:
149  vtkTextActor3D(const vtkTextActor3D&) = delete;
150  void operator=(const vtkTextActor3D&) = delete;
151 };
152 
153 
154 #endif
vtkProp3D
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
vtkProp::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
Definition: vtkProp.h:224
vtkProp3D::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTextActor3D
An actor that displays text.
Definition: vtkTextActor3D.h:44
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:32
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:218
vtkTextActor3D::ImageActor
vtkImageActor * ImageActor
Definition: vtkTextActor3D.h:139
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:73
vtkProp3D::GetBounds
double * GetBounds() override=0
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
VTK_SIZEHINT
#define VTK_SIZEHINT(...)
Definition: vtkWrappingHints.h:42
vtkTextActor3D::BuildTime
vtkTimeStamp BuildTime
Definition: vtkTextActor3D.h:143
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTextActor3D::TextProperty
vtkTextProperty * TextProperty
Definition: vtkTextActor3D.h:141
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:44
vtkProp::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
Definition: vtkProp.h:220
vtkTextProperty
represent text properties.
Definition: vtkTextProperty.h:33
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:46
vtkX3D::string
Definition: vtkX3D.h:490
vtkProp3D::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
vtkImageActor
draw an image in a rendered 3D scene
Definition: vtkImageActor.h:43
vtkTextActor3D::Input
char * Input
Definition: vtkTextActor3D.h:137
vtkTextActor3D::ImageData
vtkImageData * ImageData
Definition: vtkTextActor3D.h:140
vtkProp::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
Definition: vtkProp.h:299
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:290
vtkProp3D.h
vtkTextActor3D::LastInputString
std::string LastInputString
Definition: vtkTextActor3D.h:144