You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/GUIDialog/GUICalculateDialog/GUICalculateWidgetBase.cpp

40 lines
1.5 KiB
C++

#include "GUICalculateWidgetBase.h"
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
#include "FITK_Kernel/FITKAppFramework/FITKComponents.h"
#include "FITK_Interface/FITKInterfaceFlowOF/FITKOFPhysicsManager.h"
#include "FITK_Interface/FITKInterfaceFlowOF/FITKAbstractOFSolver.h"
#include "FITK_Interface/FITKInterfaceFlowOF/FITKOFPhysicsData.h"
#include "FITK_Interface/FITKInterfaceFlowOF/FITKFlowPhysicsHandlerFactory.h"
namespace GUI
{
GUICalculateWidgetBase::GUICalculateWidgetBase(EventOper::ParaWidgetInterfaceOperator * oper, QWidget * parent) :
GUIWidgetBase(parent), _oper(oper)
{
_physicsManager = Interface::FITKOFPhysicsManager::getInstance();
_solverManager = _physicsManager->getSolverManager();
_physicsData = FITKAPP->getGlobalData()->getPhysicsData<Interface::FITKOFPhysicsData>();
_factoryData = FITKAPP->getComponents()->getComponentTByName<Interface::FITKFlowPhysicsHandlerFactory>("FITKFlowPhysicsHandlerFactory");
}
GUICalculateWidgetBase::~GUICalculateWidgetBase()
{
}
//-----------------------------------------------------------------------------------------------------
GUICalculateSubWidgetBase::GUICalculateSubWidgetBase(QWidget* parent)
{
if (parent == nullptr)return;
_calculateWdiget = dynamic_cast<GUICalculateWidgetBase*>(parent->parent());
}
GUICalculateSubWidgetBase::~GUICalculateSubWidgetBase()
{
}
}