|
sdr 0.21 | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Formation | |
---|---|
net.cscott.sdr.calls | This package contains the square dance choreography engine, and the basic types and interfaces required to communicate with it. |
net.cscott.sdr.calls.transform | This package contains code to parse call lists and transform call abstract syntax in various ways. |
Uses of Formation in net.cscott.sdr.calls |
---|
Subclasses of Formation in net.cscott.sdr.calls | |
---|---|
class |
TaggedFormation
A Formation is a set of dancers and positions for them. |
Fields in net.cscott.sdr.calls declared as Formation | |
---|---|
Formation |
FormationMapper.FormationPiece.f
Warped rotated formation. |
Formation |
TimedFormation.formation
The dancer formation called for at the given time. |
static Formation |
Formation.FOUR_SQUARE
|
Formation |
FormationMatch.meta
The meta formation contains one dancer for each matched sub-formation in the setup. |
static Formation |
Formation.SQUARED_SET
|
static Formation |
FormationMapper.test1
|
static Formation |
FormationMapper.test2
|
Methods in net.cscott.sdr.calls that return Formation | |
---|---|
static Formation |
FormationMapper.compress(List<FormationMapper.FormationPiece> pieces)
Create canonical formation by compressing components of a given formation. |
static Formation |
FormationMapper.insert(Formation meta,
Map<Dancer,Formation> components)
Insert formations into a meta-formation. |
Formation |
Formation.onlySelected()
Create a new formation containing only the selected dancers from this formation. |
Formation |
Formation.recenter()
Build a new formation, centered on 0,0 |
Formation |
Formation.rotate(ExactRotation rotation)
Build a new formation, like this one except rotated around 0,0. |
Formation |
Formation.select(Set<Dancer> s)
Build a new formation with only the given dancers selected. |
Methods in net.cscott.sdr.calls with parameters of type Formation | |
---|---|
static void |
Tagger.addAutomatic(Formation f,
MultiMap<Dancer,TaggedFormation.Tag> tags)
|
static void |
Tagger.addFrom(TaggedFormation template,
Formation f,
MultiMap<Dancer,TaggedFormation.Tag> tags)
Find all instance of the tagged template formation in the given
given formation f , and add the tags from the template to the
set of tags on f given in tags . |
static FormationMatch |
GeneralFormationMatcher.doMatch(Formation input,
TaggedFormation goal,
boolean allowUnmatchedDancers,
boolean usePhantoms)
|
abstract boolean |
Predicate.evaluate(DanceState ds,
Formation f,
Condition c)
Evaluates this predicate with the arguments given in the Condition node, returning a boolean. |
static Formation |
FormationMapper.insert(Formation meta,
Map<Dancer,Formation> components)
Insert formations into a meta-formation. |
abstract FormationMatch |
Selector.match(Formation f)
Select sub-formations from a formation using this selector. |
static void |
Tagger.tag2(Formation f,
MultiMap<Dancer,TaggedFormation.Tag> tags)
|
Method parameters in net.cscott.sdr.calls with type arguments of type Formation | |
---|---|
static Formation |
FormationMapper.insert(Formation meta,
Map<Dancer,Formation> components)
Insert formations into a meta-formation. |
Constructors in net.cscott.sdr.calls with parameters of type Formation | |
---|---|
Formation(Formation f,
Map<Dancer,Dancer> map)
|
|
FormationMapper.FormationPiece(Formation f,
Dancer d,
ExactRotation r)
|
|
FormationMatch(Formation meta,
Map<Dancer,TaggedFormation> matches)
|
|
TaggedFormation(Formation f,
MultiMap<Dancer,TaggedFormation.Tag> tags)
|
|
TimedFormation(Formation formation,
Fraction time,
boolean isAbsolute)
|
Uses of Formation in net.cscott.sdr.calls.transform |
---|
Methods in net.cscott.sdr.calls.transform with parameters of type Formation | |
---|---|
static DancerPath |
EvalPrim.apply(Dancer d,
Formation f,
Prim p)
"Dance" the given primitive for the given dancer in the given formation to yield a DancerPath for that dancer. |
List<ParCall> |
Elaborate.doOptCall(OptCall oc,
Formation f)
|
static Comp |
Elaborate.elaborate(DanceState ds,
Formation f,
Comp c,
boolean doFully)
|
SeqCall |
Elaborate.visit(Apply a,
Formation f)
Expand any 'Apply' node we come to. |
Comp |
Elaborate.visit(If iff,
Formation f)
|
OptCall |
Elaborate.visit(OptCall oc,
Formation f)
|
Comp |
Elaborate.visit(Opt opt,
Formation f)
Go through list of possible formations, and pick the first one which works. |
ParCall |
Elaborate.visit(ParCall pc,
Formation f)
Select the given dancers in the formation, and evaluate the child. |
Comp |
Elaborate.visit(Par p,
Formation _f)
For each select clause, rephrase using 'primitive' tags. |
Comp |
Elaborate.visit(Warped w,
Formation f)
A little optimization: for pairs of Warps, compose them into one node. |
|
sdr 0.21 | |||||||||
PREV NEXT | FRAMES NO FRAMES |