Class SAIElevationGrid
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.geometry3d.SAIElevationGrid
- All Implemented Interfaces:
ElevationGrid
,X3DGeometryNode
,X3DNode
A concrete implementation of the ElevationGrid node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAIElevationGrid
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCcw()
Return the ccw boolean value.getColor()
Return the color X3DNode value.boolean
Return the colorPerVertex boolean value.float
Return the creaseAngle float value.void
getHeight
(float[] val) Return the height value in the argument float[]Return the normal X3DNode value.boolean
Return the normalPerVertex boolean value.int
Return the number of MFFloat items in the height field.boolean
getSolid()
Return the solid boolean value.Return the texCoord X3DNode value.int
Return the xDimension int value.float
Return the xSpacing float value.int
Return the zDimension int value.float
Return the zSpacing float value.void
setCcw
(boolean val) Set the ccw field.void
setColor
(X3DColorNode val) Set the color field.void
setColor
(X3DProtoInstance val) Set the color field.void
setColorPerVertex
(boolean val) Set the colorPerVertex field.void
setCreaseAngle
(float val) Set the creaseAngle field.void
setHeight
(float[] val) Set the height field.void
setNormal
(X3DNormalNode val) Set the normal field.void
Set the normal field.void
setNormalPerVertex
(boolean val) Set the normalPerVertex field.void
setSolid
(boolean val) Set the solid field.void
Set the texCoord field.void
Set the texCoord field.void
setXDimension
(int val) Set the xDimension field.void
setXSpacing
(float val) Set the xSpacing field.void
setZDimension
(int val) Set the zDimension field.void
setZSpacing
(float val) Set the zSpacing field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIElevationGrid
public SAIElevationGrid(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getNumHeight
public int getNumHeight()Return the number of MFFloat items in the height field.- Specified by:
getNumHeight
in 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:
getHeight
in interfaceElevationGrid
- Parameters:
val
- The float[] to initialize.
-
setHeight
public void setHeight(float[] val) Set the height field.- Specified by:
setHeight
in interfaceElevationGrid
- Parameters:
val
- The float[] to set.
-
getColor
Return the color X3DNode value.- Specified by:
getColor
in interfaceElevationGrid
- Returns:
- The color X3DNode value.
-
setColor
Set the color field.- Specified by:
setColor
in interfaceElevationGrid
- Parameters:
val
- The X3DColorNode to set.
-
setColor
Set the color field.- Specified by:
setColor
in interfaceElevationGrid
- Parameters:
val
- The X3DProtoInstance to set.
-
getNormal
Return the normal X3DNode value.- Specified by:
getNormal
in interfaceElevationGrid
- Returns:
- The normal X3DNode value.
-
setNormal
Set the normal field.- Specified by:
setNormal
in interfaceElevationGrid
- Parameters:
val
- The X3DNormalNode to set.
-
setNormal
Set the normal field.- Specified by:
setNormal
in interfaceElevationGrid
- Parameters:
val
- The X3DProtoInstance to set.
-
getTexCoord
Return the texCoord X3DNode value.- Specified by:
getTexCoord
in interfaceElevationGrid
- Returns:
- The texCoord X3DNode value.
-
setTexCoord
Set the texCoord field.- Specified by:
setTexCoord
in interfaceElevationGrid
- Parameters:
val
- The X3DTextureCoordinateNode to set.
-
setTexCoord
Set the texCoord field.- Specified by:
setTexCoord
in interfaceElevationGrid
- Parameters:
val
- The X3DProtoInstance to set.
-
getCcw
public boolean getCcw()Return the ccw boolean value.- Specified by:
getCcw
in interfaceElevationGrid
- Returns:
- The ccw boolean value.
-
setCcw
public void setCcw(boolean val) Set the ccw field.- Specified by:
setCcw
in interfaceElevationGrid
- Parameters:
val
- The boolean to set.
-
getColorPerVertex
public boolean getColorPerVertex()Return the colorPerVertex boolean value.- Specified by:
getColorPerVertex
in interfaceElevationGrid
- Returns:
- The colorPerVertex boolean value.
-
setColorPerVertex
public void setColorPerVertex(boolean val) Set the colorPerVertex field.- Specified by:
setColorPerVertex
in interfaceElevationGrid
- Parameters:
val
- The boolean to set.
-
getCreaseAngle
public float getCreaseAngle()Return the creaseAngle float value.- Specified by:
getCreaseAngle
in interfaceElevationGrid
- Returns:
- The creaseAngle float value.
-
setCreaseAngle
public void setCreaseAngle(float val) Set the creaseAngle field.- Specified by:
setCreaseAngle
in interfaceElevationGrid
- Parameters:
val
- The float to set.
-
getNormalPerVertex
public boolean getNormalPerVertex()Return the normalPerVertex boolean value.- Specified by:
getNormalPerVertex
in interfaceElevationGrid
- Returns:
- The normalPerVertex boolean value.
-
setNormalPerVertex
public void setNormalPerVertex(boolean val) Set the normalPerVertex field.- Specified by:
setNormalPerVertex
in interfaceElevationGrid
- Parameters:
val
- The boolean to set.
-
getSolid
public boolean getSolid()Return the solid boolean value.- Specified by:
getSolid
in interfaceElevationGrid
- Returns:
- The solid boolean value.
-
setSolid
public void setSolid(boolean val) Set the solid field.- Specified by:
setSolid
in interfaceElevationGrid
- Parameters:
val
- The boolean to set.
-
getXDimension
public int getXDimension()Return the xDimension int value.- Specified by:
getXDimension
in interfaceElevationGrid
- Returns:
- The xDimension int value.
-
setXDimension
public void setXDimension(int val) Set the xDimension field.- Specified by:
setXDimension
in interfaceElevationGrid
- Parameters:
val
- The int to set.
-
getXSpacing
public float getXSpacing()Return the xSpacing float value.- Specified by:
getXSpacing
in interfaceElevationGrid
- Returns:
- The xSpacing float value.
-
setXSpacing
public void setXSpacing(float val) Set the xSpacing field.- Specified by:
setXSpacing
in interfaceElevationGrid
- Parameters:
val
- The float to set.
-
getZDimension
public int getZDimension()Return the zDimension int value.- Specified by:
getZDimension
in interfaceElevationGrid
- Returns:
- The zDimension int value.
-
setZDimension
public void setZDimension(int val) Set the zDimension field.- Specified by:
setZDimension
in interfaceElevationGrid
- Parameters:
val
- The int to set.
-
getZSpacing
public float getZSpacing()Return the zSpacing float value.- Specified by:
getZSpacing
in interfaceElevationGrid
- Returns:
- The zSpacing float value.
-
setZSpacing
public void setZSpacing(float val) Set the zSpacing field.- Specified by:
setZSpacing
in interfaceElevationGrid
- Parameters:
val
- The float to set.
-