feat(parameter): populate parameterPanel
This commit is contained in:
@@ -83,6 +83,10 @@ std::vector<std::shared_ptr<const nt::GeometryConnection>> nt::GeometryOperator:
|
||||
}
|
||||
return inputConnections;
|
||||
}
|
||||
std::vector<std::weak_ptr<prm::Parameter>> nt::GeometryOperator::getParameters()
|
||||
{
|
||||
return {parameters_.begin(), parameters_.end()};
|
||||
}
|
||||
|
||||
std::vector<std::shared_ptr<const nt::GeometryConnection>> nt::GeometryOperator::getOutputConnections() const
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
void addOutputConnection(std::shared_ptr<nt::GeometryConnection> connection);
|
||||
std::vector<std::shared_ptr<const GeometryConnection>> getInputConnections() const;
|
||||
std::vector<std::shared_ptr<const GeometryConnection>> getOutputConnections() const;
|
||||
|
||||
std::vector<std::weak_ptr<prm::Parameter>> getParameters();
|
||||
|
||||
|
||||
unsigned int getMaxInputs() const;
|
||||
|
||||
@@ -7,13 +7,17 @@ void enzo::op::OperatorTable::addOperator(const char* internalName, const char*
|
||||
{
|
||||
std::cout << "OPERATOR TABLE ADDED\n";
|
||||
std::cout << "adding operator: " << displayName << "\n";
|
||||
std::cout << "tempalate size: " << sizeof(templates) << "\n";
|
||||
|
||||
for(const prm::Template* t = templates; t->isValid(); ++t)
|
||||
{
|
||||
std::cout << "name: " << t->getName() << "\n";
|
||||
}
|
||||
|
||||
enzo::op::OpInfo info {
|
||||
internalName,
|
||||
displayName,
|
||||
ctorFunc,
|
||||
templates,
|
||||
sizeof(*templates)
|
||||
};
|
||||
|
||||
opInfoStore_.push_back(info);
|
||||
|
||||
Reference in New Issue
Block a user