Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
graphlayout.cpp File Reference

Interface between Inkscape code (SPItem) and graphlayout functions. More...

Go to the source code of this file.

Classes

struct  CheckProgress
 

Functions

bool isConnector (SPItem const *const item)
 Returns true if item is a connector.
 
void filterConnectors (std::vector< SPItem * > const &items, std::list< SPItem * > &filtered)
 Scans the items list and places those items that are not connectors in filtered.
 
void graphlayout (std::vector< SPItem * > const &items)
 Takes a list of inkscape items, extracts the graph defined by connectors between them, and uses graph layout techniques to find a nice layout.
 

Detailed Description

Interface between Inkscape code (SPItem) and graphlayout functions.

Definition in file graphlayout.cpp.

Function Documentation

◆ filterConnectors()

void filterConnectors ( std::vector< SPItem * > const &  items,
std::list< SPItem * > &  filtered 
)

Scans the items list and places those items that are not connectors in filtered.

Definition at line 89 of file graphlayout.cpp.

References isConnector(), item, and items.

Referenced by graphlayout().

◆ graphlayout()

◆ isConnector()

bool isConnector ( SPItem const *const  item)

Returns true if item is a connector.

Definition at line 46 of file graphlayout.cpp.

References item.

Referenced by filterConnectors(), and graphlayout().