javamorph
Class CStrings

java.lang.Object
  extended by javamorph.CStrings

public class CStrings
extends Object

Version:
1.1
Author:
claus.erhard.wimmer@googlemail.com
Program: JavaMorph V 1.1.
Class: CStrings.
License: GPLv2.
Description: Collection of directory names.
Hint: Defines the working directory at the desktop & its subdirectories.

Field Summary
static String APPDIR
          Working directory name.
static String AUTHOR
          Author of the program.
static String DEBUGDIR
          Debug directory path.
static String DIR
          Dir from which this application has been started.
static String HELP
          Help file name & path.
static String HELPDIR
          Help directory path.
static String HOME
          User's home.
static String INPUTDIR
          Input directory path.
static String JAR
          Location of the .jar distribution file.
static String LEFT_DEBUG
          Left clip matrix file name & path.
static String LEFT_INPUT
          Left input picture file name & path.
static String LEFT_MESH
          Left mesh data file name & path.
static String LEFT_POLYGON
          Left polygon data file name & path.
static String LEFT_TRI
          File to store the triangulation of the left mesh to.
static String LICENSE
          License description.
static String MESHDIR
          Mesh data directory path.
static String MIDDLE_TRI
          File to store the triangulation of the 50% merged mesh to.
static String OUTPUTDIR
          Output directory path.
static String POLYGONDIR
          Polygon data directory path.
static String PROG
          Program name.
static String PROPS
          Property file name & path.
static String RIGHT_DEBUG
          Right clip matrix file name & path.
static String RIGHT_INPUT
          Right input picture file name & path.
static String RIGHT_MESH
          Right mesh data file name & path.
static String RIGHT_POLYGON
          Right polygon data file name & path.
static String RIGHT_TRI
          File to store the triangulation of the right mesh to.
static String SEP
          File separator depending on OS.
static String VERSION
          Program version.
static String WORKDIR
          Working directory path.
 
Constructor Summary
CStrings()
           
 
Method Summary
static void copyFile(String in, String out)
          Copy one single file from the .jar distribution into the sub directory of the working directory.
static void extractFiles()
          Extract files from the .jar distribution into the generated sub directories of the working directory.
static String getOutput(int n)
          Compose the name of one result output file.
static boolean initialize()
          Called if the application is called for the first time on one PC.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEP

public static final String SEP
File separator depending on OS.


HOME

public static final String HOME
User's home.


DIR

public static final String DIR
Dir from which this application has been started.


JAR

public static final String JAR
Location of the .jar distribution file.


PROG

public static final String PROG
Program name.

See Also:
Constant Field Values

VERSION

public static final String VERSION
Program version.

See Also:
Constant Field Values

AUTHOR

public static final String AUTHOR
Author of the program.

See Also:
Constant Field Values

LICENSE

public static final String LICENSE
License description.

See Also:
Constant Field Values

APPDIR

public static final String APPDIR
Working directory name.


WORKDIR

public static final String WORKDIR
Working directory path.


INPUTDIR

public static final String INPUTDIR
Input directory path.


DEBUGDIR

public static final String DEBUGDIR
Debug directory path.


HELPDIR

public static final String HELPDIR
Help directory path.


POLYGONDIR

public static final String POLYGONDIR
Polygon data directory path.


MESHDIR

public static final String MESHDIR
Mesh data directory path.


OUTPUTDIR

public static final String OUTPUTDIR
Output directory path.


PROPS

public static final String PROPS
Property file name & path.


LEFT_INPUT

public static final String LEFT_INPUT
Left input picture file name & path.


RIGHT_INPUT

public static final String RIGHT_INPUT
Right input picture file name & path.


LEFT_MESH

public static final String LEFT_MESH
Left mesh data file name & path.


RIGHT_MESH

public static final String RIGHT_MESH
Right mesh data file name & path.


LEFT_POLYGON

public static final String LEFT_POLYGON
Left polygon data file name & path.


RIGHT_POLYGON

public static final String RIGHT_POLYGON
Right polygon data file name & path.


LEFT_DEBUG

public static final String LEFT_DEBUG
Left clip matrix file name & path.


RIGHT_DEBUG

public static final String RIGHT_DEBUG
Right clip matrix file name & path.


HELP

public static final String HELP
Help file name & path.


LEFT_TRI

public static final String LEFT_TRI
File to store the triangulation of the left mesh to.


RIGHT_TRI

public static final String RIGHT_TRI
File to store the triangulation of the right mesh to.


MIDDLE_TRI

public static final String MIDDLE_TRI
File to store the triangulation of the 50% merged mesh to.

Constructor Detail

CStrings

public CStrings()
Method Detail

getOutput

public static String getOutput(int n)
Compose the name of one result output file.

Parameters:
n - Number of the morph step.
Returns:
Filename consisting of 3 numerical digits + extension.

initialize

public static boolean initialize()
Called if the application is called for the first time on one PC. Try to copy the sample data from the .jar distribution file into the working directory. Create sub directories therefore.

Returns:
trueif the copy process has been successful.

extractFiles

public static void extractFiles()
Extract files from the .jar distribution into the generated sub directories of the working directory.


copyFile

public static void copyFile(String in,
                            String out)
Copy one single file from the .jar distribution into the sub directory of the working directory.

Parameters:
in - Location of the .jar file entry.
out - Target path & name of the file to copy the content to.