2 Star 0 Fork 1

LeoPkuCs/PhysLeo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
QtGuiApplication.h 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
MikeXuPku 提交于 2018-06-13 12:15 . PG multiBodyCollision
#pragma once
#include <QtWidgets/QMainWindow>
#include "Driver.h"
#include "ui_QtGuiApplication.h"
#include "SceneGraphEdit.h"
class QtGuiApplication : public QMainWindow
{
Q_OBJECT
public:
QtGuiApplication(QWidget *parent = Q_NULLPTR);
protected:
void closeEvent(QCloseEvent *event) { Driver::setStatus(DriverStatus::Finished); }
public slots:
void singleStep() { Driver::changeSingleStep(); }
void stop() { Driver::setStatus(DriverStatus::Stopped); }
void run() { Driver::setStatus(DriverStatus::Runnable); }
void reset() { Driver::setStatus(DriverStatus::Reset); }
void noneLearn() { learningNode->setLearnMethod(LearnMethod::Disable); }
void staticLearn() { learningNode->setLearnMethod(LearnMethod::Static); }
void dynamicLearn() { learningNode->setLearnMethod(LearnMethod::Dynamic); }
void hideFemForce() { femForce->hide(); }
void showFemForce() { femForce->show(); }
void hidePdmForce() { pdmForce->hide(); }
void showPdmForce() { pdmForce->show(); }
void hideDeltaForce() { deltaForce->hide(); }
void showDeltaForce() { deltaForce->show(); }
void FEMMesh() { if (surfaceFEM->isHidden())surfaceFEM->show(); else surfaceFEM->hide(); }
void PDMMesh() { if (pointPDM->isHidden())pointPDM->show(); else pointPDM->hide(); }
void setGravity();
void setExtForce();
void setSlipDirection();
void setDamping();
void saveFEM() { dynamic_cast<SurfaceRenderCuda*>(surfaceFEM)->setwritable(std::stoi(ui.saveFrames->text().toStdString())); ui.saveFEMSurf->setStyleSheet("background-color: rgb(10,10,10);"); }
void savePDM() { dynamic_cast<SurfaceRenderCuda*>(surfacePDM)->setwritable(std::stoi(ui.saveFrames->text().toStdString())); ui.savePDMSurf->setStyleSheet("background-color: rgb(10,10,10);"); }
void saveMaterial();
void loadMaterial();
void fixPlane(int index);
void externalForcePlane(int index);
void slipPlane(int index);
void exportLearnData();
private:
Ui::QtGuiApplicationClass ui;
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/LeoPkuCs/PhysLeo.git
git@gitee.com:LeoPkuCs/PhysLeo.git
LeoPkuCs
PhysLeo
PhysLeo
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385