#include <SpineEntry.h>
Public Member Functions | |
SpineEntry (Id shaft, Id head, unsigned int parent) | |
SpineEntry () | |
unsigned int | parent () const |
Returns index of parent entry located on NeuroMesh. | |
void | setParent (unsigned int parent) |
Assigns index of parent entry located on NeuroMesh. | |
unsigned int | fid () const |
Returns index of self. Only a single voxel. | |
Id | shaftId () const |
Id | headId () const |
Returns Id of shaft electrical compartment. | |
void | matchCubeMeshEntriesToHead (const ChemCompt *compt, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret) const |
Returns Id of head electrical compartment. | |
void | matchCubeMeshEntriesToPSD (const ChemCompt *compt, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret) const |
unsigned int | matchNeuroMeshEntriesToShaft (const ChemCompt *compt, unsigned int myIndex, double &area, double &length) const |
double | volume () const |
Return volume of spine. Ignores shaft volume. Virtual func. | |
void | mid (double &x, double &y, double &z) const |
Return coords of centre of spine head. | |
void | apex (double &x, double &y, double &z) const |
Return coords of middle of PSD. | |
void | matchCubeMeshEntries (const ChemCompt *other, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret) |
double | rootArea () const |
double | headArea () const |
double | diffusionLength () const |
void | setVolume (double volume) |
void | positionShaftBase (double x, double y, double z) |
vector< double > | psdCoords () const |
Helper class for the SpineMesh. Defines a single spine.
This builds the node using info from the compartment.
Helper class for the SpineMesh. Defines the geometry of the spine and provides the innter function for mapping to CubeMeshes.
References CylBase::setDia(), CylBase::setIsCylinder(), CylBase::setLength(), CylBase::setNumDivs(), CylBase::setX(), CylBase::setY(), and CylBase::setZ().
SpineEntry::SpineEntry | ( | ) |
Empty constructor for vectors
References CylBase::setDia(), CylBase::setIsCylinder(), CylBase::setLength(), CylBase::setNumDivs(), CylBase::setX(), CylBase::setY(), and CylBase::setZ().
void SpineEntry::apex | ( | double & | x, | |
double & | y, | |||
double & | z | |||
) | const |
Return coords of middle of PSD.
double SpineEntry::diffusionLength | ( | ) | const |
unsigned int SpineEntry::fid | ( | ) | const |
Returns index of self. Only a single voxel.
double SpineEntry::headArea | ( | ) | const |
void SpineEntry::matchCubeMeshEntries | ( | const ChemCompt * | other, | |
unsigned int | myIndex, | |||
double | granularity, | |||
vector< VoxelJunction > & | ret | |||
) |
void SpineEntry::matchCubeMeshEntriesToHead | ( | const ChemCompt * | compt, | |
unsigned int | myIndex, | |||
double | granularity, | |||
vector< VoxelJunction > & | ret | |||
) | const |
void SpineEntry::matchCubeMeshEntriesToPSD | ( | const ChemCompt * | compt, | |
unsigned int | myIndex, | |||
double | granularity, | |||
vector< VoxelJunction > & | ret | |||
) | const |
Generate list of matching CubeMeshEntries to the single PSD.
unsigned int SpineEntry::matchNeuroMeshEntriesToShaft | ( | const ChemCompt * | compt, | |
unsigned int | myIndex, | |||
double & | area, | |||
double & | length | |||
) | const |
void SpineEntry::mid | ( | double & | x, | |
double & | y, | |||
double & | z | |||
) | const |
Return coords of centre of spine head.
References CylBase::getX(), CylBase::getY(), and CylBase::getZ().
Referenced by SpineMesh::nearest(), and psdCoords().
unsigned int SpineEntry::parent | ( | ) | const |
Returns index of parent entry located on NeuroMesh.
void SpineEntry::positionShaftBase | ( | double | x, | |
double | y, | |||
double | z | |||
) |
moves Spine entry so that shaft base is now positioned at xyz.
References CylBase::getX(), CylBase::getY(), CylBase::getZ(), CylBase::setX(), CylBase::setY(), and CylBase::setZ().
vector< double > SpineEntry::psdCoords | ( | ) | const |
psdCoords is used to build the PsdMesh. The function returns 8 coords to define the psd: centre xyz direction xyz dia, diffusion distance to middle of spine Head.
References CylBase::getDia(), CylBase::getX(), CylBase::getY(), CylBase::getZ(), and mid().
Referenced by NeuroMesh::transmitSpineInfo().
double SpineEntry::rootArea | ( | ) | const |
void SpineEntry::setParent | ( | unsigned int | parent | ) |
Assigns index of parent entry located on NeuroMesh.
void SpineEntry::setVolume | ( | double | volume | ) |
Resizes SpineEntry. Takes original shaft base and scales up from there. Retains original shaft dimensions, only the head is scaled.
References CylBase::getDia(), CylBase::getLength(), CylBase::getX(), CylBase::getY(), CylBase::getZ(), CylBase::setDia(), CylBase::setLength(), CylBase::setX(), CylBase::setY(), CylBase::setZ(), and CylBase::volume().
Id SpineEntry::shaftId | ( | ) | const |
double SpineEntry::volume | ( | ) | const |
Return volume of spine. Ignores shaft volume. Virtual func.
References CylBase::volume().