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.
41 lines
1.6 KiB
C++
41 lines
1.6 KiB
C++
#include "GUIDialogBase.h"
|
|
#include "GUIDialogManager.h"
|
|
|
|
#include "GUIFrame/MainWindow.h"
|
|
#include "OperatorsInterface/GraphEventOperator.h"
|
|
#include "PostGraphAdaptor/PostGraphObjectBase.h"
|
|
#include "PostGraphAdaptor/PostGraphProperty.h"
|
|
#include "PostGraphAdaptor/PostGraphObjectManager.h"
|
|
|
|
#include "FITK_Interface/FITKInterfaceCFDPost/FITKAbstractCFDPostData.h"
|
|
#include "FITK_Interface/FITKInterfaceCFDPost/FITKCFDPost3DManager.h"
|
|
#include "FITK_Interface/FITKInterfaceCFDPost/FITKCFDPostData.h"
|
|
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
|
|
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
|
|
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"
|
|
|
|
namespace GUI
|
|
{
|
|
GUIDialogBase::GUIDialogBase(EventOper::ParaWidgetInterfaceOperator* oper, QString dialogTitle, QWidget* parent) :
|
|
Core::FITKDialog(parent), _oper(oper)
|
|
{
|
|
_postDataManager = FITKAPP->getGlobalData()->getPostData<Interface::FITKCFDPostData>()->getPostDataManager();
|
|
_postGraphManager = Interface::PostGraphObjectManager::getInstance();
|
|
_mainWin = dynamic_cast<MainWindow*>(FITKAPP->getGlobalData()->getMainWindow());
|
|
|
|
GUIDialogManager::getInstance()->dialogCreated(this, dialogTitle);
|
|
}
|
|
|
|
GUIDialogBase::~GUIDialogBase()
|
|
{
|
|
// 通知管理器对话框已销毁
|
|
GUIDialogManager::getInstance()->dialogDestoried(this);
|
|
}
|
|
|
|
void GUIDialogBase::reRender()
|
|
{
|
|
EventOper::GraphEventOperator* graphOper = FITKOPERREPO->getOperatorT<EventOper::GraphEventOperator>("OperGraphPreprocess");
|
|
if (graphOper == nullptr)return;
|
|
graphOper->reRender();
|
|
}
|
|
} |