57 lines
2.3 KiB
C++
57 lines
2.3 KiB
C++
#ifndef STRUCTURE_MODEL_H
|
|
#define STRUCTURE_MODEL_H
|
|
|
|
#include "DataManager.h"
|
|
#include "InlandModelGlobal.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
class INLAND_DLL_API_EXPORTS StructureModel
|
|
{
|
|
public:
|
|
static StructureModel *getStructureModelInstance();
|
|
static void destroy();
|
|
static StructureModel *getStructureModelpPtr();
|
|
void update2dToJson(json &outjson);
|
|
void structure_show_tree(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
|
|
void structure_create_section(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void structure_create_cal(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void structure_cal(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void structure_delete_cal(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void structure_section_editor(json &outjson);
|
|
void structure_scantlings_editor(json &outjson);
|
|
void structure_strength_editor(json &outjson);
|
|
void structure_twbg_editor(json &outjsone);
|
|
void structure_patp_editor(json &outjson);
|
|
void structure_zcmt_editor(json &outjson);
|
|
void structure_cprt_editor(json &outjson);
|
|
|
|
//工具栏计算器
|
|
void calculate_section(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void calculate_strut(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void calculate_diagonal(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void calculate_strut_open(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void calculate_section_open(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
void calculate_diagonal_open(int &errorCode, QString &outMsg, QString &data, const QString &message);
|
|
|
|
private:
|
|
StructureModel();
|
|
~StructureModel();
|
|
StructureModel(const StructureModel &) = delete;
|
|
StructureModel &operator=(const StructureModel &) = delete;
|
|
|
|
private:
|
|
static StructureModel *m_pStructureModel;
|
|
DataManager *m_pDataManager = nullptr;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // Structure_MODEL_H
|