|
ACF $AcfVersion:0$
|
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 |
Public Types inherited from iview::IDisplay | |
| enum | ChangeFlags { CF_TRANSFORM = 0x3f67360 , CF_COLORS , CF_SIZE , CF_EDIT_MODE , CF_DISPLAY_MODE , CS_CONSOLE } |
| Define possible display change flags. More... | |
Public Types inherited from iview::ITouchable | |
| enum | TouchState { TS_NONE , TS_INACTIVE , TS_TICKER , TS_DRAGGABLE , TS_AREA , 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. | |
Public Member Functions inherited from iview::IDisplay | |
| 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. | |
Public Member Functions inherited from iview::IShapeObserver | |
| virtual void | OnChangeShape (IShape *shapePtr)=0 |
| Invalidate a shape. | |
| virtual bool | DisconnectShape (IShape *shapePtr)=0 |
| Disconnect shape object from view. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Public Member Functions inherited from iview::ITouchable | |
| 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. | |
| virtual QString | GetToolTipAt (istd::CIndex2d position) const =0 |
| Get tooltip at specified position. | |
Interface for a logical layer in the console view.
Definition at line 24 of file IViewLayer.h.
| typedef QList<IShape*> iview::IViewLayer::Shapes |
Definition at line 62 of file IViewLayer.h.
Definition at line 29 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.