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
vtk2model.cpp File Reference
#include <iostream>
#include <string>
#include <fstream>
#include <cstdlib>
#include <sstream>
#include <math.h>
#include <PhysicalModel.h>
#include <MultiComponent.h>
#include <StructuralComponent.h>
#include <Atom.h>
+ Include dependency graph for vtk2model.cpp:

Classes

class  Cluster
 class Cluster More...
 
class  Facet
 Class facet to hold and compare facet This class is used for the extraction of external surface during importation of simulator specific files. More...
 
struct  ObjLine
 

Functions

string elementsToNeighborhood (string filename)
 
void equivalent (int size, unsigned int id[])
 
MultiComponent * generateExternalSurface (StructuralComponent *sc)
 generate the outside surface More...
 
StructuralComponent * generateNeighborhood (StructuralComponent *sc)
 generate the neighborhoods More...
 
int getCountFromDirective (string directive)
 
map< unsigned int, Cell * >
::iterator 
getIterator (unsigned int index)
 
void getNext ()
 
Cluster * insert (Atom *a)
 
int main (int argc, char **argv)
 
void optimize (string clusterFile)
 
string optimizeMesh (string filename, double precision)
 
void saveClusters (string clusterFile)
 
void update (MultiComponent *mc)
 
string vtk2pml (string filename)
 

Variables

vector< Cluster * > allClusters
 
vector< Facet * > allFacets
 storing all the facets More...
 
ObjLine currentLine
 
bool eof
 
unsigned lineNr
 
map< unsigned int, Cell * > neighMap
 
unsigned int nrOfNewAtoms
 
PhysicalModel * pm
 global variables More...
 
double precision
 
map< Atom *, Atom * > replacement
 
std::ifstream vtkFile
 

Function Documentation

string elementsToNeighborhood ( string  filename)
void equivalent ( int  size,
unsigned int  id[] 
)

References it.

Referenced by generateExternalSurface().

MultiComponent* generateExternalSurface ( StructuralComponent *  sc)
StructuralComponent* generateNeighborhood ( StructuralComponent *  sc)
int getCountFromDirective ( string  directive)

References ObjLine::data, ObjLine::directive, eof, and getNext().

Referenced by vtk2pml().

map<unsigned int, Cell*>::iterator getIterator ( unsigned int  index)
void getNext ( )
Cluster* insert ( Atom *  a)

References Cluster::addAtom(), c, it, and precision.

Referenced by optimize().

int main ( int  argc,
char **  argv 
)
void optimize ( string  clusterFile)
string optimizeMesh ( string  filename,
double  precision 
)
void saveClusters ( string  clusterFile)

References PhysicalModel::getNumberOfAtoms(), it, and precision.

Referenced by optimize().

void update ( MultiComponent *  mc)
string vtk2pml ( string  filename)

References filename, getCountFromDirective(), outputFile, and vtkFile.

Referenced by main().

Variable Documentation

vector<Cluster *> allClusters
vector<Facet *> allFacets

storing all the facets

ObjLine currentLine
bool eof

Referenced by getCountFromDirective(), and getNext().

unsigned lineNr

Referenced by getNext().

map<unsigned int, Cell*> neighMap
unsigned int nrOfNewAtoms

Referenced by optimizeMesh().

global variables

Referenced by elementsToNeighborhood(), and optimizeMesh().

double precision
map<Atom *, Atom *> replacement
std::ifstream vtkFile

Referenced by getNext(), and vtk2pml().