Biomechanical Joint Model
 Author: Anderson Maciel

COME_Tetra Class Reference

#include <cometetra.h>

Inherits COME.

Inheritance diagram for COME_Tetra:

Inheritance graph
[legend]
Collaboration diagram for COME_Tetra:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 COME_Tetra ()
 The four molecules connected to form this tetrahedron.
 COME_Tetra (vector< COME_Molecule * > moleculesList)
 ~COME_Tetra ()
void setMoleculesList (vector< COME_Molecule * > moleculesList)
void setMoleculeAt (COME_Molecule *molecule, int index)
void addMolecule (COME_Molecule *molecule)
vector< COME_Molecule * > getMolecules () const
COME_MoleculegetMoleculeAt (int index) const
double getVolume () const
double getElasticity () const

Protected Attributes

vector< COME_Molecule * > molecules

Detailed Description

Definition at line 41 of file cometetra.h.


Constructor & Destructor Documentation

COME_Tetra::COME_Tetra  ) 
 

The four molecules connected to form this tetrahedron.

Construction/Destruction

Definition at line 39 of file cometetra.cpp.

COME_Tetra::COME_Tetra vector< COME_Molecule * >  moleculesList  ) 
 

Definition at line 44 of file cometetra.cpp.

References molecules.

COME_Tetra::~COME_Tetra  ) 
 

Definition at line 51 of file cometetra.cpp.


Member Function Documentation

void COME_Tetra::addMolecule COME_Molecule molecule  ) 
 

Definition at line 72 of file cometetra.cpp.

References molecules.

Referenced by COME_MoleculeLink::getNeighbouringTetra().

double COME_Tetra::getElasticity  )  const
 

This method calculates and returns the Young's modulus to the part of material represented by this tetrahedron by averaging the modulus of the four molecules that compose it.

Definition at line 124 of file cometetra.cpp.

References molecules.

COME_Molecule * COME_Tetra::getMoleculeAt int  index  )  const
 

Definition at line 90 of file cometetra.cpp.

References molecules.

vector< COME_Molecule * > COME_Tetra::getMolecules  )  const
 

Getting

Definition at line 83 of file cometetra.cpp.

References molecules.

double COME_Tetra::getVolume  )  const
 

Definition at line 96 of file cometetra.cpp.

References molecules, COME_Vector3D::setVector3D(), COME_Point3D::vpDistance(), COME_Vector3D::vpDotProduct(), COME_Vector3D::vpModule(), and COME_Vector3D::vpNormalize().

Here is the call graph for this function:

void COME_Tetra::setMoleculeAt COME_Molecule molecule,
int  index
 

Definition at line 66 of file cometetra.cpp.

References molecules.

void COME_Tetra::setMoleculesList vector< COME_Molecule * >  moleculesList  ) 
 

Setting

Definition at line 60 of file cometetra.cpp.

References molecules.


Member Data Documentation

vector<COME_Molecule*> COME_Tetra::molecules [protected]
 

Definition at line 44 of file cometetra.h.

Referenced by addMolecule(), COME_Tetra(), getElasticity(), getMoleculeAt(), getMolecules(), getVolume(), setMoleculeAt(), and setMoleculesList().


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