Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel.reorganizers
Class ElevationGridSplitter.ElevationInfo  view ElevationGridSplitter.ElevationInfo download ElevationGridSplitter.ElevationInfo.java

java.lang.Object
  extended bycom.trapezium.chisel.reorganizers.ElevationGridSplitter.ElevationInfo
Enclosing class:
ElevationGridSplitter

class ElevationGridSplitter.ElevationInfo
extends java.lang.Object

The main class for performing an ElevationGrid split operation


Field Summary
(package private)  boolean colorPerVertex
           
(package private)  com.trapezium.vrml.fields.MFFieldValue colorValues
           
(package private)  boolean elevationGridHasTexture
           
(package private)  com.trapezium.vrml.node.Node elevationNode
           
(package private)  com.trapezium.vrml.fields.MFFieldValue heightValues
           
(package private)  boolean normalPerVertex
           
(package private)  com.trapezium.vrml.fields.MFFieldValue normalValues
           
(package private)  int scaleToInvert
           
(package private)  com.trapezium.vrml.node.Node shapeNode
           
(package private)  com.trapezium.vrml.fields.MFFieldValue textureValues
           
(package private)  int xDimension
           
(package private)  float xSpacing
           
(package private)  int zDimension
           
(package private)  float zSpacing
           
 
Constructor Summary
ElevationGridSplitter.ElevationInfo(int xd, int zd, float xp, float zp, com.trapezium.vrml.node.Node en, com.trapezium.vrml.node.Node rn)
           
 
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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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.