- 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.Pattern
Nested classes/interfaces inherited from class de.grogra.graph.impl.Node
Node.AccessorBridge, Node.FieldAttributeAccessor, Node.NType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Node.NType
float
static final Node.NType.Field
float
static final Node.NType.Field
float
static final Node.NType.Field
float
static final Node.NType.Field
float
static final Node.NType.Field
float
static final Node.NType.Field
float
static final Node.NType.Field
float
static final Node.NType.Field
float
static final Node.NType.Field
Fields inherited from class de.grogra.imp3d.objects.Cylinder
baseOpen$FIELD, radius, radius$FIELD, topOpen$FIELD
Fields inherited from class de.grogra.imp3d.objects.FrustumBase
BASE_OPEN_MASK, TOP_OPEN_MASK, USED_BITS
Fields inherited from class de.grogra.imp3d.objects.Axis
endPosition, endPosition$FIELD, length, length$FIELD, startPosition, startPosition$FIELD
Fields inherited from class de.grogra.imp3d.objects.AxisBase
SCALE_V_MASK, scaleV$FIELD
Fields inherited from class de.grogra.imp3d.objects.ShadedNull
INFINITE_MASK, interior, interior$FIELD, renderAsWireframe, renderAsWireframe$FIELD, shader, shader$FIELD, treatedAsInfinite$FIELD
Fields inherited from class de.grogra.imp3d.objects.Null
transform, transform$FIELD, TRANSFORMING_MASK, transforming$FIELD
Fields 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$FIELD
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ageJoint
(double rate) adds a proportion of the joint displacement back into the joint frame to fix the angle as the stem agescom.bulletphysics.linearmath.Transform
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 tensioncom.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint
getJoint()
float
float
float
getMass()
protected Node.NType
This method returns theNode.NType
which 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 foundfloat
float
float
getStiffness
(int i) float
float
float
float
com.bulletphysics.linearmath.Transform
returns a transform corresponding to the top joint position relative to the centre of masscom.bulletphysics.linearmath.Transform
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 tensionprotected Node
This method returns a new instance of the class of this node.void
setJoint
(com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint joint) void
setLinBounce
(float value) void
setLinDamping
(float value) void
setMass
(float value) void
setRotBounce
(float value) void
setRotDamping
(float value) void
setStiffnessT
(float value) void
setStiffnessX
(float value) void
setStiffnessY
(float value) void
setStiffnessZ
(float value) Methods inherited from class de.grogra.imp3d.objects.Cylinder
createRaytracerLeaf, draw, getPolygonizableSource, getPolygonization, getRadius, getSurfaceArea, getVolume, isBaseOpen, isTopOpen, pick, setBaseOpen, setRadius, setTopOpen
Methods inherited from class de.grogra.imp3d.objects.FrustumBase
pick
Methods inherited from class de.grogra.imp3d.objects.Axis
getEndPosition, getLength, getPivotShift, getStartPosition, postTransform, preTransform, setEndPoints, setEndPoints, setEndPoints, setEndPosition, setLength, setStartPosition
Methods inherited from class de.grogra.imp3d.objects.ShadedNull
getInterior, getShader, getSymbolColor, isRenderAsWireframe, isTreatedAsInfinite, setBackShader, setColor, setColor, setFrontShader, setInterior, setMaterial, setRenderAsWireframe, setShader, setShaders, setTreatedAsInfinite
Methods inherited from class de.grogra.imp3d.objects.Null
getLocalTransformation, getTransform, getTranslation, isTransforming, setRotation, setScale, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransform, setTransforming, setTranslation
Methods 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, writeReplace
Methods inherited from class de.grogra.graph.impl.Edge
addEdgeBits, getBitMark, getEdgeBits, getEdgeKeys, getObjectMark, getSpecialEdgeDescriptor, parseEdgeKeys, remove, removeEdgeBits, setBitMark, setEdgeBits, setObjectMark, testEdgeBits
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:Node
This method returns theNode.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 classCylinder
- Returns:
- type describing the managed fields of the class of this 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 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)
-