6#include <QtCore/QVector>
21class IViewEventObserver;
This class defines an affine 2D-transformation.
Simple rectangle with integer bounds.
Definition of rectangle area orthogonal to axis of coordination system.
Common interface for all display console shapes which can interacts with user.
Common interface for all display console shapes.
Common interface for all objects informed about shapes state changes.
Common interface for a general shape view implementations.
virtual ISelectableLayer * GetFocusedLayerPtr() const =0
Get focused layer.
virtual void OnLayerShapeDefocused(IInteractiveShape *shapePtr, ISelectableLayer *layerPtr)=0
Called when shape in layer loose focus.
virtual void SetTransform(const i2d::CAffine2d &transform)=0
Set a screen transformation.
virtual int GetLayerIndex(int layerType) const =0
Get index of layer by type.
virtual bool ConnectShape(IShape *shapePtr)=0
Connect shape object to view.
virtual void SetEditMode(int mode)=0
Changes the edit mode.
virtual void UpdateMousePointer()=0
Update mouse pointer.
virtual IViewLayer & GetLayer(int index) const =0
Get layer with the given index.
virtual void SetFitArea(const i2d::CRectangle &area)=0
Set area used for fitting of the view contents.
virtual bool IsViewDraggable() const =0
Check if is draggable mode.
virtual void AddViewEventObserver(iview::IViewEventObserver *listenerPtr)=0
Add/remove external event observers.
virtual int GetLayerIndex(const IViewLayer &layer) const =0
Get index of layer.
virtual void OnLayerShapeFocused(IInteractiveShape *shapePtr, ISelectableLayer *layerPtr)=0
Called when shape in layer get focus.
virtual void OnLayerInvalidated(const IViewLayer &layer, const i2d::CRect &prevArea, const i2d::CRect &newArea)=0
Inform that layer was invalidated.
virtual int InsertLayer(IViewLayer *layerPtr, int index=-1, int layerType=IViewLayer::LT_NONE)=0
Insert layer to view.
virtual void RemoveLayer(int index)=0
Remove layer from view.
virtual void RemoveViewEventObserver(iview::IViewEventObserver *listenerPtr)=0
virtual int GetLayersCount() const =0
Get count of layer in this view.
virtual void SetDisplayMode(int mode)=0
Changes the display mode.
virtual void Update()=0
Updates all invalidates shapes.
virtual bool IsMultiselectable() const =0
Check, if it is possible to select more than one shape.
Interface for external view event observer.
Interface for a logical layer in the console view.
@ LT_NONE
Layer type is not set.
In this library is defined 2D view concept and standard visualisation objects.