|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JHeightMap.JCSVLoadMap
public class JCSVLoadMap
Class JCSVLoadMap extends class AbstractLoadMap (zero level). Class used to retrieve data (height map) from the file in format CSV.
Constructor Summary | |
---|---|
JCSVLoadMap()
Constructor initializes the array values (z-coordinates). |
|
JCSVLoadMap(java.lang.String fileName)
Constructor loads the array values (z-coordinates) from file. |
|
JCSVLoadMap(java.lang.String fileName,
char separateChar)
Constructor loads the array values (z-coordinates) from file. |
Method Summary | |
---|---|
void |
createData(java.lang.String fileName)
The method loads the data (height map) from file in format CSV. |
float[] |
getDataArea()
The method returns an array of values (z-coordinates) from the height map. |
int |
getHeight()
The method returns height loaded maps. |
float |
getStepX()
The method returns step in the x-axis. |
float |
getStepY()
The method returns step in the y-axis. |
int |
getWidth()
The method returns width loaded maps. |
boolean |
isCorrectFormat(java.lang.String fileName)
The method controls a file format,which values of height maps are loaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCSVLoadMap()
public JCSVLoadMap(java.lang.String fileName)
fileName
- Name of a file where the values of height maps are saved.public JCSVLoadMap(java.lang.String fileName, char separateChar)
fileName
- Name of a file where the values of height maps are saved.separateChar
- Char separated values (z-coordinates) of height map.Method Detail |
---|
public void createData(java.lang.String fileName)
fileName
- Name of a file where the values of height maps are saved.public boolean isCorrectFormat(java.lang.String fileName)
fileName
- Name of a file where the values of height maps are saved.
public float[] getDataArea()
public int getHeight()
public int getWidth()
public float getStepX()
public float getStepY()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |