diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-02-10 04:23:35 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2006-02-10 04:23:35 +0000 |
| commit | bf26c1cb6feedab295da4823ef571a7e66fc36ed (patch) | |
| tree | 1c99174b02c8a3c84d4f53403d16b3978bd23e3b /src/conn-avoid-ref.h | |
| parent | Add unit conversion. (diff) | |
| download | inkscape-bf26c1cb6feedab295da4823ef571a7e66fc36ed.tar.gz inkscape-bf26c1cb6feedab295da4823ef571a7e66fc36ed.zip | |
* src/sp-conn-end-pair.cpp, src/sp-conn-end-pair.h,
src/conn-avoid-ref.cpp, src/conn-avoid-ref.h,
src/libavoid/connector.cpp, src/libavoid/connector.h,
src/libavoid/visibility.cpp:
Add some code to allow querying of items and connectors to find
out what is attached to them. This will allow graph layout
algorithms (currently being work on by Tim Dwyer) to determine
a graph structure from the diagram.
(bzr r107)
Diffstat (limited to 'src/conn-avoid-ref.h')
| -rw-r--r-- | src/conn-avoid-ref.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h index ac9295cf9..28d5de28a 100644 --- a/src/conn-avoid-ref.h +++ b/src/conn-avoid-ref.h @@ -30,6 +30,13 @@ public: void setAvoid(char const *value); void handleSettingChange(void); + + // Returns a list of SPItems of all connectors attached to this + // object. Pass one of the following for 'type': + // Avoid::ConnRef::runningTo + // Avoid::ConnRef::runningFrom + // Avoid::ConnRef::runningToAndFrom + GSList *getAttachedConnectors(const unsigned int type); private: SPItem *item; |
