#include <CanvasItems.h>
Inheritance diagram for EdgeItem:
Definition at line 157 of file commonQt/canvas/CanvasItems.h.
Public Member Functions | |
EdgeItem (NodeItem *, NodeItem *, QCanvas *canvas, CompositeItem *comp=0) | |
Construct. | |
virtual | ~EdgeItem () |
void | setPoints (double sx, double sy, double ex, double ey) |
set start [sx,sy] and end [ex, ey] points | |
void | setPoints (const gutz::vec3d start, const gutz::vec3d end) |
gutz::vec3d | startPoint () const |
gutz::vec3d | endPoint () const |
virtual void | setStartPoint (gutz::vec3d start) |
doesn't update nodes | |
virtual void | setEndPoint (gutz::vec3d end) |
virtual void | moveBy (double dx, double dy) |
does update nodes | |
virtual QPointArray | areaPoints () const |
polygonalItem interface stuff | |
virtual void | setSelected (bool yes) |
is it selected? (currently being modified) bool isSelected() declared in QCanvasItem | |
virtual void | setActive (bool yes) |
has it been selected and modifiable as a group? bool isActive() declared in QCanvasItem | |
bool | getUpdateLinks () const |
do you want this object to update other objects that are linked to it? | |
void | setUpdateLinks (bool yes) |
Protected Member Functions | |
virtual void | drawShape (QPainter &p) |
polygonalItem interface stuff | |
void | updatePen () |
virtual void | _incCount () |
gutz::Counted interface, increment reference count by one. | |
virtual void | _decCount () |
gutz::Counted interface, decrement reference count by one. | |
virtual int | _getCount () const |
gutz::Counted interface, get the current reference count. | |
Protected Attributes | |
gutz::vec3d | _start |
gutz::vec3d | _end |
NodeItem * | _startNode |
NodeItem * | _endNode |
CompositeItem * | _comp |
bool | _updateLinks |
Friends | |
class | SmartPtr |
class | SmartPtrRef |
|
Construct.
Definition at line 81 of file CanvasItems.cpp. References NodeItem::addInEdge(), NodeItem::addOutEdge(), and setPoints(). |
|
Definition at line 161 of file commonQt/canvas/CanvasItems.h. |
|
gutz::Counted interface, decrement reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 54 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
gutz::Counted interface, get the current reference count. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Definition at line 58 of file smartptr.h. |
|
gutz::Counted interface, increment reference count by one. Not generaly used by subclasses, mostly for collaboration with gutz::SmartPtr. Sometimes you need to call this though, see the documentation for gutz::SmartPtr Definition at line 48 of file smartptr.h. Referenced by TFImage::clear(), NrroImage::fBlendOverRGBA(), and Nrro::updateMinMax(). |
|
polygonalItem interface stuff objects point line end points pen width Implements CanvasItemIF. Definition at line 120 of file CanvasItems.cpp. |
|
polygonalItem interface stuff
Implements CanvasItemIF. Definition at line 170 of file CanvasItems.cpp. |
|
Definition at line 168 of file commonQt/canvas/CanvasItems.h. References _end. Referenced by moveBy(). |
|
do you want this object to update other objects that are linked to it?
Definition at line 117 of file commonQt/canvas/CanvasItems.h. References CanvasItemIF::_updateLinks. |
|
does update nodes
Definition at line 188 of file CanvasItems.cpp. References CanvasItemIF::_comp, _endNode, _startNode, CanvasItemIF::_updateLinks, CompositeItem::childMoved(), endPoint(), setEndPoint(), NodeItem::setPoint(), setStartPoint(), startPoint(), and gutz::vec3d. |
|
has it been selected and modifiable as a group? bool isActive() declared in QCanvasItem
Definition at line 68 of file CanvasItems.cpp. |
|
Definition at line 181 of file CanvasItems.cpp. References _start, end, and setPoints(). Referenced by NodeItem::moveBy(), moveBy(), and NodeItem::setPoint(). |
|
Definition at line 107 of file CanvasItems.cpp. |
|
set start [sx,sy] and end [ex, ey] points
Definition at line 95 of file CanvasItems.cpp. Referenced by EdgeItem(), setEndPoint(), and setStartPoint(). |
|
is it selected? (currently being modified) bool isSelected() declared in QCanvasItem
Definition at line 61 of file CanvasItems.cpp. |
|
doesn't update nodes
Definition at line 176 of file CanvasItems.cpp. References _end, setPoints(), and start. Referenced by NodeItem::moveBy(), moveBy(), and NodeItem::setPoint(). |
|
Definition at line 118 of file commonQt/canvas/CanvasItems.h. References CanvasItemIF::_updateLinks. |
|
Definition at line 167 of file commonQt/canvas/CanvasItems.h. References _start. Referenced by moveBy(). |
|
|
|
Definition at line 40 of file smartptr.h. Referenced by Nrro::NrroIter< T >::NrroIter(). |
|
Definition at line 41 of file smartptr.h. |
|
Definition at line 129 of file commonQt/canvas/CanvasItems.h. Referenced by CanvasItemIF::CanvasItemIF(), NodeItem::moveBy(), and moveBy(). |
|
Definition at line 184 of file commonQt/canvas/CanvasItems.h. Referenced by areaPoints(), drawShape(), endPoint(), setPoints(), and setStartPoint(). |
|
Definition at line 186 of file commonQt/canvas/CanvasItems.h. Referenced by moveBy(). |
|
Definition at line 183 of file commonQt/canvas/CanvasItems.h. Referenced by areaPoints(), drawShape(), setEndPoint(), setPoints(), and startPoint(). |
|
Definition at line 185 of file commonQt/canvas/CanvasItems.h. Referenced by moveBy(). |
|
Definition at line 131 of file commonQt/canvas/CanvasItems.h. Referenced by CanvasItemIF::CanvasItemIF(), CanvasItemIF::getUpdateLinks(), NodeItem::moveBy(), moveBy(), NodeItem::setPoint(), and CanvasItemIF::setUpdateLinks(). |