![]() |
Computer Assited Medical Intervention Tool Kit
version 3.4
|
#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 |
| string elementsToNeighborhood | ( | string | filename | ) |
References MultiComponent::addSubComponent(), StructuralComponent::CELLS, StructuralComponent::composedBy(), filename, generateExternalSurface(), generateNeighborhood(), StructuralComponent::getCell(), PhysicalModel::getComponentByName(), PhysicalModel::getExclusiveComponents(), PhysicalModel::getName(), StructuralComponent::getNumberOfStructures(), Structure::getType(), StructureProperties::HEXAHEDRON, outputFile, pm, StructureProperties::QUAD, PhysicalModel::setName(), StructureProperties::TETRAHEDRON, StructureProperties::TRIANGLE, StructureProperties::WEDGE, PMLAbortException::what(), and PhysicalModel::xmlPrint().
Referenced by main().
| void equivalent | ( | int | size, |
| unsigned int | id[] | ||
| ) |
References it.
Referenced by generateExternalSurface().
| MultiComponent* generateExternalSurface | ( | StructuralComponent * | sc | ) |
generate the outside surface
References StructuralComponent::addStructure(), MultiComponent::addSubComponent(), equivalent(), StructuralComponent::getCell(), Structure::getIndex(), StructuralComponent::getNumberOfCells(), Component::getPhysicalModel(), StructuralComponent::getProperties(), StructuralComponent::getStructure(), Structure::getType(), StructureProperties::HEXAHEDRON, it, StructureProperties::QUAD, Properties::set(), StructureProperties::TETRAHEDRON, StructureProperties::TRIANGLE, and StructureProperties::WEDGE.
Referenced by elementsToNeighborhood().
| StructuralComponent* generateNeighborhood | ( | StructuralComponent * | sc | ) |
generate the neighborhoods
References StructuralComponent::addStructure(), StructuralComponent::getCell(), Structure::getIndex(), getIterator(), StructuralComponent::getNumberOfCells(), StructuralComponent::getNumberOfStructures(), StructuralComponent::getStructure(), Structure::getType(), StructureProperties::HEXAHEDRON, it, StructureProperties::QUAD, StructureProperties::TETRAHEDRON, StructureProperties::TRIANGLE, and StructureProperties::WEDGE.
Referenced by elementsToNeighborhood().
| int getCountFromDirective | ( | string | directive | ) |
References ObjLine::data, ObjLine::directive, eof, and getNext().
Referenced by vtk2pml().
| map<unsigned int, Cell*>::iterator getIterator | ( | unsigned int | index | ) |
References it, and StructureProperties::POLY_VERTEX.
Referenced by generateNeighborhood().
| void getNext | ( | ) |
References ObjLine::data, ObjLine::directive, eof, lineNr, ObjLine::ok, and vtkFile.
Referenced by getCountFromDirective().
References Cluster::addAtom(), c, it, and precision.
Referenced by optimize().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
References elementsToNeighborhood(), filename, optimizeMesh(), precision, PhysicalModel::VERSION, and vtk2pml().
| void optimize | ( | string | clusterFile | ) |
References StructuralComponent::addStructure(), PhysicalModel::getAtoms(), PhysicalModel::getExclusiveComponents(), PhysicalModel::getInformativeComponents(), StructuralComponent::getNumberOfStructures(), StructuralComponent::getStructure(), insert(), it, newAtoms, saveClusters(), PhysicalModel::setAtoms(), and update().
Referenced by optimizeMesh().
| string optimizeMesh | ( | string | filename, |
| double | precision | ||
| ) |
References filename, PhysicalModel::getName(), PhysicalModel::getNumberOfAtoms(), nrOfNewAtoms, optimize(), outputFile, pm, precision, PhysicalModel::setName(), PMLAbortException::what(), and PhysicalModel::xmlPrint().
Referenced by main().
| void saveClusters | ( | string | clusterFile | ) |
References PhysicalModel::getNumberOfAtoms(), it, and precision.
Referenced by optimize().
| void update | ( | MultiComponent * | mc | ) |
References StructuralComponent::addStructureIfNotIn(), c, Cell::deleteAllStructures(), StructuralComponent::getAtoms(), MultiComponent::getCell(), Structure::getIndex(), MultiComponent::getNumberOfCells(), StructuralComponent::getNumberOfStructures(), Structure::getStructuralComponent(), StructuralComponent::getStructure(), Structure::getType(), StructureProperties::HEXAHEDRON, StructureProperties::LINE, StructureProperties::QUAD, StructuralComponent::removeStructure(), StructureProperties::TETRAHEDRON, StructureProperties::toString(), StructureProperties::TRIANGLE, and StructureProperties::WEDGE.
Referenced by optimize().
| string vtk2pml | ( | string | filename | ) |
References filename, getCountFromDirective(), outputFile, and vtkFile.
Referenced by main().
| 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().
| PhysicalModel* pm |
global variables
Referenced by elementsToNeighborhood(), and optimizeMesh().
| double precision |
Referenced by insert(), main(), optimizeMesh(), and saveClusters().
1.8.8