| |
- geosolver.clsolver.ClusterMethod(geosolver.multimethod.MultiMethod)
-
- Derive
-
- Balloon2Hog
- Rigid2Hog
- SubHog
- Merge
-
- BalloonFromHogs
- BalloonMerge
- BalloonRigidMerge
- Merge1C
- Merge2C
- Merge3C
- MergeBH
- MergeCCH
- MergeCH
- MergeCHC
- MergeHogs
- geosolver.clsolver.ClusterSolver(geosolver.notify.Notifier)
-
- ClusterSolver2D
- geosolver.multimethod.MultiMethod(geosolver.method.Method)
-
- PrototypeMethod
class ClusterSolver2D(geosolver.clsolver.ClusterSolver) |
|
A generic 2D geometric constraint solver.
Finds a geneneric solution for problems formulated by cluster-constraints.
Constraints are Clusers: Rigids, Hedgehogs and Balloons.
Cluster are added and removed using the add and remove methods.
After adding each Cluster, the solver tries to merge it with
other clusters, resulting in new Clusters and Methods.
For each Cluster a set of Configurations can be set using the
set method. Configurations are propagated via Methods and can
be retrieved with the get method. |
|
- Method resolution order:
- ClusterSolver2D
- geosolver.clsolver.ClusterSolver
- geosolver.notify.Notifier
Methods defined here:
- __init__(self)
- Instantiate a ClusterSolver2D
Methods inherited from geosolver.clsolver.ClusterSolver:
- __str__(self)
- add(self, cluster)
- Add a cluster.
arguments:
cluster: A Rigid
- angles(self)
- get list of angles
- balloons(self)
- get list of balloons
- contains(self, obj)
- distances(self)
- get list of distances
- find_dependend(self, object)
- Return a list of objects that depend on given object directly.
- find_depends(self, object)
- Return a list of objects that the given object depends on directly
- get(self, cluster)
- Return a set of configurations associated with a cluster
- hedgehogs(self)
- get list of hedgehogs
- is_top_level(self, object)
- methods(self)
- get list of methods
- remove(self, cluster)
- Remove a cluster.
All dependend objects are also removed.
- rigids(self)
- get list of rigids
- set(self, cluster, configurations)
- Associate a list of configurations with a cluster
- set_root(self, rigid)
- Make given rigid cluster the root cluster
arguments:
cluster: A Rigid
- top_level(self)
- get top-level objects
- variables(self)
- get list of variables
Methods inherited from geosolver.notify.Notifier:
- add_listener(self, listener)
- add a listener to the list (and self to listers' list)
- rem_listener(self, listener)
- remove a listener from the list (and self from listers' list)
- send_notify(self, message)
- send a message to all listeners
|
|