MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <SwcSegment.h>
Public Member Functions | |
void | addChild (unsigned int kid) |
double | distance (const SwcSegment &other) const |
void | figureOutType () |
double | getElecDistFromSoma () const |
double | getGeomDistFromSoma () const |
double | getPathDistFromSoma () const |
const vector< int > & | kids () const |
double | L () const |
double | length () const |
unsigned int | myIndex () const |
bool | OK () const |
unsigned int | parent () const |
double | radius () const |
void | replaceKids (const vector< int > &kids) |
void | setBad () |
void | setCumulativeDistance (double len, double L, double pSoma, double eSoma) |
void | setGeometricalDistanceFromSoma (const SwcSegment &soma) |
void | setParent (unsigned int pa) |
SwcSegment () | |
SwcSegment (const string &line) | |
SwcSegment (int i, short type, double x, double y, double z, double r, int parent) | |
unsigned short | type () const |
const Vec & | vec () const |
Static Public Attributes | |
static const short | APICAL = 4 |
static const short | APICAL_END = 13 |
static const short | APICAL_FORK = 12 |
static const short | AXON = 2 |
static const short | AXON_END = 11 |
static const short | AXON_FORK = 10 |
static const short | BadSegment = 8 |
static const short | CUSTOM = 7 |
static const short | DEND = 3 |
static const short | END = 6 |
static const short | FORK = 5 |
static const short | SOMA = 1 |
static const string | typeName [] |
static const short | UNDEF = 0 |
Protected Attributes | |
double | electrotonicDistanceFromSoma_ |
electrotonic dist from soma, summed along dend. More... | |
double | geometricalDistanceFromSoma_ |
geometrical distance from soma. More... | |
vector< int > | kids_ |
double | L_ |
Length of segment. More... | |
double | length_ |
Radius of segment. More... | |
unsigned int | myIndex_ |
unsigned int | parent_ |
Number of length constants in segment. More... | |
double | pathDistanceFromSoma_ |
Index of parent. Is ~0 for soma. More... | |
double | radius_ |
coordinates of end of segment More... | |
short | type_ |
Index of self. More... | |
Vec | v_ |
This defines a single segment in an SWC file used in NeuroMorpho Note that this is not going to work well for dendritic spines which come off in the middle of a parent compartment, and which have to be started from the surface rather than the axis of the dendrite.
Definition at line 18 of file SwcSegment.h.
|
inline |
Definition at line 21 of file SwcSegment.h.
SwcSegment::SwcSegment | ( | const string & | line | ) |
SwcSegment::SwcSegment | ( | int | i, |
short | type, | ||
double | x, | ||
double | y, | ||
double | z, | ||
double | r, | ||
int | parent | ||
) |
Definition at line 69 of file SwcSegment.cpp.
References parent(), and parent_.
|
inline |
|
inline |
Definition at line 87 of file SwcSegment.h.
References Vec::distance(), and v_.
Referenced by ReadSwc::cleanZeroLength(), makeCompt(), ReadSwc::traverseBranch(), and traverseCumulativeDistance().
void SwcSegment::figureOutType | ( | ) |
Definition at line 88 of file SwcSegment.cpp.
References APICAL, APICAL_END, APICAL_FORK, AXON, AXON_END, AXON_FORK, DEND, END, FORK, kids_, SOMA, and type_.
|
inline |
Definition at line 117 of file SwcSegment.h.
References electrotonicDistanceFromSoma_.
|
inline |
Definition at line 113 of file SwcSegment.h.
References geometricalDistanceFromSoma_.
|
inline |
Definition at line 109 of file SwcSegment.h.
References pathDistanceFromSoma_.
|
inline |
Definition at line 62 of file SwcSegment.h.
References kids_.
Referenced by ReadSwc::cleanZeroLength(), ReadSwc::parseBranches(), replaceKids(), and ReadSwc::traverseBranch().
|
inline |
Definition at line 83 of file SwcSegment.h.
References L_.
Referenced by setCumulativeDistance(), and ReadSwc::traverseBranch().
|
inline |
|
inline |
Definition at line 52 of file SwcSegment.h.
References myIndex_.
Referenced by ReadSwc::assignKids(), ReadSwc::build(), ReadSwc::cleanZeroLength(), SwcBranch::printDiagnostics(), ReadSwc::traverseBranch(), and ReadSwc::validate().
|
inline |
Definition at line 34 of file SwcSegment.h.
References BadSegment, CUSTOM, type_, and UNDEF.
Referenced by ReadSwc::parseBranches(), and ReadSwc::ReadSwc().
|
inline |
Definition at line 44 of file SwcSegment.h.
References parent_.
Referenced by ReadSwc::assignKids(), ReadSwc::build(), ReadSwc::cleanZeroLength(), makeCompt(), SwcBranch::printDiagnostics(), SwcSegment(), ReadSwc::traverseBranch(), and ReadSwc::validate().
|
inline |
Definition at line 76 of file SwcSegment.h.
References radius_.
Referenced by makeCompt(), ReadSwc::traverseBranch(), and ReadSwc::validate().
|
inline |
Definition at line 67 of file SwcSegment.h.
Referenced by ReadSwc::cleanZeroLength().
|
inline |
Definition at line 39 of file SwcSegment.h.
References BadSegment, and type_.
Referenced by ReadSwc::cleanZeroLength().
|
inline |
Definition at line 100 of file SwcSegment.h.
References electrotonicDistanceFromSoma_, L(), L_, length_, and pathDistanceFromSoma_.
|
inline |
Definition at line 95 of file SwcSegment.h.
References Vec::distance(), geometricalDistanceFromSoma_, and v_.
|
inline |
Definition at line 48 of file SwcSegment.h.
References parent_.
Referenced by ReadSwc::cleanZeroLength().
|
inline |
Definition at line 72 of file SwcSegment.h.
References type_.
Referenced by ReadSwc::diagnostics(), and makeCompt().
|
inline |
Definition at line 91 of file SwcSegment.h.
References v_.
Referenced by makeCompt().
|
static |
Definition at line 126 of file SwcSegment.h.
Referenced by figureOutType().
|
static |
Definition at line 135 of file SwcSegment.h.
Referenced by figureOutType().
|
static |
Definition at line 134 of file SwcSegment.h.
Referenced by figureOutType().
|
static |
Definition at line 124 of file SwcSegment.h.
Referenced by figureOutType().
|
static |
Definition at line 133 of file SwcSegment.h.
Referenced by figureOutType().
|
static |
Definition at line 132 of file SwcSegment.h.
Referenced by figureOutType().
|
static |
Definition at line 131 of file SwcSegment.h.
|
static |
Definition at line 129 of file SwcSegment.h.
Referenced by OK().
|
static |
Definition at line 125 of file SwcSegment.h.
Referenced by figureOutType().
|
protected |
electrotonic dist from soma, summed along dend.
Definition at line 167 of file SwcSegment.h.
Referenced by getElecDistFromSoma(), and setCumulativeDistance().
|
static |
Definition at line 128 of file SwcSegment.h.
Referenced by figureOutType().
|
static |
Definition at line 127 of file SwcSegment.h.
Referenced by figureOutType().
|
protected |
geometrical distance from soma.
Definition at line 164 of file SwcSegment.h.
Referenced by getGeomDistFromSoma(), and setGeometricalDistanceFromSoma().
|
protected |
Definition at line 169 of file SwcSegment.h.
Referenced by addChild(), figureOutType(), kids(), replaceKids(), and SwcBranch::SwcBranch().
|
protected |
Length of segment.
Definition at line 157 of file SwcSegment.h.
Referenced by L(), and setCumulativeDistance().
|
protected |
Radius of segment.
Definition at line 156 of file SwcSegment.h.
Referenced by length(), and setCumulativeDistance().
|
protected |
Definition at line 140 of file SwcSegment.h.
Referenced by myIndex(), and SwcBranch::SwcBranch().
|
protected |
Number of length constants in segment.
Definition at line 158 of file SwcSegment.h.
Referenced by parent(), setParent(), SwcBranch::SwcBranch(), and SwcSegment().
|
protected |
Index of parent. Is ~0 for soma.
dist from soma: not direct, but threaded along dend
Definition at line 161 of file SwcSegment.h.
Referenced by getPathDistFromSoma(), and setCumulativeDistance().
|
protected |
|
static |
Definition at line 123 of file SwcSegment.h.
Referenced by figureOutType().
|
protected |
Index of self.
The type of the segment is supposedly as below for SWC files. Seems to be honored in the breach in actual files. 0 = undefined 1 = soma 2 = axon 3 = dendrite 4 = apical dendrite 5 = fork point 6 = end point 7 = custom
Definition at line 153 of file SwcSegment.h.
Referenced by figureOutType(), OK(), setBad(), and type().
|
static |
Definition at line 137 of file SwcSegment.h.
Referenced by ReadSwc::diagnostics(), and makeCompt().
|
static |
Definition at line 122 of file SwcSegment.h.
Referenced by OK().
|
protected |
Definition at line 154 of file SwcSegment.h.
Referenced by distance(), setGeometricalDistanceFromSoma(), and vec().