feat: pass node info with template
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "Engine/Operator/GeometryOperator.h"
|
||||
#include "Engine/Operator/Attribute.h"
|
||||
#include "Engine/Operator/AttributeHandle.h"
|
||||
#include "Engine/Operator/OpInfo.h"
|
||||
#include "Engine/Types.h"
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
@@ -10,11 +11,11 @@
|
||||
#include <algorithm>
|
||||
#include <string>
|
||||
|
||||
enzo::nt::OpId enzo::nt::NetworkManager::addOperator(nt::opConstructor ctorFunc)
|
||||
enzo::nt::OpId enzo::nt::NetworkManager::addOperator(op::OpInfo opInfo)
|
||||
{
|
||||
|
||||
maxOpId_++;
|
||||
gopStore_.emplace(maxOpId_, std::make_unique<GeometryOperator>(maxOpId_, ctorFunc));
|
||||
gopStore_.emplace(maxOpId_, std::make_unique<GeometryOperator>(maxOpId_, opInfo));
|
||||
std::cout << "adding operator " << maxOpId_ << "\n";
|
||||
|
||||
return maxOpId_;
|
||||
|
||||
@@ -18,7 +18,7 @@ public:
|
||||
static NetworkManager& getInstance();
|
||||
|
||||
// functions
|
||||
OpId addOperator(nt::opConstructor ctorFunc);
|
||||
OpId addOperator(op::OpInfo opInfo);
|
||||
std::optional<OpId> getDisplayOp();
|
||||
bool isValidOp(nt::OpId opId);
|
||||
GeometryOperator& getGeoOperator(nt::OpId opId);
|
||||
|
||||
Reference in New Issue
Block a user