73 std::vector<std::shared_ptr<Object>>& objects, Vector3f& centerPoint, Vector3f& startPoint );
77 MRVIEWER_API Box3f
getBbox_(
const std::vector<std::shared_ptr<Object>>& objects );
84 void applyCurrentXf_(
bool history );
87 void setVisualizeVectors_( std::vector<Vector3f> worldPoints );
89 std::vector<std::shared_ptr<Object>> objects_;
90 std::vector<AffineXf3f> initialXfs_;
93 Vector2i screenStartPoint_;
94 AffineXf3f currentXf_;
98 Vector3f worldStartPoint_;
99 Vector3f xfCenterPoint_;
100 float viewportStartPointZ_;
101 Plane3f referencePlane_;
107 bool historyEnabled_{
true };
109 std::vector<ImVec2> visualizeVectors_;
Definition MRMoveObjectByMouseImpl.h:16
virtual ~MoveObjectByMouseImpl()=default
MRVIEWER_API void onDrawDialog(float menuScaling) const
MoveObjectByMouseImpl()=default
MRVIEWER_API bool onMouseMove(int x, int y)
MRVIEWER_API Box3f getBbox_(const std::vector< std::shared_ptr< Object > > &objects)
MRVIEWER_API bool onMouseUp(MouseButton button, int modifiers)
TransformMode
Transformation mode.
Definition MRMoveObjectByMouseImpl.h:59
MRVIEWER_API bool onMouseDown(MouseButton button, int modifiers)
MRVIEWER_API bool isMoving() const
void enableHistory(bool history)
enables or disables adding history to viewer history store by this tool
Definition MRMoveObjectByMouseImpl.h:51
int minDistance() const
Definition MRMoveObjectByMouseImpl.h:24
void setMinDistance(int minDistance)
Definition MRMoveObjectByMouseImpl.h:25
MRVIEWER_API void cancel()
virtual MRVIEWER_API TransformMode pick_(MouseButton button, int modifiers, std::vector< std::shared_ptr< Object > > &objects, Vector3f ¢erPoint, Vector3f &startPoint)
bool isHistoryEnabled() const
returns true if appending history to viewer history store is enabled in this tool
Definition MRMoveObjectByMouseImpl.h:54
@ None
special value not to limit path in one slice
Definition MRVoxelPath.h:33
MouseButton
Definition MRMouse.h:9