commandline.Encoder
Class NormalMeshEncoder

java.lang.Object
  extended by commandline.Program
      extended by commandline.Encoder.NormalMeshEncoder
All Implemented Interfaces:
PruneListener, ProgramControlListener

public class NormalMeshEncoder
extends Program
implements PruneListener


Field Summary
static CodedFile triangleState1
           
static CodedFile triangleState2
           
 
Fields inherited from class commandline.Program
recodingListener
 
Constructor Summary
NormalMeshEncoder(Configuration configuration)
           
 
Method Summary
static NormalMeshEncoder commandline(java.lang.String[] args)
           
 DataStructure getBreathFirstDataStructure()
           
 Configuration getConfiguration()
           
 TreeCompressedCoder getFlat2Bin()
           
 Program getNewProgram(Configuration configuration)
          gets a new progrom from a Configuration Object
 Mesh_Save_Type_Enumeration[] getSaveEnumeration()
           
 TriangleStorage getTriangleStorage()
           
static void main_without_quiting(java.lang.String[] args)
           
static void main(java.lang.String[] args)
           
 void makeVTKandMatlabFiles(java.io.File f)
          making VTK and Matlabfiles
 void perform()
           
 void prune(float Lagrangian)
          Implements PruneListener
 void registerRefinementEventListenerToSubscriber(RefinementListener listener)
          Facade method
 void save(Mesh_Save_Type_Enumeration INSTRUCTION, java.io.File f)
          Encodes the files and saves them to the appropriate places
 void saveBMPImage(java.io.File f)
          Saves the file to the requested File constructed in constructBreathFirstEncodingOfTree()
 void writeColoredMesh()
          DEBUGGING ROUTINES
 
Methods inherited from class commandline.Program
addProgressListener, isStopRequested, requestStop, setRecodingListener, updateProgressListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

triangleState1

public static CodedFile triangleState1

triangleState2

public static CodedFile triangleState2
Constructor Detail

NormalMeshEncoder

public NormalMeshEncoder(Configuration configuration)
                  throws java.io.FileNotFoundException
Parameters:
configuration -
Throws:
java.io.FileNotFoundException
Method Detail

perform

public void perform()
Specified by:
perform in interface ProgramControlListener
Overrides:
perform in class Program

prune

public void prune(float Lagrangian)
Implements PruneListener

Specified by:
prune in interface PruneListener
Parameters:
Lagrangian -

save

public void save(Mesh_Save_Type_Enumeration INSTRUCTION,
                 java.io.File f)
          throws java.io.IOException
Encodes the files and saves them to the appropriate places

Specified by:
save in class Program
f - TODO
Throws:
java.io.IOException

getSaveEnumeration

public Mesh_Save_Type_Enumeration[] getSaveEnumeration()
Specified by:
getSaveEnumeration in class Program

saveBMPImage

public void saveBMPImage(java.io.File f)
                  throws java.io.IOException
Saves the file to the requested File constructed in constructBreathFirstEncodingOfTree()

Parameters:
File -
Throws:
java.io.IOException

makeVTKandMatlabFiles

public void makeVTKandMatlabFiles(java.io.File f)
making VTK and Matlabfiles


getConfiguration

public Configuration getConfiguration()

getNewProgram

public Program getNewProgram(Configuration configuration)
                      throws java.io.FileNotFoundException
Description copied from class: Program
gets a new progrom from a Configuration Object

Specified by:
getNewProgram in class Program
Returns:
Throws:
java.io.FileNotFoundException

main_without_quiting

public static void main_without_quiting(java.lang.String[] args)

commandline

public static NormalMeshEncoder commandline(java.lang.String[] args)
                                     throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

main

public static void main(java.lang.String[] args)

getFlat2Bin

public TreeCompressedCoder getFlat2Bin()

getBreathFirstDataStructure

public DataStructure getBreathFirstDataStructure()
Returns:
a referece to the DataStructure

registerRefinementEventListenerToSubscriber

public void registerRefinementEventListenerToSubscriber(RefinementListener listener)
Facade method

Overrides:
registerRefinementEventListenerToSubscriber in class Program
Parameters:
listener -

writeColoredMesh

public void writeColoredMesh()
DEBUGGING ROUTINES


getTriangleStorage

public TriangleStorage getTriangleStorage()