|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.vpf.CoordFloatString
public class CoordFloatString
Encapsulate the VPF Float Coordinate String primitive datatype.
Field Summary | |
---|---|
int |
tcount
the number of tuples |
int |
tsize
the number of elements in a tuple |
double[] |
vals
where we store the data as x1,y1,z1,x2,y2,z2,... |
Constructor Summary | |
---|---|
CoordFloatString(int tuplecount,
int tuplesize,
BinaryFile input)
Construct a CoordFloatString from a file input |
Method Summary | |
---|---|
double |
getasFloat(int tuple,
int val)
Get a value in a tuple |
double[] |
getasFloatV(int tuple)
Get a tuple |
double |
getXasFloat(int tuple)
Get the first value of a tuple |
double |
getYasFloat(int tuple)
Get the second value of a tuple |
double |
getZasFloat(int tuple)
Get the third value of a tuple |
int |
maxIndex()
The maximum indexable tuple value |
java.lang.String |
toString()
A pretty formatter for the floatstring |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int tcount
public int tsize
public double[] vals
Constructor Detail |
---|
public CoordFloatString(int tuplecount, int tuplesize, BinaryFile input) throws FormatException
tuplecount
- the number of tuples to read from the input
streamtuplesize
- the number of floats in the tupleinput
- the input stream to read everything from
FormatException
- if we have IO errors or premature
end-of-fileMethod Detail |
---|
public int maxIndex()
public java.lang.String toString()
toString
in class java.lang.Object
public double getXasFloat(int tuple)
tuple
- the index of the tuple
tuple
public double getYasFloat(int tuple)
tuple
- the index of the tuple
tuple
public double getZasFloat(int tuple)
tuple
- the index of the tuple
tuple
public double[] getasFloatV(int tuple)
tuple
- the index of the tuple
tuple
public double getasFloat(int tuple, int val)
tuple
- the index of the tupleval
- the index of the value
tuple
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |