新插件加入可选列表

This commit is contained in:
codeboss 2025-06-22 16:56:37 +08:00
parent 5ea592f822
commit ea9b6e1e41
1 changed files with 3 additions and 0 deletions

View File

@ -326,10 +326,13 @@ void DeduceFramework::execute(std::shared_ptr<Immediate> map,
}
#include "VisibleCube.h"
#include "SurfaceMotion.h"
ComponentFactory::ComponentFactory()
{
auto ins = std::make_shared<VisibleCubePlugin>();
_comp_types[ins->name()] = ins;
auto ins1 = std::make_shared<SurfaceMotionPlugin>();
_comp_types[ins1->name()] = ins1;
}
std::shared_ptr<WsComponent> ComponentFactory::makeNew(const QString& type)