|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.layer.vpf.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 |
float[] |
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 | |
float |
getasFloat(int tuple,
int val)
Get a value in a tuple |
float[] |
getasFloatV(int tuple)
Get a tuple |
float |
getXasFloat(int tuple)
Get the first value of a tuple |
float |
getYasFloat(int tuple)
Get the second value of a tuple |
float |
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 float[] 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()
public float getXasFloat(int tuple)
tuple
- the index of the tuple
tuple
public float getYasFloat(int tuple)
tuple
- the index of the tuple
tuple
public float getZasFloat(int tuple)
tuple
- the index of the tuple
tuple
public float[] getasFloatV(int tuple)
tuple
- the index of the tuple
tuple
public float 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 |