vtkSMVRGrabWorldStyleProxy.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 vtkSMVRGrabWorldStyleProxy_h
5 #define vtkSMVRGrabWorldStyleProxy_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 vtkSMVRGrabWorldStyleProxy
19  : public vtkSMVRTrackStyleProxy
20 {
21 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
25 
26 protected:
28  ~vtkSMVRGrabWorldStyleProxy() override;
29 
30  void HandleButton(const vtkVREvent& event) override;
31  void HandleTracker(const vtkVREvent& event) override;
32 
33  bool EnableTranslate; /* mirrors the button assigned the "Translate World" role */
34  bool EnableRotate; /* mirrors the button assigned the "Rotate World" role */
35 
36  bool IsInitialTransRecorded; /* flag indicating that we're in the middle of a translation
37  operation */
38  bool IsInitialRotRecorded; /* flag indicating that we're in the middle of a rotation operation */
39  /* NOTE: only one of translation or rotation can be active at a time */
40 
43 
46 
47 private:
48  vtkSMVRGrabWorldStyleProxy(const vtkSMVRGrabWorldStyleProxy&) = delete; // Not implemented
49  void operator=(const vtkSMVRGrabWorldStyleProxy&) = delete; // Not implemented
50 
51  float GetSpeedFactor(vtkCamera* cam, vtkMatrix4x4* mvmatrix); /* WRS: what does this do? */
52  vtkCamera* GetCamera();
53 };
54 
55 #endif // vtkSMVRGrabWorldStyleProxy_h
vtkNew< vtkMatrix4x4 > CachedRotMatrix
virtual void HandleButton(const vtkVREvent &event)
vtkNew< vtkMatrix4x4 > InverseInitialRotMatrix
property representing a vector of integers
vtkNew< vtkMatrix4x4 > CachedTransMatrix
implementation for View that includes render window and renderers.
property representing a vector of doubles
vtkNew< vtkMatrix4x4 > InverseInitialTransMatrix
void PrintSelf(ostream &os, vtkIndent indent) override
void HandleTracker(const vtkVREvent &event) override
static vtkSMVRTrackStyleProxy * New()