|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.coordinate.CoordinateSystem
com.tensegrity.composite.coordinate.MutableCoordinateSystem
The MutableCoordinateSystem is a generalization of the
CoordinateSystem. Therefore it is neccessary to read the
documentation of the CoordinateSystem class to have an
understanding of the basics for a CoordinateSystem.
Since a CoordinateSystem is immutable but mutable coordinate
systems are also needed this class represents such a coordinate system. The
Scales a MutableCoordinateSystem uses must also be
mutable. To get informations about how to create and how to work with
mutable scales please see the documentation of MutableScale.
The methods a MutableCoordinateSystem provides to modify it are
as follows:
Notice that instances of MutableCoordinateSystem are not part of
the pooling mechanism for CoordinateSystems.
| Field Summary |
| Fields inherited from class com.tensegrity.composite.coordinate.CoordinateSystem |
DEFAULT_SYSTEM, SCALE_X, SCALE_Y, SCALE_Z, scales |
| Constructor Summary | |
MutableCoordinateSystem(MutableCoordinateSystem coordSystem)
Constructor for MutableCoordinateSystem that creates a copy
of the MutableCoordinateSystem given by
coordSystem. |
|
MutableCoordinateSystem(MutableScale scaleX,
MutableScale scaleY)
Constructor for MutableCoordinateSystem with
MutableScales given by scaleX and
scaleY for the x direction and the y direction. |
|
| Method Summary | |
MutableScale |
getScale(int direction)
Returns the MutableScale for the direction given by
direction. |
void |
setScaleRange(int direction,
double minimum,
double maximum)
Sets the scale range at the MutableScale for the direction
given by direction to the values given by
minimum and maximum. |
| Methods inherited from class com.tensegrity.composite.coordinate.CoordinateSystem |
descale, equals, getCanonicalDescription, getScaleMaximum, getScaleMinimum, getScaleRange, getTransform2D_inverse, getTransform2D, hashCode, scale, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MutableCoordinateSystem(MutableScale scaleX,
MutableScale scaleY)
MutableCoordinateSystem with
MutableScales given by scaleX and
scaleY for the x direction and the y direction.
scaleX - the MutableScale for the x directionscaleY - the MutableScale for the y directionpublic MutableCoordinateSystem(MutableCoordinateSystem coordSystem)
MutableCoordinateSystem that creates a copy
of the MutableCoordinateSystem given by
coordSystem.
coordSystem - the MutableCoordinateSystem to create a
copy of| Method Detail |
public MutableScale getScale(int direction)
MutableScale for the direction given by
direction.
direction - the direction to return the MutableScale
for. Valid values are:
MutableScale for the requested direction.
public void setScaleRange(int direction,
double minimum,
double maximum)
MutableScale for the direction
given by direction to the values given by
minimum and maximum.
direction - the direction of the MutableScale to set
the scale range forminimum - the minimum value of the new scale rangemaximum - the maximum value of the new scale range
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||