arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

EdgeItem Class Reference

#include <CanvasItems.h>

Inheritance diagram for EdgeItem:

CanvasItemBase CanvasItemIF gutz::Counted List of all members.

Detailed Description

an edge (line) composed from 2 nodes (points)

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


Constructor & Destructor Documentation

EdgeItem::EdgeItem NodeItem from,
NodeItem to,
QCanvas *  canvas,
CompositeItem comp = 0
 

Construct.

Definition at line 81 of file CanvasItems.cpp.

References NodeItem::addInEdge(), NodeItem::addOutEdge(), and setPoints().

virtual EdgeItem::~EdgeItem  )  [inline, virtual]
 

Definition at line 161 of file commonQt/canvas/CanvasItems.h.


Member Function Documentation

virtual void gutz::Counted::_decCount  )  [inline, protected, virtual, inherited]
 

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().

virtual int gutz::Counted::_getCount  )  const [inline, protected, virtual, inherited]
 

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.

virtual void gutz::Counted::_incCount  )  [inline, protected, virtual, inherited]
 

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().

QPointArray EdgeItem::areaPoints  )  const [virtual]
 

polygonalItem interface stuff

objects point

line end points

pen width

Implements CanvasItemIF.

Definition at line 120 of file CanvasItems.cpp.

References _end, _start, x, and y.

void EdgeItem::drawShape QPainter &  p  )  [protected, virtual]
 

polygonalItem interface stuff

Implements CanvasItemIF.

Definition at line 170 of file CanvasItems.cpp.

References _end, _start, x, and y.

gutz::vec3d EdgeItem::endPoint  )  const [inline]
 

Definition at line 168 of file commonQt/canvas/CanvasItems.h.

References _end.

Referenced by moveBy().

bool CanvasItemIF::getUpdateLinks  )  const [inline, inherited]
 

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.

void EdgeItem::moveBy double  dx,
double  dy
[virtual]
 

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.

void CanvasItemIF::setActive bool  yes  )  [virtual, inherited]
 

has it been selected and modifiable as a group? bool isActive() declared in QCanvasItem

Definition at line 68 of file CanvasItems.cpp.

void EdgeItem::setEndPoint gutz::vec3d  end  )  [virtual]
 

Definition at line 181 of file CanvasItems.cpp.

References _start, end, and setPoints().

Referenced by NodeItem::moveBy(), moveBy(), and NodeItem::setPoint().

void EdgeItem::setPoints const gutz::vec3d  start,
const gutz::vec3d  end
 

Definition at line 107 of file CanvasItems.cpp.

References _end, _start, end, and start.

void EdgeItem::setPoints double  sx,
double  sy,
double  ex,
double  ey
 

set start [sx,sy] and end [ex, ey] points

Definition at line 95 of file CanvasItems.cpp.

References _end, and _start.

Referenced by EdgeItem(), setEndPoint(), and setStartPoint().

void CanvasItemIF::setSelected bool  yes  )  [virtual, inherited]
 

is it selected? (currently being modified) bool isSelected() declared in QCanvasItem

Definition at line 61 of file CanvasItems.cpp.

void EdgeItem::setStartPoint gutz::vec3d  start  )  [virtual]
 

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().

void CanvasItemIF::setUpdateLinks bool  yes  )  [inline, inherited]
 

Definition at line 118 of file commonQt/canvas/CanvasItems.h.

References CanvasItemIF::_updateLinks.

gutz::vec3d EdgeItem::startPoint  )  const [inline]
 

Definition at line 167 of file commonQt/canvas/CanvasItems.h.

References _start.

Referenced by moveBy().

void CanvasItemIF::updatePen  )  [protected, inherited]
 


Friends And Related Function Documentation

friend class SmartPtr [friend, inherited]
 

Definition at line 40 of file smartptr.h.

Referenced by Nrro::NrroIter< T >::NrroIter().

friend class SmartPtrRef [friend, inherited]
 

Definition at line 41 of file smartptr.h.


Member Data Documentation

CompositeItem* CanvasItemIF::_comp [protected, inherited]
 

Definition at line 129 of file commonQt/canvas/CanvasItems.h.

Referenced by CanvasItemIF::CanvasItemIF(), NodeItem::moveBy(), and moveBy().

gutz::vec3d EdgeItem::_end [protected]
 

Definition at line 184 of file commonQt/canvas/CanvasItems.h.

Referenced by areaPoints(), drawShape(), endPoint(), setPoints(), and setStartPoint().

NodeItem* EdgeItem::_endNode [protected]
 

Definition at line 186 of file commonQt/canvas/CanvasItems.h.

Referenced by moveBy().

gutz::vec3d EdgeItem::_start [protected]
 

Definition at line 183 of file commonQt/canvas/CanvasItems.h.

Referenced by areaPoints(), drawShape(), setEndPoint(), setPoints(), and startPoint().

NodeItem* EdgeItem::_startNode [protected]
 

Definition at line 185 of file commonQt/canvas/CanvasItems.h.

Referenced by moveBy().

bool CanvasItemIF::_updateLinks [protected, inherited]
 

Definition at line 131 of file commonQt/canvas/CanvasItems.h.

Referenced by CanvasItemIF::CanvasItemIF(), CanvasItemIF::getUpdateLinks(), NodeItem::moveBy(), moveBy(), NodeItem::setPoint(), and CanvasItemIF::setUpdateLinks().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk