Skip to content
Snippets Groups Projects
Commit 1cd51188 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

use PolyPtr

parent c2a8b689
No related branches found
No related tags found
1 merge request!2715Replace single crossCorrelationLength parameter by CrosscorrelationModel individual for each interface
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "GUI/Model/Descriptor/DoubleProperty.h" #include "GUI/Model/Descriptor/DoubleProperty.h"
#include "GUI/Model/Descriptor/PolyPtr.h" #include "GUI/Model/Descriptor/PolyPtr.h"
#include "GUI/Model/Sample/CrosscorrelationItems.h"
#include "GUI/Model/Sample/InterlayerItems.h" #include "GUI/Model/Sample/InterlayerItems.h"
#include "GUI/Model/Sample/RoughnessCatalog.h" #include "GUI/Model/Sample/RoughnessCatalog.h"
...@@ -35,9 +36,17 @@ public: ...@@ -35,9 +36,17 @@ public:
InterlayerItem* certainInterlayerModel() const { return m_interlayer_model.certainItem(); } InterlayerItem* certainInterlayerModel() const { return m_interlayer_model.certainItem(); }
void setInterlayerModelType(InterlayerItem* p) { m_interlayer_model.setCertainItem(p); } void setInterlayerModelType(InterlayerItem* p) { m_interlayer_model.setCertainItem(p); }
PolyPtr<CrosscorrelationItem, CrosscorrelationCatalog>& crossrorrModelSelection()
{
return m_crosscorr_model;
}
CrosscorrelationItem* certainCrosscorrModel() const { return m_crosscorr_model.certainItem(); }
void setCrosscorrModelType(CrosscorrelationItem* p) { m_crosscorr_model.setCertainItem(p); }
protected: protected:
RoughnessItem(); RoughnessItem();
PolyPtr<InterlayerItem, InterlayerCatalog> m_interlayer_model; PolyPtr<InterlayerItem, InterlayerCatalog> m_interlayer_model;
PolyPtr<CrosscorrelationItem, CrosscorrelationCatalog> m_crosscorr_model;
}; };
class K_CorrelationRoughnessItem : public RoughnessItem { class K_CorrelationRoughnessItem : public RoughnessItem {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment