/** * @RDE_HEADER@ * GUI Plugin for AreaEffectSimulation - Contamination * $Id$ * $HeadURL$ * $Author$ * Created by Patric Karwat, SLSE, 2016-07-07 */ #include "aes_base_gui_plugin.h" #include #include #include #include #include #include namespace AreaEffectSimulation { AesBaseInterface::AesBaseInterface(LtsSession::LtsSession *session, NGL::INGLLogger &logger) : GuiPluginBase::Interface(session, logger) , m_dtc(nullptr) , m_ftc(nullptr) , m_pdmDtc(nullptr) , m_pdmGuiIfc(nullptr) , m_sitmapGuIfc(nullptr) {} bool AesBaseInterface::fetchInterfaces() { if (!m_session->getDtc(m_dtc)) return false; if (!m_session->getFtc(m_ftc)) return false; if (!m_session->getDtc(m_pdmDtc)) return false; if (!m_session->getForeignGuiInterface(m_pdmGuiIfc)) return false; if (!m_session->getForeignGuiInterface(m_ppmGuiCbxIfc)) return false; m_session->getForeignGuiInterface(m_sitmapGuIfc); // optional return true; } void AesBaseInterface::clearInterfaces() { m_ppmGuiCbxIfc = nullptr; m_sitmapGuIfc = nullptr; m_pdmGuiIfc = nullptr; m_pdmDtc = nullptr; m_ftc = nullptr; m_dtc = nullptr; } } // namespace AreaEffectSimulation