4 #include "OSGBaseInitFunctions.h"
5 #include "OSGFieldDescFactory.h"
6 #include "OSGBaseSFields.h"
7 #include "OSGBaseMFields.h"
9 int main (int argc
, char **argv
)
11 OSG::osgInit(argc
, argv
);
13 // fprintf(stderr, "%d field types\n");
15 for(OSG::UInt32 i
= 0;
16 i
< OSG::FieldDescFactory::the()->getNumFieldTypes();
19 // fprintf(stderr, "Field
22 OSG::FieldDescriptionBase
*pDesc
=
23 OSG::FieldDescFactory::the()->createByNameIdx(
29 pDesc
= OSG::FieldDescFactory::the()->createByNameIdx(
35 fprintf(stderr
, "got %p\n", pDesc
);
39 pDesc
->getFieldType().dump();
42 pDesc
= OSG::FieldDescFactory::the()->createByNameIdx(
48 fprintf(stderr
, "got %p\n", pDesc
);
52 pDesc
->getFieldType().dump();
56 pDesc
= OSG::FieldDescFactory::the()->createIdx(
57 OSG::SFUInt32::getClassType().getId(),
62 fprintf(stderr
, "got %p\n", pDesc
);
66 pDesc
->getFieldType().dump();
69 pDesc
= OSG::FieldDescFactory::the()->createIdx(
70 OSG::MFUInt32::getClassType().getId(),
75 fprintf(stderr
, "got %p\n", pDesc
);
79 pDesc
->getFieldType().dump();
84 pDesc
= OSG::FieldDescFactory::the()->createIdx(
85 OSG::SFUnrecFieldContainerPtr::getClassType().getId(),
90 fprintf(stderr
, "got %p\n", pDesc
);
94 pDesc
->getFieldType().dump();
97 pDesc
= OSG::FieldDescFactory::the()->createIdx(
98 OSG::MFUnrecFieldContainerPtr::getClassType().getId(),
103 fprintf(stderr
, "got %p\n", pDesc
);
107 pDesc
->getFieldType().dump();