public class ExactWrappedSpring extends RenderableComponentBase
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNamesTRANSPARENT, TWO_DIMENSIONAL| Constructor and Description |
|---|
ExactWrappedSpring(java.lang.String name)
Create a new wrapped spring with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<Point3d> |
getAllABPoints() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
double |
getForce()
Returns the force magnitude of this spring.
|
double |
getLength()
Returns the current length of the spring.
|
double |
getLengthDot()
Returns the current length time derivative of the spring.
|
AxialMaterial |
getMaterial() |
double |
getRestLength() |
ExactWrappableGeometry |
getWrapGeometry() |
void |
render(Renderer renderer,
int flags)
Render the points on the path as wOverrideell as the tangents at these points.
|
void |
setMaterial(AxialMaterial myMaterial) |
void |
setPoints(Point f1,
Point f2)
Set the points of this spring.
|
void |
setRestLength(double myRestLength) |
void |
setWrapGeometry(ExactWrappableGeometry wg)
Set the wrap geometry.
|
void |
updateWrapSegments()
Update wrapping.
|
copy, createRenderProps, defaultRenderPropsAreNull, getRenderHints, getRenderProps, getSelection, isSelectable, isVisible, numSelectionQueriesNeeded, prerender, setRenderProps, setVisible, updateBounds, updateRenderPropscheckFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable, updateReferencesgetPropertygetChildren, hasChildrenpostscanisWritable, writepublic static PropertyList myProps
public ExactWrappedSpring(java.lang.String name)
name - name of the new springpublic double getRestLength()
public void setRestLength(double myRestLength)
public AxialMaterial getMaterial()
public void setMaterial(AxialMaterial myMaterial)
public PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class RenderableComponentBasepublic java.util.ArrayList<Point3d> getAllABPoints()
public double getLength()
public double getLengthDot()
public void updateWrapSegments()
public void setPoints(Point f1, Point f2)
f1 - first pointf2 - second pointpublic void setWrapGeometry(ExactWrappableGeometry wg)
wg - wrap geometrypublic ExactWrappableGeometry getWrapGeometry()
public void render(Renderer renderer, int flags)
render in interface IsRenderablerender in class RenderableComponentBaserenderer - renderer to use for drawingflags - unusedpublic double getForce()