Module rgg
Package de.grogra.turtle
package de.grogra.turtle
-
ClassDescriptionThe turtle command
AdjustLU
performs 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 commandC0
resetsTurtleState.carbon
to its initial value (as defined inTurtleState.initialState
).The turtle commandClAdd(x)
setsTurtleState.localCarbon
to the sum ofTurtleState.carbon
and the specifiedargument
x
.The turtle commandClMul(x)
setsTurtleState.localCarbon
to the product of the fieldTurtleState.carbon
and the specifiedargument
x
.The turtle commandD0
resetsTurtleState.diameter
to its initial value (as defined inTurtleState.initialState
).The turtle commandDlAdd(x)
setsTurtleState.localDiameter
to the sum ofTurtleState.diameter
and the specifiedargument
x
.The turtle commandDlMul(x)
setsTurtleState.localDiameter
to the product of the fieldTurtleState.diameter
and the specifiedargument
x
.The turtle commandF(x)
represents a cylinder along the local z-direction.The turtle commandF0
represents 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 commandH0
resetsTurtleState.heartwood
to 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.localHeartwood
to the sum ofTurtleState.heartwood
and the specifiedargument
x
.The turtle commandHlMul(x)
setsTurtleState.localHeartwood
to the product of the fieldTurtleState.heartwood
and the specifiedargument
x
.The turtle commandL0
resetsTurtleState.length
to its initial value (as defined inTurtleState.initialState
).The turtle commandLlAdd(x)
setsTurtleState.localLength
to the sum ofTurtleState.length
and the specifiedargument
x
.The turtle commandLlMul(x)
setsTurtleState.localLength
to the product of the fieldTurtleState.length
and the specifiedargument
x
.The turtle commandM(x)
represents a movement along the local z-direction.The turtle commandM0
represents 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 commandN0
resetsTurtleState.parameter
to its initial value (as defined inTurtleState.initialState
).The turtle commandNlAdd(x)
setsTurtleState.localParameter
to the sum ofTurtleState.parameter
and the specifiedargument
x
.The turtle commandNlMul(x)
setsTurtleState.localParameter
to the product of the fieldTurtleState.parameter
and the specifiedargument
x
.The turtle commandP0
resetsTurtleState.color
to 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 thelocation
of nodex
.AnRO(x,s)
node represents a rotation which implements an orthogonal tropism which moves away from a given directionx
.ARotate
node rotates the local coordinate system byRotate.rotateX
degrees about the local x-axis, then byRotate.rotateY
degrees about the local y-axis, then byRotate.rotateZ
degrees 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 commandRV0
represents 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.AScale
node scales the local coordinate system using the scaling factorsScale.scaleX
,Scale.scaleY
andScale.scaleZ
.ATranslate
node translates the local coordinate system using the translation distancesTranslate.translateX
,Translate.translateY
andTranslate.translateZ
.The turtle commandU0
resetsTurtleState.internodeCount
to its initial value (as defined inTurtleState.initialState
).The turtle commandUlAdd(x)
setsTurtleState.localInternodeCount
to the sum ofTurtleState.internodeCount
and the specifiedargument
x
.The turtle commandUlMul(x)
setsTurtleState.localInternodeCount
to the product of the fieldTurtleState.internodeCount
and the specifiedargument
x
.This class implements a rotation about the local y-axis (the turtle's up axis).The turtle commandV0
resetsTurtleState.tropism
to its initial value (as defined inTurtleState.initialState
).The turtle commandVlAdd(x)
setsTurtleState.localTropism
to the sum ofTurtleState.tropism
and the specifiedargument
x
.The turtle commandVlMul(x)
setsTurtleState.localTropism
to the product of the fieldTurtleState.tropism
and the specifiedargument
x
.