ACF $AcfVersion:0$
Public Types | Public Member Functions | List of all members
iview::IShape Class Referenceabstract

Common interface for all display console shapes. More...

#include <IShape.h>

Inheritance diagram for iview::IShape:
imod::IObserver iview::IVisualizable iview::ITouchable istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic iview::CShapeBase iview::IInteractiveShape iview::CDistanceToolShape iview::CImageShape iview::CInteractiveShapeBase iview::CPolypointShape iview::CDistanceToolShape iview::CInteractiveShapeBase iqtgui::TGuiObserverWrap< CViewProviderGuiComp, iview::CImageShape > iview::CAffineTransformation2dShape iview::CLineShape iview::CParallelogramShape iview::CPinShape iview::CRectControlledShapeBase iview::CRectangleShape iview::CAffineTransformation2dShape iview::CLineShape iview::CParallelogramShape iview::CPinShape iview::CRectControlledShapeBase iview::CRectangleShape

Public Types

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_AREA , 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::IColorSchemaGetUserColorSchema () 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 void SetToolTip (const QString &toolTip)=0
 
virtual bool IsInside (const istd::CIndex2d &screenPosition) const =0
 
virtual i2d::CVector2d GetLogPosition (const i2d::CVector2d &screenPosition) const =0
 
virtual bool IsAreaTouchAllowed () const
 
virtual void SetAreaTouchAllowed (bool=true)
 
virtual iview::ISelectable::MousePointerMode UpdateMousePointer (iview::ISelectable::MousePointerMode defaultPointer, ITouchable::TouchState, const istd::CIndex2d &) const
 
- Public Member Functions inherited from imod::IObserver
virtual bool IsModelAttached (const IModel *modelPtr=NULL) const =0
 Checks if the specified model is currently attached to this observer.
 
virtual bool OnModelAttached (IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)=0
 Callback invoked when an observable model is about to be attached to this observer.
 
virtual bool OnModelDetached (IModel *modelPtr)=0
 Callback invoked when an observable model is about to be detached from this observer.
 
virtual void BeforeUpdate (IModel *modelPtr)=0
 Callback invoked before an update of the observer's content occurs.
 
virtual void AfterUpdate (IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)=0
 Callback invoked after an update of the observer's content occurs.
 
- 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.
 
virtual bool IsDisplayAccepted (const IDisplay &display) const =0
 Check if this object can be connected to this display.
 
virtual void OnConnectDisplay (IDisplay *displayPtr)=0
 Called after display is connected.
 
virtual void OnDisconnectDisplay (IDisplay *displayPtr)=0
 Called after display is disconnected.
 
virtual void Draw (QPainter &drawContext) const =0
 Draw this shape using draw context.
 
virtual bool OnDisplayChange (const istd::IChangeable::ChangeSet &changeSet)=0
 It informs about changes in display.
 
- 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.
 

Detailed Description

Common interface for all display console shapes.

Shapes are representants of model objects in display console.

Definition at line 28 of file IShape.h.

Member Enumeration Documentation

◆ ChangeFlags

Data model change notification flags.

Enumerator
CF_CALIB 

Definition at line 37 of file IShape.h.

Member Function Documentation

◆ GetBoundingBox()

virtual i2d::CRect iview::IShape::GetBoundingBox ( ) const
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 OnDisplayChange(int) method.

Implemented in iview::CShapeBase.

◆ GetLayerType()

virtual int iview::IShape::GetLayerType ( ) const
pure virtual

Get layer type of this shape object.

See also
IViewLayer::LayerType

Implemented in iview::CShapeBase.

Referenced by iqt2d::TViewExtenderCompBase< Base >::AddItemsToScene().

◆ GetLogPosition()

virtual i2d::CVector2d iview::IShape::GetLogPosition ( const i2d::CVector2d screenPosition) const
pure virtual

Implemented in iview::CShapeBase.

◆ GetUserColorSchema()

virtual const iview::IColorSchema * iview::IShape::GetUserColorSchema ( ) const
pure virtual

Get color schema from view or user defined.

Implemented in iview::CShapeBase.

◆ IsAreaTouchAllowed()

virtual bool iview::IShape::IsAreaTouchAllowed ( ) const
inlinevirtual

Reimplemented in iview::CPolygonShape.

Definition at line 82 of file IShape.h.

◆ IsInside()

virtual bool iview::IShape::IsInside ( const istd::CIndex2d screenPosition) const
pure virtual

◆ SetAreaTouchAllowed()

virtual void iview::IShape::SetAreaTouchAllowed ( bool  = true)
inlinevirtual

Reimplemented in iview::CPolygonShape.

Definition at line 83 of file IShape.h.

◆ SetDefaultDescription()

virtual void iview::IShape::SetDefaultDescription ( const QString &  description)
pure virtual

Set default description will be used to display on console.

Implemented in iview::CShapeBase.

◆ SetToolTip()

virtual void iview::IShape::SetToolTip ( const QString &  toolTip)
pure virtual

Implemented in iview::CShapeBase.

◆ SetUserColorSchema()

virtual void iview::IShape::SetUserColorSchema ( const IColorSchema schemaPtr)
pure virtual

Set color schema to draw shape.

Implemented in iview::CShapeBase.

◆ SetVisible()

virtual void iview::IShape::SetVisible ( bool  state = true)
pure virtual

Make shape to be visible or not.

Implemented in iview::CShapeBase.

◆ UpdateMousePointer()

virtual iview::ISelectable::MousePointerMode iview::IShape::UpdateMousePointer ( iview::ISelectable::MousePointerMode  defaultPointer,
ITouchable::TouchState  ,
const istd::CIndex2d  
) const
inlinevirtual

Definition at line 85 of file IShape.h.


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