![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <CToolsViewLayer.h>
Public Types | |
typedef CViewLayer | BaseClass |
![]() | |
enum | LayerType { LT_NONE , LT_BACKGROUND , LT_INACTIVE , LT_ACTIVE , LT_CALIBRATION , LT_TOOLS } |
typedef QList< IShape * > | Shapes |
![]() | |
enum | ChangeFlags { CF_TRANSFORM = 0x3f67360 , CF_COLORS , CF_SIZE , CF_EDIT_MODE , CS_CONSOLE } |
Define possible display change flags. More... | |
![]() | |
enum | TouchState { TS_NONE , TS_TRANSPARENT , TS_INACTIVE , TS_TICKER , TS_DRAGGABLE , TS_OTHER , TS_LAST = TS_OTHER } |
Enumeration for possible shape touch states. More... | |
![]() | |
enum | MousePointerMode { MPM_NONE , MPM_DEFAULT , MPM_DESELECT , MPM_POINTER , MPM_WAIT , MPM_CROSS , MPM_HAND , MPM_DRAG , MPM_SCREEN_MOVE , MPM_LAST = MPM_SCREEN_MOVE } |
Defines possible states of mouse pointer. More... | |
enum | EditMode { EM_NONE = 0 , EM_MOVE = 1 , EM_ADD = 2 , EM_REMOVE = 3 } |
Describes standard edit modes. More... | |
typedef QSet< IInteractiveShape * > | SelectedShapes |
Public Member Functions | |
virtual bool | ConnectInteractiveShape (IInteractiveShape *shapePtr) |
Connect active shape object. | |
virtual int | GetUnselectedShapesCount () const |
Get number of unselected shapes. | |
virtual void | DrawFocusedShape (QPainter &drawContext) |
Draw only focused shape. | |
virtual bool | OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) |
Called, when mouse button was pushed down or up. | |
virtual bool | OnFocusedMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag) |
Called, when this layer has focus, and mouse button was pushed down or up on this object. | |
virtual bool | OnFocusedMouseMove (istd::CIndex2d position) |
Called, when this layer has focus, and mouse was moved. | |
virtual TouchState | IsTouched (istd::CIndex2d position, IInteractiveShape **shapePtrPtr=nullptr) const |
Check, if any shape is touched. | |
virtual int | GetSelectedShapesCount () const |
Get count of selected shapes. | |
virtual void | InsertSelectedShapes (SelectedShapes &result) const |
Get set of selected shapes. | |
virtual void | DeselectAllShapes () |
Set all shapes to be deselected. | |
virtual int | GetKeysState () const |
Get state of system keys. | |
virtual int | GetEditMode () const |
Get actual edit mode. | |
virtual void | OnShapeFocused (IInteractiveShape *shapePtr) |
Called when shape get focus. | |
virtual void | OnShapeDefocused (IInteractiveShape *shapePtr) |
Called when shape loose focus. | |
virtual void | OnShapeSelected (IInteractiveShape &shape, bool state=true) |
It is called after change shape selection state. | |
virtual TouchState | IsTouched (istd::CIndex2d position) const |
Check, if any shape is touched. | |
virtual void | BeginDrag (const istd::CIndex2d &reference) |
Called before dragging is begin. | |
virtual void | SetDragPosition (const istd::CIndex2d &position) |
Set new drag position. | |
virtual void | EndDrag () |
Called after dragging. | |
virtual bool | IsDraggable () const |
Check if drag is enabled. | |
![]() | |
CViewLayer () | |
virtual | ~CViewLayer () |
virtual void | OnConnectView (IShapeView *viewPtr) |
Called after layer is connected to view. | |
virtual void | OnDisconnectView (IShapeView *viewPtr) |
Called before layer is disconnected from view. | |
virtual IShapeView * | GetViewPtr () const |
Get parent view of this layer. | |
virtual bool | IsShapeConnected (IShape *shapePtr) |
Check, if the shape is connected to the layer. | |
virtual bool | ConnectShape (IShape *shapePtr) |
Connect shape object to view. | |
virtual int | GetShapesCount () const |
Get count of all shapes on this layer. | |
virtual Shapes | GetShapes () const |
Get all shapes on this layer. | |
virtual void | UpdateAllShapes (const istd::IChangeable::ChangeSet &changeSet) |
Send update to all shapes after view changes. | |
virtual void | DisconnectAllShapes () |
Disconnect all shapes from this layer. | |
virtual void | DrawShapes (QPainter &drawContext) |
Draw all shapes using specified draw context. | |
virtual bool | IsVisible () const |
Check, if this layer is visible. | |
virtual void | SetVisible (bool state=true) |
Make this layer visible. | |
virtual IDisplay * | GetParentDisplayPtr () const |
Get parent object of this display. | |
virtual const CScreenTransform & | GetTransform () const |
Return a screen transformation. | |
virtual i2d::CRect | GetBoundingBox () const |
Get bounding box of all object in this display. | |
virtual i2d::CRect | GetClientRect () const |
Get bounding box of client area. | |
virtual const IColorSchema & | GetColorSchema () const |
Get color schema. | |
virtual void | OnAreaInvalidated (const i2d::CRect &prevArea, const i2d::CRect &newArea) |
Invalidate display area. | |
virtual void | OnChangeShape (IShape *shapePtr) |
Invalidate a shape. | |
virtual bool | DisconnectShape (IShape *shapePtr) |
Disconnect shape object from view. | |
virtual QString | GetShapeDescriptionAt (istd::CIndex2d position) const |
Get description to shape at specified position. | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() |
Additional Inherited Members | |
![]() | |
typedef QVector< ShapeWithBoundingBox > | ShapeList |
![]() | |
bool | OnChangeShapeElement (ShapeList::iterator elementIter) |
void | DisconnectShapeElement (ShapeList &map, ShapeList::iterator iter) |
void | InvalidateBoundingBox () |
i2d::CRect & | GetBoundingBoxRef () const |
void | SetBoundingBoxValid () const |
virtual i2d::CRect | RecalcAllShapes (const istd::IChangeable::ChangeSet &changeSet) |
Recalculate all shapes after view changes. | |
virtual i2d::CRect | CalcBoundingBox () const |
Calculate bounding box for all shapes. | |
![]() | |
ShapeList | m_shapes |
Definition at line 19 of file CToolsViewLayer.h.
Definition at line 24 of file CToolsViewLayer.h.
|
virtual |
Called before dragging is begin.
It set also reference value for dragging position.
Implements iview::IDraggable.
|
virtual |
Connect active shape object.
Implements iview::ISelectableLayer.
|
virtual |
Set all shapes to be deselected.
Implements iview::ISelectable.
|
virtual |
Draw only focused shape.
Implements iview::ISelectableLayer.
|
virtual |
Called after dragging.
Implements iview::IDraggable.
|
virtual |
Get actual edit mode.
Implements iview::ISelectable.
|
virtual |
Get state of system keys.
Implements iview::ISelectable.
|
virtual |
Get count of selected shapes.
Implements iview::ISelectable.
|
virtual |
Get number of unselected shapes.
Implements iview::ISelectableLayer.
|
virtual |
Get set of selected shapes.
Implements iview::ISelectable.
|
virtual |
Check if drag is enabled.
Implements iview::IDraggable.
|
virtual |
Check, if any shape is touched.
When shape is touched, it return also pointer to this shape.
Reimplemented from iview::CViewLayer.
|
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 nullptr. |
Implements iview::ISelectableLayer.
|
virtual |
Called, when this layer has focus, and mouse button was pushed down or up on this object.
Implements iview::ISelectableLayer.
|
virtual |
Called, when this layer has focus, and mouse was moved.
Implements iview::ISelectableLayer.
|
virtual |
Called, when mouse button was pushed down or up.
Implements iview::ISelectableLayer.
|
virtual |
Called when shape loose focus.
Implements iview::ISelectable.
|
virtual |
Called when shape get focus.
Implements iview::ISelectable.
|
virtual |
It is called after change shape selection state.
Implements iview::ISelectable.
|
virtual |
Set new drag position.
It must be enclosed using BeginDrag() and EndDrag() methods.
Implements iview::IDraggable.
© Witold Gantzke and Kirill Lepskiy