31 ChangeXfAction::action( type );
32 std::swap( dir_, widget_.dir_ );
51 ChangeXfAction::action( type );
52 std::swap( base_, widget_.base_ );
66 length_{ widget.length_ }
70 widget_.updateLength( length_ );
83 visible_{ widget.directionObj_->visibilityMask() }
87 widget_.directionObj_->setVisibilityMask( visible_ );
89 virtual std::string
name()
const override
93 [[nodiscard]]
virtual size_t heapBytes()
const override
95 return name_.capacity();
100 std::string name_ =
"Change Visible";
104 std::shared_ptr<ObjectMesh> directionObj_;
110 bool mousePressed_ =
false;
112 bool blockedMouse_{
false };
113 Vector3f worldStartPoint_;
114 float viewportStartPointZ_{ 0.0f };
115 OnDirectionChangedCallback onDirectionChanged_;
116 Color color_ = Color::red();
117 bool needToSaveHistory_ =
true;
162 MRVIEWER_API
virtual bool onMouseDown_(
MouseButton button,
int modifier )
override;
163 MRVIEWER_API
virtual bool onMouseUp_(
MouseButton button,
int modifier )
override;
164 MRVIEWER_API
virtual bool onMouseMove_(
int mouse_x,
int mouse_y )
override;
length
Definition MRObjectDimensionsEnum.h:14
Definition MRChangeXfAction.h:13
Definition MRHistoryAction.h:12
Type
Definition MRHistoryAction.h:19
named object in the data model
Definition MRObject.h:60
stores mask of viewport unique identifiers
Definition MRViewportId.h:38
Visual Object.
Definition MRVisualObject.h:131
Definition MRCameraOrientationPlugin.h:8
MouseButton
Definition MRMouse.h:9
Definition MRViewerEventsListener.h:29