Documentation of 'vgp.iterate.pythagoreanTree.PjPythagoreanTree' Java class
PjPythagoreanTree ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.iterate.pythagoreanTree

Class PjPythagoreanTree

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf


    public class PjPythagoreanTree
    extends PjProject
    Computes a Pythagorean tree which is recursively generated from a simple trunk.
    Since:
    JavaView 3.95
    See Also:
    Serialized Form
    Author:
    Andreas Haferburg, Konrad Polthier
    Version:
    04.11.06, 2.00 revised (kp) Full revision (new functionality and sync with JavaView).
    29.03.06, 1.00 created (ah)
    • Constructor Detail

      • PjPythagoreanTree

        public PjPythagoreanTree()
        Creates a new instance of PjPythagoreanTree
    • Method Detail

      • init

        public void init()
        Initialization.
        Overrides:
        init in class PjProject
      • reset

        public void reset()
        Reset project to initial state by calling project.init(). Must call project.update(project) after calling reset().
      • pickVertex

        public void pickVertex(PgGeometryIf geom,
                               int picked,
                               PdVector pickedVertex)
        Drags a picked vertex of m_trunk.
        Specified by:
        pickVertex in interface PvPickListenerIf
        Overrides:
        pickVertex in class PjProject
        Parameters:
        geom - Picked geometry on which vertex lies
        picked - Index of picked vertex in vertex array of geometry
        pickedVertex - 3d coordinates of vertex position
        See Also:
        PvPickListenerIf
      • getAge

        public int getAge()
        Returns the age of the tree which is the number of consecutive branches.
        Returns:
        the age of the tree.
      • setAge

        public void setAge(int age)
        Sets the age of the tree which is the number of consecutive branches. Main allocation method, allocates tree element set.
        Parameters:
        age - New age of the tree.
      • isEnabledRightTriangle

        public boolean isEnabledRightTriangle()
        Returns true if the triangle above trunk is kept right.
        Returns:
        true if the triangle is kept right.
      • setEnabledRightTriangle

        public void setEnabledRightTriangle(boolean bRightTriangle)
        Determines if the triangle above trunk is a right triangle.
        Parameters:
        bRightTriangle - use right triangle above trunk
      • isEnabledSquareTrunk

        public boolean isEnabledSquareTrunk()
        Returns true if the trunk is kept square.
        Returns:
        true if the rectangle is kept square.
      • setEnabledSquareTrunk

        public void setEnabledSquareTrunk(boolean bSquareTrunk)
        Determines if the trunk should be a square.
        Parameters:
        bSquareTrunk - use square trunk
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.