| 31 | |
| 32 | public: |
| 33 | void setUp() override |
| 34 | { |
| 35 | m_Line = mitk::Line<double, 3>(); |
| 36 | |
| 37 | // set up simple 2D Line |
| 38 | m_2DLine = mitk::Line<double, 2>(); |
| 39 | itk::Point<double, 2> p; |
| 40 | p[0] = 1; |
| 41 | p[1] = 2; |
| 42 | m_2DLine.SetPoint(p); |
| 43 | |
| 44 | itk::Vector<double, 2> direction; |
| 45 | direction[0] = 0; |
| 46 | direction[1] = 1; |
| 47 | m_2DLine.SetDirection(direction); |
| 48 | |
| 49 | // set up simple 3D Line |
| 50 | m_3DLine = mitk::Line<double, 3>(); |
| 51 | mitk::Point3D p3D; |
| 52 | mitk::FillVector3D(p3D, 0, 1, 2); |
| 53 | m_3DLine.SetPoint(p3D); |
| 54 | mitk::Vector3D direction3D; |
| 55 | mitk::FillVector3D(direction3D, 4, 5, 6); |
| 56 | m_3DLine.SetDirection(direction3D); |
| 57 | } |
| 58 | |
| 59 | void Line_Instantiation() |
| 60 | { |
nothing calls this directly
no test coverage detected