X3D libraries
The libraries to work with X3D dataset

node.c++ File Reference

The implementation of the SFNode, basic types (SFString, SFImage) and common funcitons (StringToValue, RegisterType, etc.). More...


Namespaces

namespace  x3d

Classes

class  x3d::BaseLevelOfSupport
 Internal class defining the level of support of the node (base) library. More...
class  x3d::Type
class  x3d::UserInstantiator

Typedefs

typedef Vector< Type, 16 > x3d::Types
typedef Vector< UserInstantiator, 16 > x3d::UserInstantiators

Functions

int x3d::CompareName (const char *n1, const char *n2)
SFNode * x3d::CreateUserNode (field_t type)
char x3d::FixNameChar (char c)
LevelOfSupport * x3d::GetBaseSupport ()
 The support levels offered by the X3D base library.
field_t x3d::GetUserField (const char *name)
const char * x3d::GetUserName (field_t id)
field_t x3d::GetUserType (const char *name)
void x3d::MValueToString (const MFString &value, SFString &str)
 Convert an array of strings to a single string.
static const Type * x3d::Register (Types &t, const char *type, UserType *user_type, field_t &next_id, bool record)
void x3d::RegisterType (field_t type, Instantiator *instantiator)
field_t x3d::RegisterUserName (const char *name)
field_t x3d::RegisterUserType (const char *type, UserType *user_type)
static void x3d::SkipSpaces (const char *&str)
bool x3d::StringToMValue (MFString &value, const char *&str)
 Convert a string to an array of strings.
bool x3d::StringToValue (SFVec3f &value, const char *&str)
 Convert a string to a 3 dimension vector structure of floats.
bool x3d::StringToValue (SFVec3d &value, const char *&str)
 Convert a string to a 3 dimension vector structure of doubles.
bool x3d::StringToValue (SFVec2f &value, const char *&str)
 Convert a string to a 2 dimension vector structure of floats.
bool x3d::StringToValue (SFVec2d &value, const char *&str)
 Convert a string to a 2 dimension vector structure of doubles.
bool x3d::StringToValue (SFRotation &value, const char *&str)
 Convert a string to a rotation structure.
bool x3d::StringToValue (SFInt32 &value, const char *&str)
 Convert a string to an integer value.
bool x3d::StringToValue (SFImage &value, const char *&str)
 Convert a string to an image.
bool x3d::StringToValue (SFFloat &value, const char *&str)
 Convert a string to a float value.
bool x3d::StringToValue (SFDouble &value, const char *&str)
 Convert a string to a double value.
bool x3d::StringToValue (SFColorRGBA &value, const char *&str)
 Convert a string to a color with alpha structure.
bool x3d::StringToValue (SFColor &value, const char *&str)
 Convert a string to a color structure.
bool x3d::StringToValue (SFBool &value, const char *&str)
 Convert a string to a boolean value.
void x3d::ValueToString (const SFVec3f &value, SFString &str)
 Convert a 3 dimensional vector structure into a string.
void x3d::ValueToString (const SFVec3d &value, SFString &str)
 Convert a 3 dimensional vector structure into a string.
void x3d::ValueToString (const SFVec2f &value, SFString &str)
 Convert a 2 dimensional vector structure into a string.
void x3d::ValueToString (const SFVec2d &value, SFString &str)
 Convert a 2 dimensional vector structure into a string.
void x3d::ValueToString (const SFRotation &value, SFString &str)
 Convert a rotation structure into a string.
void x3d::ValueToString (SFInt32 value, SFString &str)
 Convert a 32 bits integer value into a string.
void x3d::ValueToString (const SFImage &value, SFString &str)
 Convert an image to a string.
void x3d::ValueToString (SFFloat value, SFString &str)
 Convert a float value into a string.
void x3d::ValueToString (SFDouble value, SFString &str)
 Convert a double value into a string.
void x3d::ValueToString (const SFColorRGBA &value, SFString &str)
 Convert an RGBA color value into a string.
void x3d::ValueToString (const SFColor &value, SFString &str)
 Convert an RGB color value into a string.
void x3d::ValueToString (SFBool value, SFString &str)
 Convert a boolean value into a string.
bool x3d::ValueToString (const FieldInfo *info, SFString &str)
 Convert a value into a string.

Variables

BaseLevelOfSupport x3d::base_support
 The support levels offered by the X3D base library.
static field_t x3d::g_next_user_name_id = FLD_USER_TYPES
static field_t x3d::g_next_user_type_id = FLD_USER_TYPES
static UserInstantiators x3d::g_user_instantiators
static Types x3d::g_user_names
static Types x3d::g_user_types


Detailed Description

The implementation of the SFNode, basic types (SFString, SFImage) and common funcitons (StringToValue, RegisterType, etc.).