java.lang.Object
com.trapezium.chisel.reorganizers.ElevationGridSplitter.ElevationInfo
- Enclosing class:
- ElevationGridSplitter
- class ElevationGridSplitter.ElevationInfo
- extends java.lang.Object
The main class for performing an ElevationGrid split operation
|
Method Summary |
(package private) void |
additionalValues(com.trapezium.chisel.TokenPrinter tp,
java.lang.String nodeFieldName,
java.lang.String nodeName,
java.lang.String valueFieldName,
com.trapezium.vrml.fields.MFFieldValue values,
boolean perVertex,
int factor,
int startSkip,
int endSkip,
int rowSkip,
int numXspots,
int numZspots)
Output additional ElevationGrid field values. |
(package private) void |
genShapeData(int xOffset,
int xWidth,
int zOffset,
int zWidth,
com.trapezium.chisel.TokenPrinter tp,
int xDivisor,
int zDivisor)
generate Shape data for the ElevationGrid. |
(package private) void |
genShapeHeader(com.trapezium.chisel.TokenPrinter tp)
Generate text for everything from start of Shape node to first token before
the start of the ElevationGrid. |
(package private) void |
genShapeTrailer(com.trapezium.chisel.TokenPrinter tp)
Generate text for everything after last token of ElevationGrid to the last token
of the Shape node. |
(package private) void |
genTransformHeader(int xOffset,
int xWidth,
int zOffset,
int zWidth,
com.trapezium.chisel.TokenPrinter tp)
generate the header for the Transform containing a unit of the split result |
(package private) void |
genTransformTrailer(com.trapezium.chisel.TokenPrinter tp)
|
(package private) void |
outputTexCoord(com.trapezium.chisel.TokenPrinter tp,
int xWidth,
int xOffset,
int numXspots,
int zWidth,
int zOffset,
int numZspots)
Output texCoords |
void |
split(com.trapezium.chisel.TokenPrinter tp,
int xDivisor,
int zDivisor)
Actually perform the ElevationGrid split |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xDimension
int xDimension
zDimension
int zDimension
xSpacing
float xSpacing
zSpacing
float zSpacing
elevationNode
com.trapezium.vrml.node.Node elevationNode
shapeNode
com.trapezium.vrml.node.Node shapeNode
heightValues
com.trapezium.vrml.fields.MFFieldValue heightValues
colorValues
com.trapezium.vrml.fields.MFFieldValue colorValues
colorPerVertex
boolean colorPerVertex
normalValues
com.trapezium.vrml.fields.MFFieldValue normalValues
normalPerVertex
boolean normalPerVertex
textureValues
com.trapezium.vrml.fields.MFFieldValue textureValues
elevationGridHasTexture
boolean elevationGridHasTexture
scaleToInvert
int scaleToInvert
ElevationGridSplitter.ElevationInfo
public ElevationGridSplitter.ElevationInfo(int xd,
int zd,
float xp,
float zp,
com.trapezium.vrml.node.Node en,
com.trapezium.vrml.node.Node rn)
split
public void split(com.trapezium.chisel.TokenPrinter tp,
int xDivisor,
int zDivisor)
- Actually perform the ElevationGrid split
genTransformHeader
void genTransformHeader(int xOffset,
int xWidth,
int zOffset,
int zWidth,
com.trapezium.chisel.TokenPrinter tp)
- generate the header for the Transform containing a unit of the split result
genTransformTrailer
void genTransformTrailer(com.trapezium.chisel.TokenPrinter tp)
genShapeHeader
void genShapeHeader(com.trapezium.chisel.TokenPrinter tp)
- Generate text for everything from start of Shape node to first token before
the start of the ElevationGrid.
genShapeTrailer
void genShapeTrailer(com.trapezium.chisel.TokenPrinter tp)
- Generate text for everything after last token of ElevationGrid to the last token
of the Shape node.
genShapeData
void genShapeData(int xOffset,
int xWidth,
int zOffset,
int zWidth,
com.trapezium.chisel.TokenPrinter tp,
int xDivisor,
int zDivisor)
- generate Shape data for the ElevationGrid.
outputTexCoord
void outputTexCoord(com.trapezium.chisel.TokenPrinter tp,
int xWidth,
int xOffset,
int numXspots,
int zWidth,
int zOffset,
int numZspots)
- Output texCoords
additionalValues
void additionalValues(com.trapezium.chisel.TokenPrinter tp,
java.lang.String nodeFieldName,
java.lang.String nodeName,
java.lang.String valueFieldName,
com.trapezium.vrml.fields.MFFieldValue values,
boolean perVertex,
int factor,
int startSkip,
int endSkip,
int rowSkip,
int numXspots,
int numZspots)
- Output additional ElevationGrid field values.