23 #ifndef COLA_CC_CLUSTERCONTAINMENTCONSTRAINTS_H 24 #define COLA_CC_CLUSTERCONTAINMENTCONSTRAINTS_H 27 #include "libcola/compound_constraints.h" 35 class ClusterContainmentConstraints :
public CompoundConstraint
38 ClusterContainmentConstraints(Cluster *cluster,
unsigned int priority,
39 std::vector<vpsc::Rectangle*>& boundingBoxes);
40 SubConstraintAlternatives getCurrSubConstraintAlternatives(
46 std::vector<vpsc::Rectangle*>& bbs);
47 std::string toString(
void)
const;
52 #endif // COLA_CC_CLUSTERCONTAINMENTCONSTRAINTS libvpsc: Variable Placement with Separation Constraints quadratic program solver library.
Definition: assertions.h:61
std::vector< Variable * > Variables
A vector of pointers to Variable objects.
Definition: constraint.h:38
std::vector< Constraint * > Constraints
A vector of pointers to Constraint objects.
Definition: constraint.h:125
virtual void generateSeparationConstraints(const vpsc::Dim dim, vpsc::Variables &var, vpsc::Constraints &cs, vpsc::Rectangles &bbs)=0
Implemented by the compound constraint to generate the low-level separation constraints in the given ...
libcola: Force-directed network layout subject to separation constraints library. ...
Definition: box.cpp:25
Dim
Indicates the x- or y-dimension.
Definition: rectangle.h:41
void generateVariables(CompoundConstraints &ccs, const vpsc::Dim dim, vpsc::Variables &vars)
Generate just all the variables for a collection of CompoundConstraints.
Definition: compound_constraints.cpp:1466