It has no specific behaviour and is just a container. We present here the common interface X3DTK::X3D::X3DNode of all the node types of the X3D scene graph. Notice that X3DTK::X3D::X3DNode inherits X3DTK::X3DAbstractNode.
load
and write
, to load its attributes from strings, and to write them to a string. Here is an example: X3DTK::X3D::X3DNode N; // loads from an X3DFileElement which is a temporary structure used by the XML loader. X3DTK::X3DFileElement *e; N->load(e); // Writes the content of the node into a SFString. X3DTK::SFString content = N->write();
Nevertheless, you normally don't have to call explicitly these methods. They are called by the abstract factory X3DTK::X3DLoader and X3DTK::X3D::SceneSaver that writes the content of an X3D scene graph to an X3D file.
At that moment, only the provided MESH scene graph can be translated into an X3D scene graph.