- All Implemented Interfaces:
Transformation,Pickable,Polygonizable,Raytraceable,Renderable,Manageable,PersistenceCapable,Shareable,UserFields,XObject,Map,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.imp3d.objects.Cylinder
Cylinder.PatternNested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Node.NTypefloatstatic final Node.NType.Fieldfloatstatic final Node.NType.Fieldfloatstatic final Node.NType.Fieldfloatstatic final Node.NType.Fieldfloatstatic final Node.NType.Fieldfloatstatic final Node.NType.Fieldfloatstatic final Node.NType.Fieldfloatstatic final Node.NType.Fieldfloatstatic final Node.NType.FieldFields inherited from class de.grogra.imp3d.objects.Cylinder
baseOpen$FIELD, radius, radius$FIELD, topOpen$FIELDFields inherited from class de.grogra.imp3d.objects.FrustumBase
BASE_OPEN_MASK, TOP_OPEN_MASK, USED_BITSFields inherited from class de.grogra.imp3d.objects.Axis
endPosition, endPosition$FIELD, length, length$FIELD, startPosition, startPosition$FIELDFields inherited from class de.grogra.imp3d.objects.AxisBase
SCALE_V_MASK, scaleV$FIELDFields inherited from class de.grogra.imp3d.objects.ShadedNull
INFINITE_MASK, interior, interior$FIELD, renderAsWireframe, renderAsWireframe$FIELD, shader, shader$FIELD, treatedAsInfinite$FIELDFields inherited from class de.grogra.imp3d.objects.Null
transform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELDFields inherited from class de.grogra.graph.impl.Node
ADDITIONAL_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, MAX_RESOLUTION, MIME_TYPE, MIN_RESOLUTION, MIN_UNUSED_SPECIAL_OF_SOURCE, MIN_UNUSED_SPECIAL_OF_TARGET, name$FIELD, RESOLUTION_BIT, RESOLUTION_MASK, resolution$FIELDFields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidageJoint(double rate) adds a proportion of the joint displacement back into the joint frame to fix the angle as the stem agescom.bulletphysics.linearmath.Transformreturns a transform corresponding to the bottom joint frame relative to the centre of mass NB this is the frame when the joint is NOT under tensioncom.bulletphysics.dynamics.constraintsolver.Generic6DofConstraintgetJoint()floatfloatfloatgetMass()protected Node.NTypeThis method returns theNode.NTypewhich describes the managed fields of the class of this node.Find the previous FlexNode in the tree by searching the branch first, then hierarchically through it's parents returns null if nothing is foundFind the previous FlexNode in the current branch returns null if nothing is foundfloatfloatfloatgetStiffness(int i) floatfloatfloatfloatcom.bulletphysics.linearmath.Transformreturns a transform corresponding to the top joint position relative to the centre of masscom.bulletphysics.linearmath.Transformreturns a transform corresponding to the initial bottom joint frame relative to the centre of mass NB this is the frame when the joint is NOT under tensionprotected NodeThis method returns a new instance of the class of this node.voidsetJoint(com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint joint) voidsetLinBounce(float value) voidsetLinDamping(float value) voidsetMass(float value) voidsetRotBounce(float value) voidsetRotDamping(float value) voidsetStiffnessT(float value) voidsetStiffnessX(float value) voidsetStiffnessY(float value) voidsetStiffnessZ(float value) Methods inherited from class de.grogra.imp3d.objects.Cylinder
createRaytracerLeaf, draw, getPolygonizableSource, getPolygonization, getRadius, getSurfaceArea, getVolume, isBaseOpen, isTopOpen, pick, setBaseOpen, setRadius, setTopOpenMethods inherited from class de.grogra.imp3d.objects.FrustumBase
pickMethods inherited from class de.grogra.imp3d.objects.Axis
getEndPosition, getLength, getPivotShift, getStartPosition, postTransform, preTransform, setEndPoints, setEndPoints, setEndPoints, setEndPosition, setLength, setStartPositionMethods inherited from class de.grogra.imp3d.objects.ShadedNull
getInterior, getShader, getSymbolColor, isRenderAsWireframe, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setRenderAsWireframe, setShader, setShaders, setTreatedAsInfiniteMethods inherited from class de.grogra.imp3d.objects.Null
getLocalTransformation, getTransform, getTranslation, isTransforming, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslationMethods inherited from class de.grogra.graph.impl.Node
addEdgeBitsTo, addReference, appendBranchNode, appendBranchNode, appendReferencesTo, clone, clone, cloneGraph, dump, dumpTree, dup, dupFrom, dupnew, dupUnmanagedFields, edgeChanged, fieldModified, findAdjacent, findRefinementType, get, getAccessor, getAccessor, getAttributes, getAxisParent, getBoolean, getBranch, getBranchLength, getBranchNode, getBranchTail, getByte, getChar, getCommonAncestor, getCurrentGraphState, getDirectChildCount, getDouble, getEdgeAttributeAccessor, getEdgeAttributes, getEdgeBitsTo, getEdgeTo, getExtentIndex, getFirst, getFirstEdge, getFloat, getGraph, getId, getIgnored, getIndex, getInstantiator, getInt, getLayer, getLong, getManageableType, getName, getNeighbor, getNext, getNType, getObject, getOrCreateEdgeTo, getOrNull, getPersistenceManager, getPredecessor, getProvider, getResolution, 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, setIgnored, setLayer, setMark, setName, setResolution, setSuccessor, setSuccessor, specialEdgeAdded, specialEdgeRefModified, specialEdgeRemoved, toString, writeReplaceMethods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBitsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.persistence.PersistenceCapable
getBitMark, getObjectMark, setBitMark, setObjectMark
-
Field Details
-
mass
public float mass -
stiffnessT
public float stiffnessT -
stiffnessX
public float stiffnessX -
stiffnessY
public float stiffnessY -
stiffnessZ
public float stiffnessZ -
rotDamping
public float rotDamping -
linDamping
public float linDamping -
linBounce
public float linBounce -
rotBounce
public float rotBounce -
$TYPE
-
mass$FIELD
-
stiffnessT$FIELD
-
stiffnessX$FIELD
-
stiffnessY$FIELD
-
stiffnessZ$FIELD
-
rotDamping$FIELD
-
linDamping$FIELD
-
linBounce$FIELD
-
rotBounce$FIELD
-
-
Constructor Details
-
FlexNode
public FlexNode() -
FlexNode
public FlexNode(float length, float radius) -
FlexNode
public FlexNode(float length, float radius, float mass)
-
-
Method Details
-
getStiffness
public float getStiffness(int i) -
getJoint
public com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint getJoint() -
setJoint
public void setJoint(com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint joint) -
ageJoint
public void ageJoint(double rate) adds a proportion of the joint displacement back into the joint frame to fix the angle as the stem ages- Parameters:
rate-
-
initBottomJointFrame
public com.bulletphysics.linearmath.Transform initBottomJointFrame()returns a transform corresponding to the initial bottom joint frame relative to the centre of mass NB this is the frame when the joint is NOT under tension- Returns:
- Transform
-
getBottomJointFrame
public com.bulletphysics.linearmath.Transform getBottomJointFrame()returns a transform corresponding to the bottom joint frame relative to the centre of mass NB this is the frame when the joint is NOT under tension- Returns:
- Transform
-
getTopJointFrame
public com.bulletphysics.linearmath.Transform getTopJointFrame()returns a transform corresponding to the top joint position relative to the centre of mass- Returns:
- Transfrom
-
getPreviousFlexNode
Find the previous FlexNode in the current branch returns null if nothing is found- Returns:
- FlexNode
-
getParentFlexNode
Find the previous FlexNode in the tree by searching the branch first, then hierarchically through it's parents returns null if nothing is found- Returns:
- FlexNode
-
getNTypeImpl
Description copied from class:NodeThis method returns theNode.NTypewhich describes the managed fields of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
getNTypeImplin classCylinder- Returns:
- type describing the managed fields of the class of this node
-
newInstance
Description copied from class:NodeThis method returns a new instance of the class of this node. This method has to be implemented in every concrete subclass.- Overrides:
newInstancein classCylinder- Returns:
- new instance of class of this node
-
getMass
public float getMass() -
setMass
public void setMass(float value) -
getStiffnessT
public float getStiffnessT() -
setStiffnessT
public void setStiffnessT(float value) -
getStiffnessX
public float getStiffnessX() -
setStiffnessX
public void setStiffnessX(float value) -
getStiffnessY
public float getStiffnessY() -
setStiffnessY
public void setStiffnessY(float value) -
getStiffnessZ
public float getStiffnessZ() -
setStiffnessZ
public void setStiffnessZ(float value) -
getRotDamping
public float getRotDamping() -
setRotDamping
public void setRotDamping(float value) -
getLinDamping
public float getLinDamping() -
setLinDamping
public void setLinDamping(float value) -
getLinBounce
public float getLinBounce() -
setLinBounce
public void setLinBounce(float value) -
getRotBounce
public float getRotBounce() -
setRotBounce
public void setRotBounce(float value)
-