VTK
9.3.1
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
22
#ifndef vtkTextWidget_h
23
#define vtkTextWidget_h
24
25
#include "
vtkBorderWidget.h
"
26
#include "vtkInteractionWidgetsModule.h"
// For export macro
27
28
VTK_ABI_NAMESPACE_BEGIN
29
class
vtkTextRepresentation
;
30
class
vtkTextActor
;
31
32
class
VTKINTERACTIONWIDGETS_EXPORT
vtkTextWidget
:
public
vtkBorderWidget
33
{
34
public
:
38
static
vtkTextWidget
*
New
();
39
41
44
vtkTypeMacro(
vtkTextWidget
,
vtkBorderWidget
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
47
53
void
SetRepresentation
(
vtkTextRepresentation
* r);
54
56
62
void
SetTextActor(
vtkTextActor
* textActor);
63
vtkTextActor
* GetTextActor();
65
69
void
CreateDefaultRepresentation
()
override
;
70
71
protected
:
72
vtkTextWidget
();
73
~
vtkTextWidget
()
override
;
74
75
private
:
76
vtkTextWidget
(
const
vtkTextWidget
&) =
delete
;
77
void
operator=(
const
vtkTextWidget
&) =
delete
;
78
};
79
80
VTK_ABI_NAMESPACE_END
81
#endif
vtkBorderWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkBorderWidget
place a border around a 2D rectangular region
Definition:
vtkBorderWidget.h:78
vtkBorderWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for class.
vtkTextWidget
widget for placing text on overlay plane
Definition:
vtkTextWidget.h:32
vtkBorderWidget::New
static vtkBorderWidget * New()
Method to instantiate class.
vtkTextRepresentation
represent text for vtkTextWidget
Definition:
vtkTextRepresentation.h:30
vtkBorderWidget.h
vtkTextActor
An actor that displays text.
Definition:
vtkTextActor.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:28
vtkBorderWidget::SetRepresentation
void SetRepresentation(vtkBorderRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene...
Definition:
vtkBorderWidget.h:122
Generated on Sun Mar 23 2025 01:24:23 for VTK by
1.8.10