Search in sources :

Example 1 with PlanesGen

use of org.twak.tweed.gen.PlanesGen in project chordatlas by twak.

the class PlaneTool method activate.

@Override
public void activate(Tweed tweed) {
    this.tweed = tweed;
    List<Gen> gens = tweed.frame.gens(PlanesGen.class);
    if (gens.isEmpty()) {
        pg = new PlanesGen(tweed);
        tweed.frame.addGen(pg, true);
    } else
        pg = (PlanesGen) gens.get(0);
// createPlane();
}
Also used : PlanesGen(org.twak.tweed.gen.PlanesGen) Gen(org.twak.tweed.gen.Gen) PlanesGen(org.twak.tweed.gen.PlanesGen)

Aggregations

Gen (org.twak.tweed.gen.Gen)1 PlanesGen (org.twak.tweed.gen.PlanesGen)1