Logo Search packages:      
Sourcecode: qsapecng version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes

qsapecng::Wire Class Reference

Inheritance diagram for qsapecng::Wire:
Inheritance graph
Collaboration diagram for qsapecng::Wire:
Collaboration graph

List of all members.

Public Types

enum  { Type = UserType + 1 }
enum  { OpacityFactor = 3 }
enum  ItemType { Std = Type, Wire, Label }

Public Member Functions

uint angle () const
QRectF boundingRect () const
QPointF fromPoint () const
void invalidate ()
bool isJunctionsConnected () const
ItemType itemType () const
Wirejoined (Wire *wire)
void mirror ()
bool mirrored () const
Qt::Orientation orientation () const
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
int propagate (int value)
void rotate ()
void rotateBack ()
bool rotated () const
SchematicSceneschematicScene () const
void setConnectedJunctions (bool state)
void setWire (const QLineF &wire)
QPointF toPoint () const
virtual int type () const
 Wire (QGraphicsItem *parent=0, SchematicScene *scene=0)
 Wire (const QLineF &wire, bool connectedJunctions=true, QGraphicsItem *parent=0, SchematicScene *scene=0)

Protected Member Functions

QVariant itemChange (GraphicsItemChange change, const QVariant &value)
void mouseDoubleClickEvent (QGraphicsSceneMouseEvent *event)
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
qreal penWidth () const

Protected Attributes

QPen defaultPen_
QPen itemPen_

Private Types

enum  { COLOR_BORDER = 2 }

Private Member Functions

void refreshNodeList ()

Private Attributes

bool connectedJunctions_
bool mod_
QList< GraphicsNode * > nodes_
Qt::Orientation orientation_
QPainterPath path_

Detailed Description

Definition at line 40 of file wire.h.

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

Generated by  Doxygen 1.6.0   Back to index