29 BaseData *p_BaseData =
dynamic_cast< BaseData*
>( sp_NetworkData.GetPointer() );
33 MITK_WARN <<
"ConnectomicsHistogramCache::operator[] with null connectomics network data called";
43 for(
auto iter = cache.begin(); iter != cache.end(); iter++)
46 BaseData *p_tmp = e->baseData.GetPointer();
48 if(p_tmp == p_BaseData)
55 if( p_BaseData->
GetMTime() > e->m_LastUpdateTime.GetMTime())
72 if (dynamic_cast<ConnectomicsNetwork*>(p_BaseData))
78 MITK_WARN <<
"not supported: " << p_BaseData->GetNameOfClass();
82 elementToUpdate->baseData = p_BaseData;
83 cache.push_front(elementToUpdate);
90 elementToUpdate->m_LastUpdateTime.Modified();
ConnectomicsHistogramsContainer * GetHistograms()
Base of all data objects.
ConnectomicsHistogramCache()
void ComputeFromBaseData(BaseData *baseData) override
virtual unsigned long GetMTime() const override
Get the modified time of the last change of the contents this data object or its geometry.
Provides a method to cache network histograms.
ConnectomicsHistogramsContainer * operator[](ConnectomicsNetwork::Pointer sp_NetworkData)
~ConnectomicsHistogramCache()