Biomechanical Joint Model
 Author: Anderson Maciel

COME_Patient Class Reference

#include <comepatient.h>

Inherits COME.

Inheritance diagram for COME_Patient:

Inheritance graph
[legend]
Collaboration diagram for COME_Patient:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 COME_Patient ()
 COME_Patient (const COME_Patient &patientN)
 COME_Patient (COME_Patient *patientN)
 COME_Patient (string nameN, short ageN, bool genderN, double weightN, double heightN, COME_Joint *root, list< COME_BioStructure * > organListN, COME *scene)
virtual ~COME_Patient ()
void setName (string nameN)
void setAge (short ageN)
void setGender (bool genderN)
void setWeight (double weightN)
void setHeight (double heightN)
void setOrganList (list< COME_BioStructure * > &listN)
void setRootJoint (COME_Joint *rootJointN)
string getName () const
short getAge () const
bool getGender () const
double getWeight () const
double getHeight () const
list< COME_BioStructure * > getOrganList () const
const list< COME_BioStructure * > * getPtOrganList () const
COME_BioStructuregetOrgan (string desc) const
COME_BioStructuregetOrgan (int index) const
COME_BioStructuregetSelected () const
COME_JointgetRootJoint ()
COME_JointgetJointByName (string target)
COME_JointsearchJoint (COME_Joint *currJoint, string target)
void addOrgan (COME_BioStructure *organN)
bool update (double timestep, double simClock)
void getEnvelop (COME_Point3D &mins, COME_Point3D &maxs) const
void unselectAll ()
void updateSkin ()

Protected Attributes

string name
short age
bool gender
double weight
double height
list< COME_BioStructure * > organList
COME_JointrootJoint

Detailed Description

This class describes a real person in the framework, particularly a patient.

Definition at line 50 of file comepatient.h.


Constructor & Destructor Documentation

COME_Patient::COME_Patient  ) 
 

Construction/Destruction

Definition at line 46 of file comepatient.cpp.

References age, gender, MALE, name, COME::parent, and rootJoint.

COME_Patient::COME_Patient const COME_Patient patientN  ) 
 

Definition at line 55 of file comepatient.cpp.

References age, gender, getAge(), getGender(), getHeight(), getName(), getOrganList(), COME::getParent(), getWeight(), height, name, organList, COME::parent, and weight.

Here is the call graph for this function:

COME_Patient::COME_Patient COME_Patient patientN  ) 
 

Definition at line 70 of file comepatient.cpp.

References age, gender, height, name, organList, COME::parent, rootJoint, and weight.

COME_Patient::COME_Patient string  nameN,
short  ageN,
bool  genderN,
double  weightN,
double  heightN,
COME_Joint root,
list< COME_BioStructure * >  organListN,
COME scene
 

Definition at line 82 of file comepatient.cpp.

References age, gender, height, name, organList, COME::parent, rootJoint, COME::setParent(), and weight.

Here is the call graph for this function:

COME_Patient::~COME_Patient  )  [virtual]
 

Definition at line 99 of file comepatient.cpp.


Member Function Documentation

void COME_Patient::addOrgan COME_BioStructure organN  ) 
 

Add the given organ to the list of organs of this patient.

Definition at line 265 of file comepatient.cpp.

References organList.

Referenced by COME_Scenario::addOrganFromFile().

short COME_Patient::getAge  )  const
 

Definition at line 161 of file comepatient.cpp.

References age.

Referenced by COME_Patient().

void COME_Patient::getEnvelop COME_Point3D mins,
COME_Point3D maxs
const
 

This method inspects the envelops of all organs within the patient and sets the parameters mins and maxs to the minimum and maximum corners of the rectangular patient envelop.

Definition at line 299 of file comepatient.cpp.

References COME_Point3D::getX(), COME_Point3D::getY(), COME_Point3D::getZ(), organList, COME_Point3D::setX(), COME_Point3D::setY(), and COME_Point3D::setZ().

Here is the call graph for this function:

bool COME_Patient::getGender  )  const
 

Definition at line 167 of file comepatient.cpp.

References gender.

Referenced by COME_Patient().

double COME_Patient::getHeight  )  const
 

Definition at line 179 of file comepatient.cpp.

References height.

Referenced by COME_Patient().

COME_Joint * COME_Patient::getJointByName string  target  ) 
 

Definition at line 242 of file comepatient.cpp.

References rootJoint, and searchJoint().

Referenced by COME_Scenario::simulate().

Here is the call graph for this function:

string COME_Patient::getName  )  const
 

Getting

Definition at line 155 of file comepatient.cpp.

References name.

Referenced by COME_Patient().

COME_BioStructure * COME_Patient::getOrgan int  index  )  const
 

Definition at line 209 of file comepatient.cpp.

References organList.

COME_BioStructure * COME_Patient::getOrgan string  desc  )  const
 

Definition at line 197 of file comepatient.cpp.

References organList.

Referenced by COME_Mechatester::clickedStartSim(), COME_Mechatester::COME_Mechatester(), COME_Scenario::initializeAllHashs(), and COME_Mechatester::updateClampIntersections().

list< COME_BioStructure * > COME_Patient::getOrganList  )  const
 

Definition at line 185 of file comepatient.cpp.

References organList.

Referenced by COME_Patient().

const list< COME_BioStructure * > * COME_Patient::getPtOrganList  )  const
 

Definition at line 191 of file comepatient.cpp.

References organList.

Referenced by COME_Mechatester::clickedCheck(), COME_Mechatester::clickedReset(), COME_Mechatester::clickedStartSim(), COME_Collide::detectContacts(), COME_Collide::detectContactsDisplacement(), COME_DiscretizerQGLWidget::draw(), COME_ModelJoint::fileLoad_scene(), COME_Mechatester::fileOpen(), COME_Discretizer::fileOpen(), COME_Scenario::initializeAllHashs(), COME_Collide::initializeProximityStructure(), COME_ModelJointQGLWidget::loadTextures(), COME_Xml::saveMaterials(), COME_Xml::saveMoleculeOrgan(), COME_Xml::saveOrgansAnimation(), COME_Collide::sphericalSlidingResponse(), COME_Collide::treatCollisions(), COME_Mechatester::updateClampIntersections(), COME_Mechatester::updateEquation(), and COME_Discretizer::updateSampling().

COME_Joint * COME_Patient::getRootJoint  ) 
 

Definition at line 235 of file comepatient.cpp.

References rootJoint.

COME_BioStructure * COME_Patient::getSelected  )  const
 

Definition at line 223 of file comepatient.cpp.

References organList.

Referenced by COME_Mechatester::clickedAssociate(), COME_ModelJoint::rotateSelected(), COME_Mechatester::rotateSelected(), COME_ModelJoint::scaleSelected(), COME_Mechatester::scaleSelected(), COME_ModelJoint::sliderNominalReleased(), COME_ModelJoint::translateSelected(), and COME_Mechatester::translateSelected().

double COME_Patient::getWeight  )  const
 

Definition at line 173 of file comepatient.cpp.

References weight.

Referenced by COME_Patient().

COME_Joint * COME_Patient::searchJoint COME_Joint currJoint,
string  target
 

Search the joints tree by the joint named target. Calls itself recursively to walk on the tree.

Definition at line 251 of file comepatient.cpp.

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

Referenced by getJointByName().

Here is the call graph for this function:

void COME_Patient::setAge short  ageN  ) 
 

Definition at line 115 of file comepatient.cpp.

References age.

void COME_Patient::setGender bool  genderN  ) 
 

Definition at line 121 of file comepatient.cpp.

References gender.

void COME_Patient::setHeight double  heightN  ) 
 

Definition at line 133 of file comepatient.cpp.

References height.

void COME_Patient::setName string  nameN  ) 
 

Setting

Definition at line 109 of file comepatient.cpp.

References name.

void COME_Patient::setOrganList list< COME_BioStructure * > &  listN  ) 
 

Definition at line 139 of file comepatient.cpp.

References organList.

void COME_Patient::setRootJoint COME_Joint rootJointN  ) 
 

Definition at line 145 of file comepatient.cpp.

References rootJoint.

void COME_Patient::setWeight double  weightN  ) 
 

Definition at line 127 of file comepatient.cpp.

References weight.

void COME_Patient::unselectAll  ) 
 

Definition at line 333 of file comepatient.cpp.

References organList.

Referenced by COME_ModelJointQGLWidget::postSelection(), and COME_MechatestQGLWidget::postSelection().

bool COME_Patient::update double  timestep,
double  simClock
 

Update this patient's positions accordingly to physics after timestep seconds.

Definition at line 275 of file comepatient.cpp.

References organList.

void COME_Patient::updateSkin  ) 
 

Update all the organs' skins

Definition at line 345 of file comepatient.cpp.

References organList.


Member Data Documentation

short COME_Patient::age [protected]
 

Definition at line 54 of file comepatient.h.

Referenced by COME_Patient(), getAge(), and setAge().

bool COME_Patient::gender [protected]
 

Definition at line 55 of file comepatient.h.

Referenced by COME_Patient(), getGender(), and setGender().

double COME_Patient::height [protected]
 

Definition at line 57 of file comepatient.h.

Referenced by COME_Patient(), getHeight(), and setHeight().

string COME_Patient::name [protected]
 

Definition at line 53 of file comepatient.h.

Referenced by COME_Patient(), getName(), and setName().

list<COME_BioStructure*> COME_Patient::organList [protected]
 

Definition at line 58 of file comepatient.h.

Referenced by addOrgan(), COME_Patient(), getEnvelop(), getOrgan(), getOrganList(), getPtOrganList(), getSelected(), setOrganList(), unselectAll(), update(), and updateSkin().

COME_Joint* COME_Patient::rootJoint [protected]
 

Definition at line 59 of file comepatient.h.

Referenced by COME_Patient(), getJointByName(), getRootJoint(), and setRootJoint().

double COME_Patient::weight [protected]
 

Definition at line 56 of file comepatient.h.

Referenced by COME_Patient(), getWeight(), and setWeight().


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