Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkTubeGraphEdge.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 Copyright (c) German Cancer Research Center,
5 Division of Medical and Biological Informatics.
6 All rights reserved.
7 
8 This software is distributed WITHOUT ANY WARRANTY; without
9 even the implied warranty of MERCHANTABILITY or FITNESS FOR
10 A PARTICULAR PURPOSE.
11 
12 See LICENSE.txt or http://www.mitk.org for details.
13 
14 ===================================================================*/
15 
16 #ifndef _MITK_TubeGraphEdge_H
17 #define _MITK_TubeGraphEdge_H
18 
19 #include <MitkTubeGraphExports.h>
20 
22 #include "mitkTubeElement.h"
23 #include "mitkTubeGraphVertex.h"
24 
25 namespace mitk
26 {
31  {
32  public:
33  TubeGraphEdge();
34  virtual ~TubeGraphEdge();
35 
40  void SetElementVector(std::vector<TubeElement *> elementVector);
41 
46  std::vector<TubeElement *> GetElementVector();
47 
52  unsigned int GetNumberOfElements() const;
53 
58  void AddTubeElement(TubeElement *element);
59 
65  void AddTubeElementAt(unsigned int position, TubeElement *element);
66 
72  TubeElement *GetTubeElement(unsigned int position);
73 
81  float GetEdgeLength(TubeGraphVertex &source, TubeGraphVertex &target);
82 
90  float GetEdgeAverageDiameter(TubeGraphVertex &source, TubeGraphVertex &target);
91 
97  bool operator==(const TubeGraphEdge &right) const;
98 
99  private:
100  std::vector<TubeElement *> m_ElementVector;
101 
102  }; // class
103 
104 } // namespace
105 #endif
#define MITKTUBEGRAPH_EXPORT
Base Class for Tube Graph Vertices.
DataCollection - Class to facilitate loading/accessing structured data.
Abstract class for elements which describes tubular structur.
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
Base Class for Tube Graph Edges.