Biomechanical Joint Model
 Author: Anderson Maciel

COME_Xml Class Reference

#include <comexml.h>

Inherits COME.

Inheritance diagram for COME_Xml:

Inheritance graph
[legend]
Collaboration diagram for COME_Xml:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 COME_Xml ()
 Default constructor.
 COME_Xml (vector< COME_Material * > *existentMaterials)
 ~COME_Xml ()
 Default destructor.
vector< COME_Material * > * getAllMaterials ()
void loadSceneFile (string file_name, list< COME_Patient * > &patientL, COME_Simulator *simulator, COME_Scenario *parentScene)
void loadMaterialsFile (string file_name, list< COME_Patient * > &patientL, COME_Simulator *simulator, COME_Scenario *parentScene)
COME_BioStructureloadOrganFile (string file_name, list< COME_Patient * > &patientL, COME_Simulator *simulator, COME_Scenario *parentScene)
int saveSceneFile (string file_name, const list< COME_Patient * > &patientL, COME_Simulator *simulator)
void saveSurface (COME_Mesh *mesh, string f_name)
int saveAnimationFile (string file_name, const list< COME_Patient * > &patientL, COME_Simulator *simulator)
void saveOrgansAnimation (DOMDocument *doc, DOMElement *organsNode, COME_Patient *patient)
void saveJointsAnimation (DOMDocument *doc, DOMElement *jointsNode, COME_Joint *currJoint)
int loadIntegrationFile (string fileName, list< COME_Patient * > &patientL, COME_Simulator *simulator, COME_Scenario *parentScene)
void loadMaterialsFromOrganFile (string fileName)
int exportIntegrationFile (string file_name, const list< COME_Patient * > &patientL, COME_Simulator *simulator)
void saveJointOrgans (DOMDocument *doc, DOMElement *jointNode, COME_Joint *jointThis)

Protected Member Functions

COME_BioStructureloadMoleculeOrgan (DOMNode *node)
 Index for the vector above.
void loadMaterials (DOMNodeList *node)
void saveMoleculeOrgan (DOMDocument *doc, DOMElement *jointNode, COME_Patient patient)
void saveMaterials (DOMDocument *doc, DOMElement *patientNode, COME_Patient patient)
COME_JointloadJoint (DOMNode *node, COME_Joint *parent, list< COME_BioStructure * > &patientOrganList)
COME_DofloadDofs (DOMNodeList *list)
vector< COME_BioStructure * > loadShapes (DOMNodeList *list)
void loadModifiers (DOMNodeList *joints)

Private Attributes

vector< COME_Material * > * materials
DOMElement * root
COME_SimulatorsimulatorXml
COME_Dof ** auxVec
int iIndDofAux
 Temporary vector of DOF pointers to every dof in the tree.

Detailed Description

Definition at line 60 of file comexml.h.


Constructor & Destructor Documentation

COME_Xml::COME_Xml  ) 
 

Default constructor.

Definition at line 74 of file comexml.cpp.

References materials.

COME_Xml::COME_Xml vector< COME_Material * > *  existentMaterials  ) 
 

Definition at line 81 of file comexml.cpp.

References materials.

COME_Xml::~COME_Xml  ) 
 

Default destructor.

Definition at line 88 of file comexml.cpp.


Member Function Documentation

int COME_Xml::exportIntegrationFile string  file_name,
const list< COME_Patient * > &  patientL,
COME_Simulator simulator
 

Definition at line 1760 of file comexml.cpp.

References ADDUCT, FLEX, COME_Simulator::getDuration(), COME_Simulator::getFPS(), COME_Scenario::getGravity(), COME_JointMotion::getMotionType(), COME_Movement::getQtdMotion(), COME_Simulator::getScene(), COME_Movement::getTimeline(), COME_Point3D::getX(), MALE, COME_Scenario::movement, scene, and TWIST.

Referenced by exportData().

Here is the call graph for this function:

vector< COME_Material * > * COME_Xml::getAllMaterials  ) 
 

Definition at line 93 of file comexml.cpp.

References materials.

Referenced by COME_Scenario::addMaterialsFromFile(), and COME_Scenario::loadFile().

COME_Dof * COME_Xml::loadDofs DOMNodeList *  paramList  )  [protected]
 

Scan dofs of the list

Get dof properties

Create DOF

Definition at line 513 of file comexml.cpp.

References auxVec, iIndDofAux, max, min, COME_Dof::setDescription(), COME_Point3D::setXYZ(), and COME_Dof::vpRest().

Referenced by loadJoint().

Here is the call graph for this function:

int COME_Xml::loadIntegrationFile string  fileName,
list< COME_Patient * > &  patientL,
COME_Simulator simulator,
COME_Scenario parentScene
 

Test main tag

Definition at line 1388 of file comexml.cpp.

References COME::description, DOMCountErrorHandler::getSawErrors(), loadMaterialsFromOrganFile(), loadOrganFile(), M_PI, max, root, COME_Dof::setDescription(), COME::setDescription(), simulatorXml, and COME_Dof::vpRest().

Referenced by loadData().

Here is the call graph for this function:

COME_Joint * COME_Xml::loadJoint DOMNode *  node,
COME_Joint parent,
list< COME_BioStructure * > &  patientOrganList
[protected]
 

Create a Joint and its dependencies

Call loadJoint recursively to create the tree

Definition at line 473 of file comexml.cpp.

References loadDofs(), loadShapes(), COME_Joint::setDescription(), and COME_Joint::vpAddShape().

Here is the call graph for this function:

void COME_Xml::loadMaterials DOMNodeList *  materialList  )  [protected]
 

shit

Definition at line 787 of file comexml.cpp.

References materials, COME::setDescription(), and COME_Material::setMaxStress().

Referenced by loadMaterialsFile(), and loadMaterialsFromOrganFile().

Here is the call graph for this function:

void COME_Xml::loadMaterialsFile string  fileName,
list< COME_Patient * > &  patientL,
COME_Simulator simulator,
COME_Scenario parentScene
 

Test main tag

Definition at line 99 of file comexml.cpp.

References DOMCountErrorHandler::getSawErrors(), loadMaterials(), root, and simulatorXml.

Referenced by COME_Scenario::addMaterialsFromFile().

Here is the call graph for this function:

void COME_Xml::loadMaterialsFromOrganFile string  fileName  ) 
 

Definition at line 1680 of file comexml.cpp.

References DOMCountErrorHandler::getSawErrors(), and loadMaterials().

Referenced by loadIntegrationFile().

Here is the call graph for this function:

void COME_Xml::loadModifiers DOMNodeList *  joints  )  [protected]
 

Definition at line 711 of file comexml.cpp.

References auxVec, COME::getDescription(), iIndDofAux, max, COME_Curve::setControlPoints(), COME_Dof::setRangeModifier(), and COME_Point3D::setXYZ().

Here is the call graph for this function:

COME_BioStructure * COME_Xml::loadMoleculeOrgan DOMNode *  node  )  [protected]
 

Index for the vector above.

this block was strangely commented. Reverify next time Mechatester is compiled. Molecule constructor was outside with (*materials)[0]

Load external forces here

Numerical method test

Definition at line 821 of file comexml.cpp.

References BONE, CARTILAGE, COME::description, COME::getDescription(), LIGAMENT, materials, COME::setDescription(), COME_BioStructure::setFixed(), COME_BioStructure::setGlobalHooke(), and COME_BioStructure::setType().

Referenced by loadShapes().

Here is the call graph for this function:

COME_BioStructure * COME_Xml::loadOrganFile string  fileName,
list< COME_Patient * > &  patientL,
COME_Simulator simulator,
COME_Scenario parentScene
 

Test main tag

Definition at line 192 of file comexml.cpp.

References DOMCountErrorHandler::getSawErrors(), loadShapes(), root, and simulatorXml.

Referenced by COME_Scenario::addOrganFromFile(), and loadIntegrationFile().

Here is the call graph for this function:

void COME_Xml::loadSceneFile string  fileName,
list< COME_Patient * > &  patientL,
COME_Simulator simulator,
COME_Scenario parentScene
 

Test main tag

Load patients

List to be filled while loading organs into joints bellow

Find root joint and load joints tree

Definition at line 285 of file comexml.cpp.

References DOMCountErrorHandler::getSawErrors(), root, scene, COME_Simulator::setDuration(), COME_Simulator::setFPS(), COME_Scenario::setGravity(), and simulatorXml.

Referenced by COME_Scenario::loadFile().

Here is the call graph for this function:

vector< COME_BioStructure * > COME_Xml::loadShapes DOMNodeList *  list  )  [protected]
 

Definition at line 576 of file comexml.cpp.

References COME::baseFolder, COME_BioStructure::internalsDesc, loadMoleculeOrgan(), COME_BioStructure::setCollisionRadius(), and COME::setDescription().

Referenced by loadJoint(), and loadOrganFile().

Here is the call graph for this function:

int COME_Xml::saveAnimationFile string  file_name,
const list< COME_Patient * > &  patientL,
COME_Simulator simulator
 

Definition at line 1224 of file comexml.cpp.

References COME::baseFolder, COME::description, COME::framesOnFile, COME_Simulator::getDuration(), COME_Simulator::getTimestep(), saveJointsAnimation(), and saveOrgansAnimation().

Here is the call graph for this function:

void COME_Xml::saveJointOrgans DOMDocument *  doc,
DOMElement *  jointNode,
COME_Joint jointThis
 

Definition at line 1972 of file comexml.cpp.

References COME_Joint::getShapeListPt(), COME_Point3D::getX(), COME_Point3D::getY(), and COME_Point3D::getZ().

Here is the call graph for this function:

void COME_Xml::saveJointsAnimation DOMDocument *  doc,
DOMElement *  jointsNode,
COME_Joint currJoint
 

Definition at line 1365 of file comexml.cpp.

References COME::baseFolder, COME_Joint::getChildListPt(), and COME_Joint::getDescription().

Referenced by saveAnimationFile().

Here is the call graph for this function:

void COME_Xml::saveMaterials DOMDocument *  doc,
DOMElement *  patientNode,
COME_Patient  patient
[protected]
 

Definition at line 1065 of file comexml.cpp.

References COME_Patient::getPtOrganList(), COME_Point3D::getX(), COME_Point3D::getY(), and COME_Point3D::getZ().

Referenced by saveSceneFile().

Here is the call graph for this function:

void COME_Xml::saveMoleculeOrgan DOMDocument *  doc,
DOMElement *  jointNode,
COME_Patient  patient
[protected]
 

Definition at line 1133 of file comexml.cpp.

References COME_Patient::getPtOrganList(), COME_Point3D::getX(), COME_Point3D::getY(), and COME_Point3D::getZ().

Referenced by saveSceneFile().

Here is the call graph for this function:

void COME_Xml::saveOrgansAnimation DOMDocument *  doc,
DOMElement *  organsNode,
COME_Patient patient
 

Definition at line 1341 of file comexml.cpp.

References COME_Patient::getPtOrganList().

Referenced by saveAnimationFile().

Here is the call graph for this function:

int COME_Xml::saveSceneFile string  file_name,
const list< COME_Patient * > &  patientL,
COME_Simulator simulator
 

Definition at line 931 of file comexml.cpp.

References COME_Simulator::getDuration(), COME_Simulator::getFPS(), COME_Scenario::getGravity(), COME_Simulator::getScene(), COME_Point3D::getX(), saveMaterials(), saveMoleculeOrgan(), and scene.

Referenced by COME_Scenario::saveFile().

Here is the call graph for this function:

void COME_Xml::saveSurface COME_Mesh mesh,
string  f_name
 

Definition at line 1190 of file comexml.cpp.

References COME_Point3D::x, COME_Point3D::y, and COME_Point3D::z.


Member Data Documentation

COME_Dof** COME_Xml::auxVec [private]
 

Definition at line 67 of file comexml.h.

Referenced by loadDofs(), and loadModifiers().

int COME_Xml::iIndDofAux [private]
 

Temporary vector of DOF pointers to every dof in the tree.

Definition at line 68 of file comexml.h.

Referenced by loadDofs(), and loadModifiers().

vector<COME_Material*>* COME_Xml::materials [private]
 

Definition at line 63 of file comexml.h.

Referenced by COME_Xml(), getAllMaterials(), loadMaterials(), and loadMoleculeOrgan().

DOMElement* COME_Xml::root [private]
 

Definition at line 64 of file comexml.h.

Referenced by loadIntegrationFile(), loadMaterialsFile(), loadOrganFile(), and loadSceneFile().

COME_Simulator* COME_Xml::simulatorXml [private]
 

Definition at line 65 of file comexml.h.

Referenced by loadIntegrationFile(), loadMaterialsFile(), loadOrganFile(), and loadSceneFile().


The documentation for this class was generated from the following files:
Generated on Thu Dec 1 10:14:30 2005 for COME - Biomechanical Joint Model by  doxygen 1.4.5