VTK  9.5.20251214
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
80
81#ifndef vtkTextWidget_h
82#define vtkTextWidget_h
83
84#include "vtkBorderWidget.h"
85#include "vtkInteractionWidgetsModule.h" // For export macro
86
87VTK_ABI_NAMESPACE_BEGIN
89class vtkTextActor;
90
91class VTKINTERACTIONWIDGETS_EXPORT vtkTextWidget : public vtkBorderWidget
92{
93public:
97 static vtkTextWidget* New();
98
100
104 void PrintSelf(ostream& os, vtkIndent indent) override;
106
113
115
121 void SetTextActor(vtkTextActor* textActor);
124
129
130protected:
132 ~vtkTextWidget() override;
133
134private:
135 vtkTextWidget(const vtkTextWidget&) = delete;
136 void operator=(const vtkTextWidget&) = delete;
137};
138
139VTK_ABI_NAMESPACE_END
140#endif
a simple class to control print indentation
Definition vtkIndent.h:108
An actor that displays text.
represent text for vtkTextWidget
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
~vtkTextWidget() override
vtkTextActor * GetTextActor()
Specify a vtkTextActor to manage.
static vtkTextWidget * New()
Instantiate class.
void SetTextActor(vtkTextActor *textActor)
Specify a vtkTextActor to manage.
void SetRepresentation(vtkTextRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.