Showing the changes to interface/src/Application.h (1 of 214 files). Show all
Unified · Split
| @@ -62,12 +62,12 @@ · 61 unmodified lines | ||
| 62 | 62 | #include "ui/ModelsBrowser.h" |
| 63 | 63 | #include "ui/NodeBounds.h" |
| 64 | 64 | #include "ui/OctreeStatsDialog.h" |
| 65 | −#include "ui/RearMirrorTools.h" | |
| 66 | 65 | #include "ui/SnapshotShareDialog.h" |
| 67 | 66 | #include "ui/LodToolsDialog.h" |
| 68 | 67 | #include "ui/LogDialog.h" |
| 69 | 68 | #include "ui/overlays/Overlays.h" |
| 70 | 69 | #include "ui/ApplicationOverlay.h" |
| 70 | +#include "ui/ApplicationCompositor.h" | |
| 71 | 71 | #include "ui/RunningScriptsWidget.h" |
| 72 | 72 | #include "ui/ToolWindow.h" |
| 73 | 73 | #include "ui/UserInputMapper.h" |
| @@ -221,15 +221,21 @@ public: · 147 unmodified lines | ||
| 221 | 221 | const glm::vec3& getMouseRayOrigin() const { return _mouseRayOrigin; } |
| 222 | 222 | const glm::vec3& getMouseRayDirection() const { return _mouseRayDirection; } |
| 223 | 223 | bool mouseOnScreen() const; |
| 224 | − int getMouseX() const; | |
| 225 | − int getMouseY() const; | |
| 226 | − glm::ivec2 getTrueMousePosition() const; | |
| 227 | − int getTrueMouseX() const; | |
| 228 | − int getTrueMouseY() const; | |
| 229 | − int getMouseDragStartedX() const; | |
| 230 | − int getMouseDragStartedY() const; | |
| 231 | − int getTrueMouseDragStartedX() const { return _mouseDragStartedX; } | |
| 232 | − int getTrueMouseDragStartedY() const { return _mouseDragStartedY; } | |
| 224 | + | |
| 225 | + ivec2 getMouse() const; | |
| 226 | + ivec2 getTrueMouse() const; | |
| 227 | + ivec2 getMouseDragStarted() const; | |
| 228 | + ivec2 getTrueMouseDragStarted() const; | |
| 229 | + | |
| 230 | + // TODO get rid of these and use glm types directly | |
| 231 | + int getMouseX() const { return getMouse().x; } | |
| 232 | + int getMouseY() const { return getMouse().y; } | |
| 233 | + int getTrueMouseX() const { return getTrueMouse().x; } | |
| 234 | + int getTrueMouseY() const { return getTrueMouse().y; } | |
| 235 | + int getMouseDragStartedX() const { return getMouseDragStarted().x; } | |
| 236 | + int getMouseDragStartedY() const { return getMouseDragStarted().y; } | |
| 237 | + int getTrueMouseDragStartedX() const { return getTrueMouseDragStarted().x; } | |
| 238 | + int getTrueMouseDragStartedY() const { return getTrueMouseDragStarted().y; } | |
| 233 | 239 | bool getLastMouseMoveWasSimulated() const { return _lastMouseMoveWasSimulated; } |
| 234 | 240 | |
| 235 | 241 | FaceTracker* getActiveFaceTracker(); |
| @@ -238,6 +244,8 @@ public: · 2 unmodified lines | ||
| 238 | 244 | QSystemTrayIcon* getTrayIcon() { return _trayIcon; } |
| 239 | 245 | ApplicationOverlay& getApplicationOverlay() { return _applicationOverlay; } |
| 240 | 246 | const ApplicationOverlay& getApplicationOverlay() const { return _applicationOverlay; } |
| 247 | + ApplicationCompositor& getApplicationCompositor() { return _compositor; } | |
| 248 | + const ApplicationCompositor& getApplicationCompositor() const { return _compositor; } | |
| 241 | 249 | Overlays& getOverlays() { return _overlays; } |
| 242 | 250 | |
| 243 | 251 | float getFps() const { return _fps; } |
| @@ -330,6 +338,9 @@ public: · 86 unmodified lines | ||
| 330 | 338 | bool isHMDMode() const; |
| 331 | 339 | glm::quat getHeadOrientation() const; |
| 332 | 340 | glm::vec3 getHeadPosition() const; |
| 341 | + glm::mat4 getHeadPose() const; | |
| 342 | + glm::mat4 getEyePose(int eye) const; | |
| 343 | + glm::mat4 getEyeProjection(int eye) const; | |
| 333 | 344 | |
| 334 | 345 | QRect getDesirableApplicationGeometry(); |
| 335 | 346 | RunningScriptsWidget* getRunningScriptsWidget() { return _runningScriptsWidget; } |
| @@ -451,6 +462,8 @@ private slots: · 115 unmodified lines | ||
| 451 | 462 | void setFullscreen(bool fullscreen); |
| 452 | 463 | void setEnable3DTVMode(bool enable3DTVMode); |
| 453 | 464 | void setEnableVRMode(bool enableVRMode); |
| 465 | + | |
| 466 | + void rotationModeChanged(); | |
| 454 | 467 | |
| 455 | 468 | glm::vec2 getScaledScreenPoint(glm::vec2 projectedPoint); |
| 456 | 469 | |
| @@ -548,21 +561,17 @@ private: · 91 unmodified lines | ||
| 548 | 561 | |
| 549 | 562 | OctreeQuery _octreeQuery; // NodeData derived class for querying octee cells from octree servers |
| 550 | 563 | |
| 551 | − KeyboardMouseDevice _keyboardMouseDevice; // Default input device, the good old keyboard mouse and maybe touchpad | |
| 552 | − | |
| 553 | − UserInputMapper _userInputMapper; // User input mapper allowing to mapp different real devices to the action channels that the application has to offer | |
| 554 | − | |
| 555 | − MyAvatar* _myAvatar; // TODO: move this and relevant code to AvatarManager (or MyAvatar as the case may be) | |
| 556 | − | |
| 557 | − Camera _myCamera; // My view onto the world | |
| 564 | + KeyboardMouseDevice _keyboardMouseDevice; // Default input device, the good old keyboard mouse and maybe touchpad | |
| 565 | + UserInputMapper _userInputMapper; // User input mapper allowing to mapp different real devices to the action channels that the application has to offer | |
| 566 | + MyAvatar* _myAvatar; // TODO: move this and relevant code to AvatarManager (or MyAvatar as the case may be) | |
| 567 | + Camera _myCamera; // My view onto the world | |
| 558 | 568 | Camera _mirrorCamera; // Cammera for mirror view |
| 559 | 569 | QRect _mirrorViewRect; |
| 560 | − RearMirrorTools* _rearMirrorTools; | |
| 561 | 570 | |
| 562 | − Setting::Handle<bool> _firstRun; | |
| 563 | − Setting::Handle<QString> _previousScriptLocation; | |
| 564 | − Setting::Handle<QString> _scriptsLocationHandle; | |
| 565 | − Setting::Handle<float> _fieldOfView; | |
| 571 | + Setting::Handle<bool> _firstRun; | |
| 572 | + Setting::Handle<QString> _previousScriptLocation; | |
| 573 | + Setting::Handle<QString> _scriptsLocationHandle; | |
| 574 | + Setting::Handle<float> _fieldOfView; | |
| 566 | 575 | |
| 567 | 576 | Transform _viewTransform; |
| 568 | 577 | glm::mat4 _untranslatedViewMatrix; |
| @@ -580,18 +589,17 @@ private: · 11 unmodified lines | ||
| 580 | 589 | Environment _environment; |
| 581 | 590 | |
| 582 | 591 | bool _cursorVisible; |
| 583 | − int _mouseDragStartedX; | |
| 584 | − int _mouseDragStartedY; | |
| 592 | + ivec2 _mouseDragStarted; | |
| 593 | + | |
| 585 | 594 | quint64 _lastMouseMove; |
| 586 | 595 | bool _lastMouseMoveWasSimulated; |
| 587 | 596 | |
| 588 | 597 | glm::vec3 _mouseRayOrigin; |
| 589 | 598 | glm::vec3 _mouseRayDirection; |
| 590 | 599 | |
| 591 | − float _touchAvgX; | |
| 592 | − float _touchAvgY; | |
| 593 | − float _touchDragStartedAvgX; | |
| 594 | − float _touchDragStartedAvgY; | |
| 600 | + vec2 _touchAvg; | |
| 601 | + vec2 _touchDragStartedAvg; | |
| 602 | + | |
| 595 | 603 | bool _isTouchPressed; // true if multitouch has been pressed (clear when finished) |
| 596 | 604 | |
| 597 | 605 | bool _mousePressed; // true if mouse has been pressed (clear when finished) |
| @@ -669,6 +677,7 @@ private: · 71 unmodified lines | ||
| 669 | 677 | |
| 670 | 678 | Overlays _overlays; |
| 671 | 679 | ApplicationOverlay _applicationOverlay; |
| 680 | + ApplicationCompositor _compositor; | |
| 672 | 681 | }; |
| 673 | 682 | |
| 674 | 683 | #endif // hifi_Application_h |