refactor: connect context, remove network manager pass to opDef

This commit is contained in:
parker
2025-07-14 20:19:49 +01:00
parent 79d8a9096a
commit 1253785f2b
11 changed files with 53 additions and 42 deletions

View File

@@ -2,6 +2,7 @@
#include <memory>
#include "Engine/Network/NetworkManager.h"
#include <optional>
#include "Engine/Operator/Context.h"
#include "Engine/Operator/GOP_test.h"
#include <iostream>
@@ -24,16 +25,16 @@ void enzo::nt::connectOperators(enzo::nt::OpId inputOpId, unsigned int inputInde
}
nt::GeometryOperator::GeometryOperator(enzo::nt::OpId opId, nt::opConstructor ctorFunc)
: opId_{opId}, opDef_(ctorFunc(opId, nt::nm()))
: opId_{opId}, opDef_(ctorFunc(opId))
{
// TODO: drive by geometry definition
maxInputs_=4;
maxOutputs_=4;
}
void enzo::nt::GeometryOperator::cookOp()
void enzo::nt::GeometryOperator::cookOp(op::Context context)
{
opDef_->cookOp();
opDef_->cookOp(context);
}
geo::Geometry& enzo::nt::GeometryOperator::getOutputGeo(unsigned outputIndex)