MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <SpineEntry.h>
Public Member Functions | |
void | apex (double &x, double &y, double &z) const |
Return coords of middle of PSD. More... | |
double | diffusionLength () const |
unsigned int | fid () const |
Returns index of self. Only a single voxel. More... | |
double | headArea () const |
Id | headId () const |
Returns Id of shaft electrical compartment. More... | |
void | matchCubeMeshEntries (const ChemCompt *other, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret) |
void | matchCubeMeshEntriesToHead (const ChemCompt *compt, unsigned int myIndex, double granularity, vector< VoxelJunction > &ret) const |
Returns Id of head electrical compartment. More... | |
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 |
void | mid (double &x, double &y, double &z) const |
Return coords of centre of spine head. More... | |
unsigned int | parent () const |
Returns index of parent entry located on NeuroMesh. More... | |
void | positionShaftBase (double x, double y, double z) |
vector< double > | psdCoords () const |
double | rootArea () const |
void | setParent (unsigned int parent) |
Assigns index of parent entry located on NeuroMesh. More... | |
void | setVolume (double volume) |
Id | shaftId () const |
SpineEntry (Id shaft, Id head, unsigned int parent) | |
SpineEntry () | |
double | volume () const |
Return volume of spine. Ignores shaft volume. Virtual func. More... | |
Private Attributes | |
CylBase | head_ |
Shaft cylinder. More... | |
Id | headId_ |
unsigned int | parent_ |
head cylinder. More... | |
CylBase | root_ |
CylBase | shaft_ |
Anchor point on dendrite. More... | |
Id | shaftId_ |
Id of electrical compartment in which this diffusive compt lives. More... | |
Helper class for the SpineMesh. Defines a single spine.
Definition at line 17 of file SpineEntry.h.
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.
Definition at line 24 of file SpineEntry.cpp.
References Field< A >::get(), head_, root_, CylBase::setDia(), CylBase::setIsCylinder(), CylBase::setLength(), CylBase::setNumDivs(), CylBase::setX(), CylBase::setY(), CylBase::setZ(), and shaft_.
SpineEntry::SpineEntry | ( | ) |
Empty constructor for vectors
Definition at line 71 of file SpineEntry.cpp.
References head_, root_, CylBase::setDia(), CylBase::setIsCylinder(), CylBase::setLength(), CylBase::setNumDivs(), CylBase::setX(), CylBase::setY(), CylBase::setZ(), and shaft_.
void SpineEntry::apex | ( | double & | x, |
double & | y, | ||
double & | z | ||
) | const |
Return coords of middle of PSD.
double SpineEntry::diffusionLength | ( | ) | const |
Definition at line 179 of file SpineEntry.cpp.
References CylBase::getLength(), and shaft_.
unsigned int SpineEntry::fid | ( | ) | const |
Returns index of self. Only a single voxel.
double SpineEntry::headArea | ( | ) | const |
Id SpineEntry::headId | ( | ) | const |
Returns Id of shaft electrical compartment.
Definition at line 114 of file SpineEntry.cpp.
References headId_.
void SpineEntry::matchCubeMeshEntries | ( | const ChemCompt * | other, |
unsigned int | myIndex, | ||
double | granularity, | ||
vector< VoxelJunction > & | ret | ||
) |
Definition at line 131 of file SpineEntry.cpp.
References head_, CylBase::matchCubeMeshEntries(), and shaft_.
void SpineEntry::matchCubeMeshEntriesToHead | ( | const ChemCompt * | compt, |
unsigned int | myIndex, | ||
double | granularity, | ||
vector< VoxelJunction > & | ret | ||
) | const |
Returns Id of head electrical compartment.
Generate list of matching CubeMesh entries to the single Head entry.
Definition at line 145 of file SpineEntry.cpp.
References head_, CylBase::matchCubeMeshEntries(), and shaft_.
Referenced by SpineMesh::matchCubeMeshEntries().
void SpineEntry::matchCubeMeshEntriesToPSD | ( | const ChemCompt * | compt, |
unsigned int | myIndex, | ||
double | granularity, | ||
vector< VoxelJunction > & | ret | ||
) | const |
Generate list of matching CubeMeshEntries to the single PSD.
Definition at line 153 of file SpineEntry.cpp.
References head_, CylBase::matchCubeMeshEntries(), and shaft_.
unsigned int SpineEntry::matchNeuroMeshEntriesToShaft | ( | const ChemCompt * | compt, |
unsigned int | myIndex, | ||
double & | area, | ||
double & | length | ||
) | const |
Find the matching matching NeuroMesh entry index to the root of the shaft of this spine. Also compute the area and diffusion length of the shaft.
Find the matching NeuroMesh entry index to the root of the shaft of this spine. Also compute the area and diffusion length of the shaft.
Definition at line 167 of file SpineEntry.cpp.
void SpineEntry::mid | ( | double & | x, |
double & | y, | ||
double & | z | ||
) | const |
Return coords of centre of spine head.
Definition at line 124 of file SpineEntry.cpp.
References CylBase::getX(), CylBase::getY(), CylBase::getZ(), head_, and shaft_.
Referenced by SpineMesh::nearest(), and psdCoords().
unsigned int SpineEntry::parent | ( | ) | const |
Returns index of parent entry located on NeuroMesh.
Definition at line 104 of file SpineEntry.cpp.
References parent_.
Referenced by setParent().
void SpineEntry::positionShaftBase | ( | double | x, |
double | y, | ||
double | z | ||
) |
moves Spine entry so that shaft base is now positioned at xyz.
Definition at line 230 of file SpineEntry.cpp.
References CylBase::getX(), CylBase::getY(), CylBase::getZ(), head_, root_, CylBase::setX(), CylBase::setY(), CylBase::setZ(), and shaft_.
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.
Definition at line 188 of file SpineEntry.cpp.
References CylBase::getDia(), CylBase::getX(), CylBase::getY(), CylBase::getZ(), head_, and mid().
Referenced by NeuroMesh::transmitSpineInfo().
double SpineEntry::rootArea | ( | ) | const |
Definition at line 174 of file SpineEntry.cpp.
References CylBase::getDia(), PI, and root_.
void SpineEntry::setParent | ( | unsigned int | parent | ) |
Assigns index of parent entry located on NeuroMesh.
Definition at line 119 of file SpineEntry.cpp.
References parent(), and parent_.
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.
Definition at line 216 of file SpineEntry.cpp.
References CylBase::getDia(), CylBase::getLength(), CylBase::getX(), CylBase::getY(), CylBase::getZ(), head_, CylBase::setDia(), CylBase::setLength(), CylBase::setX(), CylBase::setY(), CylBase::setZ(), shaft_, and CylBase::volume().
Id SpineEntry::shaftId | ( | ) | const |
Definition at line 109 of file SpineEntry.cpp.
References shaftId_.
double SpineEntry::volume | ( | ) | const |
Return volume of spine. Ignores shaft volume. Virtual func.
Definition at line 140 of file SpineEntry.cpp.
References head_, shaft_, and CylBase::volume().
|
private |
Shaft cylinder.
Definition at line 106 of file SpineEntry.h.
Referenced by matchCubeMeshEntries(), matchCubeMeshEntriesToHead(), matchCubeMeshEntriesToPSD(), mid(), positionShaftBase(), psdCoords(), setVolume(), SpineEntry(), and volume().
|
private |
Definition at line 114 of file SpineEntry.h.
Referenced by headId().
|
private |
head cylinder.
Index of parent entry on NeuroMesh.
Definition at line 110 of file SpineEntry.h.
Referenced by parent(), and setParent().
|
private |
Definition at line 104 of file SpineEntry.h.
Referenced by positionShaftBase(), rootArea(), and SpineEntry().
|
private |
Anchor point on dendrite.
Definition at line 105 of file SpineEntry.h.
Referenced by diffusionLength(), matchCubeMeshEntries(), matchCubeMeshEntriesToHead(), matchCubeMeshEntriesToPSD(), mid(), positionShaftBase(), setVolume(), SpineEntry(), and volume().
|
private |
Id of electrical compartment in which this diffusive compt lives.
Definition at line 113 of file SpineEntry.h.
Referenced by shaftId().