#include <PMLFemForceField.h>


Public Member Functions | |
| PMLFemForceField (StructuralComponent *body, GNode *parent) | |
| ~PMLFemForceField () | |
| string | isTypeOf () |
| TriangleModel * | getTriangleModel () |
| accessors | |
| bool | FusionBody (PMLBody *) |
| merge a body with current object | |
| Vector3 | getDOF (unsigned int index) |
| GNode * | getPointsNode () |
Private Member Functions | |
| void | createMechanicalState (StructuralComponent *body) |
| creation of the scene graph | |
| void | createTopology (StructuralComponent *body) |
| void | createMass (StructuralComponent *body) |
| void | createVisualModel (StructuralComponent *body) |
| void | createForceField () |
| void | createCollisionModel () |
| void | initMass (string m) |
| void | initDensity (string m) |
| BaseMeshTopology::Tetra * | Tesselate (Cell *pCell) |
Private Attributes | |
| TriangleModel * | tmodel |
| std::vector< SReal > | massList |
| std::vector< SReal > | density |
| SReal | young |
| SReal | poisson |
| std::string | deformationType |
Definition at line 71 of file PMLFemForceField.h.
| sofa::filemanager::pml::PMLFemForceField::PMLFemForceField | ( | StructuralComponent * | body, | |
| GNode * | parent | |||
| ) |
Definition at line 64 of file PMLFemForceField.cpp.
References sofa::filemanager::pml::PMLBody::collisionsON, createCollisionModel(), createForceField(), createMass(), createMechanicalState(), sofa::filemanager::pml::PMLBody::createSolver(), createTopology(), createVisualModel(), deformationType, initDensity(), initMass(), sofa::filemanager::pml::PMLBody::name, sofa::filemanager::pml::PMLBody::parentNode, poisson, sofa::filemanager::pml::PMLBody::solverName, and young.
| sofa::filemanager::pml::PMLFemForceField::~PMLFemForceField | ( | ) |
Definition at line 93 of file PMLFemForceField.cpp.
References sofa::filemanager::pml::PMLBody::mmodel, and tmodel.
| void sofa::filemanager::pml::PMLFemForceField::createCollisionModel | ( | ) | [private, virtual] |
Implements sofa::filemanager::pml::PMLBody.
Definition at line 383 of file PMLFemForceField.cpp.
References sofa::simulation::tree::GNode::addObject(), sofa::filemanager::pml::PMLBody::collisionsON, sofa::component::collision::TriangleModel::init(), sofa::filemanager::pml::PMLBody::parentNode, and tmodel.
Referenced by PMLFemForceField().
| void sofa::filemanager::pml::PMLFemForceField::createForceField | ( | ) | [private, virtual] |
Implements sofa::filemanager::pml::PMLBody.
Definition at line 362 of file PMLFemForceField.cpp.
References sofa::simulation::tree::GNode::addObject(), deformationType, sofa::filemanager::pml::PMLBody::forcefield, sofa::filemanager::pml::PMLBody::parentNode, poisson, and young.
Referenced by PMLFemForceField().
| void sofa::filemanager::pml::PMLFemForceField::createMass | ( | StructuralComponent * | body | ) | [private, virtual] |
Implements sofa::filemanager::pml::PMLBody.
Definition at line 244 of file PMLFemForceField.cpp.
References sofa::simulation::tree::GNode::addObject(), sofa::filemanager::pml::PMLBody::AtomsToDOFsIndexes, density, sofa::filemanager::pml::PMLBody::mass, massList, sofa::filemanager::pml::PMLBody::mmodel, sofa::filemanager::pml::PMLBody::name, and sofa::filemanager::pml::PMLBody::parentNode.
Referenced by PMLFemForceField().
| void sofa::filemanager::pml::PMLFemForceField::createMechanicalState | ( | StructuralComponent * | body | ) | [private, virtual] |
creation of the scene graph
Implements sofa::filemanager::pml::PMLBody.
Definition at line 163 of file PMLFemForceField.cpp.
References sofa::simulation::tree::GNode::addObject(), sofa::filemanager::pml::PMLBody::AtomsToDOFsIndexes, sofa::filemanager::pml::PMLBody::mmodel, sofa::filemanager::pml::PMLBody::parentNode, and sofa::core::componentmodel::behavior::BaseMechanicalState::resize().
Referenced by PMLFemForceField().
| void sofa::filemanager::pml::PMLFemForceField::createTopology | ( | StructuralComponent * | body | ) | [private, virtual] |
Implements sofa::filemanager::pml::PMLBody.
Definition at line 186 of file PMLFemForceField.cpp.
References sofa::simulation::tree::GNode::addObject(), sofa::filemanager::pml::PMLBody::AtomsToDOFsIndexes, sofa::filemanager::pml::PMLBody::parentNode, Tesselate(), and sofa::filemanager::pml::PMLBody::topology.
Referenced by PMLFemForceField().
| void sofa::filemanager::pml::PMLFemForceField::createVisualModel | ( | StructuralComponent * | body | ) | [private, virtual] |
Implements sofa::filemanager::pml::PMLBody.
Definition at line 307 of file PMLFemForceField.cpp.
References sofa::simulation::tree::GNode::addObject(), sofa::filemanager::pml::PMLBody::AtomsToDOFsIndexes, sofa::component::visualmodel::VisualModelImpl::load(), sofa::filemanager::pml::PMLBody::mmodel, sofa::filemanager::pml::PMLBody::parentNode, sofa::component::visualmodel::VisualModelImpl::setColor(), and sofa::filemanager::pml::PMLBody::topology.
Referenced by PMLFemForceField().
merge a body with current object
Implements sofa::filemanager::pml::PMLBody.
Definition at line 401 of file PMLFemForceField.cpp.
References sofa::simulation::tree::GNode::addObject(), sofa::filemanager::pml::PMLBody::AtomsToDOFsIndexes, sofa::filemanager::pml::PMLBody::collisionsON, sofa::filemanager::pml::PMLBody::getMechanicalState(), sofa::core::componentmodel::topology::BaseMeshTopology::getNbQuads(), sofa::core::componentmodel::topology::BaseMeshTopology::getNbTetras(), sofa::core::componentmodel::topology::BaseMeshTopology::getNbTriangles(), sofa::core::componentmodel::topology::BaseMeshTopology::getQuad(), sofa::core::componentmodel::topology::BaseMeshTopology::getTetra(), sofa::filemanager::pml::PMLBody::getTopology(), sofa::core::componentmodel::topology::BaseMeshTopology::getTriangle(), getTriangleModel(), sofa::filemanager::pml::PMLBody::mass, massList, sofa::filemanager::pml::PMLBody::mmodel, sofa::filemanager::pml::PMLBody::parentNode, sofa::simulation::tree::GNode::removeObject(), sofa::core::componentmodel::behavior::BaseMechanicalState::resize(), tmodel, and sofa::filemanager::pml::PMLBody::topology.
| Vector3 sofa::filemanager::pml::PMLFemForceField::getDOF | ( | unsigned int | index | ) | [virtual] |
Implements sofa::filemanager::pml::PMLBody.
Definition at line 156 of file PMLFemForceField.cpp.
References sofa::filemanager::pml::PMLBody::mmodel.
| GNode* sofa::filemanager::pml::PMLFemForceField::getPointsNode | ( | ) | [inline, virtual] |
Implements sofa::filemanager::pml::PMLBody.
Definition at line 91 of file PMLFemForceField.h.
References sofa::filemanager::pml::PMLBody::parentNode.
| TriangleModel* sofa::filemanager::pml::PMLFemForceField::getTriangleModel | ( | ) | [inline] |
accessors
Definition at line 82 of file PMLFemForceField.h.
References tmodel.
Referenced by FusionBody().
| void sofa::filemanager::pml::PMLFemForceField::initDensity | ( | string | m | ) | [private] |
Definition at line 118 of file PMLFemForceField.cpp.
References density.
Referenced by PMLFemForceField().
| void sofa::filemanager::pml::PMLFemForceField::initMass | ( | string | m | ) | [private] |
Definition at line 103 of file PMLFemForceField.cpp.
References massList.
Referenced by PMLFemForceField().
| string sofa::filemanager::pml::PMLFemForceField::isTypeOf | ( | ) | [inline, virtual] |
| BaseMeshTopology::Tetra * sofa::filemanager::pml::PMLFemForceField::Tesselate | ( | Cell * | pCell | ) | [private] |
Definition at line 136 of file PMLFemForceField.cpp.
References sofa::filemanager::pml::PMLBody::AtomsToDOFsIndexes.
Referenced by createTopology().
std::string sofa::filemanager::pml::PMLFemForceField::deformationType [private] |
Definition at line 122 of file PMLFemForceField.h.
Referenced by createForceField(), and PMLFemForceField().
std::vector<SReal> sofa::filemanager::pml::PMLFemForceField::density [private] |
std::vector<SReal> sofa::filemanager::pml::PMLFemForceField::massList [private] |
Definition at line 116 of file PMLFemForceField.h.
Referenced by createMass(), FusionBody(), and initMass().
Definition at line 121 of file PMLFemForceField.h.
Referenced by createForceField(), and PMLFemForceField().
Definition at line 111 of file PMLFemForceField.h.
Referenced by createCollisionModel(), FusionBody(), getTriangleModel(), and ~PMLFemForceField().
Definition at line 120 of file PMLFemForceField.h.
Referenced by createForceField(), and PMLFemForceField().
1.5.7.1