Medical Imaging Interaction Toolkit  2023.12.00
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 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkTubeGraphEdge_h
14 #define mitkTubeGraphEdge_h
15 
16 #include <MitkTubeGraphExports.h>
17 
19 #include "mitkTubeElement.h"
20 #include "mitkTubeGraphVertex.h"
21 
22 namespace mitk
23 {
28  {
29  public:
30  TubeGraphEdge();
31  virtual ~TubeGraphEdge();
32 
37  void SetElementVector(std::vector<TubeElement *> elementVector);
38 
43  std::vector<TubeElement *> GetElementVector();
44 
49  unsigned int GetNumberOfElements() const;
50 
55  void AddTubeElement(TubeElement *element);
56 
62  void AddTubeElementAt(unsigned int position, TubeElement *element);
63 
69  TubeElement *GetTubeElement(unsigned int position);
70 
78  float GetEdgeLength(TubeGraphVertex &source, TubeGraphVertex &target);
79 
87  float GetEdgeAverageDiameter(TubeGraphVertex &source, TubeGraphVertex &target);
88 
94  bool operator==(const TubeGraphEdge &right) const;
95 
96  private:
97  std::vector<TubeElement *> m_ElementVector;
98 
99  }; // class
100 
101 } // namespace
102 #endif
mitk::TubeGraphVertex
Base Class for Tube Graph Vertices.
Definition: mitkTubeGraphVertex.h:25
mitkTubeGraphVertex.h
MITKTUBEGRAPH_EXPORT
#define MITKTUBEGRAPH_EXPORT
Definition: MitkTubeGraphExports.h:15
mitk::TubeElement
Abstract class for elements which describes tubular structur.
Definition: mitkTubeElement.h:25
mitkTubeElement.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::TubeGraphEdge
Base Class for Tube Graph Edges.
Definition: mitkTubeGraphEdge.h:27
mitk::operator==
MITKCORE_EXPORT bool operator==(const InteractionEvent &a, const InteractionEvent &b)
mitkCircularProfileTubeElement.h
MitkTubeGraphExports.h