![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Common interface for a general shape view implementations. More...
#include <IShapeView.h>
Public Types | |
typedef IShapeObserver | BaseClass |
![]() | |
enum | ChangeFlags { CF_TRANSFORM = 0x3f67360 , CF_COLORS , CF_SIZE , CF_EDIT_MODE , CS_CONSOLE } |
Define possible display change flags. 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 |
![]() | |
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... | |
Public Member Functions | |
virtual void | SetFitArea (const i2d::CRectangle &area)=0 |
Set area used for fitting of the view contents. | |
virtual void | SetTransform (const i2d::CAffine2d &transform)=0 |
Set a screen transformation. | |
virtual void | Update ()=0 |
Updates all invalidates shapes. | |
virtual void | SetEditMode (int mode)=0 |
Changes the edit mode. | |
virtual bool | IsViewDraggable () const =0 |
Check if is draggable mode. | |
virtual bool | IsMultiselectable () const =0 |
Check, if it is possible to select more than one shape. | |
virtual void | UpdateMousePointer ()=0 |
Update mouse pointer. | |
virtual int | InsertLayer (IViewLayer *layerPtr, int index=-1, int layerType=IViewLayer::LT_NONE)=0 |
Insert layer to view. | |
virtual int | GetLayerIndex (const IViewLayer &layer) const =0 |
Get index of layer. | |
virtual int | GetLayerIndex (int layerType) const =0 |
Get index of layer by type. | |
virtual void | RemoveLayer (int index)=0 |
Remove layer from view. | |
virtual int | GetLayersCount () const =0 |
Get count of layer in this view. | |
virtual IViewLayer & | GetLayer (int index) const =0 |
Get layer with the given index. | |
virtual bool | ConnectShape (IShape *shapePtr)=0 |
Connect shape object to view. | |
virtual ISelectableLayer * | GetFocusedLayerPtr () const =0 |
Get focused layer. | |
virtual void | OnLayerShapeFocused (IInteractiveShape *shapePtr, ISelectableLayer *layerPtr)=0 |
Called when shape in layer get focus. | |
virtual void | OnLayerShapeDefocused (IInteractiveShape *shapePtr, ISelectableLayer *layerPtr)=0 |
Called when shape in layer loose focus. | |
virtual void | OnLayerInvalidated (const IViewLayer &layer, const i2d::CRect &prevArea, const i2d::CRect &newArea)=0 |
Inform that layer was invalidated. | |
![]() | |
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. | |
![]() | |
virtual void | OnChangeShape (IShape *shapePtr)=0 |
Invalidate a shape. | |
virtual bool | DisconnectShape (IShape *shapePtr)=0 |
Disconnect shape object from view. | |
![]() | |
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 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. | |
![]() | |
virtual TouchState | IsTouched (istd::CIndex2d position) const =0 |
Check, if any shape is touched. | |
virtual QString | GetShapeDescriptionAt (istd::CIndex2d position) const =0 |
Get description to shape at specified position. | |
Common interface for a general shape view implementations.
Definition at line 29 of file IShapeView.h.
Definition at line 34 of file IShapeView.h.
|
pure virtual |
Connect shape object to view.
shapePtr | pointer shape object, will be not owned by this view. |
Implemented in iview::CViewBase.
Referenced by i2dgui::TViewExtenderCompBase< Base >::AddItemsToScene().
|
pure virtual |
Get focused layer.
Implemented in iview::CViewBase.
|
pure virtual |
Get layer with the given index.
Implemented in iview::CViewBase.
|
pure virtual |
|
pure virtual |
Get index of layer by type.
Implemented in iview::CViewBase.
|
pure virtual |
Get count of layer in this view.
Implemented in iview::CViewBase.
|
pure virtual |
Insert layer to view.
layerPtr | pointer to inserted layer. |
index | index of inserted layer. If equals -1, layer will be inserted after last existing layer. |
layerType | used to set standard layers. |
Implemented in iview::CCalibratedViewBase, and iview::CViewBase.
|
pure virtual |
Check, if it is possible to select more than one shape.
Implemented in iview::CViewBase.
|
pure virtual |
Check if is draggable mode.
If this function return true, user can move a view by dragging.
Implemented in iview::CViewBase.
|
pure virtual |
Inform that layer was invalidated.
Implemented in iview::CViewBase.
|
pure virtual |
Called when shape in layer loose focus.
Implemented in iview::CViewBase.
|
pure virtual |
Called when shape in layer get focus.
Implemented in iview::CViewBase.
|
pure virtual |
Remove layer from view.
Implemented in iview::CCalibratedViewBase, and iview::CViewBase.
|
pure virtual |
Changes the edit mode.
Implemented in iview::CViewBase, and iview::CViewport.
|
pure virtual |
Set area used for fitting of the view contents.
Implemented in iview::CViewBase, and iview::CViewport.
|
pure virtual |
|
pure virtual |
Updates all invalidates shapes.
Implemented in iview::CViewBase.
Referenced by i2dgui::TViewExtenderCompBase< Base >::UpdateAllViews().
|
pure virtual |
Update mouse pointer.
Implemented in iview::CViewBase.
© Witold Gantzke and Kirill Lepskiy