de.grogra.turtle
public class F extends Shoot
F(x)
represents a cylinder along the local z-direction.
In addition, this command translates the local coordinate system
along the axis of the cylinder such that the origin of the
children's coordinate system coincides with the center of the cylinder's top.
diameter, if this value
is non-negative, otherwise it
is taken from the field
localDiameter of the current TurtleState.
The shader of the cylinder
is defined by the color, if this value
is non-negative, otherwise it
is taken from the the current TurtleState.
The length of the axis is
defined by length.
F(x)
of the GROGRA software.| Modifier and Type | Class and Description |
|---|---|
static class |
F.Pattern |
static class |
F.Pattern2 |
static class |
F.Pattern3 |
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType| Modifier and Type | Field and Description |
|---|---|
static Node.NType |
$TYPE |
int |
color |
static Node.NType.Field |
color$FIELD |
float |
diameter |
static Node.NType.Field |
diameter$FIELD |
float |
length |
static Node.NType.Field |
length$FIELD |
localRegisters$FIELDSCALE_V_MASK, scaleV$FIELD, USED_BITSINFINITE_MASK, interior, interior$FIELD, shader, shader$FIELD, treatedAsInfinite$FIELDtransform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELDADDITIONAL_FIELDS, bits, DELETED, EXTENT_BIT, EXTENT_MASK, extentIndex$FIELD, extentTail$FIELD, HAS_OBSERVERS, IS_INTERPRETIVE, isInterpretive$FIELD, LAST_EXTENT_INDEX, layer$FIELD, MARK, mark$FIELD, MIME_TYPE, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELDDEFAULT_VALUE, EMPTY_MAP| Constructor and Description |
|---|
F() |
F(float argument) |
F(float length,
float diameter) |
F(float length,
float diameter,
int color) |
| Modifier and Type | Method and Description |
|---|---|
protected float |
getFloat(FloatAttribute a,
GraphState gs) |
protected int |
getInt(IntAttribute a,
GraphState gs) |
float |
getLength(java.lang.Object node,
GraphState gs) |
protected Node.NType |
getNTypeImpl()
This method returns the
Node.NType which describes the managed
fields of the class of this node. |
double |
getSurfaceArea()
Calculates the area of an object.
|
double |
getVolume()
Calculates the volume.
|
protected Node |
newInstance()
This method returns a new instance of the class of this
node.
|
execute, getBoolean, getLocalRegisters, getObject, getSymbolColor, getVertexTransformation, setLocalRegistersgetDouble, postTransformgetInterior, getShader, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setShader, setShaders, setTreatedAsInfinitegetLocalTransformation, getTransform, getTranslation, isTransforming, preTransform, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationaddEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getGraph, getId, getIndex, getInstantiator, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getShort, getSource, getStamp, getSuccessor, getSymbol, getTarget, getTransaction, getUserField, getUserFieldCount, getXClass, getXData, hasName, initProvider, initXClass, insertBranchNode, insertBranchNode, instantiateGraph, isAncestorOf, isDirection, isEncoarseOf, isManagingInstance, isMarked, isRoot, isSource, isTarget, manageableReadResolve, manageableWriteReplace, paramString, removeAll, removeEdgeBitsTo, removeFromChain, removeFromChain, removeReference, setBranch, setBranch, setExtentIndex, setGraphForDeserialization, setLayer, setMark, setName, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceaddEdgeBits, getBitMark, getEdgeBits, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBitMark, getObjectMark, setBitMark, setObjectMarkpublic static final Node.NType $TYPE
public int color
public static final Node.NType.Field color$FIELD
public float diameter
public static final Node.NType.Field diameter$FIELD
public float length
public static final Node.NType.Field length$FIELD
public F()
public F(float argument)
public F(float length, float diameter)
public F(float length, float diameter, int color)
protected float getFloat(FloatAttribute a, GraphState gs)
protected int getInt(IntAttribute a, GraphState gs)
public float getLength(java.lang.Object node,
GraphState gs)
getLength in class TurtleStepprotected Node.NType getNTypeImpl()
NodeNode.NType which describes the managed
fields of the class of this node. This method has to be implemented
in every concrete subclass.getNTypeImpl in class ShadedNullpublic double getSurfaceArea()
getSurfaceArea in class ShadedNullpublic double getVolume()
getVolume in class ShadedNullprotected Node newInstance()
NodenewInstance in class ShadedNull