93 bool m_isEditablePosition;
103 return m_isEditablePosition;
109 m_isEditablePosition = state;
118 if (selectablePtr !=
NULL){
130 if (selectablePtr !=
NULL){
142 if (selectablePtr !=
NULL) {
Definition of position or mathematical vector on 2D plane.
Common interface for model objects, that supports Model/Observer design pattern.
Index implementation for addressing elements in 2D-space.
Set of change flags (its IDs).
bool Contains(int changeId) const
Check if there is specific change flag in the set.
Pointer wrapper providing automatic deleting pointed object during destruction.
virtual bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
Callback invoked when an observable model is about to be attached to this observer.
virtual bool IsDisplayChangeImportant(const istd::IChangeable::ChangeSet &changeSet) override
Get display changes mask.
virtual void EndDrag() override
Called after dragging.
void UpdateModelChanges()
virtual bool OnMouseButton(istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) override
It is called, when mouse button is pushed down or up on this object.
virtual void BeginLogDrag(const i2d::CVector2d &reference)=0
virtual bool IsSelected() const override
Check, if this shape is selected.
virtual void SetLogDragPosition(const i2d::CVector2d &position)=0
int GetEditMode() const
Get actual edit mode.
void DrawText(QPainter &drawContext, istd::CIndex2d point, const QString &text) const
Draw text on a given position.
virtual bool IsDraggable() const override
Check if drag is enabled.
virtual void SetEditablePosition(bool state=true)
virtual void BeginDrag(const istd::CIndex2d &position) override
Called before dragging is begin.
virtual bool OnMouseMove(istd::CIndex2d position) override
It is called, when mouse is moved.
int GetDisplayMode() const
Get actual display mode.
virtual bool IsEditablePosition() const
virtual ~CInteractiveShapeBase()
virtual bool OnModelDetached(imod::IModel *modelPtr) override
Callback invoked when an observable model is about to be detached from this observer.
virtual void SetDragPosition(const istd::CIndex2d &position) override
Set new drag position.
int GetKeysState() const
Get actual keys state.
virtual void SetSelected(bool selectFlag=true) override
Inform that this object was selected or deselected.
CInteractiveShapeBase(const CInteractiveShapeBase &shape)
iview::IDisplay * GetDisplayPtr() const
Get access to currently connected display.
virtual bool IsDisplayChangeImportant(const istd::IChangeable::ChangeSet &changeSet)
Get display changes mask.
@ CF_DISPLAY_MODE
Display mode is changed.
@ CF_EDIT_MODE
Edit mode is changed.
Common interface for all, you can drag.
Common interface for all display console shapes which can interacts with user.
virtual int GetKeysState() const =0
Get state of system keys.
virtual int GetEditMode() const =0
Get actual edit mode.
virtual int GetDisplayMode() const =0
Get actual display mode.
In this library is defined 2D view concept and standard visualisation objects.