|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Leaf javax.media.j3d.Shape3D JHeightMap.JLineHeightMap
public class JLineHeightMap
Class JLineHeightMap extends class AbstractHeightMap (second level). Class used to represent the height map. Class displays the map using the class JLineDataMap (LineStrip).
Field Summary | |
---|---|
static int |
LINES_X_AXES
|
static int |
LINES_Y_AXES
|
Fields inherited from class javax.media.j3d.Shape3D |
---|
ALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITE |
Fields inherited from class javax.media.j3d.Node |
---|
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
Constructor Summary | |
---|---|
JLineHeightMap()
The constructor creates geometry and appearance height map. |
|
JLineHeightMap(JLineDataMap dataMap)
The constructor creates geometry and appearance height map. |
|
JLineHeightMap(JLineDataMap dataMap,
java.lang.String fileNameTexture)
The constructor creates geometry and appearance height map. |
Method Summary | |
---|---|
void |
createAppearance()
The method creates default appearance of the loaded map. |
void |
createAppearance(java.lang.String fileNameTexture,
JHeightMap.AbstractDataMap map)
The method creates default appearance of the loaded map. |
void |
createGeometry(JHeightMap.AbstractDataMap dataMap)
The method creates a geometry of the loaded map. |
int |
getHeight()
The method returns height loaded map. |
float |
getMaxZ()
The method returns maximum value from loaded maps |
int |
getWidth()
The method returns width loaded map. |
void |
indexLine(int i,
int status)
The method displays line map. |
int[] |
indexLineIndexsX(int line,
JLineDataMap m)
The method create array indexes for map with line in the x-axis. |
int[] |
indexLineIndexsY(int line,
JLineDataMap m)
The method create array indexes for map with line in the y-axis. |
int[] |
indexLineStripCountsX(int line,
JLineDataMap m)
The method create array strips for map with line in the x-axis. |
int[] |
indexLineStripCountsY(int line,
JLineDataMap m)
The method create array strips for map with line in the y-axis. |
void |
indexLineX(int i)
The method creates map with line in x-axis. |
void |
indexLineY(int i)
The method creates map with line in y-axis. |
boolean |
isMatrixZero(float[] matrix)
The method calculates whether filter matrix is zero |
boolean |
isValidCoordinates(int x,
int y,
int width,
int height)
The method detects whether a point is on the map ore not. |
void |
resetAppearance()
The method resets appearance map. |
void |
resetMap()
The method resets geometry map. |
void |
setFilter(float[] matrix,
int size)
The method changes the geometry of a loaded map according to a filter. |
void |
setMap(JHeightMap.AbstractDataMap map)
The method sets a new height map that map is specified parameter dataMap. |
void |
setMaterial(javax.media.j3d.Material material)
The method sets material map. |
void |
setTexture(java.lang.String fileNameTexture)
The method sets texture for map. |
Methods inherited from class javax.media.j3d.Shape3D |
---|
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometry |
Methods inherited from class javax.media.j3d.Node |
---|
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
Methods inherited from class javax.media.j3d.SceneGraphObject |
---|
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int LINES_Y_AXES
public static final int LINES_X_AXES
Constructor Detail |
---|
public JLineHeightMap()
public JLineHeightMap(JLineDataMap dataMap)
dataMap
- The data required to create a height map.public JLineHeightMap(JLineDataMap dataMap, java.lang.String fileNameTexture)
dataMap
- The data required to create a height map.fileNameTexture
- Name of file with textureMethod Detail |
---|
public void createAppearance()
public void createAppearance(java.lang.String fileNameTexture, JHeightMap.AbstractDataMap map)
fileNameTexture
- Name of the file, where the texture is.map
- Data loaded mappublic void createGeometry(JHeightMap.AbstractDataMap dataMap)
dataMap
- Data loaded mappublic void indexLine(int i, int status)
i
- Order line.status
- The value determined whether to display line in the x-axis or in y-axis.public void indexLineX(int i)
i
- Order linepublic void indexLineY(int i)
i
- Order linepublic int[] indexLineIndexsX(int line, JLineDataMap m)
line
- Order linem
- Data of height map
public int[] indexLineStripCountsX(int line, JLineDataMap m)
line
- Order linem
- Data of height map
public int[] indexLineIndexsY(int line, JLineDataMap m)
line
- Order linem
- Data of height map
public int[] indexLineStripCountsY(int line, JLineDataMap m)
line
- Order linem
- Data of height map
public void resetMap()
public boolean isValidCoordinates(int x, int y, int width, int height)
x
- Order point in the x-axisy
- Order point in the y-axiswidth
- width mapheight
- height map
public boolean isMatrixZero(float[] matrix)
matrix
- Filter matrix
public void setMap(JHeightMap.AbstractDataMap map)
map
- Data new mappublic void setFilter(float[] matrix, int size)
matrix
- Filter valuessize
- Size of a filter matrixpublic void setTexture(java.lang.String fileNameTexture)
fileNameTexture
- Name of the file, where the texture is.public int getHeight()
public int getWidth()
public float getMaxZ()
public void resetAppearance()
public void setMaterial(javax.media.j3d.Material material)
material
- Material map.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |