Fraxinus
17.12-rc4
An IGT application
|
#include <cxBranchList.h>
Public Member Functions | |
BranchList () | |
virtual | ~BranchList () |
void | addBranch (BranchPtr b) |
void | deleteBranch (BranchPtr b) |
void | deleteAllBranches () |
std::vector< BranchPtr > | getBranches () |
void | findBranchesInCenterline (Eigen::MatrixXd positions_r) |
void | selectGenerations (int maxGeneration) |
void | calculateOrientations () |
void | smoothOrientations () |
void | interpolateBranchPositions (int interpolationFactor) |
void | smoothBranchPositions (int controlPointDistance) |
BranchListPtr | removePositionsForLocalRegistration (Eigen::MatrixXd trackingPositions, double maxDistance) |
vtkPolyDataPtr | createVtkPolyDataFromBranches (bool fullyConnected=false, bool straightBranches=false) const |
BranchList::createVtkPolyDataFromBranches Return a VtkPolyData object created from the branches in this object. More... | |
Definition at line 47 of file cxBranchList.h.
cx::BranchList::BranchList | ( | ) |
Definition at line 45 of file cxBranchList.cpp.
|
virtual |
Definition at line 51 of file cxBranchList.cpp.
void cx::BranchList::addBranch | ( | BranchPtr | b | ) |
Definition at line 57 of file cxBranchList.cpp.
void cx::BranchList::calculateOrientations | ( | ) |
Definition at line 108 of file cxBranchList.cpp.
vtkPolyDataPtr cx::BranchList::createVtkPolyDataFromBranches | ( | bool | fullyConnected = false , |
bool | straightBranches = false |
||
) | const |
BranchList::createVtkPolyDataFromBranches Return a VtkPolyData object created from the branches in this object.
fullyConnected | The original version of this code created an object where there might be gaps between the end of parent and child branches. This parameter lets you make connections between the branches to fill these gaps. Note however, that this option gives strange results on many of the real centerlines tried. Not sure where the problem is. It works on the dummy centerline used in the unit test. |
straightBranches | By using this parameter, you will include only the first and last points from a branch. Hence you will get straight branches in your polydata. |
Definition at line 353 of file cxBranchList.cpp.
void cx::BranchList::deleteAllBranches | ( | ) |
Definition at line 74 of file cxBranchList.cpp.
void cx::BranchList::deleteBranch | ( | BranchPtr | b | ) |
Definition at line 62 of file cxBranchList.cpp.
void cx::BranchList::findBranchesInCenterline | ( | Eigen::MatrixXd | positions_r | ) |
Definition at line 208 of file cxBranchList.cpp.
std::vector< BranchPtr > cx::BranchList::getBranches | ( | ) |
Definition at line 79 of file cxBranchList.cpp.
void cx::BranchList::interpolateBranchPositions | ( | int | interpolationFactor | ) |
Definition at line 137 of file cxBranchList.cpp.
BranchListPtr cx::BranchList::removePositionsForLocalRegistration | ( | Eigen::MatrixXd | trackingPositions, |
double | maxDistance | ||
) |
Definition at line 299 of file cxBranchList.cpp.
void cx::BranchList::selectGenerations | ( | int | maxGeneration | ) |
Definition at line 84 of file cxBranchList.cpp.
void cx::BranchList::smoothBranchPositions | ( | int | controlPointDistance | ) |
Definition at line 165 of file cxBranchList.cpp.
void cx::BranchList::smoothOrientations | ( | ) |
Definition at line 121 of file cxBranchList.cpp.