00001 package commandline.debuggingCode; 00002 00003 import gui.Widgets.printListener; 00004 00005 import java.util.ArrayList; 00006 00007 00008 00009 public class Debug { 00010 00011 00012 public static final boolean DEBUG=false; 00013 public static final boolean ASSERT_STATEMENTS=false; // @Todo 00014 public static final boolean DEBUG_ERRORDECAY=false; 00015 public static final boolean DEBUG_STRUCTURE=false; // handy!!: writing V,E,F and treestructure van Encoder en commandline.Decoder!!! 00016 public static final boolean DEBUG_DECODER=false; // writing to file .noDECREAD also for encoding so CHANGE the name after ENCODING 00017 public static final boolean DEBUG_DECODER_FILE=false; 00018 public static final boolean DEBUG_TRIANGLE=false; 00019 public static final boolean DEBUG_RICOSINGLETON=false; 00020 public static final boolean DEBUG_ENCODERSTUFF=false; // system.outs (only if exceptions occured) 00021 public static final boolean DEBUG_IMAGESTUFF=false; 00022 public static final boolean DEBUG_COMMIT_EDGE_TESSELATION=false; 00023 public static final boolean DEBUG_SPLITTER=false; 00024 public static final boolean DEBUG_DELAUNAY_TRIANGULATION=false; 00025 public static final boolean DEBUG_WRITE_ENCODER_DATASTATUS=false; 00026 public static final boolean DEBUG_WRITE_DECODER_DATASTATUS=false; 00027 public static final boolean PIXEL_DISCRETE_IMAGE=false; 00028 public static final boolean PRINT_NORMAL_AND_VERTICAL_OFFSETS=false; 00029 public static final boolean DEBUG_CONVEXITY=false; // prints which tesselations are convex 00030 public static final boolean DEBUG_LSQUARE=false; 00031 public static final boolean DEBUG_PRUNE=true; 00032 public static final boolean VERBOSE=false; 00033 public static final boolean OPENGL=false; 00034 public static final boolean TESTBENCH_TRIANGLE_AREAS=false; 00035 public static final boolean JCONSOLE=false; 00036 00042 public static final boolean APPLE_TEST=false; 00043 public static final boolean HORIZON_TEST=false; 00044 00045 public static final boolean DISTIBUTION=true; 00046 00047 00051 public static final boolean CONVEX=true; // testing on convex tesselations 00052 public static final boolean RATE_DISTORTION=true; // zet pruning aan 00056 public static final boolean WRITE_COLORED_MESH=true; 00057 public static final boolean MOVIE=false; //writing out the sequence of m-files 00058 public static final boolean PARAMETRISATION=false; 00059 public static final boolean PRUNING_TREE=false; 00060 public static final boolean useCOLOREDMESHTOIMAGEDATA=true; 00061 00062 00063 private static ArrayList<printListener> printListeners= new ArrayList<printListener>(); 00064 public static void addPrintListener(printListener p){ 00065 printListeners.add(p); 00066 } 00067 00068 private static void updatePrintListeners(String s){ 00069 for (printListener p : printListeners) { 00070 p.printOut(s); 00071 } 00072 } 00073 00074 public static void print(String s){ 00075 if(DISTIBUTION){ 00076 updatePrintListeners(s); 00077 } 00078 System.out.println(s); 00079 } 00080 00081 public static void print(StringBuffer s){ 00082 Debug.print(s.toString()); 00083 } 00084 00085 00086 }
1.5.5