public class ParticleMeshConstraint extends ParticleConstraintBase implements ScalableUnits
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSPARENT, TWO_DIMENSIONAL
Constructor and Description |
---|
ParticleMeshConstraint() |
ParticleMeshConstraint(Particle p,
PolygonalMesh mesh) |
ParticleMeshConstraint(Particle p,
PolygonalMesh mesh,
java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
boolean |
defaultRenderPropsAreNull() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
PolygonalMesh |
getMesh() |
boolean |
getNagataInterpolation() |
void |
render(Renderer renderer,
int flags)
Render this object using the functionality of the supplied
Renderer . |
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
scaleMass(double s)
Scales all mass units.
|
void |
setMesh(PolygonalMesh mesh,
java.lang.String fileName,
AffineTransform3dBase X) |
void |
setNagataInterpolation(NagataInterpolator interp) |
void |
updateBounds(Vector3d min,
Vector3d max)
Update the minimum and maximum points for this object.
|
double |
updateConstraints(double t,
int flags)
Updates the current set of constraints, and returns the maximum
penetration
> 0 associated with all of them. |
addBilateralConstraints, addParticle, addParticles, addUnilateralConstraints, getBilateralForces, getBilateralInfo, getBilateralSizes, getCompliance, getConstrainedComponents, getDamping, getParticle, getPenetrationTol, getSoftReferences, getState, getUnilateralForces, getUnilateralInfo, getUnilateralSizes, isEngaged, isUnilateral, numParticles, removeParticle, setBilateralForces, setCompliance, setDamping, setPenetrationTol, setState, setUnilateral, setUnilateralForces, updateReferences, zeroForces
copy, createRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, prerender, setRenderProps
addFrictionConstraints, getFrictionForces, getFrictionState, getUnilateralState, hasState, maxFrictionConstraintSets, setFrictionForces, setFrictionState, setUnilateralState
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, hasChildren, 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, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected, setWritable
getProperty
getChildren, hasChildren
postscan
isWritable, write
advanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, numAuxVars, requiresAdvance, setAuxVarState
public static PropertyList myProps
public ParticleMeshConstraint()
public ParticleMeshConstraint(Particle p, PolygonalMesh mesh)
public ParticleMeshConstraint(Particle p, PolygonalMesh mesh, java.lang.String fileName)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class ParticleConstraintBase
public boolean getNagataInterpolation()
public void setNagataInterpolation(NagataInterpolator interp)
public void setMesh(PolygonalMesh mesh, java.lang.String fileName, AffineTransform3dBase X)
public PolygonalMesh getMesh()
public double updateConstraints(double t, int flags)
Constrainer
>
0 associated with all of them. If no constraints are
presently active, returns -1.updateConstraints
in interface Constrainer
updateConstraints
in class ConstrainerBase
public void updateBounds(Vector3d min, Vector3d max)
IsRenderable
updateBounds
in interface IsRenderable
updateBounds
in class RenderableConstrainerBase
min
- minimum pointmax
- maximum pointpublic boolean defaultRenderPropsAreNull()
defaultRenderPropsAreNull
in class RenderableConstrainerBase
public void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
render
in class RenderableConstrainerBase
renderer
- provides the functionality used to perform the rendering.flags
- flags that may be used to control different
aspects of the rendering. Flags are defined in Renderer
and currently include
Renderer.HIGHLIGHT
and
Renderer.SORT_FACES
.public void scaleMass(double s)
ScalableUnits
scaleMass
in interface ScalableUnits
s
- scaling factorpublic void scaleDistance(double s)
ScalableUnits
scaleDistance
in interface ScalableUnits
s
- scaling factor