35 #include <ctkPluginContext.h>
66 return "Route to target";
71 return "RouteToTargetFilter";
77 "<h3>Route to target.</h3>"
78 "<p>Calculates the route to a selected target in navigated bronchocopy."
79 "The rout starts at the top of trachea and ends at the most adjacent airway centerline"
80 "from the target.</p>"
94 centerline->setValueName(
"Centerline");
95 centerline->setHelp(
"Select centerline");
100 targetPoint->setValueName(
"Target point");
101 targetPoint->setHelp(
"Select point metric input");
102 connect(targetPoint.get(), SIGNAL(dataChanged(QString)),
this, SLOT(pointMetricChangedSlot(QString)));
113 tempMeshStringAdapter->setValueName(
"Centerline mesh");
114 tempMeshStringAdapter->setHelp(
"Generated route to target mesh (vtk-format).");
128 Vector3D targetCoordinate = targetPoint->getCoordinate();
130 mRouteToTarget->processCenterline(centerline);
131 mOutput = mRouteToTarget->findRouteToTarget(targetCoordinate);
141 QString uidCenterline = inputMesh->getUid() +
"_rtt_cl%1";
142 QString nameCenterline = inputMesh->getName()+
"_rtt_cl%1";
148 if (!outputCenterline)
151 outputCenterline->get_rMd_History()->setRegistration(inputMesh->get_rMd());
virtual QString getName() const
virtual void createOutputTypes()
std::vector< SelectDataStringPropertyBasePtr > mInputTypes
boost::shared_ptr< class RouteToTarget > RouteToTargetPtr
virtual void createOptions()
RouteToTargetFilter(ctkPluginContext *pluginContext)
boost::shared_ptr< class VisServices > VisServicesPtr
vtkSmartPointer< class vtkPolyData > vtkPolyDataPtr
PatientModelServicePtr patientService()
void setVtkPolyData(const vtkPolyDataPtr &polyData)
virtual bool postProcess()
virtual void createInputTypes()
virtual QString getType() const
virtual QString getHelp() const
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
std::vector< SelectDataStringPropertyBasePtr > mOutputTypes
static StringPropertySelectPointMetricPtr New(PatientModelServicePtr patientModelService)
static StringPropertySelectMeshPtr New(PatientModelServicePtr patientModelService)
boost::shared_ptr< class StringPropertySelectPointMetric > StringPropertySelectPointMetricPtr
boost::shared_ptr< class Mesh > MeshPtr
boost::shared_ptr< class StringPropertySelectMesh > StringPropertySelectMeshPtr
boost::shared_ptr< class PointMetric > PointMetricPtr