Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkConnectomicsHistogramCache.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 
17 
18 #ifndef MITKCONNECTOMICSHISTOGRAMCACHE_H
19 #define MITKCONNECTOMICSHISTOGRAMCACHE_H
20 
21 #include "mitkSimpleHistogram.h"
23 
27 
28 #include <MitkConnectomicsExports.h>
29 
30 namespace mitk {
31 
37  {
38  public:
39 
40  void ComputeFromBaseData(BaseData* baseData)
41  {
45  }
46 
48  {
49  return &m_BetweennessHistogram;
50  }
51 
53  {
54  return &m_DegreeHistogram;
55  }
56 
58  {
60  }
61 
65  };
66 
67  class MITKCONNECTOMICS_EXPORT ConnectomicsHistogramCache : public SimpleHistogramCache
68  {
69  public:
70 
73 
75 
76 
77  protected:
78 
79  // purposely not implemented
80  SimpleHistogram *operator[](BaseData::Pointer sp_BaseData);
81 
82  };
83 
84 
85 
86  class ConnectomicsHistogramsCacheElement : public ConnectomicsHistogramCache::Element
87  {
88  public:
89 
90  void ComputeFromBaseData(BaseData* baseData) override
91  {
93  }
94 
96  {
97  return &m_Container;
98  }
99 
101 
102  private:
103  ConnectomicsHistogramBase* GetHistogram() override
104  {
105  return nullptr;
106  }
107  };
108 
109 
110 
111 }
112 
113 #endif // MITKCONNECTOMICSHISTOGRAMCACHE_H
ConnectomicsBetweennessHistogram * GetBetweennessHistogram()
ConnectomicsDegreeHistogram * GetDegreeHistogram()
ConnectomicsHistogramsContainer * GetHistograms()
A class to calculate and store the betweenness of each node.
Base of all data objects.
Definition: mitkBaseData.h:39
DataCollection - Class to facilitate loading/accessing structured data.
Superclass for histograms working with connectomic networks.
void ComputeFromBaseData(BaseData *baseData) override
ConnectomicsShortestPathHistogram * GetShortestPathHistogram()
A class to calculate and store the degree of each node.
virtual void ComputeFromBaseData(BaseData *source) override
Creates a new histogram from the source.
Abstract superclass for histograms with double values. Classes which are deriving from this class can...
ConnectomicsBetweennessHistogram m_BetweennessHistogram
Provides a method to cache network histograms.
A class to calculate and store the shortest path between each pair of nodes.
ConnectomicsShortestPathHistogram m_ShortestPathHistogram