#include <CanvasItems.h>
Inheritance diagram for PolygonEdit:

Definition at line 245 of file commonQt/canvas/CanvasItems.h.
Public Member Functions | |
| PolygonEdit (QCanvas *canvas, CompositeItem *comp=0) | |
| Construct. | |
| virtual | ~PolygonEdit () |
| Destruct. | |
| virtual void | setPoints (QPointArray p) |
| Set Points. | |
| QPointArray | areaPoints () const |
| Area points. | |
| virtual void | childUpdate (CanvasItemBase *child) |
| TODO: as far as I can tell child update is unused!! | |
| virtual void | childMovedBy (CanvasItemBase *child, gutz::vec3d dv) |
| child Moveby (relative motion) | |
| virtual void | childMoved (CanvasItemBase *child, gutz::vec3d last, gutz::vec3d point) |
| child moved (absolute modtion) | |
| virtual void | moveBy (double dx, double dy) |
| virtual void | moveBy (gutz::vec3d dv) |
| this (incrmentaly) translates each node by differential vec "dv" | |
| 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) |
| Draw Shape. | |
| void | nukePoints () |
| Nuke Points. | |
| void | nukeEdges () |
| Nuke Edges. | |
| int | getEdgeIndex (CanvasItemBase *ptr) |
| returns -1 if not an edge/node respectively | |
| int | getNodeIndex (CanvasItemBase *ptr) |
| node index | |
| 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 | |
| NodeItemVec | _points |
| EdgeItemVec | _edges |
| CompositeItem * | _comp |
| bool | _updateLinks |
Friends | |
| class | SmartPtr |
| class | SmartPtrRef |
|
||||||||||||
|
Construct.
Definition at line 343 of file CanvasItems.cpp. |
|
|
Destruct.
Definition at line 351 of file CanvasItems.cpp. References nukeEdges(), and nukePoints(). |
|
|
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(). |
|
|
Area points.
Implements CanvasItemIF. Definition at line 360 of file CanvasItems.cpp. |
|
||||||||||||||||
|
child moved (absolute modtion)
Implements CompositeItem. Reimplemented in TFBoxItem. Definition at line 260 of file commonQt/canvas/CanvasItems.h. |
|
||||||||||||
|
child Moveby (relative motion)
Implements CompositeItem. Reimplemented in TFBoxItem. Definition at line 258 of file commonQt/canvas/CanvasItems.h. |
|
|
TODO: as far as I can tell child update is unused!!
Implements CompositeItem. Reimplemented in TFBoxItem. Definition at line 256 of file commonQt/canvas/CanvasItems.h. |
|
|
Draw Shape.
Implements CanvasItemIF. Definition at line 417 of file CanvasItems.cpp. |
|
|
returns -1 if not an edge/node respectively
Definition at line 424 of file CanvasItems.cpp. References _edges. Referenced by TFBoxItem::childMoved(), and TFBoxItem::childMovedBy(). |
|
|
node index
Definition at line 435 of file CanvasItems.cpp. References _points. Referenced by TFBoxItem::childMoved(), and TFBoxItem::childMovedBy(). |
|
|
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. |
|
|
this (incrmentaly) translates each node by differential vec "dv"
Definition at line 446 of file CanvasItems.cpp. References _points. |
|
||||||||||||
|
Definition at line 262 of file commonQt/canvas/CanvasItems.h. |
|
|
Nuke Edges.
Definition at line 406 of file CanvasItems.cpp. References _edges, and EdgeItemVec. Referenced by setPoints(), and ~PolygonEdit(). |
|
|
Nuke Points.
Definition at line 395 of file CanvasItems.cpp. References _points, and NodeItemVec. Referenced by setPoints(), and ~PolygonEdit(). |
|
|
has it been selected and modifiable as a group? bool isActive() declared in QCanvasItem
Definition at line 68 of file CanvasItems.cpp. |
|
|
Set Points. create nodes create points Definition at line 374 of file CanvasItems.cpp. References _edges, _points, EdgeItemSP, NodeItemSP, nukeEdges(), and nukePoints(). Referenced by TFView::TFView(). |
|
|
is it selected? (currently being modified) bool isSelected() declared in QCanvasItem
Definition at line 61 of file CanvasItems.cpp. |
|
|
Definition at line 118 of file commonQt/canvas/CanvasItems.h. References CanvasItemIF::_updateLinks. |
|
|
|
|
|
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 EdgeItem::moveBy(). |
|
|
Definition at line 276 of file commonQt/canvas/CanvasItems.h. Referenced by getEdgeIndex(), TFBoxItem::initBox(), nukeEdges(), and setPoints(). |
|
|
Definition at line 275 of file commonQt/canvas/CanvasItems.h. Referenced by areaPoints(), getNodeIndex(), TFBoxItem::initBox(), moveBy(), nukePoints(), TFBoxItem::setBoxDims(), and setPoints(). |
|
|
Definition at line 131 of file commonQt/canvas/CanvasItems.h. Referenced by CanvasItemIF::CanvasItemIF(), CanvasItemIF::getUpdateLinks(), NodeItem::moveBy(), EdgeItem::moveBy(), NodeItem::setPoint(), and CanvasItemIF::setUpdateLinks(). |