Module m3DCS

Class Tree

All Implemented Interfaces:
Transformation, Pickable, Renderable, Manageable, PersistenceCapable, Shareable, UserFields, XObject, Map, Instantiator<Instantiation>, Serializable

public class Tree extends NullWithShaderNode implements Instantiator<Instantiation>
See Also:
  • Field Details

  • Constructor Details

    • Tree

      public Tree()
    • Tree

      public Tree(float number)
    • Tree

      public Tree(String number)
  • Method Details

    • getInstantiator

      public Instantiator getInstantiator()
      Overrides:
      getInstantiator in class Node
    • instantiate

      public void instantiate(Instantiation state)
      Specified by:
      instantiate in interface Instantiator<Instantiation>
    • fieldModified

      public void fieldModified(PersistenceField field, int[] indices, Transaction t)
      Specified by:
      fieldModified in interface Manageable
      Overrides:
      fieldModified in class Node
    • getBranchesNumber

      public float getBranchesNumber()
    • setBranchesNumber

      public void setBranchesNumber(float value)
    • getStemLength

      public float getStemLength()
    • setStemLength

      public void setStemLength(double value)
    • getTrunkScale

      public float getTrunkScale()
    • setTrunkScale

      public void setTrunkScale(double value)
    • getCrookednessAmount

      public float getCrookednessAmount()
    • setCrookednessAmount

      public void setCrookednessAmount(double value)
    • setStemLength

      public void setStemLength(String value)
    • setTrunkScale

      public void setTrunkScale(String value)
    • setCrookednessAmount

      public void setCrookednessAmount(String value)
    • useLod

      public void useLod(boolean value)
    • getChildId

      public int getChildId()
    • getParentId

      public int getParentId()
    • getThisId

      public int getThisId()
    • getDensity

      public float getDensity()
    • getAbsoluteHeight

      public float getAbsoluteHeight()
    • getLocalHeight

      public float getLocalHeight()
    • getN1

      public float getN1()
    • getN2

      public float getN2()
    • getN3

      public float getN3()
    • getNTypeImpl

      protected Node.NType getNTypeImpl()
      Description copied from class: Node
      This method returns the Node.NType which describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      getNTypeImpl in class NullWithShaderNode
      Returns:
      type describing the managed fields of the class of this node
    • newInstance

      protected Node newInstance()
      Description copied from class: Node
      This method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.
      Overrides:
      newInstance in class NullWithShaderNode
      Returns:
      new instance of class of this node
    • isSpline

      public boolean isSpline()
    • setSpline

      public void setSpline(boolean value)
    • isTop

      public boolean isTop()
    • setTop

      public void setTop(boolean value)
    • isGeometry

      public boolean isGeometry()
    • setGeometry

      public void setGeometry(boolean value)
    • isInitAll

      public boolean isInitAll()
    • setInitAll

      public void setInitAll(boolean value)
    • getArrangement

      public int getArrangement()
    • setArrangement

      public void setArrangement(int value)
    • setStemLength

      public void setStemLength(CustomFunction value)
    • setTrunkScale

      public void setTrunkScale(CustomFunction value)
    • getTrajectory

      public BSplineCurve getTrajectory()
    • setTrajectory

      public void setTrajectory(BSplineCurve value)
    • getShape

      public FloatToFloat getShape()
    • setShape

      public void setShape(FloatToFloat value)
    • getCrookednessCurve

      public BSplineCurve getCrookednessCurve()
    • setCrookednessCurve

      public void setCrookednessCurve(BSplineCurve value)
    • setCrookednessAmount

      public void setCrookednessAmount(CustomFunction value)
    • getCrookednessIntensity

      public FloatToFloat getCrookednessIntensity()
    • setCrookednessIntensity

      public void setCrookednessIntensity(FloatToFloat value)
    • getDeviateCurve

      public BSplineCurve getDeviateCurve()
    • setDeviateCurve

      public void setDeviateCurve(BSplineCurve value)
    • getDeviate

      public FloatToFloat getDeviate()
    • setDeviate

      public void setDeviate(FloatToFloat value)
    • getScrew

      public FloatToFloat getScrew()
    • setScrew

      public void setScrew(FloatToFloat value)
    • setBranchesNumber

      public void setBranchesNumber(CustomFunction value)
    • getBranchesDistribution

      public FloatToFloat getBranchesDistribution()
    • setBranchesDistribution

      public void setBranchesDistribution(FloatToFloat value)
    • getBranchesGrowthScale

      public FloatToFloat getBranchesGrowthScale()
    • setBranchesGrowthScale

      public void setBranchesGrowthScale(FloatToFloat value)
    • getBranchesGeometricScale

      public FloatToFloat getBranchesGeometricScale()
    • setBranchesGeometricScale

      public void setBranchesGeometricScale(FloatToFloat value)
    • getBranchesAngle

      public FloatToFloat getBranchesAngle()
    • setBranchesAngle

      public void setBranchesAngle(FloatToFloat value)
    • getBranchesDense

      public FloatToFloat getBranchesDense()
    • setBranchesDense

      public void setBranchesDense(FloatToFloat value)
    • getProfile

      public BSplineCurve getProfile()
    • setProfile

      public void setProfile(BSplineCurve value)
    • getLod

      public TreeLOD getLod()
    • setLod

      public void setLod(TreeLOD value)
    • getLocationParameter

      public LocationParameterBase getLocationParameter()
    • setLocationParameter

      public void setLocationParameter(LocationParameterBase value)