sofa::filemanager::pml::PMLReader Class Reference

#include <PMLReader.h>

Collaboration diagram for sofa::filemanager::pml::PMLReader:

Collaboration graph
[legend]

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

Detailed Description

Definition at line 63 of file PMLReader.h.


Constructor & Destructor Documentation

sofa::filemanager::pml::PMLReader::PMLReader (  )  [inline]

Definition at line 65 of file PMLReader.h.

References pm.


Member Function Documentation

void sofa::filemanager::pml::PMLReader::BuildStructure ( GNode *  root  ) 

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().

PMLBody * sofa::filemanager::pml::PMLReader::createBody ( StructuralComponent *  SC,
GNode *  root 
)

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.


Field Documentation

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().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:23:59 2008 for Sofa by  doxygen 1.5.7.1