public class ParticleMeshConstraint extends ParticleConstraintBase implements ScalableUnits
HasAuxState.StateContext
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 |
---|---|
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 |
setDefaultValues()
Sets the attributes of this component to their default values.
|
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) |
addBilateralConstraints, addParticle, addParticles, addUnilateralConstraints, getAuxState, getBilateralImpulses, getBilateralInfo, getBilateralSizes, getCompliance, getConstrainedComponents, getDamping, getInitialAuxState, getParticle, getPenetrationTol, getSoftReferences, getUnilateralImpulses, getUnilateralInfo, getUnilateralSizes, isEngaged, isUnilateral, numParticles, removeParticle, setAuxState, setBilateralImpulses, setCompliance, setDamping, setPenetrationTol, setUnilateral, setUnilateralImpulses, skipAuxState, updateReferences, zeroImpulses
addFrictionConstraints, advanceAuxState, hasState, maxFrictionConstraintSets
copy, createRenderProps, getRenderHints, getRenderProps, getSelection, isSelectable, numSelectionQueriesNeeded, prerender, setRenderProps, updateRenderProps
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, hasChildren, isConnectedToHierarchy, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, scan, setFixed, setMarked, setName, setNumber, setParent, setSelected
getProperty
getChildren, hasChildren
isWritable, write
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 setDefaultValues()
ModelComponentBase
public void setMesh(PolygonalMesh mesh, java.lang.String fileName, AffineTransform3dBase X)
public PolygonalMesh getMesh()
public double updateConstraints(double t, int flags)
updateConstraints
in interface Constrainer
updateConstraints
in class ConstrainerBase
public void updateBounds(Vector3d min, Vector3d max)
IsRenderable
updateBounds
in interface IsRenderable
updateBounds
in class RenderableComponentBase
min
- minimum pointmax
- maximum pointpublic void render(Renderer renderer, int flags)
IsRenderable
Renderer
.render
in interface IsRenderable
render
in class RenderableComponentBase
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