![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Common interface for all display console shapes. More...
#include <IShape.h>
Public Types | |
enum | ChangeFlags { CF_CALIB = 0x3663adf } |
Data model change notification 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 int | GetLayerType () const =0 |
Get layer type of this shape object. | |
virtual i2d::CRect | GetBoundingBox () const =0 |
Return bounding box in client window coordinates. | |
virtual void | SetVisible (bool state=true)=0 |
Make shape to be visible or not. | |
virtual const iview::IColorSchema * | GetUserColorSchema () const =0 |
Get color schema from view or user defined. | |
virtual void | SetUserColorSchema (const IColorSchema *schemaPtr)=0 |
Set color schema to draw shape. | |
virtual void | SetDefaultDescription (const QString &description)=0 |
Set default description will be used to display on console. | |
![]() | |
virtual bool | IsModelAttached (const IModel *modelPtr=nullptr) const =0 |
Check if specified model is attached. | |
virtual bool | OnModelAttached (IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)=0 |
This call back function will be called, if an observable object is about to be attached. | |
virtual bool | OnModelDetached (IModel *modelPtr)=0 |
This call back function will be called, if an observable object is about to be detached. | |
virtual void | BeforeModelChange (IModel *modelPtr)=0 |
This function will be called before update of the observer contents occures. | |
virtual void | AfterModelChange (IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)=0 |
This function will be called after update of the observer contents occures. | |
![]() | |
virtual bool | IsVisible () const =0 |
Check, if this object is visible. | |
virtual bool | IsDisplayAccepted (const IDisplay &display) const =0 |
Check if this object can be connected to this display. | |
virtual void | OnDisplayConnected (IDisplay *displayPtr)=0 |
Called after display is connected. | |
virtual void | OnDisplayDisconnected (IDisplay *displayPtr)=0 |
Called after display is disconnected. | |
virtual void | Draw (QPainter &drawContext) const =0 |
Draw this shape using draw context. | |
virtual bool | OnDisplayChanged (const istd::IChangeable::ChangeSet &changeSet)=0 |
It informs about changes in display. | |
![]() | |
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. | |
Common interface for all display console shapes.
Shapes are representants of model objects in display console.
|
pure virtual |
Return bounding box in client window coordinates.
You can store this bounding box for optimization, because about every change of transformation you will be informed by calling OnDisplayChanged(int) method.
Implemented in iview::CShapeBase.
|
pure virtual |
Get layer type of this shape object.
Implemented in iview::CShapeBase.
Referenced by i2dgui::TViewExtenderCompBase< Base >::AddItemsToScene().
|
pure virtual |
Get color schema from view or user defined.
Implemented in iview::CShapeBase.
|
pure virtual |
Set default description will be used to display on console.
Implemented in iview::CShapeBase.
|
pure virtual |
Set color schema to draw shape.
Implemented in iview::CShapeBase.
|
pure virtual |
Make shape to be visible or not.
Implemented in iview::CShapeBase.
Referenced by i2dgui::TViewExtenderCompBase< Base >::SetAllShapesVisible().
© Witold Gantzke and Kirill Lepskiy