|
||||||||
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.JDefaultHeightMap
public class JDefaultHeightMap
Class JDefaultHeightMap extends class AbstractHeightMap (second level). Class used to represent the height map. Class displays the map using the class JDefaultDataMap (TriangleStrip).
Field Summary |
---|
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 | |
---|---|
JDefaultHeightMap()
The constructor creates geometry and appearance height map. |
|
JDefaultHeightMap(JDefaultDataMap dataMap)
The constructor creates geometry and appearance height map. |
|
JDefaultHeightMap(JDefaultDataMap 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 dataMap)
The method creates default appearance of the loaded map. |
void |
createGeometry(JHeightMap.AbstractDataMap map)
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. |
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. |
boolean |
isWireModelMap()
The method detects whether a wire model is switch on or 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. |
void |
setWireModelMap(boolean wireModel)
The method sets the wire model (appearance height 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 |
Constructor Detail |
---|
public JDefaultHeightMap()
public JDefaultHeightMap(JDefaultDataMap dataMap)
dataMap
- The data required to create a height map.public JDefaultHeightMap(JDefaultDataMap 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 dataMap)
fileNameTexture
- Name of the file, where the texture is.dataMap
- Data loaded mappublic void createGeometry(JHeightMap.AbstractDataMap map)
map
- Data loaded mappublic void resetMap()
public boolean isWireModelMap()
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 setWireModelMap(boolean wireModel)
wireModel
- A value that specifies display wire modelpublic 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 float getMaxZ()
public int getWidth()
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 |