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
select.cpp File Reference
#include <iostream>
#include <string>
#include <PhysicalModel.h>
#include <MultiComponent.h>
#include <StructuralComponent.h>
#include <Atom.h>
#include <math.h>
#include <limits.h>
#include <float.h>
#include <map>
+ Include dependency graph for select.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 name
 
string output
 
string srcFile
 
const char * usage
 
double xMax
 
bool xMaxProvided
 
double xMin
 
bool xMinProvided
 
double yMax
 
bool yMaxProvided
 
double yMin
 
bool yMinProvided
 
double zMax
 
bool zMaxProvided
 
double zMin
 
bool zMinProvided
 

Function Documentation

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

Referenced by main(), and processArg().

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

References name, output, srcFile, xMax, xMin, yMax, yMin, zMax, and zMin.

Referenced by main().

void processArg ( )

Variable Documentation

string defaultsArg[][2]
Initial value:
= {
{ "-f", "none" },
{ "-o", "none" },
{ "-name", "selected" },
{ "-xMin", "none" },
{ "-xMax", "none" },
{ "-yMin", "none" },
{ "-yMax", "none" },
{ "-zMin", "none" },
{ "-zMax", "none" },
}
string name
string output

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

string srcFile

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

const char* usage
Initial value:
= "usage:\n"
"select -f=file.pml [-o=out.pml] [-name=n] [-xMin=val] [-xMax=val] [-yMin=val] [-yMax=val] [-zMin=val] [-zMax=val]\n"
"Create a new PML document which contains a new structural component containing only\n"
"atoms which positions are in the defined bounding box\n"
"(Note no space around '=')\n"
"Where mandatory options are: \n"
"f\tsource pml document\n"
"And optional options are:\n"
"o\tdestination pml document\n"
"name\tname of the create SC\n"
"xMin\tmin included value for x\n"
"xMax\tmax included value for x\n"
"... the same for y and z\n"
"Note that if you do not provide value in a given direction, it means no selection has to be made\n"

Referenced by main(), and processArg().

double xMax
bool xMaxProvided

Referenced by processArg().

double xMin
bool xMinProvided

Referenced by processArg().

double yMax
bool yMaxProvided

Referenced by processArg().

double yMin
bool yMinProvided

Referenced by processArg().

double zMax
bool zMaxProvided

Referenced by processArg().

double zMin
bool zMinProvided

Referenced by processArg().