VTK  9.6.20260415
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
120
121#ifndef vtkTextWidget_h
122#define vtkTextWidget_h
123
124#include "vtkBorderWidget.h"
125#include "vtkInteractionWidgetsModule.h" // For export macro
126
127VTK_ABI_NAMESPACE_BEGIN
129class vtkTextActor;
130
131class VTKINTERACTIONWIDGETS_EXPORT vtkTextWidget : public vtkBorderWidget
132{
133public:
138
140
144 void PrintSelf(ostream& os, vtkIndent indent) override;
146
153
155
161 void SetTextActor(vtkTextActor* textActor);
164
169
170protected:
172 ~vtkTextWidget() override;
173
174private:
175 vtkTextWidget(const vtkTextWidget&) = delete;
176 void operator=(const vtkTextWidget&) = delete;
177};
178
179VTK_ABI_NAMESPACE_END
180#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.