Abstract base class for NodeDef interface.
More...
#include <nodeDef.h>
Abstract base class for NodeDef interface.
This base class defines an interface to retrieve node definition information.
Definition at line 37 of file nodeDef.h.
◆ Ptr
◆ ~NodeDef()
virtual Ufe::NodeDef::~NodeDef |
( |
| ) |
|
|
virtual |
◆ NodeDef()
Ufe::NodeDef::NodeDef |
( |
| ) |
|
|
protected |
◆ classification()
virtual std::string Ufe::NodeDef::classification |
( |
std::size_t |
level | ) |
const |
|
pure virtual |
Gets the classification label applicable to this NodeNef for the requested classification level. The most precise classification level corresponds to level zero.
- Parameters
-
level | The classification level to query. |
- Returns
- The classification label for this node at this level.
◆ createNode()
Create a new object in the data model using the current node definition as template, and return a SceneItem pointer for it.
- Parameters
-
parent | Item under which the node is to be created. |
name | Name of the new node. |
- Returns
- SceneItem for the created node, at its new path. Returns a null pointer on failure.
◆ createNodeCmd()
Create a command to create a SceneItem using the current node definition as template. The command is not executed.
- Parameters
-
parent | Item under which the node is to be created. |
name | Name of the new node. |
- Returns
- Command whose execution will create the node.
◆ definition()
static Ptr Ufe::NodeDef::definition |
( |
const Rtid & |
id, |
|
|
const std::string & |
type |
|
) |
| |
|
static |
- Returns
- The definition associated with the provided type.
◆ getMetadata()
virtual Value Ufe::NodeDef::getMetadata |
( |
const std::string & |
key | ) |
const |
|
pure virtual |
Get the value of the metadata named key.
- Parameters
-
[in] | key | The metadata key to query. |
- Returns
- The value of the metadata key. If the key does not exist an empty Value is returned.
◆ hasInput()
virtual bool Ufe::NodeDef::hasInput |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Queries whether an input exists with the given name.
- Parameters
-
name | The input name to check. |
- Returns
- True if the object contains an input matching the name.
◆ hasMetadata()
virtual bool Ufe::NodeDef::hasMetadata |
( |
const std::string & |
key | ) |
const |
|
pure virtual |
Returns true if metadata key has a non-empty value.
◆ hasOutput()
virtual bool Ufe::NodeDef::hasOutput |
( |
const std::string & |
name | ) |
const |
|
pure virtual |
Queries whether an output exists with the given name.
- Parameters
-
name | The output name to check. |
- Returns
- True if the object contains an output matching the name.
◆ input()
Creates an AttributeDef interface for the given input name.
- Parameters
-
name | Name of the input to retrieve. |
- Returns
- AttributeDef interface for the given name. Returns a null pointer if no input exists for the given name.
◆ inputNames()
virtual std::vector< std::string > Ufe::NodeDef::inputNames |
( |
| ) |
const |
|
pure virtual |
- Returns
- List of all the input names for this node definition.
◆ inputs()
- Returns
- The inputs of the node definition.
◆ nbClassifications()
virtual std::size_t Ufe::NodeDef::nbClassifications |
( |
| ) |
const |
|
pure virtual |
Queries the number of classification levels available for this node. This can vary across runtimes. A biology implementation would have species as the "type" and genus, family, order, class, phylum, kingdom representing the 6 available levels.
- Returns
- The number of classification levels.
◆ output()
Creates an AttributeDef interface for the given output name.
- Parameters
-
name | Name of the output to retrieve. |
- Returns
- AttributeDef interface for the given name. Returns a null pointer if no output exists for the given name.
◆ outputNames()
virtual std::vector< std::string > Ufe::NodeDef::outputNames |
( |
| ) |
const |
|
pure virtual |
- Returns
- List of all the output names for this node definition.
◆ outputs()
- Returns
- The outputs of the node definition.
◆ type()
virtual std::string Ufe::NodeDef::type |
( |
| ) |
const |
|
pure virtual |
- Returns
- The type of the node definition.
The documentation for this class was generated from the following file: