vtkSMVRStylusStyleProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSMVRStylusStyleProxy_h
14 #define vtkSMVRStylusStyleProxy_h
15 
16 #include "vtkPVIncubatorCAVEInteractionStylesModule.h" // for export macro
17 #include "vtkSMVRTrackStyleProxy.h"
18 
19 struct vtkVREvent;
20 
21 class VTKPVINCUBATORCAVEINTERACTIONSTYLES_EXPORT vtkSMVRStylusStyleProxy
22  : public vtkSMVRTrackStyleProxy
23 {
24 public:
25  static vtkSMVRStylusStyleProxy* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
29 protected:
31  ~vtkSMVRStylusStyleProxy() override = default;
32 
33  void HandleButton(const vtkVREvent& event) override;
34  void HandleTracker(const vtkVREvent& event) override;
35 
38 
39 private:
41  void operator=(const vtkSMVRStylusStyleProxy&) = delete;
42 
43  double LastRecordedPosition[3];
44  bool PositionRecorded;
45 };
46 
47 #endif // vtkSMVRStylusStyleProxy_h
virtual void HandleButton(const vtkVREvent &event)
an interaction style to control translation and rotation with a stylus
void PrintSelf(ostream &os, vtkIndent indent) override
void HandleTracker(const vtkVREvent &event) override
static vtkSMVRTrackStyleProxy * New()