graphlayout.cpp revision a7f9305a82b43cf9bd356c6e19d43e73409d178c
/** \file
* Interface between Inkscape code (SPItem) and graphlayout functions.
*/
/*
* Authors:
* Tim Dwyer <tgdwyer@gmail.com>
*
* Copyright (C) 2005 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#include "util/glib-list-iterators.h"
#include "graphlayout/graphlayout.h"
#include <iostream>
#include <config.h>
#include "sp-path.h"
#include "sp-item.h"
#include "sp-item-transform.h"
#include "sp-conn-end-pair.h"
#include "conn-avoid-ref.h"
#include "libavoid/connector.h"
#include "libavoid/geomtypes.h"
#include "libvpsc/generate-constraints.h"
#include <map>
#include <vector>
#include <algorithm>
#include <float.h>
using namespace std;
using namespace cola;
/**
* Returns true if item is a connector
*/
bool isConnector(SPItem const *const i) {
if(SP_IS_PATH(i)) {
}
}
/**
* Scans the items list and places those items that are
* not connectors in filtered
*/
if(!isConnector(item)) {
}
}
}
/**
* Takes a list of inkscape items, extracts the graph defined by
* connectors between them, and uses graph layout techniques to find
* a nice layout
*/
if(!items) {
return;
}
//Check 2 or more selected objects
if (n < 2) return;
++i)
{
SPItem *u=*i;
}
++i)
{
j != neighbours.end();
++j) {
// What do we do if iv not in nodelookup?!?!
}
if(nlist) {
}
}
double eweights[E];
++it)
{
if(!isConnector(u)) {
}
}
}