12 #ifndef CXAIRWAYSFROMCENTERLINE_H
13 #define CXAIRWAYSFROMCENTERLINE_H
16 #include <QDomElement>
17 #include "org_custusx_filter_airwaysfromcenterline_Export.h"
22 typedef std::vector< Eigen::Matrix4d >
M4Vector;
25 typedef boost::shared_ptr<class Branch>
BranchPtr;
33 void setTypeToBloodVessel(
bool bloodVessel);
34 Eigen::MatrixXd getCenterlinePositions(
vtkPolyDataPtr centerline_r);
39 vtkPolyDataPtr generateTubes(
double staticRadius = 0,
bool mergeWithOriginalAirways =
false);
44 void smoothAllBranchesForVB();
45 vtkPolyDataPtr addVTKPoints(std::vector< Eigen::Vector3d > positions);
49 Eigen::MatrixXd mCLpoints;
56 double mAirwaysVolumeBoundaryExtention;
57 double mAirwaysVolumeBoundaryExtentionTracheaStart;
58 double mAirwaysVolumeSpacing;
59 bool mBloodVessel =
false;
60 bool mMergeWithOriginalAirways =
false;
64 std::pair<int, double>
findDistanceToLine(Eigen::Vector3d point, Eigen::MatrixXd line);
65 double findDistance(Eigen::MatrixXd p1, Eigen::MatrixXd p2);
71 #endif // CXAIRWAYSFROMCENTERLINE_H