14 std::shared_ptr<ObjectMesh> planeObj_;
17 Vector3f cameraUp3Old_;
20 bool localMode_{
false };
21 float localShift_{ 0.0f };
23 using OnPlaneUpdateCallback = std::function<void()>;
24 OnPlaneUpdateCallback onPlaneUpdate_;
26 bool pressed_ =
false;
27 bool showPlaneByDefault_ =
true;
28 Vector2f startMousePos_;
29 Vector2f endMousePos_;
31 std::shared_ptr<ObjectLines> line_;
33 bool importPlaneMode_ =
false;
38 MRVIEWER_API
void updatePlane(
const Plane3f& plane,
bool updateCameraRotation =
true );
41 MRVIEWER_API
void updateBox(
const Box3f& box,
bool updateCameraRotation =
true );
63 MRVIEWER_API
const Box3f&
box()
const;
75 MRVIEWER_API
void updateWidget_(
bool updateCameraRotation =
true );
77 MRVIEWER_API
virtual bool onMouseDown_(
MouseButton button,
int modifier )
override;
78 MRVIEWER_API
virtual bool onMouseUp_(
MouseButton button,
int modifier )
override;
79 MRVIEWER_API
virtual bool onMouseMove_(
int mouse_x,
int mouse_y )
override;
Definition MRCameraOrientationPlugin.h:8
MouseButton
Definition MRMouse.h:9
Definition MRViewerEventsListener.h:29