Computer Assited Medical Intervention Tool Kit  version 3.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Functions | Variables
pml2ghs3d.cpp File Reference
#include <iostream>
#include <string>
#include <PhysicalModel.h>
#include <StructuralComponent.h>
#include <MultiComponent.h>
#include <map>
+ Include dependency graph for pml2ghs3d.cpp:

Classes

class  ProgramArg
 TODO Comment class here. More...
 

Functions

ProgramArg argVal (defaultsArg, sizeof defaultsArg/sizeof *defaultsArg)
 
int main (int argc, char **argv)
 
void printArg ()
 
void processArg ()
 

Variables

string defaultsArg [][2]
 
string meshFile
 
PhysicalModel * pm
 
string pmlFile
 
bool reorder
 
const char * usage
 

Function Documentation

ProgramArg argVal ( defaultsArg  ,
sizeof defaultsArg/sizeof *  defaultsArg 
)

Referenced by main(), and processArg().

int main ( int  argc,
char **  argv 
)
void printArg ( )

References meshFile, pmlFile, and reorder.

Referenced by main().

void processArg ( )

References argVal(), meshFile, pmlFile, reorder, and usage.

Referenced by main().

Variable Documentation

string defaultsArg[][2]
Initial value:
= {
{ "-f", "none" },
{ "-o", "pml2ghs3d-output.mesh" },
{ "-reorder", "false"},
}
string meshFile

Referenced by main(), printArg(), and processArg().

string pmlFile

Referenced by main(), printArg(), and processArg().

bool reorder

Referenced by main(), printArg(), and processArg().

const char* usage
Initial value:
= "usage:\n"
"pml2ghs3d -f=document.pml [-o=output] [-reorder=false]\n"
"Transform a PML document containing an 'Elements' (list of triangles) exclusive structural component to a .mesh (readable in GHS3D), and reorder the index if reorder is true (needed if atom id are not successive number)\n"
"(Note no space around '=')\n"
"Where the flags can be any of: \n"
"f (input pml document), o (output .mesh file name), reorder (true or false, default is false) \n"

Referenced by main(), and processArg().