CImplicitNode
-
class Lib3MF::CImplicitNode : public CBase
-
std::string GetIdentifier()
Retrieves the identifier of the node
- Returns:
the identifier
-
void SetIdentifier(const std::string &sIdentifier)
Sets the identifier of the node
- Parameters:
sIdentifier – the identifier
-
std::string GetDisplayName()
Retrieves the display name of the node
- Returns:
the display name
-
void SetDisplayName(const std::string &sDisplayName)
Sets the display name of the node
- Parameters:
sDisplayName – the display name
-
std::string GetTag()
Retrieves the tag of the node
- Returns:
the tag
-
void SetTag(const std::string &sTag)
Sets the tag of the node
- Parameters:
sTag – the tag
-
eImplicitNodeType GetNodeType()
Retrieves the type of the node
- Returns:
the type of the node
-
PImplicitPort AddInput(const std::string &sIdentifier, const std::string &sDisplayName)
Add an input
- Parameters:
sIdentifier – the identifier of the input
sDisplayName – the display name of the input
- Returns:
-
PImplicitPortIterator GetInputs()
Retrieves the inputs
- Returns:
the iterator for the inputs
-
PImplicitPort AddOutput(const std::string &sIdentifier, const std::string &sDisplayName)
Add an output
- Parameters:
sIdentifier – the identifier of the output
sDisplayName – the display name of the output
- Returns:
-
PImplicitPortIterator GetOutputs()
Retrieves the outputs
- Returns:
the iterator the outputs
-
PImplicitPort FindInput(const std::string &sIdentifier)
Retrieves an input
- Parameters:
sIdentifier – the identifier of the input
- Returns:
the input port
-
PImplicitPort FindOutput(const std::string &sIdentifier)
Retrieves an output
- Parameters:
sIdentifier – the identifier of the output
- Returns:
the output port
-
bool AreTypesValid()
Checks if the types of the input and output ports are valid for the node type
- Returns:
true, if the types are valid
-
std::string GetIdentifier()
-
typedef std::shared_ptr<CImplicitNode> Lib3MF::PImplicitNode
Shared pointer to CImplicitNode to easily allow reference counting.