Thank you for the quick response Carsten and Gerrit. Unfortunately I
have run into a few more problems that I could use some help on.

1) How can I actually create an "abstract" field description? In 1.8 I
could do something like the following. But in 2.0 I can't do this
because FieldDescriptionBase has pure virtuals for string/stream
operations. If I knew the type at compile time I could use something
like SFString::Description, which appears in OSGImage.cpp. Any ideas?

pDesc = new FieldDescription(*pType,
                                            szFieldName,
                                            0, 0,
                                            false,
                                            (FieldIndexAccessMethod)
                                            &GenericAtt::getDynamicField);

_pGenAtt->addField(*pDesc);

2) There is no longer a FieldFactory in OpenSG 2.0. I need to be able
to look up a FieldType by ID. So currently I am using the TypeFactory
and then trying to cast to a FieldType. Can you see anything wrong
with doing it this way?

        pTypeBase = TypeFactory::the()->findType(uiFieldTypeId);
        pType = dynamic_cast<FieldType*>(pTypeBase);

Sorry for the flood of messages, but I am in desperate need of a VRML
loader in 2.0. I am willing to put in the time to port it, I just need
a little guidance along the way to make sure it is done right.

Thanks,
Aron

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to