VTK
vtkOpenVRPanelWidget.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkOpenVRPanelWidget.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 vtkOpenVRPanelWidget_h
29 #define vtkOpenVRPanelWidget_h
30 
31 #include "vtkRenderingOpenVRModule.h" // For export macro
32 #include "vtkAbstractWidget.h"
33 
35 class vtkPropMap;
36 class vtkProp;
37 
38 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRPanelWidget : public vtkAbstractWidget
39 {
40 public:
44  static vtkOpenVRPanelWidget *New();
45 
47 
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
59  void SetRepresentation(vtkOpenVRPanelRepresentation *rep);
60 
64  void CreateDefaultRepresentation() override;
65 
67 
72  void AddTooltip(vtkProp *prop, vtkStdString* str);
73  void AddTooltip(vtkProp *prop, const char* str);
75 
76 protected:
78  ~vtkOpenVRPanelWidget() override;
79 
80  // Manage the state of the widget
82  enum _WidgetState {Start=0,Active};
83 
87  static void SelectAction3D(vtkAbstractWidget*);
88  static void EndSelectAction3D(vtkAbstractWidget*);
89  static void MoveAction3D(vtkAbstractWidget*);
90 
91 private:
93  void operator=(const vtkOpenVRPanelWidget&) = delete;
94 };
95 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:40
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
3D widget to popup a tooltip when a prop is hovered by a controller.
define the API for widget / widget representation
Widget representation for vtkOpenVRPanelWidget Implementation of the popup panel representation for t...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...