| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
base.parameterizedobject.ParameterizedObject --+
|
base.patterngenerator.PatternGenerator --+
|
Composite --+
|
SeparatedComposite
Generalized version of the Composite PatternGenerator that enforces spacing constraints between pattern centers.
Currently supports minimum spacing, but can be generalized to support maximum spacing also (and both at once).
|
|||
|
Inherited from |
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
min_separation = <topo.base.parameterclasses.Number object at Minimum distance to enforce between all pairs of pattern centers. |
|||
max_trials = <topo.base.parameterclasses.Integer object at 0x9Number of times to try for a new pattern location that meets the criteria. |
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Returns true if the distance between the (x,y) locations of two generators g0 and g1 is greater than a minimum separation. Can be extended easily to support other criteria. |
Advance the parameters for each generator for this presentation. Picks a position for each generator that is accepted by __distance_valid for all combinations. Returns a new list of the generators, with some potentially omitted due to failure to meet the constraints.
|
|
|||
min_separationMinimum distance to enforce between all pairs of pattern centers. Useful for ensuring that multiple randomly generated patterns do not overlap spatially. Note that as this this value is increased relative to the area in which locations are chosen, the likelihood of a pattern appearing near the center of the area will decrease. As this value approaches the available area, the corners become far more likely to be chosen, due to the distances being greater along the diagonals.
|
max_trialsNumber of times to try for a new pattern location that meets the criteria. This is an essentially arbitrary timeout value that helps prevent an endless loop in case the requirements cannot be met.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Thu Feb 21 15:25:07 2008 | http://epydoc.sourceforge.net |