#include <PMLReader.h>

Public Member Functions | |
| PMLReader () | |
| void | BuildStructure (const char *filename, GNode *root) |
| build all the scene graph under the GNode root, from the pml filename | |
| void | BuildStructure (PhysicalModel *model, GNode *root) |
| build all the scene graph under the GNode root, from the a specified physicalmodel | |
| void | BuildStructure (GNode *root) |
| PMLBody * | createBody (StructuralComponent *SC, GNode *root) |
| create a body (all object structure) from a PML StructuralComponent | |
| void | processFusions (GNode *root) |
| Merge the bodies of same type which share any DOFS. | |
| Vector3 | getAtomPos (unsigned int atomindex) |
| return a point position giving its pml's index | |
| void | saveAsPML (const char *filename) |
| save the structure under a pml file | |
| void | updatePML () |
| update all pml points positions | |
Data Fields | |
| std::vector< PMLBody * > | bodiesList |
| the list of the bodies created | |
Private Attributes | |
| PhysicalModel * | pm |
| the physical model from which strucutre is created | |
Definition at line 63 of file PMLReader.h.
| sofa::filemanager::pml::PMLReader::PMLReader | ( | ) | [inline] |
| void sofa::filemanager::pml::PMLReader::BuildStructure | ( | GNode * | root | ) |
Definition at line 99 of file PMLReader.cpp.
References sofa::simulation::tree::GNode::addObject(), bodiesList, createBody(), sofa::simulation::Node::execute(), sofa::simulation::tree::getSimulation(), sofa::filemanager::pml::PMLBody::hasCollisions(), sofa::simulation::tree::Simulation::init(), sofa::simulation::VisualComputeBBoxVisitor::maxBBox, sofa::simulation::VisualComputeBBoxVisitor::minBBox, pm, processFusions(), sofa::component::collision::NewProximityIntersection::setAlarmDistance(), and sofa::component::collision::NewProximityIntersection::setContactDistance().
| void sofa::filemanager::pml::PMLReader::BuildStructure | ( | PhysicalModel * | model, | |
| GNode * | root | |||
| ) |
build all the scene graph under the GNode root, from the a specified physicalmodel
Definition at line 91 of file PMLReader.cpp.
References BuildStructure(), and pm.
| void sofa::filemanager::pml::PMLReader::BuildStructure | ( | const char * | filename, | |
| GNode * | root | |||
| ) |
build all the scene graph under the GNode root, from the pml filename
Definition at line 67 of file PMLReader.cpp.
References pm.
Referenced by BuildStructure().
create a body (all object structure) from a PML StructuralComponent
Definition at line 159 of file PMLReader.cpp.
References sofa::simulation::tree::GNode::addChild(), bodiesList, and sofa::filemanager::pml::PMLBody::parentNode.
Referenced by BuildStructure().
| Vector3 sofa::filemanager::pml::PMLReader::getAtomPos | ( | unsigned int | atomindex | ) |
return a point position giving its pml's index
Definition at line 278 of file PMLReader.cpp.
References bodiesList.
| void sofa::filemanager::pml::PMLReader::processFusions | ( | GNode * | root | ) |
Merge the bodies of same type which share any DOFS.
Definition at line 217 of file PMLReader.cpp.
References bodiesList, and sofa::simulation::tree::GNode::removeChild().
Referenced by BuildStructure().
| void sofa::filemanager::pml::PMLReader::saveAsPML | ( | const char * | filename | ) |
save the structure under a pml file
Definition at line 252 of file PMLReader.cpp.
References bodiesList, and pm.
| void sofa::filemanager::pml::PMLReader::updatePML | ( | ) |
update all pml points positions
Definition at line 301 of file PMLReader.cpp.
References bodiesList, and pm.
| std::vector<PMLBody*> sofa::filemanager::pml::PMLReader::bodiesList |
the list of the bodies created
Definition at line 89 of file PMLReader.h.
Referenced by BuildStructure(), sofa::filemanager::pml::LMLReader::BuildStructure(), createBody(), getAtomPos(), processFusions(), saveAsPML(), updatePML(), and sofa::filemanager::pml::LMLReader::updateStructure().
PhysicalModel* sofa::filemanager::pml::PMLReader::pm [private] |
the physical model from which strucutre is created
Definition at line 94 of file PMLReader.h.
Referenced by BuildStructure(), PMLReader(), saveAsPML(), and updatePML().
1.5.7.1