VTK  9.5.2
vtkTextActorInterfaceInternal.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3#ifndef vtkTextActorInterfaceInternal_h
4#define vtkTextActorInterfaceInternal_h
5
6#include "vtkNew.h"
7#include "vtkSmartPointer.h"
8
9#include <string>
10
11VTK_ABI_NAMESPACE_BEGIN
12
13class vtkAxisActor;
14class vtkAxisFollower;
15class vtkCamera;
17class vtkProp;
20class vtkProperty;
21class vtkTextActor3D;
22class vtkTextActor;
23class vtkTextProperty;
24class vtkVectorText;
25
34{
35public:
38
42 void SetInputText(const std::string& text);
43 std::string GetInputText();
44
48 void SetCamera(vtkCamera* camera);
49
53 void SetAxis(vtkAxisActor* axis);
54
61 vtkProp* GetActiveProp(bool overlay, bool vector);
62
67
71 void SetAmbient(double amb);
72
76 void SetDiffuse(double diffuse);
77
81 void GetActors(vtkPropCollection* collection);
82
87 void SetScale(double s);
88
95
99 void GetBounds(double bounds[6]);
100
104 void SetPosition(double pos[3]);
105
109 void GetReferencePosition(double pos[3]);
110
114 void SetDisplayPosition(double x, double y);
115
120 void RotateActor2DFromAxisProjection(double p1[3], double p2[3]);
121
123
126 void SetScreenOffset(double offset);
127 void SetScreenOffsetVector(double offset[2]);
129
134 // VTK_DEPRECATED_IN_9_5_0
136
141 // VTK_DEPRECATED_IN_9_5_0
143
144private:
145 void operator=(const vtkTextActorInterfaceInternal&) = delete;
147
149
150 vtkNew<vtkTextActor> Actor2D;
154
156};
157
158VTK_ABI_NAMESPACE_END
159#endif
Create an axis with tick marks and labels.
a subclass of vtkFollower that ensures that data is always parallel to the axis defined by a vtkAxisA...
a virtual camera for 3D rendering
Definition vtkCamera.h:151
Allocate and hold a VTK object.
Definition vtkNew.h:167
map vtkPolyData to graphics primitives
a subclass of vtkProp3DFollower that ensures that data is always parallel to the axis defined by a vt...
an ordered list of Props
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
represent surface properties of a geometric object
Hold a reference to a vtkObjectBase instance.
An actor that displays text.
VTK Internal interface to manipulate text actors from vtkAxisActor.
void RotateActor2DFromAxisProjection(double p1[3], double p2[3])
Set orientation of the actor 2D to keep the axis orientation.
void SetAmbient(double amb)
Set ambient coefficient.
void SetCamera(vtkCamera *camera)
Set the current camera.
void SetAxis(vtkAxisActor *axis)
Set the axis to follow.
void SetScale(double s)
Set scale on the Follower and Follower3D.
vtkAxisFollower * GetFollower() const
Return the internal follower.
void UpdateProperty(vtkTextProperty *textProp, vtkProperty *prop)
Update the actors from the given text property.
void SetInputText(const std::string &text)
Set the text to be displayed.
void GetBounds(double bounds[6])
Get the bounds of the text.
void GetActors(vtkPropCollection *collection)
Fill the collection with all vtkProp members.
void SetDisplayPosition(double x, double y)
Update internal screen space actors position.
vtkProp * GetActiveProp(bool overlay, bool vector)
Get the vtkProp to be used in the given mode: if overlay is true, return the vtkTextActor (rasterized...
void AdjustScale()
Adjust the scale of Actor3D, based on Follower mapper bounds, so switching them provide consistent si...
void SetDiffuse(double diffuse)
Set diffuse coefficient.
void GetReferencePosition(double pos[3])
Get the reference position in 3D space.
vtkProp3DAxisFollower * GetFollower3D() const
Return the internal follower 3D.
void SetPosition(double pos[3])
Update internal 3D actors position.
void SetScreenOffsetVector(double offset[2])
Set Screen offset on axis followers.
void SetScreenOffset(double offset)
Set Screen offset on axis followers.
An actor that displays text.
represent text properties.
create polygonal text