![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Interface for a logical layer in the console view. More...
#include <IViewLayer.h>
Public Types | |
enum | LayerType { LT_NONE , LT_BACKGROUND , LT_INACTIVE , LT_ACTIVE , LT_CALIBRATION , LT_TOOLS } |
typedef QList< IShape * > | Shapes |
![]() | |
enum | ChangeFlags { CF_TRANSFORM = 0x3f67360 , CF_COLORS , CF_SIZE , CF_EDIT_MODE , CS_CONSOLE } |
Define possible display change flags. More... | |
![]() | |
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 | OnConnectView (IShapeView *viewPtr)=0 |
Called after layer is connected to view. | |
virtual void | OnDisconnectView (IShapeView *viewPtr)=0 |
Called before layer is disconnected from view. | |
virtual IShapeView * | GetViewPtr () const =0 |
Get parent view of this layer. | |
virtual bool | IsShapeConnected (IShape *shapePtr)=0 |
Check, if the shape is connected to the layer. | |
virtual bool | ConnectShape (IShape *shapePtr)=0 |
Connect shape object to view. | |
virtual int | GetShapesCount () const =0 |
Get count of all shapes on this layer. | |
virtual Shapes | GetShapes () const =0 |
Get all shapes on this layer. | |
virtual void | UpdateAllShapes (const istd::IChangeable::ChangeSet &changeSet)=0 |
Send update to all shapes after view changes. | |
virtual void | DisconnectAllShapes ()=0 |
Disconnect all shapes from this layer. | |
virtual void | DrawShapes (QPainter &drawContext)=0 |
Draw all shapes using specified draw context. | |
virtual bool | IsVisible () const =0 |
Check, if this layer is visible. | |
virtual void | SetVisible (bool state=true)=0 |
Make this layer visible. | |
![]() | |
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 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. | |
Interface for a logical layer in the console view.
Definition at line 29 of file IViewLayer.h.
QList<IShape*> iview::IViewLayer::Shapes |
Definition at line 67 of file IViewLayer.h.
Definition at line 34 of file IViewLayer.h.
|
pure virtual |
Connect shape object to view.
shape | a shape object. |
active | if true, shape will be active, if false it will be only visible. |
Implemented in iview::CInteractiveViewLayer, and iview::CViewLayer.
|
pure virtual |
Disconnect all shapes from this layer.
Implemented in iview::CInteractiveViewLayer, and iview::CViewLayer.
|
pure virtual |
Draw all shapes using specified draw context.
Implemented in iview::CInteractiveViewLayer, and iview::CViewLayer.
|
pure virtual |
Get all shapes on this layer.
Implemented in iview::CViewLayer.
|
pure virtual |
Get count of all shapes on this layer.
Implemented in iview::CInteractiveViewLayer, and iview::CViewLayer.
|
pure virtual |
Get parent view of this layer.
It can be used only when view is connected.
Implemented in iview::CViewLayer.
|
pure virtual |
Check, if the shape is connected to the layer.
Implemented in iview::CInteractiveViewLayer, and iview::CViewLayer.
|
pure virtual |
Check, if this layer is visible.
Implemented in iview::CViewLayer.
|
pure virtual |
Called after layer is connected to view.
Implemented in iview::CViewLayer.
|
pure virtual |
Called before layer is disconnected from view.
Implemented in iview::CViewLayer.
|
pure virtual |
Make this layer visible.
Implemented in iview::CViewLayer.
|
pure virtual |
Send update to all shapes after view changes.
Implemented in iview::CViewLayer.
© Witold Gantzke and Kirill Lepskiy