VTK  9.5.2
vtkCaptionWidget.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
28
29#ifndef vtkCaptionWidget_h
30#define vtkCaptionWidget_h
31
32#include "vtkBorderWidget.h"
33#include "vtkInteractionWidgetsModule.h" // For export macro
34#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
35
36VTK_ABI_NAMESPACE_BEGIN
39class vtkHandleWidget;
41class vtkCaptionAnchorCallback;
42
43class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkCaptionWidget : public vtkBorderWidget
44{
45public:
50
52
56 void PrintSelf(ostream& os, vtkIndent indent) override;
58
63 void SetEnabled(int enabling) override;
64
74
76
84
89
90protected:
93
94 // Handles callbacks from the anchor point
96
97 // Widget for the anchor point
99
100 // Special callbacks for the anchor interaction
104
106
107private:
108 vtkCaptionWidget(const vtkCaptionWidget&) = delete;
109 void operator=(const vtkCaptionWidget&) = delete;
110};
111
112VTK_ABI_NAMESPACE_END
113#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
draw text label associated with a point
represents vtkCaptionWidget in the scene
void AnchorInteraction()
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
void StartAnchorInteraction()
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the caption leader has its own dedicated widget.
vtkHandleWidget * HandleWidget
vtkCaptionActor2D * GetCaptionActor2D()
Specify a vtkCaptionActor2D to manage.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
friend class vtkCaptionAnchorCallback
void SetRepresentation(vtkCaptionRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
void SetCaptionActor2D(vtkCaptionActor2D *capActor)
Specify a vtkCaptionActor2D to manage.
static vtkCaptionWidget * New()
Instantiate this class.
void EndAnchorInteraction()
vtkCaptionAnchorCallback * AnchorCallback
~vtkCaptionWidget() override
a general widget for moving handles
a simple class to control print indentation
Definition vtkIndent.h:29
represent the position of a point in 3D space
abstract class defines interface between the widget and widget representation classes
#define VTK_MARSHALAUTO