VTK  9.7.1
vtkVRPanelWidget.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
16 #ifndef vtkVRPanelWidget_h
17 #define vtkVRPanelWidget_h
18 
19 #include "vtkAbstractWidget.h"
20 #include "vtkRenderingVRModule.h" // For export macro
21 
22 VTK_ABI_NAMESPACE_BEGIN
24 
25 class VTKRENDERINGVR_EXPORT vtkVRPanelWidget : public vtkAbstractWidget
26 {
27 public:
31  static vtkVRPanelWidget* New();
32 
34 
38  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
46  void SetRepresentation(vtkVRPanelRepresentation* rep);
47 
51  void CreateDefaultRepresentation() override;
52 
53 protected:
55  ~vtkVRPanelWidget() override = default;
56 
57  // Manage the state of the widget
60  {
61  Start = 0,
62  Active
63  };
64 
68  static void SelectAction3D(vtkAbstractWidget*);
69  static void EndSelectAction3D(vtkAbstractWidget*);
70  static void MoveAction3D(vtkAbstractWidget*);
71 
72 private:
73  vtkVRPanelWidget(const vtkVRPanelWidget&) = delete;
74  void operator=(const vtkVRPanelWidget&) = delete;
75 };
76 VTK_ABI_NAMESPACE_END
77 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros implementing standard VTK methods.
virtual void CreateDefaultRepresentation()=0
Create the default widget representation if one is not set.
a simple class to control print indentation
Definition: vtkIndent.h:28
Widget representation for vtkVRPanelWidget Implementation of the popup panel representation for the v...
define the API for widget / widget representation
3D widget to display a panel/billboard
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...