[osg-users] Set userdata in Plugins
Hi, I am having some problems with the .dbf plugin. Can sombody please tell what setUserData() method (in ESRIShapeReaderWriter.cpp)does? or where the data passed to the method is used? Thanks Om ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Set userdata in Plugins
It's like a void* in C. user data can be any pointer to a Referenced object. The data can be used any way your application wants. -Paul > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of om > Sent: Monday, May 05, 2008 7:44 AM > To: OpenSceneGraph Users > Subject: [osg-users] Set userdata in Plugins > > Hi, > > I am having some problems with the .dbf plugin. Can sombody > please tell what setUserData() method (in > ESRIShapeReaderWriter.cpp)does? or where the data passed to > the method is used? > > Thanks > > Om > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce negraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Set userdata in Plugins
Thanks for your reponse Paul, but I wanted to know what it does in the .dbf plugin, it would be great if somebody can tell what are the functionalities of .dbf plugin. What I understood is that it reads the dbf file and stores the data as ShapeAttribute, but is that all it does? Thanks Om Paul Martz wrote: It's like a void* in C. user data can be any pointer to a Referenced object. The data can be used any way your application wants. -Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of om Sent: Monday, May 05, 2008 7:44 AM To: OpenSceneGraph Users Subject: [osg-users] Set userdata in Plugins Hi, I am having some problems with the .dbf plugin. Can sombody please tell what setUserData() method (in ESRIShapeReaderWriter.cpp)does? or where the data passed to the method is used? Thanks Om ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce negraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Set userdata in Plugins
You'll probably get the best and most exact answer by looking at the source code for the plugin. -- mew On Mon, May 5, 2008 at 12:02 PM, om <[EMAIL PROTECTED]> wrote: > > Thanks for your reponse Paul, > but I wanted to know what it does in the .dbf plugin, it would be great if > somebody can tell what are the functionalities of .dbf plugin. What I > understood is that it reads the dbf file and stores the data as > ShapeAttribute, but is that all it does? > > Thanks > > Om > > > > Paul Martz wrote: > It's like a void* in C. user data can be any pointer to a Referenced > object. > The data can be used any way your application wants. > -Paul > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of om > Sent: Monday, May 05, 2008 7:44 AM > To: OpenSceneGraph Users > Subject: [osg-users] Set userdata in Plugins > > Hi, > > I am having some problems with the .dbf plugin. Can sombody > please tell what setUserData() method (in > ESRIShapeReaderWriter.cpp)does? or where the data passed to > the method is used? > > Thanks > > Om > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce > > negraph.org > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Mike Weiblen -- Austin Texas USA -- http://mew.cx/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Set userdata in Plugins
Hi Om 2008/5/6 Mike Weiblen <[EMAIL PROTECTED]>: > You'll probably get the best and most exact answer by looking at the > source code for the plugin. Probably the first reflex to have ;-) for a simple thing like .shp plugin. I have implemented this part of shp plugin. The only thing done by the .bdf loader is extracting shape attribut for each shape and store them in ShapeAttribut HTH David Callu > > -- mew > > > > On Mon, May 5, 2008 at 12:02 PM, om <[EMAIL PROTECTED]> wrote: > > > > Thanks for your reponse Paul, > > but I wanted to know what it does in the .dbf plugin, it would be great > if > > somebody can tell what are the functionalities of .dbf plugin. What I > > understood is that it reads the dbf file and stores the data as > > ShapeAttribute, but is that all it does? > > > > Thanks > > > > Om > > > > > > > > Paul Martz wrote: > > It's like a void* in C. user data can be any pointer to a Referenced > > object. > > The data can be used any way your application wants. > > -Paul > > > > > > > > > > -Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of om > > Sent: Monday, May 05, 2008 7:44 AM > > To: OpenSceneGraph Users > > Subject: [osg-users] Set userdata in Plugins > > > > Hi, > > > > I am having some problems with the .dbf plugin. Can sombody > > please tell what setUserData() method (in > > ESRIShapeReaderWriter.cpp)does? or where the data passed to > > the method is used? > > > > Thanks > > > > Om > > > > ___ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce > > > > negraph.org > > > > ___ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > > ___ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > -- > Mike Weiblen -- Austin Texas USA -- http://mew.cx/ > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org