Note
You have to include the header Node.h.
Node
This class represents a graph Node in Instant Terra.
Error − In any of
these commands, if the communication is off, the following error
code will be reported ErrorCode::CommunicationError
.
Error − In any of
these commands, if the node does not exist, the following error
code will be reported ErrorCode::NodeDoesNotExist
.
// Get the first node of a graph
InstantTerra instantTerra = CreateInstantTerra();
Project project = instantTerra.GetProject();
Graph graph = project.GetGraph();
Node firstNode = graph.GetNode(0);
Node::
GetNodeCount
()Returns the number of nodes on the Graph
Node::
GetNameLength
()Returns the name length
Node::
GetName
(wchar_t
*buffer, size_t bufferLength)Fill the buffer with the node name
Node::
GetCommentLength
()Returns the comment length
Node::
GetComment
(wchar_t
*buffer, size_t bufferLength)Fill the buffer with the node comment
Node::
HasParameter
(const wchar_t
*parameterName)Returns true if the parameter exist
Node::
GetParameterCount
()Returns the number of node parameters
Node::
GetParameterNameLength
(int parameterIndex)Returns the parameter name length
Error − If the
parameterIndex is out of bound, the following error code will be
reported ErrorCode::ParameterIndexOutOfBound
.
Node::
GetParameterName
(int parameterIndex, wchar_t
*buffer, size_t bufferLength)Fill the buffer witht the parameter name
Error − If the
parameterIndex is out of bound, the following error code will be
reported ErrorCode::ParameterIndexOutOfBound
.
Node::
GetParameterValueLength
(const wchar_t
*parameterName)Returns the parameter value length
Error − If the
parameter is not found, the following error code will be reported
ErrorCode::ParameterDoesNotExist
.
Node::
GetParameterValue
(const wchar_t
*parameterName, wchar_t *buffer, size_t
bufferLength)Fill the buffer witht the parameter value
Error − If the
parameter is not found, the following error code will be reported
ErrorCode::ParameterDoesNotExist
.
Node::
GetConnectorCount
()Returns the number of connectors
Node::
GetConnector
(int
connectorIndex)Returns the connector at the index
Error − If the
connectorIndex is out of bound, the following error code will be
reported ErrorCode::ConnectorIndexOutOfBound
.
Node::
DoesNodeExist
()Returns if the node still exist or not
Copyright © 2022 · All Rights Reserved · Wysilab