|
|
|
@ -13,7 +13,6 @@
|
|
|
|
#include "nmObjLineFault.h"
|
|
|
|
#include "nmObjLineFault.h"
|
|
|
|
|
|
|
|
|
|
|
|
#include "nmPlotGraphicBinder.h"
|
|
|
|
#include "nmPlotGraphicBinder.h"
|
|
|
|
#include "nmDataFault.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZX_DEFINE_DYNAMIC(nObjLineFault, nmObjLineFault)
|
|
|
|
ZX_DEFINE_DYNAMIC(nObjLineFault, nmObjLineFault)
|
|
|
|
|
|
|
|
|
|
|
|
@ -390,7 +389,6 @@ void nmObjLineFault::onDeserialize(ZxSerializer* ser) {
|
|
|
|
this->setFaultFlowModel(flowModel);
|
|
|
|
this->setFaultFlowModel(flowModel);
|
|
|
|
this->setFaultLeakage(faultLeakage);
|
|
|
|
this->setFaultLeakage(faultLeakage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void nmObjLineFault::onSaveTempl(ZxSerializer* ser) {
|
|
|
|
void nmObjLineFault::onSaveTempl(ZxSerializer* ser) {
|
|
|
|
nmObjBase::onSaveTempl(ser);
|
|
|
|
nmObjBase::onSaveTempl(ser);
|
|
|
|
int flowModel = getFaultFlowModel();
|
|
|
|
int flowModel = getFaultFlowModel();
|
|
|
|
@ -409,9 +407,3 @@ void nmObjLineFault::onLoadTempl(ZxSerializer* ser) {
|
|
|
|
this->setFaultFlowModel(flowModel);
|
|
|
|
this->setFaultFlowModel(flowModel);
|
|
|
|
this->setFaultLeakage(faultLeakage);
|
|
|
|
this->setFaultLeakage(faultLeakage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
nmDataFault* nmObjLineFault::getFaultData() const {
|
|
|
|
|
|
|
|
if (m_pGraphicBinder)
|
|
|
|
|
|
|
|
return m_pGraphicBinder->getFaultDataFor(const_cast<nmObjLineFault*>(this));
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|