Class SAIElevationGrid
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.geometry3d.SAIElevationGrid
- All Implemented Interfaces:
ElevationGrid,X3DGeometryNode,X3DNode
A concrete implementation of the ElevationGrid node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAIElevationGrid(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCcw()Return the ccw boolean value.getColor()Return the color X3DNode value.booleanReturn the colorPerVertex boolean value.floatReturn the creaseAngle float value.voidgetHeight(float[] val) Return the height value in the argument float[]Return the normal X3DNode value.booleanReturn the normalPerVertex boolean value.intReturn the number of MFFloat items in the height field.booleangetSolid()Return the solid boolean value.Return the texCoord X3DNode value.intReturn the xDimension int value.floatReturn the xSpacing float value.intReturn the zDimension int value.floatReturn the zSpacing float value.voidsetCcw(boolean val) Set the ccw field.voidsetColor(X3DColorNode val) Set the color field.voidsetColor(X3DProtoInstance val) Set the color field.voidsetColorPerVertex(boolean val) Set the colorPerVertex field.voidsetCreaseAngle(float val) Set the creaseAngle field.voidsetHeight(float[] val) Set the height field.voidsetNormal(X3DNormalNode val) Set the normal field.voidSet the normal field.voidsetNormalPerVertex(boolean val) Set the normalPerVertex field.voidsetSolid(boolean val) Set the solid field.voidSet the texCoord field.voidSet the texCoord field.voidsetXDimension(int val) Set the xDimension field.voidsetXSpacing(float val) Set the xSpacing field.voidsetZDimension(int val) Set the zDimension field.voidsetZSpacing(float val) Set the zSpacing field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIElevationGrid
public SAIElevationGrid(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue-
-
-
Method Details
-
getNumHeight
public int getNumHeight()Return the number of MFFloat items in the height field.- Specified by:
getNumHeightin interfaceElevationGrid- Returns:
- the number of MFFloat items in the height field.
-
getHeight
public void getHeight(float[] val) Return the height value in the argument float[]- Specified by:
getHeightin interfaceElevationGrid- Parameters:
val- The float[] to initialize.
-
setHeight
public void setHeight(float[] val) Set the height field.- Specified by:
setHeightin interfaceElevationGrid- Parameters:
val- The float[] to set.
-
getColor
Return the color X3DNode value.- Specified by:
getColorin interfaceElevationGrid- Returns:
- The color X3DNode value.
-
setColor
Set the color field.- Specified by:
setColorin interfaceElevationGrid- Parameters:
val- The X3DColorNode to set.
-
setColor
Set the color field.- Specified by:
setColorin interfaceElevationGrid- Parameters:
val- The X3DProtoInstance to set.
-
getNormal
Return the normal X3DNode value.- Specified by:
getNormalin interfaceElevationGrid- Returns:
- The normal X3DNode value.
-
setNormal
Set the normal field.- Specified by:
setNormalin interfaceElevationGrid- Parameters:
val- The X3DNormalNode to set.
-
setNormal
Set the normal field.- Specified by:
setNormalin interfaceElevationGrid- Parameters:
val- The X3DProtoInstance to set.
-
getTexCoord
Return the texCoord X3DNode value.- Specified by:
getTexCoordin interfaceElevationGrid- Returns:
- The texCoord X3DNode value.
-
setTexCoord
Set the texCoord field.- Specified by:
setTexCoordin interfaceElevationGrid- Parameters:
val- The X3DTextureCoordinateNode to set.
-
setTexCoord
Set the texCoord field.- Specified by:
setTexCoordin interfaceElevationGrid- Parameters:
val- The X3DProtoInstance to set.
-
getCcw
public boolean getCcw()Return the ccw boolean value.- Specified by:
getCcwin interfaceElevationGrid- Returns:
- The ccw boolean value.
-
setCcw
public void setCcw(boolean val) Set the ccw field.- Specified by:
setCcwin interfaceElevationGrid- Parameters:
val- The boolean to set.
-
getColorPerVertex
public boolean getColorPerVertex()Return the colorPerVertex boolean value.- Specified by:
getColorPerVertexin interfaceElevationGrid- Returns:
- The colorPerVertex boolean value.
-
setColorPerVertex
public void setColorPerVertex(boolean val) Set the colorPerVertex field.- Specified by:
setColorPerVertexin interfaceElevationGrid- Parameters:
val- The boolean to set.
-
getCreaseAngle
public float getCreaseAngle()Return the creaseAngle float value.- Specified by:
getCreaseAnglein interfaceElevationGrid- Returns:
- The creaseAngle float value.
-
setCreaseAngle
public void setCreaseAngle(float val) Set the creaseAngle field.- Specified by:
setCreaseAnglein interfaceElevationGrid- Parameters:
val- The float to set.
-
getNormalPerVertex
public boolean getNormalPerVertex()Return the normalPerVertex boolean value.- Specified by:
getNormalPerVertexin interfaceElevationGrid- Returns:
- The normalPerVertex boolean value.
-
setNormalPerVertex
public void setNormalPerVertex(boolean val) Set the normalPerVertex field.- Specified by:
setNormalPerVertexin interfaceElevationGrid- Parameters:
val- The boolean to set.
-
getSolid
public boolean getSolid()Return the solid boolean value.- Specified by:
getSolidin interfaceElevationGrid- Returns:
- The solid boolean value.
-
setSolid
public void setSolid(boolean val) Set the solid field.- Specified by:
setSolidin interfaceElevationGrid- Parameters:
val- The boolean to set.
-
getXDimension
public int getXDimension()Return the xDimension int value.- Specified by:
getXDimensionin interfaceElevationGrid- Returns:
- The xDimension int value.
-
setXDimension
public void setXDimension(int val) Set the xDimension field.- Specified by:
setXDimensionin interfaceElevationGrid- Parameters:
val- The int to set.
-
getXSpacing
public float getXSpacing()Return the xSpacing float value.- Specified by:
getXSpacingin interfaceElevationGrid- Returns:
- The xSpacing float value.
-
setXSpacing
public void setXSpacing(float val) Set the xSpacing field.- Specified by:
setXSpacingin interfaceElevationGrid- Parameters:
val- The float to set.
-
getZDimension
public int getZDimension()Return the zDimension int value.- Specified by:
getZDimensionin interfaceElevationGrid- Returns:
- The zDimension int value.
-
setZDimension
public void setZDimension(int val) Set the zDimension field.- Specified by:
setZDimensionin interfaceElevationGrid- Parameters:
val- The int to set.
-
getZSpacing
public float getZSpacing()Return the zSpacing float value.- Specified by:
getZSpacingin interfaceElevationGrid- Returns:
- The zSpacing float value.
-
setZSpacing
public void setZSpacing(float val) Set the zSpacing field.- Specified by:
setZSpacingin interfaceElevationGrid- Parameters:
val- The float to set.
-