17 #include "../utility/Vec.h"
36 "undef",
"soma",
"axon",
"dend",
"apical",
"dend_f",
"dend_e",
37 "custom",
"bad",
"undef",
38 "axon_f",
"axon_e",
"apical_f",
"apical_e" };
42 geometricalDistanceFromSoma_( 0.0 ),
43 electrotonicDistanceFromSoma_( 0.0 )
45 vector< string > args;
46 stringstream ss( line );
49 args.push_back( temp );
51 if ( args.size() == 7 ) {
52 myIndex_ = atoi( args[0].c_str() );
53 type_ = atoi( args[1].c_str() );
54 double x = atof( args[2].c_str() );
55 double y = atof( args[3].c_str() );
56 double z = atof( args[4].c_str() );
58 radius_ = atof( args[5].c_str() );
59 int pa = atoi( args[6].c_str() );
70 double x,
double y,
double z,
71 double r,
int parent )
79 geometricalDistanceFromSoma_( 0.0 ),
80 electrotonicDistanceFromSoma_( 0.0 )
93 if (
kids_.size() > 1 )
95 else if (
kids_.size() == 0 )
98 if (
kids_.size() > 1 )
100 else if (
kids_.size() == 0 )
103 if (
kids_.size() > 1 )
105 else if (
kids_.size() == 0 )
113 const vector< int >& cable )
115 r0( start.radius() ),
116 r1( start.radius() ),
123 segs_.resize( cable.size() );
125 vector< int >::const_reverse_iterator j = cable.rbegin();
126 vector< int >::iterator k =
segs_.begin();
127 for ( k =
segs_.begin(); k !=
segs_.end(); ++k )
134 " = " <<
segs_.size() <<
135 " : pa = " <<
parent() <<
" , length=( " <<
static const short BadSegment
unsigned int parent() const
double geomLength
Radius at end.
unsigned int myIndex() const
void printDiagnostics() const
static const short CUSTOM
SwcBranch(int i, const SwcSegment &start, double len, double L, const vector< int > &cable)
static const short AXON_END
static const short APICAL_FORK
static const short APICAL_END
short type_
Index of self.
unsigned int parent_
Number of length constants in segment.
static const string typeName[]
static const short APICAL
static const short AXON_FORK