|
ACF $AcfVersion:0$
|
#include <ISelectableLayer.h>
Public Member Functions | |
| virtual bool | ConnectInteractiveShape (IInteractiveShape *shapePtr)=0 |
| Connect active shape object. | |
| virtual int | GetUnselectedShapesCount () const =0 |
| Get number of unselected shapes. | |
| virtual void | DrawFocusedShape (QPainter &drawContext)=0 |
| Draw only focused shape. | |
| virtual bool | OnKeyPress (int key, Qt::KeyboardModifiers modifiers)=0 |
| Called, when key has been pressed. | |
| virtual bool | OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)=0 |
| Called, when mouse button was pushed down or up. | |
| virtual bool | OnFocusedMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)=0 |
| Called, when this layer has focus, and mouse button was pushed down or up on this object. | |
| virtual bool | OnFocusedMouseMove (istd::CIndex2d position)=0 |
| Called, when this layer has focus, and mouse was moved. | |
| virtual TouchState | IsTouched (istd::CIndex2d position, IInteractiveShape **shapePtrPtr=NULL) const =0 |
| Check, if any shape is touched. | |
| virtual TouchState | IsTouched (istd::CIndex2d position) const override |
| Check, if any shape is touched. | |
Public Member Functions inherited from iview::IViewLayer | |
| virtual void | OnConnectView (IShapeView *viewPtr)=0 |
| Called after layer is connected to view. | |
| virtual void | OnDisconnectView (IShapeView *viewPtr)=0 |
| Called before layer is disconnected from view. | |
| virtual IShapeView * | GetViewPtr () const =0 |
| Get parent view of this layer. | |
| virtual bool | IsShapeConnected (IShape *shapePtr)=0 |
| Check, if the shape is connected to the layer. | |
| virtual bool | ConnectShape (IShape *shapePtr)=0 |
| Connect shape object to view. | |
| virtual int | GetShapesCount () const =0 |
| Get count of all shapes on this layer. | |
| virtual Shapes | GetShapes () const =0 |
| Get all shapes on this layer. | |
| virtual void | UpdateAllShapes (const istd::IChangeable::ChangeSet &changeSet)=0 |
| Send update to all shapes after view changes. | |
| virtual void | DisconnectAllShapes ()=0 |
| Disconnect all shapes from this layer. | |
| virtual void | DrawShapes (QPainter &drawContext)=0 |
| Draw all shapes using specified draw context. | |
| virtual bool | IsVisible () const =0 |
| Check, if this layer is visible. | |
| virtual void | SetVisible (bool state=true)=0 |
| Make this layer visible. | |
Public Member Functions inherited from iview::IDisplay | |
| virtual IDisplay * | GetParentDisplayPtr () const =0 |
| Get parent object of this display. | |
| virtual const iview::CScreenTransform & | GetTransform () const =0 |
| Return a screen transformation. | |
| virtual i2d::CRect | GetBoundingBox () const =0 |
| Get bounding box of all object in this display. | |
| virtual i2d::CRect | GetClientRect () const =0 |
| Get bounding box of client area. | |
| virtual const IColorSchema & | GetColorSchema () const =0 |
| Get color schema. | |
| virtual void | OnAreaInvalidated (const i2d::CRect &prevArea, const i2d::CRect &newArea)=0 |
| Invalidate display area. | |
Public Member Functions inherited from iview::IShapeObserver | |
| virtual void | OnChangeShape (IShape *shapePtr)=0 |
| Invalidate a shape. | |
| virtual bool | DisconnectShape (IShape *shapePtr)=0 |
| Disconnect shape object from view. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Public Member Functions inherited from iview::ITouchable | |
| virtual QString | GetShapeDescriptionAt (istd::CIndex2d position) const =0 |
| Get description to shape at specified position. | |
| virtual QString | GetToolTipAt (istd::CIndex2d position) const =0 |
| Get tooltip at specified position. | |
Public Member Functions inherited from iview::ISelectable | |
| virtual int | GetSelectedShapesCount () const =0 |
| Get count of selected shapes. | |
| virtual void | InsertSelectedShapes (SelectedShapes &result) const =0 |
| Get set of selected shapes. | |
| virtual void | DeselectAllShapes ()=0 |
| Set all shapes to be deselected. | |
| 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. | |
| virtual void | OnShapeFocused (IInteractiveShape *shapePtr)=0 |
| Called when shape get focus. | |
| virtual void | OnShapeDefocused (IInteractiveShape *shapePtr)=0 |
| Called when shape loose focus. | |
| virtual void | OnShapeSelected (IInteractiveShape &shape, bool state=true)=0 |
| It is called after change shape selection state. | |
Public Member Functions inherited from iview::IDraggable | |
| virtual void | BeginDrag (const istd::CIndex2d &reference)=0 |
| Called before dragging is begin. | |
| virtual void | SetDragPosition (const istd::CIndex2d &position)=0 |
| Set new drag position. | |
| virtual void | EndDrag ()=0 |
| Called after dragging. | |
| virtual bool | IsDraggable () const =0 |
| Check if drag is enabled. | |
Additional Inherited Members | |
Public Types inherited from iview::IViewLayer | |
| enum | LayerType { LT_NONE , LT_BACKGROUND , LT_INACTIVE , LT_ACTIVE , LT_CALIBRATION , LT_TOOLS } |
| typedef QList< IShape * > | Shapes |
Public Types inherited from iview::IDisplay | |
| enum | ChangeFlags { CF_TRANSFORM = 0x3f67360 , CF_COLORS , CF_SIZE , CF_EDIT_MODE , CF_DISPLAY_MODE , CS_CONSOLE } |
| Define possible display change flags. More... | |
Public Types inherited from iview::ITouchable | |
| enum | TouchState { TS_NONE , TS_INACTIVE , TS_TICKER , TS_DRAGGABLE , TS_AREA , TS_OTHER , TS_LAST = TS_OTHER } |
| Enumeration for possible shape touch states. More... | |
Public Types inherited from iview::ISelectable | |
| enum | MousePointerMode { MPM_NONE , MPM_DEFAULT , MPM_DESELECT , MPM_POINTER , MPM_WAIT , MPM_CROSS , MPM_HAND , MPM_DRAG , MPM_SCREEN_MOVE , MPM_ADD , MPM_LAST } |
| Defines possible states of mouse pointer. More... | |
| enum | EditMode { EM_NONE = 0 , EM_MOVE = 1 , EM_ADD = 2 , EM_REMOVE = 3 , EM_LAST = 100 } |
| Describes standard edit modes. More... | |
| enum | DisplayMode { DM_DEFAULT = 0 } |
| Describes standard display modes. More... | |
| typedef QSet< IInteractiveShape * > | SelectedShapes |
Definition at line 21 of file ISelectableLayer.h.
|
pure virtual |
Connect active shape object.
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
|
pure virtual |
Draw only focused shape.
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
|
pure virtual |
Get number of unselected shapes.
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
|
inlineoverridevirtual |
Check, if any shape is touched.
When shape is touched, it return also pointer to this shape.
Implements iview::ITouchable.
Reimplemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
Definition at line 83 of file ISelectableLayer.h.
References IsTouched(), and NULL.
|
pure virtual |
Check, if any shape is touched.
When shape is touched, it return also pointer to this shape.
| shapePtrPtr | pointer to shape pointer will be filled if shape is found. It can be equal NULL. |
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
Referenced by IsTouched().
|
pure virtual |
Called, when this layer has focus, and mouse button was pushed down or up on this object.
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
|
pure virtual |
Called, when this layer has focus, and mouse was moved.
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
|
pure virtual |
Called, when key has been pressed.
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.
|
pure virtual |
Called, when mouse button was pushed down or up.
Implemented in iview::CInteractiveViewLayer, and iview::CToolsViewLayer.