vtkSMVRGrabPointStyleProxy.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
4 #ifndef vtkSMVRGrabPointStyleProxy_h
5 #define vtkSMVRGrabPointStyleProxy_h
6 
7 #include "vtkNew.h"
8 #include "vtkPVIncubatorCAVEInteractionStylesModule.h" // for export macro
10 
11 class vtkCamera;
12 class vtkMatrix4x4;
16 struct vtkVREvent;
17 
18 class VTKPVINCUBATORCAVEINTERACTIONSTYLES_EXPORT vtkSMVRGrabPointStyleProxy
20 {
21 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25  int GetControlledPropertySize() override { return 3; }
26 
31  bool Update() override;
32 
33 protected:
35  ~vtkSMVRGrabPointStyleProxy() override;
36 
37  void HandleButton(const vtkVREvent& event) override;
38  void HandleTracker(const vtkVREvent& event) override;
39 
40  bool EnableNavigate; /* mirrors the button assigned the "Navigate World" role */
41  bool IsInitialRecorded; /* flag indicating that we're in the middle of a navigation operation */
42  double Origin[4];
43 
46 
47 private:
48  vtkSMVRGrabPointStyleProxy(const vtkSMVRGrabPointStyleProxy&) = delete; // Not implemented
49  void operator=(const vtkSMVRGrabPointStyleProxy&) = delete; // Not implemented
50 
51  float GetSpeedFactor(vtkCamera* cam); // WRS-TODO: what does this do?
52  vtkCamera* GetCamera(); // WRS-TODO: how is this used?
53 };
54 
55 #endif // vtkSMVRGrabPointStyleProxy_h
virtual void HandleButton(const vtkVREvent &event)
property representing a vector of integers
vtkNew< vtkMatrix4x4 > SavedModelViewMatrix
implementation for View that includes render window and renderers.
property representing a vector of doubles
virtual void HandleTracker(const vtkVREvent &event)
void PrintSelf(ostream &os, vtkIndent indent) override
vtkNew< vtkMatrix4x4 > SavedInverseWandMatrix
static vtkSMVRInteractorStyleProxy * New()
virtual bool Update()
Update() called to update all the remote vtkObjects and perhaps even to render.