VTK  9.5.2
vtkQWidgetWidget.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
15
16#ifndef vtkQWidgetWidget_h
17#define vtkQWidgetWidget_h
18
19#include "vtkAbstractWidget.h"
20#include "vtkGUISupportQtModule.h" // For export macro
21#include <QPointF> // for ivar
22
23class QWidget;
24
25VTK_ABI_NAMESPACE_BEGIN
27
28class VTKGUISUPPORTQT_EXPORT vtkQWidgetWidget : public vtkAbstractWidget
29{
31
32public:
37
39
43 void PrintSelf(ostream& os, vtkIndent indent) override;
45
52
53 // Description:
54 // Disable/Enable the widget if needed.
55 // Unobserved the camera if the widget is disabled.
56 void SetEnabled(int enabling) override;
57
62
67
71 void SetWidget(QWidget* w);
72 QWidget* GetWidget() { return this->Widget; }
73
74protected:
77
78 // Manage the state of the widget
81 {
82 Start = 0,
84 };
85
86 QWidget* Widget;
90
91 // These methods handle events
95
96private:
97 vtkQWidgetWidget(const vtkQWidgetWidget&) = delete;
98 void operator=(const vtkQWidgetWidget&) = delete;
99};
100
101VTK_ABI_NAMESPACE_END
102#endif
a simple class to control print indentation
Definition vtkIndent.h:29
a class defining the representation for a vtkQWidgetWidget
static vtkQWidgetWidget * New()
Instantiate the object.
~vtkQWidgetWidget() override
QWidget * GetWidget()
friend class vtkInteractionCallback
QPointF SteadyWidgetCoordinates
void SetRepresentation(vtkQWidgetRepresentation *rep)
Specify an instance of vtkQWidgetRepresentation used to represent this widget in the scene.
static void SelectAction3D(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
QPointF LastWidgetCoordinates
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
void SetWidget(QWidget *w)
Set the QWidget that will receive the events.
static void MoveAction3D(vtkAbstractWidget *)
static void EndSelectAction3D(vtkAbstractWidget *)
void SetEnabled(int enabling) override
Methods for activating this widget.
vtkQWidgetRepresentation * GetQWidgetRepresentation()
Return the representation as a vtkQWidgetRepresentation.