Class NodeModel

Note

You have to include the header NodeModel.h.

class NodeModel

This class represents a model of a Node in Instant Terra.

Throws

Error – In any of these commands, if the communication is off, the following error code will be thrown ErrorCode::CommunicationError.

// Get the model of a node
InstantTerra instantTerra = CreateInstantTerra();
Project project = instantTerra.GetProject();
Graph graph = project.GetGraph();
Node firstNode = graph.GetNode(0);

NodeModel nodeModel = firstNode.GetNodeModel();

size_t NodeModel::GetNameLength() const

Returns the length of the node model name

void NodeModel::GetName(wchar_t *buffer, size_t bufferLength) const

Returns the name of the node model name

size_t NodeModel::GetCategoryNameLength() const

Returns the length of the category name of the node model

void NodeModel::GetCategoryName(wchar_t *buffer, size_t bufferLength) const

Returns the name of the category name of the node model

bool NodeModel::IsComponent() const

Returns if it's a component node model or not


Copyright © 2020 · All Rights Reserved · Wysilab