Public Types | Signals | Public Member Functions | Protected Types | Protected Member Functions | List of all members
icmpstr::CRegistryElementShape Class Reference

Visualization of geometrical registry elements. More...

#include <CRegistryElementShape.h>

Inheritance diagram for icmpstr::CRegistryElementShape:
icmpstr::TObjectShapeBase< QGraphicsRectItem, CVisualRegistryElement > icmpstr::TShapeBase< QGraphicsRectItem > imod::TSingleModelObserverBase< CVisualRegistryElement > imod::CSingleModelObserverBase imod::IObserver istd::IPolymorphic

Public Types

typedef
icmpstr::TObjectShapeBase
< QGraphicsRectItem,
CVisualRegistryElement
BaseClass
 
- Public Types inherited from icmpstr::TObjectShapeBase< QGraphicsRectItem, CVisualRegistryElement >
typedef TShapeBase
< QGraphicsRectItem > 
BaseClass
 
typedef
imod::TSingleModelObserverBase
< CVisualRegistryElement
BaseClass2
 
- Public Types inherited from icmpstr::TShapeBase< QGraphicsRectItem >
enum  ColorSheme
 
typedef QGraphicsRectItem BaseClass
 
- Public Types inherited from imod::TSingleModelObserverBase< CVisualRegistryElement >
typedef CSingleModelObserverBase BaseClass
 
typedef CVisualRegistryElement ModelType
 

Signals

void RectChanged (QRectF rect)
 
void SelectionChanged (bool state)
 

Public Member Functions

 CRegistryElementShape (CVisualRegistryEditorComp *registryViewPtr, const icmpstr::ISceneProvider *providerPtr=NULL)
 
QRectF GetViewRect () const
 
void CheckConsistency ()
 Check consistency, if it is changed do update. More...
 
virtual QRectF boundingRect () const
 
virtual void paint (QPainter *painterPtr, const QStyleOptionGraphicsItem *stylePtr, QWidget *widgetPtr)
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *eventPtr)
 
virtual void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *eventPtr)
 
virtual bool OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
 
- Public Member Functions inherited from icmpstr::TObjectShapeBase< QGraphicsRectItem, CVisualRegistryElement >
 TObjectShapeBase (bool isEditable=false, const ISceneProvider *providerPtr=NULL)
 
- Public Member Functions inherited from icmpstr::TShapeBase< QGraphicsRectItem >
 TShapeBase (bool isEditable=false, const ISceneProvider *providerPtr=NULL)
 
virtual void SetPen (int colorSheme, const QPen &pen)
 
virtual QPen GetPen (int colorSheme) const
 
virtual void SetBrush (int colorSheme, const QBrush &pen)
 
virtual QBrush GetBrush (int colorSheme) const
 
virtual void SwitchColorSheme (int colorSheme)
 
bool IsEditable () const
 
void SetEditable (bool isEditable)
 
const ISceneProviderGetSceneProvider () const
 
- Public Member Functions inherited from imod::TSingleModelObserverBase< CVisualRegistryElement >
 TSingleModelObserverBase ()
 
CVisualRegistryElement * GetObservedObject () const
 
CVisualRegistryElement * GetObjectPtr () const
 
bool AttachOrSetObject (CVisualRegistryElement *objectPtr)
 
virtual bool OnModelDetached (imod::IModel *modelPtr)
 
- Public Member Functions inherited from imod::IObserver
virtual bool IsModelAttached (const IModel *modelPtr=NULL) const =0
 
virtual void BeforeUpdate (IModel *modelPtr)=0
 

Protected Types

enum  { SIDE_OFFSET = 4, SHADOW_OFFSET = 10 }
 

Protected Member Functions

void CalcExportedInteraces (const CVisualRegistryElement &element)
 
void UpdateGraphicsItem (const CVisualRegistryElement &element)
 
virtual void OnSelectionChanged (bool isSelected)
 
- Protected Member Functions inherited from icmpstr::TObjectShapeBase< QGraphicsRectItem, CVisualRegistryElement >
virtual void OnPositionChanged (const QPointF &position)
 
virtual QVariant itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *eventPtr)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *eventPtr)
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 
- Protected Member Functions inherited from icmpstr::TShapeBase< QGraphicsRectItem >
i2d::CVector2d GetPosFromLocal (const QPointF &position) const
 Map position from local graphics item coordinates. More...
 
QPointF GetLocalFromPos (const i2d::CVector2d &position) const
 Map position from local graphics item coordinates. More...
 
virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
 
- Protected Member Functions inherited from imod::TSingleModelObserverBase< CVisualRegistryElement >
virtual CVisualRegistryElement * CastFromModel (imod::IModel *modelPtr) const
 

Detailed Description

Visualization of geometrical registry elements.

Definition at line 31 of file CRegistryElementShape.h.

Member Typedef Documentation

Definition at line 36 of file CRegistryElementShape.h.

Member Enumeration Documentation

anonymous enum
protected
Enumerator
SIDE_OFFSET 
SHADOW_OFFSET 

Definition at line 63 of file CRegistryElementShape.h.

Constructor & Destructor Documentation

icmpstr::CRegistryElementShape::CRegistryElementShape ( CVisualRegistryEditorComp registryViewPtr,
const icmpstr::ISceneProvider providerPtr = NULL 
)

Member Function Documentation

virtual QRectF icmpstr::CRegistryElementShape::boundingRect ( ) const
virtual
void icmpstr::CRegistryElementShape::CalcExportedInteraces ( const CVisualRegistryElement element)
protected
void icmpstr::CRegistryElementShape::CheckConsistency ( )

Check consistency, if it is changed do update.

QRectF icmpstr::CRegistryElementShape::GetViewRect ( ) const
virtual void icmpstr::CRegistryElementShape::mouseDoubleClickEvent ( QGraphicsSceneMouseEvent *  eventPtr)
virtual
virtual void icmpstr::CRegistryElementShape::mouseMoveEvent ( QGraphicsSceneMouseEvent *  eventPtr)
virtual
virtual bool icmpstr::CRegistryElementShape::OnModelAttached ( imod::IModel modelPtr,
istd::IChangeable::ChangeSet changeMask 
)
virtual
virtual void icmpstr::CRegistryElementShape::OnSelectionChanged ( bool  isSelected)
protectedvirtual
virtual void icmpstr::CRegistryElementShape::paint ( QPainter *  painterPtr,
const QStyleOptionGraphicsItem *  stylePtr,
QWidget *  widgetPtr 
)
virtual
void icmpstr::CRegistryElementShape::RectChanged ( QRectF  rect)
signal
void icmpstr::CRegistryElementShape::SelectionChanged ( bool  state)
signal
void icmpstr::CRegistryElementShape::UpdateGraphicsItem ( const CVisualRegistryElement element)
protectedvirtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy