Programs::TARIS_BuildIsosurface Class Reference

Programa que genera archivos OOGL de isosuperficies desde archivos CUBE. More...

List of all members.

Static Public Member Functions

static string usage ()
static int main (int argc, char **argv)


Detailed Description

Programa que genera archivos OOGL de isosuperficies desde archivos CUBE.

Author:
Néstor Aguirre
Fecha de creación : 2007-03-18

Definition at line 44 of file TARIS-BuildIsosurface.cpp.


Member Function Documentation

static string Programs::TARIS_BuildIsosurface::usage (  )  [inline, static]

Definition at line 46 of file TARIS-BuildIsosurface.cpp.

Referenced by main().

00047                 {
00048                         system("clear") ;
00049                         return
00050                         "===================================\n"
00051                         "TARIS-BuildIsosurface (" __DATE__ ")\n"
00052                         "===================================\n"
00053                         "\n"
00054                         "Produces files in OOGL format containing the information that allows \n"
00055                         "to visualize an isopotential surface for a given cutoff, from the .cube\n"
00056                         "file. The OOGL files can be visualized with the \"geomview\" program:\n"
00057                         "(http://www.geom.uiuc.edu/software/geomview/)\n"
00058                         "\n"
00059                         "Syntax:\n"
00060                         "   $ TARIS-BuildIsosurface -c file [PARAMETERS]\n"
00061                         "\n"
00062                         "Required parameters:\n"
00063                         "   -c   file\n"
00064                         "           This is the name of the cube file containing the electrostatic\n"
00065                         "           potential data\n"
00066                         "\n"
00067                         "Optional parameters:\n"
00068                         "   -b   cutoff\n"
00069                         "           Potential value for the surface calculation potential data\n"
00070                         "           (default=-0.07)\n"
00071                         "   -o   output\n"
00072                         "           Name of the oogl output file\n"
00073                         "           (default=screen)\n"
00074                         "\n"
00075                         "For example:\n"
00076                         "   $ TARIS-BuildIsosurface -c file.cube -b -0.1 -o file.oogl\n"
00077                         "   $ geomview -nopanels file.oogl\n"
00078                         "\n"
00079                         "Authors:\n"
00080                         "   Nestor F. Aguirre, Ray M. Marin and Edgar E. Daza\n"
00081                         "   Universidad Nacional de Colombia\n"
00082                         ;
00083                 }

static int Programs::TARIS_BuildIsosurface::main ( int  argc,
char **  argv 
) [inline, static]

Definition at line 85 of file TARIS-BuildIsosurface.cpp.

References TarisApplication::extractParameter(), HyperSurface::getIsosurface(), HyperSurface::load(), Surface::printOogl(), and usage().

Referenced by main().

00086                 {
00087                         
00088                         if( argc > 1 ){
00089                                 
00090                                 string cubeFileName = TarisApplication::extractParameter( argc, argv, "-c" ) ;
00091                                 double cutoff = atof( TarisApplication::extractParameter( argc, argv, "-b", "-0.07" ) ) ;
00092                                 string outputFileName = TarisApplication::extractParameter( argc, argv, "-o", "screen" ) ;
00093                                 
00094                                 HyperSurface hs ;
00095                                 hs.load( cubeFileName ) ;
00096                                 
00097                                 Surface output = hs.getIsosurface( cutoff ) ;
00098                                 
00099                                 if( outputFileName == "screen" ){
00100                                         output.printOogl( cout ) ;
00101                                 }else{
00102                                         ofstream file( outputFileName.c_str() ) ;
00103                                         output.printOogl( file ) ;
00104                                         file.close() ;
00105                                 }
00106                                 
00107                         }else{
00108                                 cout << usage() << endl ;
00109                         }
00110                         
00111                         return EXIT_SUCCESS;
00112                 }


The documentation for this class was generated from the following file:
Generated on Mon May 26 20:29:47 2008 for TARIS by  doxygen 1.5.4