MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ReadSwc.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2015 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 #ifndef READSWC_H
10 #define READSWC_H
11 
18 class ReadSwc
19 {
24  public:
25  ReadSwc( const string& fname );
26  bool validate() const;
27  void assignKids();
28  void cleanZeroLength();
29  void parseBranches();
30  void traverseBranch( const SwcSegment& s, double &len, double& L,
31  vector< int >& cable ) const;
32  bool build( Id parent,
33  double lambda, double RM, double RA, double CM );
34  void diagnostics() const;
35 
36  private:
37  vector< SwcSegment > segs_;
38 
45  vector< SwcBranch > branches_;
46 };
47 
48 #endif // READSWC_H
void traverseBranch(const SwcSegment &s, double &len, double &L, vector< int > &cable) const
Definition: ReadSwc.cpp:138
bool validate() const
Definition: ReadSwc.cpp:63
void cleanZeroLength()
Definition: ReadSwc.cpp:112
void parseBranches()
Definition: ReadSwc.cpp:162
void assignKids()
Definition: ReadSwc.cpp:98
void diagnostics() const
Definition: ReadSwc.cpp:194
vector< SwcSegment > segs_
Definition: ReadSwc.h:37
vector< SwcBranch > branches_
Definition: ReadSwc.h:45
Definition: Id.h:17
ReadSwc(const string &fname)
Definition: ReadSwc.cpp:24
bool build(Id parent, double lambda, double RM, double RA, double CM)
Definition: ReadSwc.cpp:256