6#ifndef iview_CLayerBase_included
7#define iview_CLayerBase_included
11#include <QtCore/QVector>
102 mutable bool m_isBoundingBoxValid;
Simple rectangle with integer bounds.
Index implementation for addressing elements in 2D-space.
Set of change flags (its IDs).
Standard implementation of view layer.
virtual i2d::CRect RecalcAllShapes(const istd::IChangeable::ChangeSet &changeSet)
Recalculate all shapes after view changes.
virtual bool IsVisible() const
Check, if this layer is visible.
virtual void OnConnectView(IShapeView *viewPtr)
Called after layer is connected to view.
virtual void OnAreaInvalidated(const i2d::CRect &prevArea, const i2d::CRect &newArea)
Invalidate display area.
virtual bool ConnectShape(IShape *shapePtr)
Connect shape object to view.
virtual void OnDisconnectView(IShapeView *viewPtr)
Called before layer is disconnected from view.
virtual void OnChangeShape(IShape *shapePtr)
Invalidate a shape.
virtual i2d::CRect GetClientRect() const
Get bounding box of client area.
virtual i2d::CRect GetBoundingBox() const
Get bounding box of all object in this display.
virtual bool IsShapeConnected(IShape *shapePtr)
Check, if the shape is connected to the layer.
virtual int GetShapesCount() const
Get count of all shapes on this layer.
void SetBoundingBoxValid() const
virtual IDisplay * GetParentDisplayPtr() const
Get parent object of this display.
i2d::CRect & GetBoundingBoxRef() const
void DisconnectShapeElement(ShapeList &map, ShapeList::iterator iter)
void InvalidateBoundingBox()
virtual void UpdateAllShapes(const istd::IChangeable::ChangeSet &changeSet)
Send update to all shapes after view changes.
virtual Shapes GetShapes() const
Get all shapes on this layer.
virtual void SetVisible(bool state=true)
Make this layer visible.
virtual void DrawShapes(QPainter &drawContext)
Draw all shapes using specified draw context.
bool OnChangeShapeElement(ShapeList::iterator elementIter)
virtual const IColorSchema & GetColorSchema() const
Get color schema.
virtual TouchState IsTouched(istd::CIndex2d position) const
Check, if any shape is touched.
virtual void DisconnectAllShapes()
Disconnect all shapes from this layer.
virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const
Get description to shape at specified position.
virtual IShapeView * GetViewPtr() const
Get parent view of this layer.
virtual const CScreenTransform & GetTransform() const
Return a screen transformation.
virtual bool DisconnectShape(IShape *shapePtr)
Disconnect shape object from view.
QVector< ShapeWithBoundingBox > ShapeList
virtual i2d::CRect CalcBoundingBox() const
Calculate bounding box for all shapes.
Defines set of standard pens, brushes and simple management of unions.
Common interface for all display console shapes.
Common interface for a general shape view implementations.
TouchState
Enumeration for possible shape touch states.
Interface for a logical layer in the console view.
In this library is defined 2D view concept and standard visualisation objects.