Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkShortestPathNode.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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __itkShortestPathNode_h_
17 #define __itkShortestPathNode_h_
18 
20 
21 namespace itk
22 {
23  typedef double DistanceType; // Type to declare the costs
24  typedef unsigned int
25  NodeNumType; // Type for Node Numeration: unsignend int for up to 4.2 billion pixel in 32Bit system
26 
28  {
29  public:
30  DistanceType distance; // minimal costs from StartPoint to this pixel
31  DistanceType distAndEst; // Distance+Estimated Distnace to target
32  NodeNumType prevNode; // previous node. Important to find the Shortest Path
33  NodeNumType mainListIndex; // Indexnumber of this node in m_Nodes
34  bool closed; // determines if this node is closes, so its optimal path to startNode is known
35  };
36 
37  // bool operator<(const ShortestPathNode &a) const;
38  // bool operator==(const ShortestPathNode &a) const;
39 }
40 
41 #endif
double DistanceType
#define MITKGRAPHALGORITHMS_EXPORT
unsigned int NodeNumType