下个界面尝试增加QGIS的栅格展示界面,创建了RasterTool 工具
parent
dd879b9a3c
commit
1be52639bc
|
@ -1,392 +0,0 @@
|
|||
#include "meshDataExchangePlugin.h"
|
||||
|
||||
#include "BDFdataExchange.h"
|
||||
#include "CGNSdataExchange.h"
|
||||
#include "CNTMdataExchange.h"
|
||||
#include "INPdataExchange.h"
|
||||
#include "IO/IOConfig.h"
|
||||
#include "KEYdataExchange.h"
|
||||
#include "ModelData/modelDataBase.h"
|
||||
#include "ModuleBase/ThreadControl.h"
|
||||
#include "ModuleBase/ThreadTaskManager.h"
|
||||
#include "MSHdataExchange.h"
|
||||
#include "NEUdataExchange.h"
|
||||
#include "PDBdataExchange.h"
|
||||
#include "SU2dataExchange.h"
|
||||
#include "VTKdataExchange.h"
|
||||
#include "FoamDataExchange.h"
|
||||
#include "PointClouddataExchange.h"
|
||||
|
||||
#include <QFileInfo>
|
||||
|
||||
GUI::MainWindow* MeshData::MeshDataExchangePlugin::_mainwindow = nullptr;
|
||||
|
||||
namespace MeshData {
|
||||
MeshDataExchangePlugin::MeshDataExchangePlugin(GUI::MainWindow* m)
|
||||
{
|
||||
_describe = "MeshDataExchangePlugin Installed Successfully";
|
||||
_mainwindow = m;
|
||||
}
|
||||
|
||||
bool MeshDataExchangePlugin::install()
|
||||
{
|
||||
IO::IOConfigure::RegisterMeshImporter("CGNS(*.cgns)", CGNSimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("Fluent(*.msh)", MSHimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("OpenFOAM(*.foam)", FOAMimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("Gambit(*.neu)", NEUimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("STL(*.stl)", VTK_DAT_STL_importMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("Tecplot(*.dat)", VTK_DAT_STL_importMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("VTK(*.vtk)", VTK_DAT_STL_importMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("Abaqus(*.inp)", INPimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("CNTM(*.cntm)", CNTMimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("SU2(*.su2)", SU2importMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("LS-DYNA(*.k)", KEYimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("PDB(*.pdb)", PDBimportMesh);
|
||||
IO::IOConfigure::RegisterMeshImporter("Patran(*.bdf)", BDFimportMesh);
|
||||
IO::IOConfigure::RegisterPclImporter("VegetationPointCloud(*.xyz)", XYZimportPCL); // 点云
|
||||
IO::IOConfigure::RegisterPclImporter("Point Cloud Data(*.pcd)",PCDimportPCL);
|
||||
IO::IOConfigure::RegisterPclImporter("Polygon File Format(*.ply)",PLYimportPCL);
|
||||
|
||||
IO::IOConfigure::RegisterMeshExporter("CGNS(*.cgns)", CGNSexportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("Fluent(*.msh)", MSHexportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("OpenFOAM(*.foam)", FOAMexportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("Gambit(*.neu)", NEUexportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("STL(*.stl)", VTK_DAT_STL_exportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("Tecplot(*.dat)", VTK_DAT_STL_exportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("VTK(*.vtk)", VTK_DAT_STL_exportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("Abaqus(*.inp)", INPexportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("CNTM(*.cntm)", CNTMexportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("SU2(*.su2)", SU2exportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("LS-DYNA(*.key)", KEYexportMesh);
|
||||
IO::IOConfigure::RegisterMeshExporter("PDB(*.pdb)", PDBexportMesh);
|
||||
IO::IOConfigure::RegisterPclExporter("Point Cloud Data(*.pcd)",PCDexportPCL);
|
||||
IO::IOConfigure::RegisterPclExporter("vtk polygon Data(*.ply)",PLYexportPCL);
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MeshDataExchangePlugin::uninstall()
|
||||
{
|
||||
IO::IOConfigure::RemoveMeshImporter("CGNS(*.cgns)");
|
||||
IO::IOConfigure::RemoveMeshImporter("Fluent(*.msh)");
|
||||
IO::IOConfigure::RemoveMeshImporter("Gambit(*.neu)");
|
||||
IO::IOConfigure::RemoveMeshImporter("STL(*.stl)");
|
||||
IO::IOConfigure::RemoveMeshImporter("Tecplot(*.dat)");
|
||||
IO::IOConfigure::RemoveMeshImporter("VTK(*.vtk)");
|
||||
IO::IOConfigure::RemoveMeshImporter("Abaqus(*.inp)");
|
||||
IO::IOConfigure::RemoveMeshImporter("CNTM(*.cntm)");
|
||||
IO::IOConfigure::RemoveMeshImporter("SU2(*.su2)");
|
||||
IO::IOConfigure::RemoveMeshImporter("LS-DYNA(*.key)");
|
||||
IO::IOConfigure::RemoveMeshImporter("PDB(*.pdb)");
|
||||
IO::IOConfigure::RemoveMeshImporter("Patran(*.bdf)");
|
||||
IO::IOConfigure::RemovePclImporter("VegetationPointCloud(*.xyz)"); // 点云
|
||||
IO::IOConfigure::RemovePclImporter("Point Cloud Data(*.pcd)");
|
||||
IO::IOConfigure::RemovePclImporter("Polygon File Format(*.ply)");
|
||||
|
||||
IO::IOConfigure::RemoveMeshExporter("CGNS(*.cgns)");
|
||||
IO::IOConfigure::RemoveMeshExporter("Fluent(*.msh)");
|
||||
IO::IOConfigure::RemoveMeshExporter("Gambit(*.neu)");
|
||||
IO::IOConfigure::RemoveMeshExporter("STL(*.stl)");
|
||||
IO::IOConfigure::RemoveMeshExporter("Tecplot(*.dat)");
|
||||
IO::IOConfigure::RemoveMeshExporter("VTK(*.vtk)");
|
||||
IO::IOConfigure::RemoveMeshExporter("Abaqus(*.inp)");
|
||||
IO::IOConfigure::RemoveMeshExporter("CNTM(*.cntm)");
|
||||
IO::IOConfigure::RemoveMeshExporter("SU2(*.su2)");
|
||||
IO::IOConfigure::RemoveMeshExporter("LS-DYNA(*.key)");
|
||||
IO::IOConfigure::RemovePclExporter("PDB(*.pdb)");
|
||||
IO::IOConfigure::RemovePclExporter("vtk polygon Data(*.ply)");
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void MeshDataExchangePlugin::reTranslate(QString) {}
|
||||
|
||||
GUI::MainWindow* MeshDataExchangePlugin::getMWpt()
|
||||
{
|
||||
return _mainwindow;
|
||||
}
|
||||
} // namespace MeshData
|
||||
|
||||
void Register(GUI::MainWindow* m, QList<Plugins::PluginBase*>* ps)
|
||||
{
|
||||
Plugins::PluginBase* p = new MeshData::MeshDataExchangePlugin(m);
|
||||
ps->append(p);
|
||||
}
|
||||
|
||||
bool CGNSimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto CGNSreader = new MeshData::CGNSdataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(CGNSreader);
|
||||
emit tc->threadStart(); // emit CGNSreader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CGNSexportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto CGNSwriter = new MeshData::CGNSdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(CGNSwriter);
|
||||
emit tc->threadStart(); // emit CGNSwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MSHimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto MSHreader = new MeshData::MSHdataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(MSHreader);
|
||||
emit tc->threadStart(); // emit MSHreader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MSHexportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto MSHwriter = new MeshData::MSHdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(MSHwriter);
|
||||
emit tc->threadStart(); // emit MSHwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NEUimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto NEUreader = new MeshData::NEUdataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(NEUreader);
|
||||
emit tc->threadStart(); // emit NEUreader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NEUexportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto NEUwriter = new MeshData::NEUdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(NEUwriter);
|
||||
emit tc->threadStart(); // emit NEUwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool VTK_DAT_STL_importMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto VTK_DAT_STL_reader = new MeshData::VTKdataExchange(
|
||||
AbFileName, MeshData::MESH_READ, MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(VTK_DAT_STL_reader);
|
||||
emit tc->threadStart(); // emit VTK_DAT_STL_reader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool VTK_DAT_STL_exportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto VTK_DAT_STL_writer = new MeshData::VTKdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(VTK_DAT_STL_writer);
|
||||
emit tc->threadStart(); // emit VTK_DAT_STL_writer->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool INPimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto INPreader = new MeshData::INPdataExchange(
|
||||
AbFileName, MeshData::MESH_READ, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(INPreader);
|
||||
emit tc->threadStart(); // emit INPreader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool INPexportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto INPwriter = new MeshData::INPdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(INPwriter);
|
||||
emit tc->threadStart(); // emit INPwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CNTMimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto CNTMreader = new MeshData::CNTMdataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(CNTMreader);
|
||||
emit tc->threadStart(); // emit CNTMreader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CNTMexportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto CNTMwriter = new MeshData::CNTMdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(CNTMwriter);
|
||||
emit tc->threadStart(); // emit CNTMwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SU2importMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
QFileInfo info(AbFileName);
|
||||
QString fileName = info.fileName();
|
||||
|
||||
if(fileName.startsWith("xxx")) // su2的另外一种格式
|
||||
{
|
||||
AnotherSU2importMesh(AbFileName);
|
||||
} else // su2的正常格式
|
||||
{
|
||||
auto SU2reader = new MeshData::SU2dataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(SU2reader);
|
||||
emit tc->threadStart(); // emit SU2reader->start();
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool SU2exportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto SU2writer = new MeshData::CNTMdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(SU2writer);
|
||||
emit tc->threadStart(); // emit SU2writer->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AnotherSU2importMesh(QString AbFileName)
|
||||
{
|
||||
auto SU2reader = new MeshData::SU2dataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(SU2reader);
|
||||
emit tc->threadStart();
|
||||
// emit SU2reader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool AnotherSU2exportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto SU2writer = new MeshData::CNTMdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(SU2writer);
|
||||
emit tc->threadStart();
|
||||
// emit SU2writer->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool KEYimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto KEYreader = new MeshData::KEYdataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(KEYreader);
|
||||
emit tc->threadStart();
|
||||
// emit KEYreader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool KEYexportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto KEYwirter = new MeshData::KEYdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(KEYwirter);
|
||||
emit tc->threadStart();
|
||||
// emit KEYwirter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PDBimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto PDBReader = new MeshData::PDBdataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(PDBReader);
|
||||
emit tc->threadStart();
|
||||
/*emit PDBReader->start();*/
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI BDFimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto PDBReader = new MeshData::BDFDataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(PDBReader);
|
||||
emit tc->threadStart();
|
||||
/*emit PDBReader->start();*/
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PDBexportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto PDBWriter = new MeshData::PDBdataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(PDBWriter);
|
||||
emit tc->threadStart();
|
||||
// emit PDBWriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI FOAMimportMesh(QString AbFileName, int modelId)
|
||||
{
|
||||
auto foamReader = new MeshData::FoamDataExchange(AbFileName, MeshData::MESH_READ,
|
||||
MeshData::MeshDataExchangePlugin::getMWpt());
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(foamReader);
|
||||
emit tc->threadStart(); // emit MSHreader->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI FOAMexportMesh(QString AbFileName, int id)
|
||||
{
|
||||
auto FoamWriter = new MeshData::FoamDataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), id);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(FoamWriter);
|
||||
emit tc->threadStart(); // emit MSHwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI XYZimportPCL(QString AbFileName, int id)
|
||||
{
|
||||
auto xyzReader = new MeshData::PointClouddataExchange(
|
||||
AbFileName, MeshData::MESH_READ, MeshData::MeshDataExchangePlugin::getMWpt(), id);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(xyzReader);
|
||||
emit tc->threadStart(); // emit MSHwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PCDimportPCL(QString AbFileName, int id)
|
||||
{
|
||||
auto pcdReader = new MeshData::PointClouddataExchange(
|
||||
AbFileName, MeshData::MESH_READ, MeshData::MeshDataExchangePlugin::getMWpt(), id);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(pcdReader);
|
||||
emit tc->threadStart(); // emit MSHwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PLYimportPCL(QString AbFileName, int id)
|
||||
{
|
||||
auto plyReader = new MeshData::PointClouddataExchange(
|
||||
AbFileName, MeshData::MESH_READ, MeshData::MeshDataExchangePlugin::getMWpt(), id);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(plyReader);
|
||||
emit tc->threadStart(); // emit MSHwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//bool MESHDATAEXCHANGEPLUGINAPI XYZexportPCL(QString AbFileName, int modelId)
|
||||
//{
|
||||
//
|
||||
// return false;
|
||||
//}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PCDexportPCL(QString AbFileName, int modelId)
|
||||
{
|
||||
auto pcdWriter = new MeshData::PointClouddataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(pcdWriter);
|
||||
emit tc->threadStart(); // emit MSHwriter->start();
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PLYexportPCL(QString AbFileName, int modelId)
|
||||
{
|
||||
auto pcdWriter = new MeshData::PointClouddataExchange(
|
||||
AbFileName, MeshData::MESH_WRITE, MeshData::MeshDataExchangePlugin::getMWpt(), modelId);
|
||||
ModuleBase::ThreadControl* tc = new ModuleBase::ThreadControl(pcdWriter);
|
||||
emit tc->threadStart(); // emit MSHwriter->start();
|
||||
return false;
|
||||
}
|
|
@ -1,73 +0,0 @@
|
|||
#ifndef _MESHDATAEXCHANGEPLUGIN_H_
|
||||
#define _MESHDATAEXCHANGEPLUGIN_H_
|
||||
|
||||
#include "meshDataExchangePluginAPI.h"
|
||||
#include "PluginManager/pluginBase.h"
|
||||
|
||||
namespace MeshData
|
||||
{
|
||||
enum MeshOperation
|
||||
{
|
||||
MESH_NONE,
|
||||
MESH_READ,
|
||||
MESH_WRITE
|
||||
};
|
||||
|
||||
class MESHDATAEXCHANGEPLUGINAPI MeshDataExchangePlugin : public Plugins::PluginBase
|
||||
{
|
||||
public:
|
||||
MeshDataExchangePlugin(GUI::MainWindow* m);
|
||||
~MeshDataExchangePlugin() = default;
|
||||
|
||||
bool install();
|
||||
bool uninstall();
|
||||
void reTranslate(QString);
|
||||
static GUI::MainWindow* getMWpt();
|
||||
|
||||
private:
|
||||
static GUI::MainWindow* _mainwindow;
|
||||
};
|
||||
}
|
||||
|
||||
extern "C"
|
||||
{
|
||||
void MESHDATAEXCHANGEPLUGINAPI Register(GUI::MainWindow* m, QList<Plugins::PluginBase*>* plugs);
|
||||
//函数返回值是无效的,不要通过返回值判断
|
||||
bool MESHDATAEXCHANGEPLUGINAPI CGNSimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI MSHimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI FOAMimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI NEUimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI VTK_DAT_STL_importMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI INPimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI CNTMimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI SU2importMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI AnotherSU2importMesh(QString AbFileName);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI KEYimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PDBimportMesh(QString AbFileName, int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI BDFimportMesh(QString AbFileName, int modelId);
|
||||
|
||||
bool MESHDATAEXCHANGEPLUGINAPI CGNSexportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI MSHexportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI FOAMexportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI NEUexportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI VTK_DAT_STL_exportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI INPexportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI CNTMexportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI SU2exportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI AnotherSU2exportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI KEYexportMesh(QString AbFileName, int id);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PDBexportMesh(QString AbFileName, int id);
|
||||
|
||||
// 点云模块
|
||||
bool MESHDATAEXCHANGEPLUGINAPI XYZimportPCL(QString AbFileName,int modelId); // 导入模块
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PCDimportPCL(QString AbFileName,int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PLYimportPCL(QString AbFileName,int modelId);
|
||||
|
||||
// bool MESHDATAEXCHANGEPLUGINAPI XYZexportPCL(QString AbFileName,int modelId); // 导出模块
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PCDexportPCL(QString AbFileName,int modelId);
|
||||
bool MESHDATAEXCHANGEPLUGINAPI PLYexportPCL(QString AbFileName,int modelId);
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,13 +0,0 @@
|
|||
#ifndef _MESHDATAEXCHANGEPLUGINAPI_H__
|
||||
#define _MESHDATAEXCHANGEPLUGINAPI_H__
|
||||
|
||||
#include <QtCore/QtGlobal>
|
||||
|
||||
|
||||
#if defined(MESHDATAEXCHANGEPLUGIN_API)
|
||||
#define MESHDATAEXCHANGEPLUGINAPI Q_DECL_EXPORT
|
||||
#else
|
||||
#define MESHDATAEXCHANGEPLUGINAPI Q_DECL_IMPORT
|
||||
#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue