6#include <QtCore/QVector>
101 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 void UpdateAllShapes(const istd::IChangeable::ChangeSet &changeSet) override
Send update to all shapes after view changes.
virtual bool DisconnectShape(IShape *shapePtr) override
Disconnect shape object from view.
QVector< ShapeWithBoundingBox > ShapeList
virtual void OnAreaInvalidated(const i2d::CRect &prevArea, const i2d::CRect &newArea) override
Invalidate display area.
virtual i2d::CRect RecalcAllShapes(const istd::IChangeable::ChangeSet &changeSet)
Recalculate all shapes after view changes.
virtual const CScreenTransform & GetTransform() const override
Return a screen transformation.
virtual IShapeView * GetViewPtr() const override
Get parent view of this layer.
virtual bool ConnectShape(IShape *shapePtr) override
Connect shape object to view.
virtual Shapes GetShapes() const override
Get all shapes on this layer.
virtual void SetVisible(bool state=true) override
Make this layer visible.
virtual i2d::CRect GetClientRect() const override
Get bounding box of client area.
bool OnChangeShapeElement(ShapeList::Iterator elementIter)
virtual IDisplay * GetParentDisplayPtr() const override
Get parent object of this display.
virtual void DisconnectAllShapes() override
Disconnect all shapes from this layer.
virtual i2d::CRect GetBoundingBox() const override
Get bounding box of all object in this display.
virtual int GetShapesCount() const override
Get count of all shapes on this layer.
virtual QString GetShapeDescriptionAt(istd::CIndex2d position) const override
Get description to shape at specified position.
void SetBoundingBoxValid() const
i2d::CRect & GetBoundingBoxRef() const
virtual bool IsVisible() const override
Check, if this layer is visible.
void DisconnectShapeElement(ShapeList &map, ShapeList::iterator iter)
void InvalidateBoundingBox()
virtual bool IsShapeConnected(IShape *shapePtr) override
Check, if the shape is connected to the layer.
virtual TouchState IsTouched(istd::CIndex2d position) const override
Check, if any shape is touched.
virtual void OnDisconnectView(IShapeView *viewPtr) override
Called before layer is disconnected from view.
virtual const IColorSchema & GetColorSchema() const override
Get color schema.
virtual void OnChangeShape(IShape *shapePtr) override
Invalidate a shape.
virtual void DrawShapes(QPainter &drawContext) override
Draw all shapes using specified draw context.
virtual QString GetToolTipAt(istd::CIndex2d position) const override
Get tooltip at specified position.
virtual void OnConnectView(IShapeView *viewPtr) override
Called after layer is connected to view.
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.
ShapeWithBoundingBox(IShape *shapePtr, const i2d::CRect &box)