Module rgg
Package de.grogra.turtle
package de.grogra.turtle
-
ClassDescriptionThe turtle command
AdjustLUperforms a rotation about the local z-axis (the turtle's head axis) such that the angle between the rotated local y-axis (the turtle's up axis) and the global z-axis becomes minimal.This is the base class of turtle commands which assign a value to a state variable of the turtle and have a single parameter.The turtle commandC0resetsTurtleState.carbonto its initial value (as defined inTurtleState.initialState).The turtle commandClAdd(x)setsTurtleState.localCarbonto the sum ofTurtleState.carbonand the specifiedargumentx.The turtle commandClMul(x)setsTurtleState.localCarbonto the product of the fieldTurtleState.carbonand the specifiedargumentx.The turtle commandD0resetsTurtleState.diameterto its initial value (as defined inTurtleState.initialState).The turtle commandDlAdd(x)setsTurtleState.localDiameterto the sum ofTurtleState.diameterand the specifiedargumentx.The turtle commandDlMul(x)setsTurtleState.localDiameterto the product of the fieldTurtleState.diameterand the specifiedargumentx.The turtle commandF(x)represents a cylinder along the local z-direction.The turtle commandF0represents a cylinder along the local z-direction.The turtle commandFAdd(x)represents a cylinder along the local z-direction.The turtle commandFMul(x)represents a cylinder along the local z-direction.The turtle commandH0resetsTurtleState.heartwoodto its initial value (as defined inTurtleState.initialState).Set the local z-axis (the turtle's head axis) so that it encompasses the given angle to the world's up axis.The turtle commandHlAdd(x)setsTurtleState.localHeartwoodto the sum ofTurtleState.heartwoodand the specifiedargumentx.The turtle commandHlMul(x)setsTurtleState.localHeartwoodto the product of the fieldTurtleState.heartwoodand the specifiedargumentx.The turtle commandL0resetsTurtleState.lengthto its initial value (as defined inTurtleState.initialState).The turtle commandLlAdd(x)setsTurtleState.localLengthto the sum ofTurtleState.lengthand the specifiedargumentx.The turtle commandLlMul(x)setsTurtleState.localLengthto the product of the fieldTurtleState.lengthand the specifiedargumentx.The turtle commandM(x)represents a movement along the local z-direction.The turtle commandM0represents a movement along the local z-direction.The turtle commandMAdd(x)represents a movement along the local z-direction.This class implements a rotation about the local y-axis.The turtle commandMMul(x)represents a movement along the local z-direction.The turtle commandMRel(x)represents a movement along the local z-direction.The turtle commandN0resetsTurtleState.parameterto its initial value (as defined inTurtleState.initialState).The turtle commandNlAdd(x)setsTurtleState.localParameterto the sum ofTurtleState.parameterand the specifiedargumentx.The turtle commandNlMul(x)setsTurtleState.localParameterto the product of the fieldTurtleState.parameterand the specifiedargumentx.The turtle commandP0resetsTurtleState.colorto its initial value (as defined inTurtleState.initialState).This class implements a rotation about the local y-axis.AnRD(x,s)node represents a rotation which implements a directional tropism towards the directionx.The turtle commandRG(x)represents a rotation which implements maximal gravitropism.This class implements a rotation about the local z-axis (the turtle's head axis).This class implements a rotation about the local x-axis (the turtle's left axis).AnRN(x,s)node represents a rotation which implements a positional tropism towards thelocationof nodex.AnRO(x,s)node represents a rotation which implements an orthogonal tropism which moves away from a given directionx.ARotatenode rotates the local coordinate system byRotate.rotateXdegrees about the local x-axis, then byRotate.rotateYdegrees about the local y-axis, then byRotate.rotateZdegrees about the local z-axis.This class is the base class for rotations about one of the coordinate axes.AnRP(x,s)node represents a rotation which implements a positional tropism towards the pointx.This class implements a rotation about the local y-axis (the turtle's up axis).The turtle commandRV(x)represents a rotation which implements gravitropism.The turtle commandRV0represents a rotation which implements gravitropism.The turtle commandRVAdd(x)represents a rotation which implements gravitropism.The turtle commandRVMul(x)represents a rotation which implements gravitropism.AScalenode scales the local coordinate system using the scaling factorsScale.scaleX,Scale.scaleYandScale.scaleZ.ATranslatenode translates the local coordinate system using the translation distancesTranslate.translateX,Translate.translateYandTranslate.translateZ.The turtle commandU0resetsTurtleState.internodeCountto its initial value (as defined inTurtleState.initialState).The turtle commandUlAdd(x)setsTurtleState.localInternodeCountto the sum ofTurtleState.internodeCountand the specifiedargumentx.The turtle commandUlMul(x)setsTurtleState.localInternodeCountto the product of the fieldTurtleState.internodeCountand the specifiedargumentx.This class implements a rotation about the local y-axis (the turtle's up axis).The turtle commandV0resetsTurtleState.tropismto its initial value (as defined inTurtleState.initialState).The turtle commandVlAdd(x)setsTurtleState.localTropismto the sum ofTurtleState.tropismand the specifiedargumentx.The turtle commandVlMul(x)setsTurtleState.localTropismto the product of the fieldTurtleState.tropismand the specifiedargumentx.