|
ACF $AcfVersion:0$
|
Common interface for a general shape view implementations. More...
#include <IShapeView.h>
Public Types | |
| typedef IShapeObserver | BaseClass |
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::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 |
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 Member Functions | |
| virtual void | AddViewEventObserver (iview::IViewEventObserver *listenerPtr)=0 |
| Add/remove external event observers. | |
| virtual void | RemoveViewEventObserver (iview::IViewEventObserver *listenerPtr)=0 |
| 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 | SetEditMode (int mode)=0 |
| Changes the edit mode. | |
| virtual void | SetDisplayMode (int mode)=0 |
| Changes the display 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 | Update ()=0 |
| Updates all invalidates shapes. | |
| 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. | |
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::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::ITouchable | |
| 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. | |
| virtual QString | GetToolTipAt (istd::CIndex2d position) const =0 |
| Get tooltip at specified position. | |
Common interface for a general shape view implementations.
Definition at line 27 of file IShapeView.h.
Definition at line 32 of file IShapeView.h.
|
pure virtual |
Add/remove external event observers.
Implemented in iview::CViewBase.
|
pure virtual |
Connect shape object to view.
| shape | a shape object. |
Implemented in iview::CViewBase.
Referenced by iqt2d::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 |
Implemented in iview::CViewBase.
|
pure virtual |
Changes the display mode.
Implemented in iview::CViewBase.
|
pure virtual |
Changes the edit mode.
Implemented in iview::CViewport, and iview::CViewBase.
|
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, and iview::CViewport.
Referenced by iqt2d::TViewExtenderCompBase< Base >::UpdateAllViews().
|
pure virtual |
Update mouse pointer.
Implemented in iview::CViewBase.