VTK
9.4.20241123
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkTextWidget.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
41
#ifndef vtkTextWidget_h
42
#define vtkTextWidget_h
43
44
#include "
vtkBorderWidget.h
"
45
#include "vtkInteractionWidgetsModule.h"
// For export macro
46
47
VTK_ABI_NAMESPACE_BEGIN
48
class
vtkTextRepresentation
;
49
class
vtkTextActor
;
50
51
class
VTKINTERACTIONWIDGETS_EXPORT
vtkTextWidget
:
public
vtkBorderWidget
52
{
53
public
:
57
static
vtkTextWidget
*
New
();
58
60
63
vtkTypeMacro(
vtkTextWidget
,
vtkBorderWidget
);
64
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
66
72
void
SetRepresentation
(
vtkTextRepresentation
* r);
73
75
81
void
SetTextActor
(
vtkTextActor
* textActor);
82
vtkTextActor
*
GetTextActor
();
84
88
void
CreateDefaultRepresentation
()
override
;
89
90
protected
:
91
vtkTextWidget
();
92
~vtkTextWidget
()
override
;
93
94
private
:
95
vtkTextWidget
(
const
vtkTextWidget
&) =
delete
;
96
void
operator=(
const
vtkTextWidget
&) =
delete
;
97
};
98
99
VTK_ABI_NAMESPACE_END
100
#endif
vtkBorderWidget
place a border around a 2D rectangular region
Definition
vtkBorderWidget.h:137
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkTextActor
An actor that displays text.
Definition
vtkTextActor.h:156
vtkTextRepresentation
represent text for vtkTextWidget
Definition
vtkTextRepresentation.h:50
vtkTextWidget
widget for placing text on overlay plane
Definition
vtkTextWidget.h:52
vtkTextWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
vtkTextWidget::~vtkTextWidget
~vtkTextWidget() override
vtkTextWidget::GetTextActor
vtkTextActor * GetTextActor()
Specify a vtkTextActor to manage.
vtkTextWidget::New
static vtkTextWidget * New()
Instantiate class.
vtkTextWidget::SetTextActor
void SetTextActor(vtkTextActor *textActor)
Specify a vtkTextActor to manage.
vtkTextWidget::SetRepresentation
void SetRepresentation(vtkTextRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
vtkTextWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkTextWidget::vtkTextWidget
vtkTextWidget()
vtkBorderWidget.h
Generated on Sat Nov 23 2024 09:51:07 for VTK by
1.9.7