VTK: Interaction/Widgets/vtkPlaybackWidget.h Source File

| VTK 9.3.1

vtkPlaybackWidget.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
19 #ifndef vtkPlaybackWidget_h
20 #define vtkPlaybackWidget_h
21
22 #include "vtkBorderWidget.h"
23 #include "vtkInteractionWidgetsModule.h" // For export macro
24
25 VTK_ABI_NAMESPACE_BEGIN
26 class vtkPlaybackRepresentation;
27
28 class VTKINTERACTIONWIDGETS_EXPORT vtkPlaybackWidget : public vtkBorderWidget
29 {
30 public:
34 static vtkPlaybackWidget* New();
35
37
40 vtkTypeMacro(vtkPlaybackWidget, vtkBorderWidget);
41 void PrintSelf(ostream& os, vtkIndent indent) override;
43
49 void SetRepresentation(vtkPlaybackRepresentation* r)
50 {
51 this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));
52 }
53
57 void CreateDefaultRepresentation() override;
58
59 protected:
60 vtkPlaybackWidget();
61 ~vtkPlaybackWidget() override;
62
67 void SelectRegion(double eventPos[2]) override;
68
69 private:
70 vtkPlaybackWidget(const vtkPlaybackWidget&) = delete;
71 void operator=(const vtkPlaybackWidget&) = delete;
72 };
73
74 VTK_ABI_NAMESPACE_END
75 #endif
vtkAbstractWidget::SetWidgetRepresentation
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkBorderWidget
place a border around a 2D rectangular region
Definition: vtkBorderWidget.h:88
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPlaybackRepresentation
represent the vtkPlaybackWidget
Definition: vtkPlaybackRepresentation.h:35
vtkPlaybackWidget
2D widget for controlling a playback stream
Definition: vtkPlaybackWidget.h:29
vtkPlaybackWidget::~vtkPlaybackWidget
~vtkPlaybackWidget() override
vtkPlaybackWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class methods.
vtkPlaybackWidget::New
static vtkPlaybackWidget * New()
Instantiate this class.
vtkPlaybackWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkPlaybackWidget::SetRepresentation
void SetRepresentation(vtkPlaybackRepresentation *r)
Specify an instance of vtkPlaybackRepresentation used to represent this widget in the scene.
Definition: vtkPlaybackWidget.h:49
vtkPlaybackWidget::SelectRegion
void SelectRegion(double eventPos[2]) override
When selecting the interior of this widget, special operations occur (i.e., operating the playback co...
vtkPlaybackWidget::vtkPlaybackWidget
vtkPlaybackWidget()
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition: vtkWidgetRepresentation.h:65
vtkBorderWidget.h