Class Node¶
Note
You have to include the header Node.h.
-
class
Node
¶ This class represents a graph Node in Instant Terra.
- Throws
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);
-
size_t
Node
::
GetParameterNameLength
(int parameterIndex)¶ Returns the parameter name length
- Throws
Error – If the parameterIndex is out of bound, the following error code will be reported
ErrorCode::ParameterIndexOutOfBound
.
-
void
Node
::
GetParameterName
(int parameterIndex, wchar_t *buffer, size_t bufferLength)¶ Fill the buffer witht the parameter name
- Throws
Error – If the parameterIndex is out of bound, the following error code will be reported
ErrorCode::ParameterIndexOutOfBound
.
-
size_t
Node
::
GetParameterValueLength
(const wchar_t *parameterName)¶ Returns the parameter value length
- Throws
Error – If the parameter is not found, the following error code will be reported
ErrorCode::ParameterDoesNotExist
.
-
void
Node
::
GetParameterValue
(const wchar_t *parameterName, wchar_t *buffer, size_t bufferLength)¶ Fill the buffer witht the parameter value
- Throws
Error – If the parameter is not found, the following error code will be reported
ErrorCode::ParameterDoesNotExist
.
-
Connector
Node
::
GetConnector
(int connectorIndex)¶ Returns the connector at the index
- Throws
Error – If the connectorIndex is out of bound, the following error code will be reported
ErrorCode::ConnectorIndexOutOfBound
.