Commit 9f6581be authored by David Thompson's avatar David Thompson
Browse files

Progress on operators.

parent b8e35734
......@@ -120,6 +120,12 @@ Operators ModelEntity::operators() const
return ops;
}
/// Return the names of all the operators which can be applied to this model.
StringList ModelEntity::operatorNames() const
{
return this->bridge()->operatorNames();
}
BridgeBasePtr ModelEntity::bridge() const
{
return this->m_storage->bridgeForModel(this->m_entity);
......
......@@ -44,6 +44,7 @@ public:
OperatorPtr op(const std::string& operatorName) const;
Operators operators() const;
StringList operatorNames() const;
BridgeBasePtr bridge() const;
};
......
......@@ -43,6 +43,16 @@ Parameter::Parameter(const std::string& name, const IntegerList& val)
{
}
Parameter::Parameter(const std::string& name, const smtk::util::UUID& val)
: m_state(PARAMETER_UNKNOWN), m_name(name), m_uuidVals(1, val)
{
}
Parameter::Parameter(const std::string& name, const smtk::util::UUIDArray& val)
: m_state(PARAMETER_UNKNOWN), m_name(name), m_uuidVals(val)
{
}
/// Return the name of the parameter.
std::string Parameter::name() const
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment