.. _ogn_tutorial_empty:

Tutorial 1 - Trivial Node
=========================

The simplest possible node is one that implements only the mandatory fields in a node. These are the "version" and
"description" fields.

The existence of the file *OgnTutorialEmpty.svg* will automatically install this icon into the build directory and
add its path to the node type's metadata. The installed file will be named after the node type, not the class type,
so it will be installed at the path `$BUILD/exts/omni.graph.tutorials/ogn/icons/Empty.svg`.

OgnTutorialEmpty.ogn
--------------------
The *.ogn* file containing the implementation of a node named "omni.graph.tutorials.Empty", in its first
version, with a simple description.

.. literalinclude:: OgnTutorialEmpty.ogn
    :linenos:
    :language: json

OgnTutorialEmpty.cpp
--------------------
The *.cpp* file contains the minimum necessary implementation of the node class, which
contains only the empty compute method. It contains a detailed description of the necessary code components.

.. literalinclude:: OgnTutorialEmpty.cpp
    :linenos:
    :language: c++
