X3D libraries
The libraries to work with X3D dataset

node.h File Reference

Go to the source code of this file.

Namespaces

namespace  x3d

Classes

class  x3d::Array< T, step >
 The Array is a specialization of the BaseSet<T, step> template for basic types (i.e. bool, double, float, int, structures thereof). More...
class  x3d::BaseSet< T, step >
 The basic template used to create arrays. More...
class  x3d::Error
 A very few functions, when they come to a tie, will throw this error. More...
struct  x3d::FieldInfo
 The structure used to get and set field values (see also the get_ and set_ functions). More...
class  x3d::Instantiator
class  x3d::LevelOfSupport
 An object which will give you the level of support of the different components of the library. More...
struct  x3d::SFColor
struct  x3d::SFColorRGBA
class  x3d::SFImage
class  x3d::SFNode
 All the non-abstract nodes in the X3D set derive once from SFNode. More...
class  x3d::SFNodeListener
 Interface used to listen to all modifications to any node. More...
struct  x3d::SFRotation
class  x3d::SFString
struct  x3d::SFVec2d
struct  x3d::SFVec2f
struct  x3d::SFVec3d
struct  x3d::SFVec3f
class  x3d::UserType
class  x3d::Vector< T, step >
 The Vector is a specialization of the BaseSet<T, step> template for complex types (i.e. SFString, SFImage, SFNode). More...

Typedefs

typedef int x3d::field_t
typedef Array< SFBool, 256 > x3d::MFBool
typedef Array< SFColor, 256 > x3d::MFColor
typedef Array< SFColorRGBA, 256 > x3d::MFColorRGBA
typedef Array< SFDouble, 256 > x3d::MFDouble
typedef Array< SFFloat, 256 > x3d::MFFloat
typedef Vector< SFImage, 2 > x3d::MFImage
typedef Array< SFInt32, 256 > x3d::MFInt32
typedef Vector< SFNode, 20 > x3d::MFNode
typedef Vector< SFNodeListener, 6 > x3d::MFNodeListener
typedef Array< SFRotation, 256 > x3d::MFRotation
typedef Vector< SFString, 24 > x3d::MFString
typedef Array< SFTime, 256 > x3d::MFTime
typedef Array< SFVec2d, 256 > x3d::MFVec2d
typedef Array< SFVec2f, 256 > x3d::MFVec2f
typedef Array< SFVec3d, 256 > x3d::MFVec3d
typedef Array< SFVec3f, 256 > x3d::MFVec3f
typedef bool x3d::SFBool
typedef double x3d::SFDouble
typedef float x3d::SFFloat
typedef pointer::SmartPointer<
SFImage > 
x3d::SFImagePtr
typedef int32_t x3d::SFInt32
typedef pointer::SmartPointer<
SFNodeListener > 
x3d::SFNodeListenerPtr
typedef pointer::SmartPointer<
SFNode > 
x3d::SFNodePtr
typedef pointer::SmartPointer<
SFString > 
x3d::SFStringPtr
typedef double x3d::SFTime

Functions

int x3d::CompareName (const char *n1, const char *n2)
SFNode * x3d::CreateNode (field_t type)
LevelOfSupport * x3d::GetBaseSupport ()
 The support levels offered by the X3D base library.
field_t x3d::GetField (const char *name)
const char * x3d::GetName (field_t id)
field_t x3d::GetType (const char *name)
void x3d::MValueToString (const MFString &value, SFString &str)
 Convert an array of strings to a single string.
template<class MF>
void x3d::MValueToString (const MF &value, SFString &str)
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)
bool x3d::StringToMValue (MFString &value, const char *&str)
 Convert a string to an array of strings.
template<class MF>
bool x3d::StringToMValue (MF &value, const char *&str)
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

static const field_t x3d::FLD_INVALID = -1
static const field_t x3d::FLD_MFBOOL = 17
static const field_t x3d::FLD_MFCOLOR = 19
static const field_t x3d::FLD_MFCOLORRGBA = 21
static const field_t x3d::FLD_MFDOUBLE = 23
static const field_t x3d::FLD_MFFLOAT = 25
static const field_t x3d::FLD_MFIMAGE = 27
static const field_t x3d::FLD_MFINT32 = 29
static const field_t x3d::FLD_MFNODE = 31
static const field_t x3d::FLD_MFROTATION = 33
static const field_t x3d::FLD_MFSTRING = 35
static const field_t x3d::FLD_MFTIME = 37
static const field_t x3d::FLD_MFVEC2D = 39
static const field_t x3d::FLD_MFVEC2F = 41
static const field_t x3d::FLD_MFVEC3D = 43
static const field_t x3d::FLD_MFVEC3F = 45
static const field_t x3d::FLD_NULL = 1
static const field_t x3d::FLD_SFBOOL = 16
static const field_t x3d::FLD_SFCOLOR = 18
static const field_t x3d::FLD_SFCOLORRGBA = 20
static const field_t x3d::FLD_SFDOUBLE = 22
static const field_t x3d::FLD_SFFLOAT = 24
static const field_t x3d::FLD_SFIMAGE = 26
static const field_t x3d::FLD_SFINT32 = 28
static const field_t x3d::FLD_SFNODE = 30
static const field_t x3d::FLD_SFROTATION = 32
static const field_t x3d::FLD_SFSTRING = 34
static const field_t x3d::FLD_SFTIME = 36
static const field_t x3d::FLD_SFVEC2D = 38
static const field_t x3d::FLD_SFVEC2F = 40
static const field_t x3d::FLD_SFVEC3D = 42
static const field_t x3d::FLD_SFVEC3F = 44
static const field_t x3d::FLD_SYSTEM_NAMES = 256
static const field_t x3d::FLD_UNKNOWN = 0
static const field_t x3d::FLD_USER_NAMES = 0x8000
static const field_t x3d::FLD_USER_TYPES = 0x2000