MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitk::USNavigationTargetIntersectionFilter Class Reference

Calculates the intersection between a mitk::Surface and a line. Surface and line have to be set by SetTargetSurface() and SetLine. CalculateIntersection() can be called then to calculate the intersection. The results can be got afterwards by GetIsIntersecting(), GetIntersectionPoint(), GetIntersectionNearestSurfacePointId() and GetDistanceToIntersection(). More...

#include <mitkUSNavigationTargetIntersectionFilter.h>

Inheritance diagram for mitk::USNavigationTargetIntersectionFilter:

Public Member Functions

 mitkClassMacroItkParent (USNavigationTargetIntersectionFilter, itk::Object)
 
 itkNewMacro (Self)
 
 itkSetMacro (TargetSurface, itk::SmartPointer< mitk::Surface >)
 
void SetLine (itk::SmartPointer< mitk::PointSet > line)
 
 itkGetMacro (IsIntersecting, bool)
 
mitk::Point3D GetIntersectionPoint ()
 
int GetIntersectionNearestSurfacePointId ()
 
double GetDistanceToIntersection ()
 
void CalculateIntersection ()
 Does the intersection calculation. SetTargetSurface() and SetLine() have to be called before.
 

Protected Member Functions

 USNavigationTargetIntersectionFilter ()
 
 ~USNavigationTargetIntersectionFilter () override
 

Protected Attributes

itk::SmartPointer< mitk::Surface > m_TargetSurface
 
vtkSmartPointer< vtkPolyData > m_TargetSurfaceVtk
 
double m_LinePoint1 [3]
 
double m_LinePoint2 [3]
 
bool m_IsIntersecting
 
double m_IntersectionPoint [3]
 
int m_IntersectionCellId
 
double m_Distance
 

Detailed Description

Calculates the intersection between a mitk::Surface and a line. Surface and line have to be set by SetTargetSurface() and SetLine. CalculateIntersection() can be called then to calculate the intersection. The results can be got afterwards by GetIsIntersecting(), GetIntersectionPoint(), GetIntersectionNearestSurfacePointId() and GetDistanceToIntersection().

Definition at line 40 of file mitkUSNavigationTargetIntersectionFilter.h.

Constructor & Destructor Documentation

◆ USNavigationTargetIntersectionFilter()

mitk::USNavigationTargetIntersectionFilter::USNavigationTargetIntersectionFilter ( )
protected

Definition at line 24 of file mitkUSNavigationTargetIntersectionFilter.cpp.

◆ ~USNavigationTargetIntersectionFilter()

mitk::USNavigationTargetIntersectionFilter::~USNavigationTargetIntersectionFilter ( )
overrideprotected

Definition at line 28 of file mitkUSNavigationTargetIntersectionFilter.cpp.

Member Function Documentation

◆ CalculateIntersection()

void mitk::USNavigationTargetIntersectionFilter::CalculateIntersection ( )

Does the intersection calculation. SetTargetSurface() and SetLine() have to be called before.

Definition at line 72 of file mitkUSNavigationTargetIntersectionFilter.cpp.

◆ GetDistanceToIntersection()

double mitk::USNavigationTargetIntersectionFilter::GetDistanceToIntersection ( )
Returns
distance between the first line point and the intersection point

Definition at line 67 of file mitkUSNavigationTargetIntersectionFilter.cpp.

◆ GetIntersectionNearestSurfacePointId()

int mitk::USNavigationTargetIntersectionFilter::GetIntersectionNearestSurfacePointId ( )
Returns
id of the nearest vertex of the target to the interseciont, the result is not defined if no intersection occurred

Definition at line 58 of file mitkUSNavigationTargetIntersectionFilter.cpp.

◆ GetIntersectionPoint()

mitk::Point3D mitk::USNavigationTargetIntersectionFilter::GetIntersectionPoint ( )
Returns
the position where the intersection occurred, the result is not defined if no intersection occurred

Definition at line 48 of file mitkUSNavigationTargetIntersectionFilter.cpp.

◆ itkGetMacro()

mitk::USNavigationTargetIntersectionFilter::itkGetMacro ( IsIntersecting ,
bool  )
Returns
if line and surface are intersecting

◆ itkNewMacro()

mitk::USNavigationTargetIntersectionFilter::itkNewMacro ( Self )

◆ itkSetMacro()

mitk::USNavigationTargetIntersectionFilter::itkSetMacro ( TargetSurface ,
itk::SmartPointer< mitk::Surface >  )

◆ mitkClassMacroItkParent()

mitk::USNavigationTargetIntersectionFilter::mitkClassMacroItkParent ( USNavigationTargetIntersectionFilter ,
itk::Object  )

◆ SetLine()

void mitk::USNavigationTargetIntersectionFilter::SetLine ( itk::SmartPointer< mitk::PointSet > line)

Definition at line 32 of file mitkUSNavigationTargetIntersectionFilter.cpp.

Member Data Documentation

◆ m_Distance

double mitk::USNavigationTargetIntersectionFilter::m_Distance
protected

Definition at line 86 of file mitkUSNavigationTargetIntersectionFilter.h.

◆ m_IntersectionCellId

int mitk::USNavigationTargetIntersectionFilter::m_IntersectionCellId
protected

Definition at line 85 of file mitkUSNavigationTargetIntersectionFilter.h.

◆ m_IntersectionPoint

double mitk::USNavigationTargetIntersectionFilter::m_IntersectionPoint[3]
protected

Definition at line 84 of file mitkUSNavigationTargetIntersectionFilter.h.

◆ m_IsIntersecting

bool mitk::USNavigationTargetIntersectionFilter::m_IsIntersecting
protected

Definition at line 83 of file mitkUSNavigationTargetIntersectionFilter.h.

◆ m_LinePoint1

double mitk::USNavigationTargetIntersectionFilter::m_LinePoint1[3]
protected

Definition at line 80 of file mitkUSNavigationTargetIntersectionFilter.h.

◆ m_LinePoint2

double mitk::USNavigationTargetIntersectionFilter::m_LinePoint2[3]
protected

Definition at line 81 of file mitkUSNavigationTargetIntersectionFilter.h.

◆ m_TargetSurface

itk::SmartPointer<mitk::Surface> mitk::USNavigationTargetIntersectionFilter::m_TargetSurface
protected

Definition at line 78 of file mitkUSNavigationTargetIntersectionFilter.h.

◆ m_TargetSurfaceVtk

vtkSmartPointer<vtkPolyData> mitk::USNavigationTargetIntersectionFilter::m_TargetSurfaceVtk
protected

Definition at line 79 of file mitkUSNavigationTargetIntersectionFilter.h.


The documentation for this class was generated from the following files: