Public Member Functions | List of all members
iview::IInteractiveShape Class Referenceabstract

Common interface for all display console shapes which can interacts with user. More...

#include <IInteractiveShape.h>

Inheritance diagram for iview::IInteractiveShape:
iview::IShape iview::IMouseActionObserver imod::IObserver iview::IVisualizable iview::ITouchable istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic iview::CInteractiveShapeBase iview::CAffineTransformation2dShape iview::CLineShape iview::CParallelogramShape iview::CPinShape iview::CRectangleShape iview::CRectControlledShapeBase iview::CAnnulusShape iview::CArcShape iview::CCenterPinShape iview::CCircleShape iview::CLabelShape iview::CPolygonShape iview::CAnnulusSegmentShape iview::COrientedCircleShape iview::CPolylineShape iview::CSplineShape iview::CTubePolylineShape

Public Member Functions

virtual bool IsSelected () const =0
 Check, if this shape is selected. More...
 
virtual void SetSelected (bool selectFlag=true)=0
 Inform that this object was selected or deselected. More...
 
- Public Member Functions inherited from iview::IShape
virtual int GetLayerType () const =0
 Get layer type of this shape object. More...
 
virtual i2d::CRect GetBoundingBox () const =0
 Return bounding box in client window coordinates. More...
 
virtual void SetVisible (bool state=true)=0
 Make shape to be visible or not. More...
 
virtual const iview::IColorSchemaGetUserColorSchema () const =0
 Get color schema from view or user defined. More...
 
virtual void SetUserColorSchema (const IColorSchema *schemaPtr)=0
 Set color schema to draw shape. More...
 
virtual void SetDefaultDescription (const QString &description)=0
 Set default description will be used to display on console. More...
 
- Public Member Functions inherited from imod::IObserver
virtual bool IsModelAttached (const IModel *modelPtr=NULL) const =0
 Check if specified model is attached. More...
 
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. More...
 
virtual bool OnModelDetached (IModel *modelPtr)=0
 This call back function will be called, if an observable object is about to be detached. More...
 
virtual void BeforeUpdate (IModel *modelPtr)=0
 This function will be called before update of the observer contents occures. More...
 
virtual void AfterUpdate (IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)=0
 This function will be called after update of the observer contents occures. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from iview::IVisualizable
virtual bool IsVisible () const =0
 Check, if this object is visible. More...
 
virtual bool IsDisplayAccepted (const IDisplay &display) const =0
 Check if this object can be connected to this display. More...
 
virtual void OnConnectDisplay (IDisplay *displayPtr)=0
 Called after display is connected. More...
 
virtual void OnDisconnectDisplay (IDisplay *displayPtr)=0
 Called after display is disconnected. More...
 
virtual void Draw (QPainter &drawContext) const =0
 Draw this shape using draw context. More...
 
virtual bool OnDisplayChange (const istd::IChangeable::ChangeSet &changeSet)=0
 It informs about changes in display. More...
 
- Public Member Functions inherited from iview::ITouchable
virtual TouchState IsTouched (istd::CIndex2d position) const =0
 Check, if any shape is touched. More...
 
virtual QString GetShapeDescriptionAt (istd::CIndex2d position) const =0
 Get description to shape at specified position. More...
 
- Public Member Functions inherited from iview::IMouseActionObserver
virtual bool OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)=0
 It is called, when mouse button is pushed down or up on this object. More...
 
virtual bool OnMouseMove (istd::CIndex2d position)=0
 It is called, when mouse is moved. More...
 

Additional Inherited Members

- Public Types inherited from iview::IShape
enum  ChangeFlags { CF_CALIB = 0x3663adf }
 Data model change notification flags. More...
 
- Public Types inherited from iview::ITouchable
enum  TouchState {
  TS_NONE, TS_INACTIVE, TS_TICKER, TS_DRAGGABLE,
  TS_OTHER, TS_LAST = TS_OTHER
}
 Enumeration for possible shape touch states. More...
 

Detailed Description

Common interface for all display console shapes which can interacts with user.

Definition at line 20 of file IInteractiveShape.h.

Member Function Documentation

virtual bool iview::IInteractiveShape::IsSelected ( ) const
pure virtual

Check, if this shape is selected.

Implemented in iview::CInteractiveShapeBase.

virtual void iview::IInteractiveShape::SetSelected ( bool  selectFlag = true)
pure virtual

Inform that this object was selected or deselected.

Parameters
selectFlagif true - selection, else deselection.

Implemented in iview::CInteractiveShapeBase.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy