commandline.flatFileToBinaryPackage
Class TreeCompressedCoder
java.lang.Object
commandline.flatFileToBinaryPackage.AbstractFlatToBin
commandline.flatFileToBinaryPackage.TreeCompressedCoder
- Direct Known Subclasses:
- HuffmanFlatToBin, OrdinaryFlatToBin
public abstract class TreeCompressedCoder
- extends AbstractFlatToBin
|
Method Summary |
protected abstract java.lang.String |
getMethodName()
|
protected abstract 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 abstract 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 |
protected void |
writeMetaData(java.util.ArrayList<java.lang.String> verticaloffsetbits)
writes the number of bits spend on vertical offsets to an Integer Value on the bitstream |
protected void |
writeNormalOffsets()
|
protected void |
writeOffsets()
|
protected void |
writeTesselations()
Huffman encodes the tesselation codes |
protected void |
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 |
PROB_SCALE_FACTOR
public static final float PROB_SCALE_FACTOR
- See Also:
- Constant Field Values
configuration
protected Configuration configuration
TreeCompressedCoder
public TreeCompressedCoder(Configuration configuration,
DataStructure dataStructure,
CodedFile treeStucture,
MyDataOutPutStream dos)
getNormalIndex
protected abstract java.lang.String[] getNormalIndex(GenericEdge e)
- TEMPLATE METHOD this method can be overriden by another method for a better compression of the normal offset
getVerticalIndex
protected abstract 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
writeOffsets
protected void writeOffsets()
- Overrides:
writeOffsets in class AbstractFlatToBin
getMethodName
protected abstract java.lang.String getMethodName()
writeNormalOffsets
protected void writeNormalOffsets()
writeVerticalOffsets
protected void writeVerticalOffsets()
writeMetaData
protected void writeMetaData(java.util.ArrayList<java.lang.String> verticaloffsetbits)
- writes the number of bits spend on vertical offsets to an Integer Value on the bitstream
writeTesselations
protected void writeTesselations()
- Huffman encodes the tesselation codes
- Overrides:
writeTesselations in class AbstractFlatToBin