libgpac
Documentation of the core library of GPAC
vrml_tools.c File Reference
#include <gpac/internal/scenegraph_dev.h>
#include <gpac/nodes_mpeg4.h>
#include <gpac/nodes_x3d.h>
#include <gpac/internal/bifs_dev.h>
+ Include dependency graph for vrml_tools.c:

Macros

#define MAX_MFFIELD_ALLOC   5000000
 

Functions

GF_EXPORT Bool gf_node_in_table_by_tag (u32 tag, u32 NDTType)
 
static void Node_on_add_children (GF_Node *node, GF_Route *route)
 
static void Node_on_remove_children (GF_Node *node, GF_Route *route)
 
void gf_sg_vrml_parent_setup (GF_Node *pNode)
 
void gf_sg_vrml_parent_destroy (GF_Node *pNode)
 
GF_EXPORT GF_Err gf_sg_delete_all_protos (GF_SceneGraph *scene)
 
GF_EXPORT void gf_sg_set_proto_loader (GF_SceneGraph *scene, GF_SceneGraph *(*GetExternProtoLib)(void *SceneCallback, MFURL *lib_url))
 
GF_EXPORT u32 gf_sg_get_next_available_route_id (GF_SceneGraph *sg)
 
GF_EXPORT void gf_sg_set_max_defined_route_id (GF_SceneGraph *sg, u32 ID)
 
GF_EXPORT u32 gf_sg_get_next_available_proto_id (GF_SceneGraph *sg)
 
GF_EXPORT GF_Err gf_node_insert_child (GF_Node *parent, GF_Node *new_child, s32 Position)
 
GF_EXPORT void gf_sg_script_load (GF_Node *n)
 
GF_EXPORT GF_Proto * gf_sg_find_proto (GF_SceneGraph *sg, u32 ProtoID, char *name)
 
static SFBoolNewSFBool ()
 
static SFFloatNewSFFloat ()
 
static SFDoubleNewSFDouble ()
 
static SFTimeNewSFTime ()
 
static SFInt32NewSFInt32 ()
 
static SFStringNewSFString ()
 
static SFVec3fNewSFVec3f ()
 
static SFVec3dNewSFVec3d ()
 
static SFVec2fNewSFVec2f ()
 
static SFVec2dNewSFVec2d ()
 
static SFColorNewSFColor ()
 
static SFColorRGBANewSFColorRGBA ()
 
static SFRotationNewSFRotation ()
 
static SFImageNewSFImage ()
 
static SFURLNewSFURL ()
 
static SFCommandBufferNewSFCommandBuffer ()
 
static SFScriptNewSFScript ()
 
static SFAttrRefNewSFAttrRef ()
 
static MFBoolNewMFBool ()
 
static MFFloatNewMFFloat ()
 
static MFTimeNewMFTime ()
 
static MFInt32NewMFInt32 ()
 
static MFStringNewMFString ()
 
static MFVec3fNewMFVec3f ()
 
static MFVec3dNewMFVec3d ()
 
static MFVec2fNewMFVec2f ()
 
static MFVec2dNewMFVec2d ()
 
static MFColorNewMFColor ()
 
static MFColorRGBANewMFColorRGBA ()
 
static MFRotationNewMFRotation ()
 
static MFURLNewMFURL ()
 
static MFScriptNewMFScript ()
 
static MFAttrRefNewMFAttrRef ()
 
GF_EXPORT void * gf_sg_vrml_field_pointer_new (u32 FieldType)
 
void gf_sg_mfint32_del (MFInt32 par)
 
void gf_sg_mffloat_del (MFFloat par)
 
void gf_sg_mfdouble_del (MFDouble par)
 
void gf_sg_mfbool_del (MFBool par)
 
void gf_sg_mfcolor_del (MFColor par)
 
void gf_sg_mfcolorrgba_del (MFColorRGBA par)
 
void gf_sg_mfrotation_del (MFRotation par)
 
void gf_sg_mftime_del (MFTime par)
 
void gf_sg_mfvec2f_del (MFVec2f par)
 
void gf_sg_mfvec2d_del (MFVec2d par)
 
void gf_sg_mfvec3f_del (MFVec3f par)
 
void gf_sg_mfvec3d_del (MFVec3d par)
 
void gf_sg_mfvec4f_del (MFVec4f par)
 
void gf_sg_mfattrref_del (MFAttrRef par)
 
void gf_sg_sfimage_del (SFImage im)
 
void gf_sg_sfstring_del (SFString par)
 
void gf_sg_sfcommand_del (SFCommandBuffer cb)
 
GF_EXPORT void gf_sg_vrml_field_pointer_del (void *field, u32 FieldType)
 
GF_EXPORT const char * gf_sg_vrml_get_event_type_name (u32 EventType, Bool forX3D)
 
GF_EXPORT const char * gf_sg_vrml_get_field_type_name (u32 FieldType)
 
u32 gf_sg_field_type_by_name (char *fieldType)
 
void gf_sg_sfurl_del (SFURL url)
 
GF_EXPORT Bool gf_sg_vrml_is_sf_field (u32 FieldType)
 
void gf_sg_mfstring_del (MFString par)
 
GF_EXPORT void gf_sg_mfurl_del (MFURL url)
 
void gf_sg_mfscript_del (MFScript sc)
 
void gf_sg_vrml_copy_mfurl (MFURL *dst, MFURL *src)
 
u32 gf_sg_vrml_get_sf_size (u32 FieldType)
 
GF_EXPORT u32 gf_sg_vrml_get_sf_type (u32 FieldType)
 
GF_EXPORT GF_Err gf_sg_vrml_mf_insert (void *mf, u32 FieldType, void **new_ptr, u32 InsertAt)
 
GF_EXPORT GF_Err gf_sg_vrml_mf_reset (void *mf, u32 FieldType)
 
GF_EXPORT GF_Err gf_sg_vrml_mf_alloc (void *mf, u32 FieldType, u32 NbItems)
 
GF_EXPORT GF_Err gf_sg_vrml_mf_get_item (void *mf, u32 FieldType, void **new_ptr, u32 ItemPos)
 
GF_EXPORT GF_Err gf_sg_vrml_mf_append (void *mf, u32 FieldType, void **new_ptr)
 
GF_EXPORT GF_Err gf_sg_vrml_mf_remove (void *mf, u32 FieldType, u32 RemoveFrom)
 
void VRML_FieldCopyCast (void *dest, u32 dst_field_type, void *orig, u32 ori_field_type)
 
GF_EXPORT void gf_sg_vrml_field_clone (void *dest, void *orig, u32 field_type, GF_SceneGraph *inScene)
 
GF_EXPORT void gf_sg_vrml_field_copy (void *dest, void *orig, u32 field_type)
 
GF_EXPORT Bool gf_sg_vrml_field_equal (void *dest, void *orig, u32 field_type)
 
GF_EXPORT SFColorRGBA gf_sg_sfcolor_to_rgba (SFColor val)
 
GF_EXPORT u32 gf_node_get_num_fields_in_mode (GF_Node *Node, u8 IndexMode)
 
Bool InitColorInterpolator (M_ColorInterpolator *node)
 
Bool InitCoordinateInterpolator2D (M_CoordinateInterpolator2D *node)
 
Bool InitCoordinateInterpolator (M_CoordinateInterpolator *n)
 
Bool InitNormalInterpolator (M_NormalInterpolator *n)
 
Bool InitPositionInterpolator2D (M_PositionInterpolator2D *node)
 
Bool InitPositionInterpolator (M_PositionInterpolator *node)
 
Bool InitScalarInterpolator (M_ScalarInterpolator *node)
 
Bool InitOrientationInterpolator (M_OrientationInterpolator *node)
 
Bool InitValuator (M_Valuator *node)
 
Bool InitCoordinateInterpolator4D (M_CoordinateInterpolator4D *node)
 
Bool InitPositionInterpolator4D (M_PositionInterpolator4D *node)
 
void PA_Init (GF_Node *n)
 
void PA_Modified (GF_Node *n, GF_FieldInfo *field)
 
void PA2D_Init (GF_Node *n)
 
void PA2D_Modified (GF_Node *n, GF_FieldInfo *field)
 
void SA_Init (GF_Node *n)
 
void SA_Modified (GF_Node *n, GF_FieldInfo *field)
 
void InitBooleanFilter (GF_Node *n)
 
void InitBooleanSequencer (GF_Node *n)
 
void InitBooleanToggle (GF_Node *n)
 
void InitBooleanTrigger (GF_Node *n)
 
void InitIntegerSequencer (GF_Node *n)
 
void InitIntegerTrigger (GF_Node *n)
 
void InitTimeTrigger (GF_Node *n)
 
Bool gf_sg_vrml_node_init (GF_Node *node)
 
Bool gf_sg_vrml_node_changed (GF_Node *node, GF_FieldInfo *field)
 
Bool gf_node_in_table (GF_Node *node, u32 NDTType)
 

Macro Definition Documentation

◆ MAX_MFFIELD_ALLOC

#define MAX_MFFIELD_ALLOC   5000000

Function Documentation

◆ Node_on_add_children()

static void Node_on_add_children ( GF_Node node,
GF_Route *  route 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Node_on_remove_children()

static void Node_on_remove_children ( GF_Node node,
GF_Route *  route 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFBool()

static SFBool* NewSFBool ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFFloat()

static SFFloat* NewSFFloat ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFDouble()

static SFDouble* NewSFDouble ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFTime()

static SFTime* NewSFTime ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFInt32()

static SFInt32* NewSFInt32 ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFString()

static SFString* NewSFString ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFVec3f()

static SFVec3f* NewSFVec3f ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFVec3d()

static SFVec3d* NewSFVec3d ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFVec2f()

static SFVec2f* NewSFVec2f ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFVec2d()

static SFVec2d* NewSFVec2d ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFColor()

static SFColor* NewSFColor ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFColorRGBA()

static SFColorRGBA* NewSFColorRGBA ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFRotation()

static SFRotation* NewSFRotation ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFImage()

static SFImage* NewSFImage ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFURL()

static SFURL* NewSFURL ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFCommandBuffer()

static SFCommandBuffer* NewSFCommandBuffer ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFScript()

static SFScript* NewSFScript ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewSFAttrRef()

static SFAttrRef* NewSFAttrRef ( )
static
+ Here is the caller graph for this function:

◆ NewMFBool()

static MFBool* NewMFBool ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFFloat()

static MFFloat* NewMFFloat ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFTime()

static MFTime* NewMFTime ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFInt32()

static MFInt32* NewMFInt32 ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFString()

static MFString* NewMFString ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFVec3f()

static MFVec3f* NewMFVec3f ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFVec3d()

static MFVec3d* NewMFVec3d ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFVec2f()

static MFVec2f* NewMFVec2f ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFVec2d()

static MFVec2d* NewMFVec2d ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFColor()

static MFColor* NewMFColor ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFColorRGBA()

static MFColorRGBA* NewMFColorRGBA ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFRotation()

static MFRotation* NewMFRotation ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFURL()

static MFURL* NewMFURL ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFScript()

static MFScript* NewMFScript ( )
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ NewMFAttrRef()

static MFAttrRef* NewMFAttrRef ( )
static
+ Here is the caller graph for this function:

◆ gf_sg_mfint32_del()

void gf_sg_mfint32_del ( MFInt32  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mffloat_del()

void gf_sg_mffloat_del ( MFFloat  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfdouble_del()

void gf_sg_mfdouble_del ( MFDouble  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfbool_del()

void gf_sg_mfbool_del ( MFBool  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfcolor_del()

void gf_sg_mfcolor_del ( MFColor  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfcolorrgba_del()

void gf_sg_mfcolorrgba_del ( MFColorRGBA  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfrotation_del()

void gf_sg_mfrotation_del ( MFRotation  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mftime_del()

void gf_sg_mftime_del ( MFTime  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfvec2f_del()

void gf_sg_mfvec2f_del ( MFVec2f  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfvec2d_del()

void gf_sg_mfvec2d_del ( MFVec2d  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfvec3f_del()

void gf_sg_mfvec3f_del ( MFVec3f  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfvec3d_del()

void gf_sg_mfvec3d_del ( MFVec3d  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfvec4f_del()

void gf_sg_mfvec4f_del ( MFVec4f  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfattrref_del()

void gf_sg_mfattrref_del ( MFAttrRef  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_sfimage_del()

void gf_sg_sfimage_del ( SFImage  im)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_sfstring_del()

void gf_sg_sfstring_del ( SFString  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_sfcommand_del()

void gf_sg_sfcommand_del ( SFCommandBuffer  cb)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_field_type_by_name()

u32 gf_sg_field_type_by_name ( char *  fieldType)
+ Here is the caller graph for this function:

◆ gf_sg_sfurl_del()

void gf_sg_sfurl_del ( SFURL  url)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfstring_del()

void gf_sg_mfstring_del ( MFString  par)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_mfscript_del()

void gf_sg_mfscript_del ( MFScript  sc)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_vrml_get_sf_size()

u32 gf_sg_vrml_get_sf_size ( u32  FieldType)
+ Here is the caller graph for this function:

◆ VRML_FieldCopyCast()

void VRML_FieldCopyCast ( void *  dest,
u32  dst_field_type,
void *  orig,
u32  ori_field_type 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitColorInterpolator()

Bool InitColorInterpolator ( M_ColorInterpolator *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitCoordinateInterpolator2D()

Bool InitCoordinateInterpolator2D ( M_CoordinateInterpolator2D *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitCoordinateInterpolator()

Bool InitCoordinateInterpolator ( M_CoordinateInterpolator *  n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitNormalInterpolator()

Bool InitNormalInterpolator ( M_NormalInterpolator *  n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitPositionInterpolator2D()

Bool InitPositionInterpolator2D ( M_PositionInterpolator2D *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitPositionInterpolator()

Bool InitPositionInterpolator ( M_PositionInterpolator *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitScalarInterpolator()

Bool InitScalarInterpolator ( M_ScalarInterpolator *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitOrientationInterpolator()

Bool InitOrientationInterpolator ( M_OrientationInterpolator *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitValuator()

Bool InitValuator ( M_Valuator *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitCoordinateInterpolator4D()

Bool InitCoordinateInterpolator4D ( M_CoordinateInterpolator4D *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitPositionInterpolator4D()

Bool InitPositionInterpolator4D ( M_PositionInterpolator4D *  node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PA_Init()

void PA_Init ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PA_Modified()

void PA_Modified ( GF_Node n,
GF_FieldInfo field 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PA2D_Init()

void PA2D_Init ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PA2D_Modified()

void PA2D_Modified ( GF_Node n,
GF_FieldInfo field 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SA_Init()

void SA_Init ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SA_Modified()

void SA_Modified ( GF_Node n,
GF_FieldInfo field 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitBooleanFilter()

void InitBooleanFilter ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitBooleanSequencer()

void InitBooleanSequencer ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitBooleanToggle()

void InitBooleanToggle ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitBooleanTrigger()

void InitBooleanTrigger ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitIntegerSequencer()

void InitIntegerSequencer ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitIntegerTrigger()

void InitIntegerTrigger ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ InitTimeTrigger()

void InitTimeTrigger ( GF_Node n)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_vrml_node_init()

Bool gf_sg_vrml_node_init ( GF_Node node)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_sg_vrml_node_changed()

Bool gf_sg_vrml_node_changed ( GF_Node node,
GF_FieldInfo field 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: