21 #ifndef LAYOUT_TOPOLOGY_CONNECTOR_H 22 #define LAYOUT_TOPOLOGY_CONNECTOR_H 26 #include "libcola/cola.h" 27 #include "libtopology/topology_graph.h" 88 void freeAssociatedObjects(
void);
89 void handleResizes(
const cola::Resizes& resizeList,
unsigned n,
90 std::valarray<double>& X, std::valarray<double>& Y,
94 void computePathLengths(
unsigned short** G);
95 double computeStress(
void)
const;
96 bool useTopologySolver(
void)
const;
97 void makeFeasible(
bool generateNonOverlapConstraints,
104 const vpsc::Dim dim, std::valarray<double>& g,
106 std::valarray<double> &coords,
107 cola::DesiredPositionsInDim& des,
double oldStress);
libtopology: Extensions for topology preservation for libcola and libavoid libraries.
Definition: shape.h:41
topology::Edges topologyRoutes
Topology information: edges routes.
Definition: cola_topology_addon.h:113
This class can be passed to libcola to replace some functionality to provide topology preserving layo...
Definition: cola_topology_addon.h:44
std::vector< Variable * > Variables
A vector of pointers to Variable objects.
Definition: constraint.h:38
Interface for writing COLA addons to handle topology preserving layout.
Definition: cola.h:531
std::vector< Constraint * > Constraints
A vector of pointers to Constraint objects.
Definition: constraint.h:125
topology::Nodes topologyNodes
Topology information: node positions and sizes.
Definition: cola_topology_addon.h:110
std::vector< Rectangle * > Rectangles
A vector of pointers to Rectangle objects.
Definition: rectangle.h:246
std::vector< cola::Resize > Resizes
A vector of Resize objects.
Definition: cola.h:135
Holds the cluster hierarchy specification for a diagram.
Definition: cluster.h:172
std::vector< Node * > Nodes
A vector of pointers to Node objects.
Definition: topology_graph.h:82
A rectangle represents a fixed-size shape in the diagram that may be moved to prevent overlaps and sa...
Definition: rectangle.h:78
std::vector< Edge * > Edges
A vector of pointers to Edge objects.
Definition: topology_graph.h:533
Dim
Indicates the x- or y-dimension.
Definition: rectangle.h:41
Implements a constrained force-directed layout algorithm.
Definition: cola.h:622
void writeSVGFile(std::string filename=std::string())
Writes an SVG file displaying the current topology of the nodes and edges.
Definition: cola_topology_addon.cpp:131
std::vector< CompoundConstraint * > CompoundConstraints
A vector of pointers to CompoundConstraint objects.
Definition: compound_constraints.h:259
ColaTopologyAddon()
Constructs an empty ColaTopologyAddon instance for collecting topology information.
Definition: cola_topology_addon.cpp:35