public abstract class IlvCoordinateSystem extends Object implements IlvPersistentObject
Modifier | Constructor and Description |
---|---|
protected |
IlvCoordinateSystem(IlvCoordinateSystem source)
Constructs a new
IlvCoordinateSystem by copying an existing one. |
protected |
IlvCoordinateSystem(IlvInputStream stream)
Reads the object from an
IlvInputStream object. |
protected |
IlvCoordinateSystem(String name,
IlvUnit[] units,
String[] axisNames)
Constructs a new
IlvCoordinateSystem . |
Modifier and Type | Method and Description |
---|---|
abstract IlvCoordinateSystem |
copy()
Returns a copy of this coordinate system.
|
boolean |
equals(Object other)
Returns
true if this coordinate system is equal to
the specified coordinate system. |
String |
getAxisName(int dimension)
Returns the name of the axis which index is specified.
|
int |
getDimension()
Returns the dimension of this coordinate system.
|
String |
getName()
Returns the name of the coordinate system.
|
IlvUnit |
getUnit(int dimension)
Returns the units of this coordinate system.
|
String |
toString(IlvCoordinate p)
Creates a string representation of the
IlvCoordinate
argument. |
void |
write(IlvOutputStream stream)
Writes the object to the specified
IlvOutputStream . |
protected IlvCoordinateSystem(String name, IlvUnit[] units, String[] axisNames)
IlvCoordinateSystem
. The dimension of coordinates
in this coordinate system is defined by the number of elements in the
units[]
parameter.name
- The name of the coordinate system.units
- The units of the coordinate system.axisNames
- The names of the axis in this coordinate system.protected IlvCoordinateSystem(IlvCoordinateSystem source)
IlvCoordinateSystem
by copying an existing one.source
- The source coordinate system.protected IlvCoordinateSystem(IlvInputStream stream) throws IlvReadFileException
IlvInputStream
object.stream
- The input stream.IlvReadFileException
- If the format is not correct.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
stream
- The stream to write this unit to.IOException
- If an I/O error occurs.public abstract IlvCoordinateSystem copy()
public String getName()
public int getDimension()
public IlvUnit getUnit(int dimension)
public String getAxisName(int dimension)
public boolean equals(Object other)
true
if this coordinate system is equal to
the specified coordinate system. The default implementation will compare
coordinate system names, dimension, units, and axis names.public String toString(IlvCoordinate p)
IlvCoordinate
argument.p
- The coordinate to be converted.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.