commandline.flatFileToBinaryPackage
Class OrdinaryFlatToBin

java.lang.Object
  extended by commandline.flatFileToBinaryPackage.AbstractFlatToBin
      extended by commandline.flatFileToBinaryPackage.TreeCompressedCoder
          extended by commandline.flatFileToBinaryPackage.OrdinaryFlatToBin

public class OrdinaryFlatToBin
extends TreeCompressedCoder


Field Summary
 
Fields inherited from class commandline.flatFileToBinaryPackage.TreeCompressedCoder
configuration, PROB_SCALE_FACTOR
 
Fields inherited from class commandline.flatFileToBinaryPackage.AbstractFlatToBin
basemeshBits, metaBits, normalOffsetBits, normalOffsetGain, tesselationBits, tesselationGain, treeBits, treeGain, verticalOffsetBits, verticalOffsetGain
 
Constructor Summary
OrdinaryFlatToBin(Configuration configuration, DataStructure dataStructure, CodedFile treeStucture, MyDataOutPutStream dos)
           
 
Method Summary
protected  java.lang.String getMethodName()
           
protected  java.lang.String[] getNormalIndex(GenericEdge e)
          TEMPLATE METHOD this method can be overriden by another method for a better compression of the normal offset
protected  java.lang.String[] getVerticalIndex(int verticalOffset, GenericEdge genericEdge)
          TEMPLATE METHOD this method can be overriden by another method for a better compression of the vertikal offset
 
Methods inherited from class commandline.flatFileToBinaryPackage.TreeCompressedCoder
writeMetaData, writeNormalOffsets, writeOffsets, writeTesselations, writeVerticalOffsets
 
Methods inherited from class commandline.flatFileToBinaryPackage.AbstractFlatToBin
convert, getBasemeshBits, getBreathFirstDatastructure, getDos, getMetaBits, getNormalOffsetBits, getNormalOffsetGain, getTesselationBits, getTesselationGain, getTreeBits, getTreeGain, getTreeStructure, getVerticalOffsetBits, getVerticalOffsetGain, printCharArray, printStringArray, printto, writeArrayListOfBitStringsToBytes, writeBitSetToBytes, writeBitSetToBytes, writeByteArray, writeMyFloat, writeMyInt, writeMyShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrdinaryFlatToBin

public OrdinaryFlatToBin(Configuration configuration,
                         DataStructure dataStructure,
                         CodedFile treeStucture,
                         MyDataOutPutStream dos)
Method Detail

getMethodName

protected java.lang.String getMethodName()
Specified by:
getMethodName in class TreeCompressedCoder

getVerticalIndex

protected java.lang.String[] getVerticalIndex(int verticalOffset,
                                              GenericEdge genericEdge)
Description copied from class: TreeCompressedCoder
TEMPLATE METHOD this method can be overriden by another method for a better compression of the vertikal offset

Specified by:
getVerticalIndex in class TreeCompressedCoder
Parameters:
vertikaloffset -
genericEdge -
Returns:
the (unencoded!) codeword for the vertical offset position [-255,255]

getNormalIndex

protected java.lang.String[] getNormalIndex(GenericEdge e)
Description copied from class: TreeCompressedCoder
TEMPLATE METHOD this method can be overriden by another method for a better compression of the normal offset

Specified by:
getNormalIndex in class TreeCompressedCoder