00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef READSWC_H
00010 #define READSWC_H
00011
00018 class ReadSwc
00019 {
00024 public:
00025 ReadSwc( const string& fname );
00026 bool validate() const;
00027 void assignKids();
00028 void cleanZeroLength();
00029 void parseBranches();
00030 void traverseBranch( const SwcSegment& s, double &len, double& L,
00031 vector< int >& cable ) const;
00032 bool build( Id parent,
00033 double lambda, double RM, double RA, double CM );
00034 void diagnostics() const;
00035
00036 private:
00037 vector< SwcSegment > segs_;
00038
00045 vector< SwcBranch > branches_;
00046 };
00047
00048 #endif // READSWC_H