|
From: Braden M. <br...@en...> - 2002-03-26 02:32:03
|
On Sat, 2002-05-25 at 02:11, Michael Schuldt wrote: > Hi, > > how and where can I extending OpenVRML for my own specified Nodes. > I want to include some special Nodes. I think i may implement my own class > for this node which extends the normal VrmlNode. But where can I define > the specified token for the Parser. > > Thx in advance The Old Way was to write a static defineType method, and then call it from VrmlNamespace::defineBuiltIns. All that has been obsoleted by changes in the rearchitecture branch. The New Way is to implement NodeClass, NodeType, and Node classes for your node. Node implementations get added to an implementation repository in VrmlScene::initNodeClassMap, and then added to the scene scope in VrmlScene::initScope. VrmlScene::initNodeClassMap is a temporary measure. Once the cohesion issues in the library have been resolved, a proper component registry (and registration procedure) will be instituted. -- Braden McDaniel e-mail: <br...@en...> <http://endoframe.com> Jabber: <br...@ja...> |