Examples of TreeTrunk3DState


Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

    public static TreeTrunkState createRandomTreeTrunkState() {
        int age = Randomizer.randomBetween(0, 100);
        float radius = (float) Math.random();
        float height = (float) Math.random();
        TreeTrunk3DState trunk3DState = DisplayDataCreatorForTests.createRandomTreeTrunk3DState();
        return new TreeTrunkState(age, radius, height, trunk3DState);
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

     */
    public static TreeTrunkState createSpecificTreeTrunkState() {
        int age = 15;
        float radius = (float) 0.5;
        float height = (float) 4;
        TreeTrunk3DState trunk3DState = DisplayDataCreatorForTests.createRandomTreeTrunk3DState();
        return new TreeTrunkState(age, radius, height, trunk3DState);
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

        Tuple3dState translationVector = createRandomTupleState();
        return new TreeBranch3DState(translationVector);
    }

    public static TreeTrunk3DState createRandomTreeTrunk3DState() {
        return new TreeTrunk3DState();
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

    public TreeTrunkState() {
        super();
        this.age = 0;
        this.radius = 0;
        this.height = 0;
        this.trunk3DState = new TreeTrunk3DState();
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

        Tuple3dState translationVector = createRandomTupleState();
        return new TreeBranch3DState(translationVector);
    }

    public static TreeTrunk3DState createRandomTreeTrunk3DState() {
        return new TreeTrunk3DState();
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

     * Creates a default tree trunk state with given radius and height and default 3D state.
     */
    public TreeTrunkState createRandomTreeTrunkState(float radius, float height) {
        int age = Randomizer.randomBetween(0, 100);
        TreeTrunk3DStateFactory trunk3DStateFactory = new TreeTrunk3DStateFactory();
        TreeTrunk3DState leaf3dState = trunk3DStateFactory.createRandomTreeTrunk3DState();
        return new TreeTrunkState(age, radius, height, leaf3dState);
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

     * Creates a default tree trunk state with given radius and height and default 3D state.
     */
    public TreeTrunkState createRandomTreeTrunkState(float radius, float height) {
        int creationMillis = Randomizer.randomBetween(0, 100) * 1000;
        TreeTrunk3DStateFactory trunk3DStateFactory = new TreeTrunk3DStateFactory();
        TreeTrunk3DState leaf3dState = trunk3DStateFactory.createRandomTreeTrunk3DState();
        return new TreeTrunkState(creationMillis, radius, height, leaf3dState);
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

        Point3dState translationVector = createRandomPointState();
        return new TreeBranch3DState(translationVector);
    }

    public static TreeTrunk3DState createRandomTreeTrunk3DState() {
        return new TreeTrunk3DState();
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

        return radius;
    }

    @Override
    public TreeTrunkState getState() {
        TreeTrunk3DState trunk3DState = new TreeTrunk3DState();
        return new TreeTrunkState(id, age, radius, height, trunk3DState);
    }
View Full Code Here

Examples of barsuift.simLife.j3d.tree.TreeTrunk3DState

     * a sequence.
     */
    public TreeTrunkState createRandomTreeTrunkState(float radius, float height) {
        int age = Randomizer.randomBetween(0, 100);
        TreeTrunk3DStateFactory trunk3DStateFactory = new TreeTrunk3DStateFactory();
        TreeTrunk3DState leaf3dState = trunk3DStateFactory.createRandomTreeTrunk3DState();
        return new TreeTrunkState(TRUNK_COUNT++, age, radius, height, leaf3dState);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.