|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Base Class for Tube Graph Edges. More...
#include <mitkTubeGraphEdge.h>
Public Member Functions | |
| TubeGraphEdge () | |
| virtual | ~TubeGraphEdge () |
| void | SetElementVector (std::vector< TubeElement *> elementVector) |
| std::vector< TubeElement * > | GetElementVector () |
| unsigned int | GetNumberOfElements () const |
| void | AddTubeElement (TubeElement *element) |
| void | AddTubeElementAt (unsigned int position, TubeElement *element) |
| TubeElement * | GetTubeElement (unsigned int position) |
| float | GetEdgeLength (TubeGraphVertex &source, TubeGraphVertex &target) |
| float | GetEdgeAverageDiameter (TubeGraphVertex &source, TubeGraphVertex &target) |
| bool | operator== (const TubeGraphEdge &right) const |
Base Class for Tube Graph Edges.
Definition at line 27 of file mitkTubeGraphEdge.h.
| mitk::TubeGraphEdge::TubeGraphEdge | ( | ) |
Definition at line 15 of file mitkTubeGraphEdge.cpp.
|
virtual |
Definition at line 19 of file mitkTubeGraphEdge.cpp.
| void mitk::TubeGraphEdge::AddTubeElement | ( | mitk::TubeElement * | element | ) |
Adds a new TubeElement at the end of this edge.
| element | The new TubeElement. |
Definition at line 44 of file mitkTubeGraphEdge.cpp.
Referenced by mitk::TubeGraphIO::Read().
| void mitk::TubeGraphEdge::AddTubeElementAt | ( | unsigned int | position, |
| TubeElement * | element | ||
| ) |
Adds a new TubeElement at the given position.
| position | The position for the TubeElement. |
| element | The new TubeElement. |
Definition at line 49 of file mitkTubeGraphEdge.cpp.
| float mitk::TubeGraphEdge::GetEdgeAverageDiameter | ( | mitk::TubeGraphVertex & | source, |
| mitk::TubeGraphVertex & | target | ||
| ) |
Calculates the average diameter of tube graph edge inc. the source and target vertex.
| source | the source vertex of the edge |
| target | the target vertex of the edge |
Definition at line 126 of file mitkTubeGraphEdge.cpp.
References GetNumberOfElements(), mitk::TubeGraphVertex::GetTubeElement(), and GetTubeElement().
Referenced by mitk::TubeGraph::GetThickestTube().
| float mitk::TubeGraphEdge::GetEdgeLength | ( | mitk::TubeGraphVertex & | source, |
| mitk::TubeGraphVertex & | target | ||
| ) |
Calculates the length of tube graph edge inc. the source and target vertex..
| source | the source vertex of the edge |
| target | the target vertex of the edge |
Definition at line 62 of file mitkTubeGraphEdge.cpp.
References GetNumberOfElements(), mitk::TubeGraphVertex::GetTubeElement(), and GetTubeElement().
| std::vector< mitk::TubeElement * > mitk::TubeGraphEdge::GetElementVector | ( | ) |
Returns the vector which contains all TubeElements.
Definition at line 29 of file mitkTubeGraphEdge.cpp.
Referenced by mitk::TubeGraphVtkMapper3D::GeneratePolyDataForTube().
| unsigned int mitk::TubeGraphEdge::GetNumberOfElements | ( | ) | const |
Returns the number of TubeElements which are contained in this tube.
Definition at line 39 of file mitkTubeGraphEdge.cpp.
Referenced by mitk::TubeGraphVtkMapper3D::GeneratePolyDataForTube(), GetEdgeAverageDiameter(), GetEdgeLength(), and GetTubeElement().
| mitk::TubeElement * mitk::TubeGraphEdge::GetTubeElement | ( | unsigned int | position | ) |
Returns the TubeElement at the given position.
| position | The position of the Element. |
Definition at line 54 of file mitkTubeGraphEdge.cpp.
References GetNumberOfElements().
Referenced by GetEdgeAverageDiameter(), and GetEdgeLength().
| bool mitk::TubeGraphEdge::operator== | ( | const TubeGraphEdge & | right | ) | const |
Comparison operation between this object and the given object.
| right | The object to compare with. |
Definition at line 150 of file mitkTubeGraphEdge.cpp.
| void mitk::TubeGraphEdge::SetElementVector | ( | std::vector< TubeElement *> | elementVector | ) |
Set the vector which contains all TubeElements.
| elementVector | Vector with all TubeElements |
Definition at line 34 of file mitkTubeGraphEdge.cpp.