Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::TubeGraphEdge Class Reference

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)
 
TubeElementGetTubeElement (unsigned int position)
 
float GetEdgeLength (TubeGraphVertex &source, TubeGraphVertex &target)
 
float GetEdgeAverageDiameter (TubeGraphVertex &source, TubeGraphVertex &target)
 
bool operator== (const TubeGraphEdge &right) const
 

Detailed Description

Base Class for Tube Graph Edges.

Definition at line 30 of file mitkTubeGraphEdge.h.

Constructor & Destructor Documentation

mitk::TubeGraphEdge::TubeGraphEdge ( )

Definition at line 19 of file mitkTubeGraphEdge.cpp.

mitk::TubeGraphEdge::~TubeGraphEdge ( )
virtual

Definition at line 23 of file mitkTubeGraphEdge.cpp.

Member Function Documentation

void mitk::TubeGraphEdge::AddTubeElement ( mitk::TubeElement element)

Adds a new TubeElement at the end of this edge.

Parameters
elementThe new TubeElement.

Definition at line 48 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.

Parameters
positionThe position for the TubeElement.
elementThe new TubeElement.

Definition at line 53 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.

Parameters
sourcethe source vertex of the edge
targetthe target vertex of the edge
Returns
the average diameter of the edge

Definition at line 130 of file mitkTubeGraphEdge.cpp.

References mitk::TubeGraphVertex::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..

Parameters
sourcethe source vertex of the edge
targetthe target vertex of the edge
Returns
the length of the edge in mm

Definition at line 66 of file mitkTubeGraphEdge.cpp.

References mitk::TubeGraphVertex::GetTubeElement().

std::vector< mitk::TubeElement * > mitk::TubeGraphEdge::GetElementVector ( )

Returns the vector which contains all TubeElements.

Returns
vector with all TubeElements.

Definition at line 33 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.

Returns
Number of TubeElements.

Definition at line 43 of file mitkTubeGraphEdge.cpp.

Referenced by mitk::TubeGraphVtkMapper3D::GeneratePolyDataForTube().

mitk::TubeElement * mitk::TubeGraphEdge::GetTubeElement ( unsigned int  position)

Returns the TubeElement at the given position.

Parameters
positionThe position of the Element.
Returns
The TubeElement at the given position.

Definition at line 58 of file mitkTubeGraphEdge.cpp.

bool mitk::TubeGraphEdge::operator== ( const TubeGraphEdge right) const

Comparison operation between this object and the given object.

Parameters
rightThe object to compare with.
Returns
true, if the object is the same;false, if not.

Definition at line 154 of file mitkTubeGraphEdge.cpp.

void mitk::TubeGraphEdge::SetElementVector ( std::vector< TubeElement * >  elementVector)

Set the vector which contains all TubeElements.

Parameters
elementVectorVector with all TubeElements

Definition at line 38 of file mitkTubeGraphEdge.cpp.


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