![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
#include <TShapeBase.h>
Public Types | |
enum | ColorSheme { SelectedColor , EditableColor , InactiveColor , DefaultColor = InactiveColor } |
typedef GraphicsItemClass | BaseClass |
Public Member Functions | |
TShapeBase (bool isEditable=false, const ISceneProvider *providerPtr=nullptr) | |
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 ISceneProvider * | GetSceneProvider () const |
Protected Member Functions | |
i2d::CVector2d | GetPosFromLocal (const QPointF &position) const |
Map position from local graphics item coordinates. | |
QPointF | GetLocalFromPos (const i2d::CVector2d &position) const |
Map position from local graphics item coordinates. | |
virtual void | OnSelectionChanged (bool isSelected) |
virtual void | OnPositionChanged (const QPointF &position) |
virtual QVariant | itemChange (QGraphicsItem::GraphicsItemChange change, const QVariant &value) |
virtual void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
virtual void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) |
void | paint (QPainter *, const QStyleOptionGraphicsItem *, QWidget *) |
Definition at line 30 of file TShapeBase.h.
GraphicsItemClass icmpstr::TShapeBase< GraphicsItemClass >::BaseClass |
Definition at line 33 of file TShapeBase.h.
enum icmpstr::TShapeBase::ColorSheme |
Definition at line 35 of file TShapeBase.h.
icmpstr::TShapeBase< GraphicsItemClass >::TShapeBase | ( | bool | isEditable = false, |
const ISceneProvider * | providerPtr = nullptr ) |
Definition at line 106 of file TShapeBase.h.
|
virtual |
Definition at line 154 of file TShapeBase.h.
|
protected |
Map position from local graphics item coordinates.
Definition at line 222 of file TShapeBase.h.
|
virtual |
Definition at line 129 of file TShapeBase.h.
|
protected |
Map position from local graphics item coordinates.
Definition at line 215 of file TShapeBase.h.
const ISceneProvider * icmpstr::TShapeBase< GraphicsItemClass >::GetSceneProvider | ( | ) | const |
Definition at line 206 of file TShapeBase.h.
|
protectedvirtual |
Definition at line 294 of file TShapeBase.h.
|
protectedvirtual |
Definition at line 303 of file TShapeBase.h.
bool icmpstr::TShapeBase< GraphicsItemClass >::IsEditable | ( | ) | const |
Definition at line 186 of file TShapeBase.h.
|
protectedvirtual |
Reimplemented in icmpstr::TObjectShapeBase< GraphicsItemClass, ObjectClass >, and icmpstr::TObjectShapeBase< QGraphicsRectItem, CVisualRegistryElement >.
Definition at line 249 of file TShapeBase.h.
References ibase::GetCRectangle(), i2d::CRectangle::GetNearestPointTo(), i2d::CVector2d::GetX(), i2d::CVector2d::GetY(), and icmpstr::ISceneProvider::SF_FIXED_SIZE.
|
protectedvirtual |
Reimplemented in icmpstr::TObjectShapeBase< GraphicsItemClass, ObjectClass >, and icmpstr::TObjectShapeBase< QGraphicsRectItem, CVisualRegistryElement >.
Definition at line 241 of file TShapeBase.h.
|
protectedvirtual |
Reimplemented in icmpstr::CRegistryElementShape, icmpstr::TObjectShapeBase< GraphicsItemClass, ObjectClass >, and icmpstr::TObjectShapeBase< QGraphicsRectItem, CVisualRegistryElement >.
Definition at line 229 of file TShapeBase.h.
|
inlineprotected |
Definition at line 332 of file TShapeBase.h.
|
inlineprotected |
Definition at line 338 of file TShapeBase.h.
|
protectedvirtual |
Reimplemented in icmpstr::CRegistryElementShape.
Definition at line 312 of file TShapeBase.h.
|
virtual |
Definition at line 140 of file TShapeBase.h.
void icmpstr::TShapeBase< GraphicsItemClass >::SetEditable | ( | bool | isEditable | ) |
Definition at line 193 of file TShapeBase.h.
|
virtual |
Definition at line 115 of file TShapeBase.h.
Referenced by icmpstr::TObjectShapeBase< GraphicsItemClass, ObjectClass >::TObjectShapeBase().
|
virtual |
Definition at line 165 of file TShapeBase.h.
Referenced by icmpstr::TObjectShapeBase< GraphicsItemClass, ObjectClass >::TObjectShapeBase().
© Witold Gantzke and Kirill Lepskiy