How are graph nodes created?

api kpedit nodegen node

Kirpi provides a small library of built-in graph nodes for visual programming: arithmetic operators, logical operators, if/else, switch, etc.

Kirpi can also generate nodes automatically from an existing C++ API.

And developers can create nodes from scratch by providing their own C++ code.

image

Examples

Creating a node using kpedit

In this example, we use Kirpi's standalone editor kpedit to create a new node.

Converting an existing API to nodes using nodegen

In this example, we use Kirpi's standalone command nodegen to generate nodes from the API of an existing C++ function. This conversion can easily be automated. An example of CMake integration is provided at the end of the video.

Note that nodegen can be used to generate Kirpi graph nodes either from the definition of a single C++ function, or from the declaration of a C++ class.

Previous Post Next Post