VTK  9.3.0
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
28VTK_ABI_NAMESPACE_BEGIN
30class vtkTextActor;
31
32class VTKINTERACTIONWIDGETS_EXPORT vtkTextWidget : public vtkBorderWidget
33{
34public:
38 static vtkTextWidget* New();
39
41
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
54
56
62 void SetTextActor(vtkTextActor* textActor);
65
70
71protected:
73 ~vtkTextWidget() override;
74
75private:
76 vtkTextWidget(const vtkTextWidget&) = delete;
77 void operator=(const vtkTextWidget&) = delete;
78};
79
80VTK_ABI_NAMESPACE_END
81#endif
place a border around a 2D rectangular region
a simple class to control print indentation
Definition vtkIndent.h:29
An actor that displays text.
represent text for vtkTextWidget
widget for placing text on overlay plane
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.