VTK  9.2.6
vtkVRPanelWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkVRPanelWidget.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef vtkVRPanelWidget_h
29 #define vtkVRPanelWidget_h
30 
31 #include "vtkAbstractWidget.h"
32 #include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
33 #include "vtkRenderingVRModule.h" // For export macro
34 
36 
37 class VTKRENDERINGVR_EXPORT vtkVRPanelWidget : public vtkAbstractWidget
38 {
39 public:
43  static vtkVRPanelWidget* New();
44 
46 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
58  void SetRepresentation(vtkVRPanelRepresentation* rep);
59 
63  void CreateDefaultRepresentation() override;
64 
65 protected:
67  ~vtkVRPanelWidget() override = default;
68 
69  // Manage the state of the widget
72  {
73  Start = 0,
74  Active
75  };
76 #if !defined(VTK_LEGACY_REMOVE)
77  VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
79 #endif
80 
84  static void SelectAction3D(vtkAbstractWidget*);
85  static void EndSelectAction3D(vtkAbstractWidget*);
86  static void MoveAction3D(vtkAbstractWidget*);
87 
88 private:
89  vtkVRPanelWidget(const vtkVRPanelWidget&) = delete;
90  void operator=(const vtkVRPanelWidget&) = delete;
91 };
92 #endif
#define VTK_DEPRECATED_IN_9_2_0(reason)
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:39
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...