56 mOrientations = orient;
66 mChildBranches.push_back(child);
71 mChildBranches = children;
76 mChildBranches.clear();
81 return mChildBranches;
86 mParentBranch = parent;
105 for(
size_t i = 0; i < bv.size(); ++i)
107 if(bv[i] == mParentBranch)
108 return static_cast<int>(i);
116 int generationNumber = 1;
119 while (parentBranchPtr)
121 generationNumber = generationNumber + 1;
122 parentBranchPtr = parentBranchPtr->getParentBranch();
125 return generationNumber;
132 if (generationNumber == 1)
134 if (generationNumber == 2)
136 if (generationNumber == 3)
138 if (generationNumber == 4)
140 if (generationNumber == 5)
void deleteChildBranches()
void addChildBranch(BranchPtr child)
void setPositions(Eigen::MatrixXd pos)
branchVector getChildBranches()
double findBranchRadius()
int findGenerationNumber()
boost::shared_ptr< class Branch > BranchPtr
Eigen::MatrixXd getOrientations()
int findParentIndex(branchVector bv) const
Branch::findParentIndex Given a vector of branches, find this branch's parent branch in that vector...
BranchPtr getParentBranch()
void setOrientations(Eigen::MatrixXd orient)
Eigen::MatrixXd getPositions()
void setChildBranches(branchVector children)
void setParentBranch(BranchPtr parent)
std::vector< BranchPtr > branchVector
Namespace for all CustusX production code.