public class PlanarPoint extends Point implements PlanarComponent
ModelComponent.NavpanelVisibility
Modifier and Type | Field and Description |
---|---|
static PropertyList |
myProps |
myRenderCoords
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames
TRANSLUCENT, TWO_DIMENSIONAL
ARTICULATED, SIMULATING
COPY_REFERENCES
Constructor and Description |
---|
PlanarPoint() |
PlanarPoint(double x,
double y) |
PlanarPoint(Point2d p) |
Modifier and Type | Method and Description |
---|---|
void |
addPosition(double dx,
double dy,
double dz) |
void |
addSolveBlock(SparseNumberedBlockMatrix S) |
void |
addToSolveBlock(Matrix2d M) |
void |
addToSolveBlockDiagonal(double d) |
void |
addVelocity(double dx,
double dy,
double dz) |
ModelComponent |
copy(int flags,
java.util.Map<ModelComponent,ModelComponent> copyMap)
Create a copy of this component.
|
MatrixBlock |
createSolveBlock() |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
PlanarComponent |
getPlanarComponent() |
RigidTransform3d |
getPlaneToWorld()
Returns the transform from plane coordinates to world coordinates.
|
Point3d |
getPosition() |
Point2d |
getPosition2d() |
void |
getPosition2d(Vector2d p) |
int |
getPosState(double[] x,
int idx) |
MatrixBlock |
getSolveBlock() |
Vector3d |
getVelocity() |
Vector2d |
getVelocity2d() |
void |
getVelocity2d(Vector2d v) |
int |
getVelState(double[] v,
int idx) |
void |
prerender(RenderList list)
Prepare for rendering, and potentially add itself to a list to be drawn
by a GLRenderer.
|
void |
scaleDistance(double s)
Scales all distance coordinates.
|
void |
scan(ReaderTokenizer rtok,
java.lang.Object ref)
Scans this element from a ReaderTokenizer.
|
void |
setPlanarComponent(PlanarComponent pcomp) |
void |
setPosition(double x,
double y,
double z) |
void |
setPosition(Point3d p) |
void |
setPosition2d(double x,
double y) |
void |
setPosition2d(Point2d p) |
int |
setPosState(double[] p,
int idx) |
int |
setState(VectorNd x,
int idx) |
void |
setVelocity(Vector3d v) |
void |
setVelocity2d(Vector2d v) |
int |
setVelState(double[] v,
int idx) |
void |
transformGeometry(AffineTransform3dBase X,
TransformableGeometry topObject,
int flags)
Applies an affine transformation to the geometry of this object.
|
void |
transformToPlane(Point3d pp,
Point3d pw) |
void |
transformToPlane(Vector3d vp,
Vector3d vw) |
void |
transformToWorld(Point3d pw,
Point3d pp) |
void |
transformToWorld(Vector3d vw,
Vector3d vp) |
void |
updateBounds(Point3d pmin,
Point3d pmax)
Update the minimum and maximum points for this object.
|
addExternalForce, addForce, addPosImpulse, addPosJacobian, addScaledExternalForce, addScaledForce, addScaledPosition, addScaledVelocity, addSolveBlocks, addTargetJacobian, addToSolveBlockDiagonal, addVelJacobian, applyForces, applyGravity, createMassBlock, createRenderProps, distance, distance, getCopyReferences, getExternalForce, getForce, getForce, getJacobianType, getMass, getMass, getMassForces, getPointDamping, getPointDampingMode, getPosDerivative, getPosition, getPosStateSize, getRenderCoords, getRenderProps, getSelection, getState, getState, getTargetActivity, getTargetPos, getTargetPosition, getTargetVel, getTargetVelocity, getTracables, getTracingProbe, getVelocity, getVelStateSize, isDuplicatable, isMassConstant, isSelectable, render, resetTargets, scaleMass, setExternalForce, setForce, setForce, setForcesToExternal, setPointDamping, setPointDampingMode, setRenderProps, setScaledExternalForce, setState, setState, setTargetActivity, setTargetPos, setTargetPosition, setTargetVel, setTargetVelocity, setVelocity, subForce, transformGeometry, velocityLimitExceeded, zeroExternalForces, zeroForces
addMasterAttachment, getAttachment, getInverseMass, getMasterAttachments, getSolveIndex, hasState, isActive, isAttached, isControllable, isDynamic, isParametric, removeMasterAttachment, setAttached, setSolveIndex
getRenderHints, numSelectionQueriesNeeded, updateRenderProps
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, isFixed, isMarked, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setSelected, updateReferences, write
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connectToHierarchy, disconnectFromHierarchy, getHardReferences, getName, getNavpanelVisibility, getNumber, getParent, getSoftReferences, hasState, isFixed, isMarked, isSelected, notifyParentOfChange, postscan, setFixed, setMarked, setName, setNumber, setParent, setSelected, updateReferences
getProperty
getChildren, hasChildren
isWritable, write
isSelected
numSelectionQueriesNeeded
getRenderHints
addMasterAttachment, checkFlag, clearFlag, getAttachment, getInverseMass, getMasterAttachments, getSolveIndex, isActive, isAttached, isControllable, isDynamic, isParametric, removeMasterAttachment, setAttached, setFlag, setSolveIndex
public static PropertyList myProps
public PlanarPoint()
public PlanarPoint(Point2d p)
public PlanarPoint(double x, double y)
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
getAllPropertyInfo
in class Point
public void setPlanarComponent(PlanarComponent pcomp)
public PlanarComponent getPlanarComponent()
public RigidTransform3d getPlaneToWorld()
PlanarComponent
getPlaneToWorld
in interface PlanarComponent
public Point2d getPosition2d()
public void setPosition2d(Point2d p)
public void setPosition2d(double x, double y)
public void setVelocity2d(Vector2d v)
public Vector2d getVelocity2d()
public Point3d getPosition()
getPosition
in class Point
public int getPosState(double[] x, int idx)
getPosState
in interface DynamicMechComponent
getPosState
in class Point
public void getPosition2d(Vector2d p)
public void setPosition(Point3d p)
setPosition
in class Point
public void setPosition(double x, double y, double z)
setPosition
in class Point
public void addPosition(double dx, double dy, double dz)
addPosition
in class Point
public int setPosState(double[] p, int idx)
setPosState
in interface DynamicMechComponent
setPosState
in class Point
public Vector3d getVelocity()
getVelocity
in class Point
public int getVelState(double[] v, int idx)
getVelState
in interface DynamicMechComponent
getVelState
in class Point
public void getVelocity2d(Vector2d v)
public void setVelocity(Vector3d v)
setVelocity
in class Point
public void addVelocity(double dx, double dy, double dz)
addVelocity
in class Point
public int setVelState(double[] v, int idx)
setVelState
in interface DynamicMechComponent
setVelState
in class Point
public void scan(ReaderTokenizer rtok, java.lang.Object ref) throws java.io.IOException
ModelComponentBase
write
.scan
in interface ModelComponent
scan
in interface Scannable
scan
in class ModelComponentBase
rtok
- Tokenizer from which to scan the elementref
- optional reference object which can be used for resolving references to
other objectsjava.io.IOException
- if an I/O or formatting error occuredpublic void prerender(RenderList list)
GLRenderable
prerender
in interface GLRenderable
prerender
in class Point
public void updateBounds(Point3d pmin, Point3d pmax)
GLRenderable
updateBounds
in interface GLRenderable
updateBounds
in class Point
pmin
- minimum pointpmax
- maximum pointpublic void scaleDistance(double s)
ScalableUnits
scaleDistance
in interface ScalableUnits
scaleDistance
in class Point
s
- scaling factorpublic void transformGeometry(AffineTransform3dBase X, TransformableGeometry topObject, int flags)
TransformableGeometry
topComponent
should be the component for which the method
was initially invoked. The variable flags
provides
information about the context in which the transformation is
being applied. At present, the available flags are
TransformableGeometry.SIMULATING
and TransformableGeometry.ARTICULATED
.transformGeometry
in interface TransformableGeometry
transformGeometry
in class Point
X
- affine transformationtopObject
- component on which the method was initially invokedflags
- provides information about the context in which the
transformation is being applied.public void addSolveBlock(SparseNumberedBlockMatrix S)
addSolveBlock
in interface DynamicMechComponent
addSolveBlock
in class Point
public MatrixBlock createSolveBlock()
createSolveBlock
in interface DynamicMechComponent
createSolveBlock
in class Point
public MatrixBlock getSolveBlock()
public void addToSolveBlock(Matrix2d M)
public void addToSolveBlockDiagonal(double d)
public ModelComponent copy(int flags, java.util.Map<ModelComponent,ModelComponent> copyMap)
CopyableComponent
COPY_REFERENCES
is set in flags
, then any component referenced
by this component should itself be set to a copy. This
should be done first checking copyMap
for an
existing copy of the referenced component. If there is no existing
copy, then a copy should be created by calling copy
recursively and adding the new copy to copyMap
.copy
in interface CopyableComponent
copy
in class Point