H3D API
2.4.1
|
This file contains functions for creating H3D nodes from X3D input. More...
#include <iostream>
#include <H3D/H3DApi.h>
#include <H3D/Group.h>
#include <H3D/DEFNodes.h>
#include <H3DUtil/AutoRef.h>
#include <H3D/PrototypeVector.h>
Go to the source code of this file.
Namespaces | |
H3D | |
H3D API namespace. | |
H3D::X3D | |
X3D namespace. | |
Functions | |
H3DAPI_API Group * | H3D::X3D::createX3DFromStream (istream &in, DEFNodes *dn=NULL, DEFNodes *exported_nodes=NULL, PrototypeVector *prototypes=NULL, const string &system_id="<stream input>") |
Create H3D nodes given X3D data as a istream. More... | |
H3DAPI_API Group * | H3D::X3D::createX3DFromString (const string &str, DEFNodes *dn=NULL, DEFNodes *exported_nodes=NULL, PrototypeVector *prototypes=NULL) |
Create H3D nodes given X3D data as a string. More... | |
H3DAPI_API Group * | H3D::X3D::createX3DFromURL (const string &urn, DEFNodes *dn=NULL, DEFNodes *exported_nodes=NULL, PrototypeVector *prototypes=NULL, bool change_base_path_during_parsing=true) |
Create H3D nodes given X3D data as a URL. More... | |
H3DAPI_API AutoRef< Node > | H3D::X3D::createX3DNodeFromStream (istream &in, DEFNodes *dn=NULL, DEFNodes *exported_nodes=NULL, PrototypeVector *prototypes=NULL, const string &system_id="<stream input>") |
Create a H3D Node given X3D data as a istream. More... | |
H3DAPI_API AutoRef< Node > | H3D::X3D::createX3DNodeFromString (const string &str, DEFNodes *dn=NULL, DEFNodes *exported_nodes=NULL, PrototypeVector *prototypes=NULL) |
Create a H3D Node given X3D data as a string. More... | |
H3DAPI_API AutoRef< Node > | H3D::X3D::createX3DNodeFromURL (const string &urn, DEFNodes *dn=NULL, DEFNodes *exported_nodes=NULL, PrototypeVector *prototypes=NULL, bool change_base_path_during_parsing=true) |
Create a H3D Node given X3D data as a URL. More... | |
H3DAPI_API void | H3D::X3D::writeNodeAsX3D (ostream &os, Node *node, const string &container_field="") |
Write the scene graph part of the node given in X3D/XML format to the given ostream. | |
H3DAPI_API void | H3D::X3D::writeNodeAsVRML (ostream &os, Node *node) |
Write the scene graph part of the node given in X3D/VRML format to the given ostream. | |
H3DAPI_API void | H3D::X3D::writeGeometryAsSTL (ostream &os, X3DGeometryNode *geom, const string &name="", bool use_binary_format=false) |
Write the triangles rendered by the geometry node as STL to the given ostream. More... | |
H3DAPI_API void | H3D::X3D::writeNodeAsX3DHelp (ostream &os, Node *node, const string &container_field, const string &prefix, std::set< Node * > &visited_nodes, unsigned int output_type=0) |
Help function for writeNodeAsX3D and writeNodeAsVRML output_type = 0 means xml output, 1 means vrml output. | |
This file contains functions for creating H3D nodes from X3D input.