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

#include <ISelectableLayer.h>

Inheritance diagram for iview::ISelectableLayer:
iview::IViewLayer iview::ISelectable iview::IDraggable iview::IDisplay iview::ITouchable iview::ITouchable istd::IPolymorphic iview::IShapeObserver istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic iview::CInteractiveViewLayer

Public Member Functions

virtual bool ConnectInteractiveShape (IInteractiveShape *shapePtr)=0
 Connect active shape object. More...
 
virtual int GetUnselectedShapesCount () const =0
 Get number of unselected shapes. More...
 
virtual void DrawFocusedShape (QPainter &drawContext)=0
 Draw only focused shape. More...
 
virtual bool OnMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)=0
 Called, when mouse button was pushed down or up. More...
 
virtual bool OnFocusedMouseButton (istd::CIndex2d position, Qt::MouseButton buttonType, bool downFlag)=0
 Called, when this layer has focus, and mouse button was pushed down or up on this object. More...
 
virtual bool OnFocusedMouseMove (istd::CIndex2d position)=0
 Called, when this layer has focus, and mouse was moved. More...
 
virtual TouchState IsTouched (istd::CIndex2d position, IInteractiveShape **shapePtrPtr=NULL) const =0
 Check, if any shape is touched. More...
 
virtual TouchState IsTouched (istd::CIndex2d position) const
 Check, if any shape is touched. More...
 
- Public Member Functions inherited from iview::IViewLayer
virtual void OnConnectView (IShapeView *viewPtr)=0
 Called after layer is connected to view. More...
 
virtual void OnDisconnectView (IShapeView *viewPtr)=0
 Called before layer is disconnected from view. More...
 
virtual IShapeViewGetViewPtr () const =0
 Get parent view of this layer. More...
 
virtual bool IsShapeConnected (IShape *shapePtr)=0
 Check, if the shape is connected to the layer. More...
 
virtual bool ConnectShape (IShape *shapePtr)=0
 Connect shape object to view. More...
 
virtual int GetShapesCount () const =0
 Get count of all shapes on this layer. More...
 
virtual void UpdateAllShapes (const istd::IChangeable::ChangeSet &changeSet)=0
 Send update to all shapes after view changes. More...
 
virtual void DisconnectAllShapes ()=0
 Disconnect all shapes from this layer. More...
 
virtual void DrawShapes (QPainter &drawContext)=0
 Draw all shapes using specified draw context. More...
 
virtual bool IsVisible () const =0
 Check, if this layer is visible. More...
 
virtual void SetVisible (bool state=true)=0
 Make this layer visible. More...
 
- Public Member Functions inherited from iview::IDisplay
virtual IDisplayGetParentDisplayPtr () const =0
 Get parent object of this display. More...
 
virtual const
iview::CScreenTransform
GetTransform () const =0
 Return a screen transformation. More...
 
virtual i2d::CRect GetBoundingBox () const =0
 Get bounding box of all object in this display. More...
 
virtual i2d::CRect GetClientRect () const =0
 Get bounding box of client area. More...
 
virtual const IColorSchemaGetColorSchema () const =0
 Get color schema. More...
 
virtual void OnAreaInvalidated (const i2d::CRect &prevArea, const i2d::CRect &newArea)=0
 Invalidate display area. More...
 
- Public Member Functions inherited from iview::IShapeObserver
virtual void OnChangeShape (IShape *shapePtr)=0
 Invalidate a shape. More...
 
virtual bool DisconnectShape (IShape *shapePtr)=0
 Disconnect shape object from view. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from iview::ITouchable
virtual QString GetShapeDescriptionAt (istd::CIndex2d position) const =0
 Get description to shape at specified position. More...
 
- Public Member Functions inherited from iview::ISelectable
virtual int GetSelectedShapesCount () const =0
 Get count of selected shapes. More...
 
virtual void InsertSelectedShapes (SelectedShapes &result) const =0
 Get set of selected shapes. More...
 
virtual void DeselectAllShapes ()=0
 Set all shapes to be deselected. More...
 
virtual int GetKeysState () const =0
 Get state of system keys. More...
 
virtual int GetEditMode () const =0
 Get actual edit mode. More...
 
virtual void OnShapeFocused (IInteractiveShape *shapePtr)=0
 Called when shape get focus. More...
 
virtual void OnShapeDefocused (IInteractiveShape *shapePtr)=0
 Called when shape loose focus. More...
 
virtual void OnShapeSelected (IInteractiveShape &shape, bool state=true)=0
 It is called after change shape selection state. More...
 
- Public Member Functions inherited from iview::IDraggable
virtual void BeginDrag (const istd::CIndex2d &reference)=0
 Called before dragging is begin. More...
 
virtual void SetDragPosition (const istd::CIndex2d &position)=0
 Set new drag position. More...
 
virtual void EndDrag ()=0
 Called after dragging. More...
 
virtual bool IsDraggable () const =0
 Check if drag is enabled. More...
 

Additional Inherited Members

- Public Types inherited from iview::IViewLayer
enum  LayerType {
  LT_NONE, LT_BACKGROUND, LT_INACTIVE, LT_ACTIVE,
  LT_CALIBRATION
}
 
- Public Types inherited from iview::IDisplay
enum  ChangeFlags {
  CF_TRANSFORM = 0x3f67360, CF_COLORS, CF_SIZE, CF_EDIT_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_OTHER, TS_LAST = TS_OTHER
}
 Enumeration for possible shape touch states. More...
 
- Public Types inherited from iview::ISelectable
enum  MousePointerMode {
  MPM_NONE, MPM_DEFAULT, MPM_DESELECT, MPM_POINTER,
  MPM_WAIT, MPM_CROSS, MPM_HAND, MPM_DRAG,
  MPM_SCREEN_MOVE, MPM_LAST = MPM_SCREEN_MOVE
}
 Defines possible states of mouse pointer. More...
 
enum  EditMode { EM_NONE = 0, EM_MOVE = 1, EM_ADD = 2, EM_REMOVE = 3 }
 Describes standard edit modes. More...
 
typedef QSet< IInteractiveShape * > SelectedShapes
 

Detailed Description

Definition at line 25 of file ISelectableLayer.h.

Member Function Documentation

virtual bool iview::ISelectableLayer::ConnectInteractiveShape ( IInteractiveShape shapePtr)
pure virtual

Connect active shape object.

Implemented in iview::CInteractiveViewLayer.

virtual void iview::ISelectableLayer::DrawFocusedShape ( QPainter &  drawContext)
pure virtual

Draw only focused shape.

Implemented in iview::CInteractiveViewLayer.

virtual int iview::ISelectableLayer::GetUnselectedShapesCount ( ) const
pure virtual

Get number of unselected shapes.

Implemented in iview::CInteractiveViewLayer.

virtual TouchState iview::ISelectableLayer::IsTouched ( istd::CIndex2d  position,
IInteractiveShape **  shapePtrPtr = NULL 
) const
pure virtual

Check, if any shape is touched.

When shape is touched, it return also pointer to this shape.

Parameters
shapePtrPtrpointer to shape pointer will be filled if shape is found. It can be equal NULL.
Returns
touch state for the shape, or iview::IInteractiveShape::TS_NONE, when nothing found.

Implemented in iview::CInteractiveViewLayer.

Referenced by IsTouched().

ITouchable::TouchState iview::ISelectableLayer::IsTouched ( istd::CIndex2d  position) const
inlinevirtual

Check, if any shape is touched.

When shape is touched, it return also pointer to this shape.

Returns
touch state for the shape, or iview::IInteractiveShape::TS_NONE, when nothing found.

Implements iview::ITouchable.

Reimplemented in iview::CInteractiveViewLayer.

Definition at line 81 of file ISelectableLayer.h.

References IsTouched(), and NULL.

virtual bool iview::ISelectableLayer::OnFocusedMouseButton ( istd::CIndex2d  position,
Qt::MouseButton  buttonType,
bool  downFlag 
)
pure virtual

Called, when this layer has focus, and mouse button was pushed down or up on this object.

Returns
true, if this event was consumed.

Implemented in iview::CInteractiveViewLayer.

virtual bool iview::ISelectableLayer::OnFocusedMouseMove ( istd::CIndex2d  position)
pure virtual

Called, when this layer has focus, and mouse was moved.

Returns
true, if this event was consumed.

Implemented in iview::CInteractiveViewLayer.

virtual bool iview::ISelectableLayer::OnMouseButton ( istd::CIndex2d  position,
Qt::MouseButton  buttonType,
bool  downFlag 
)
pure virtual

Called, when mouse button was pushed down or up.

Returns
true, if this event was consumed.

Implemented in iview::CInteractiveViewLayer.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy