[osg-users] ReaderWriterDICOM : build error
Adrian Egli OpenSceneGraph (3D)
3dhelp at gmail.com
Sat Nov 28 02:50:22 PST 2009
Hi Robert,
Your fix builds fine. I hope it also works, but i don't check against DICOM
yet.
/adrian
2009/11/27 Robert Osfield <robert.osfield at gmail.com>
> Hi Adrian,
>
> The code looks it's been copy and pasted from elsewhere where the
> result variable is defined. I've attempted a fix and checked this in.
> I don't have ITK installed right now so can't test it. Could you do
> an svn update and then test it?
>
> FYI, the DCMTK pathway is much more sophisticated and feature rich so
> is the best route for importing dicoms.
>
> Robert.
>
> On Fri, Nov 27, 2009 at 5:20 PM, Adrian Egli OpenSceneGraph (3D)
> <3dhelp at gmail.com> wrote:
> > Hi Robert,
> >
> > I tried to fix the ReaderWriterDicom.cpp , if USE_ITK is set
> > the the virtual ReadResult readImage(const std::string& file, const
> > osgDB::ReaderWriter::Options* options) const cause a build error \
> >
> > Error 1 error C2065: 'result' : undeclared identifier
> >
> f:\dev\OpenSceneGraph\OpenSceneGraphSVN\src\osgPlugins\dicom\ReaderWriterDICOM.cpp
> > 316
> > Error 2 error C2228: left of '.getImage' must have
> > class/struct/union
> >
> f:\dev\OpenSceneGraph\OpenSceneGraphSVN\src\osgPlugins\dicom\ReaderWriterDICOM.cpp
> > 316
> > Error 3 error C2227: left of '->getUserData' must point to
> > class/struct/union/generic type
> >
> f:\dev\OpenSceneGraph\OpenSceneGraphSVN\src\osgPlugins\dicom\ReaderWriterDICOM.cpp
> > 316
> > Error 4 error C2228: left of '.getImage' must have
> > class/struct/union
> >
> f:\dev\OpenSceneGraph\OpenSceneGraphSVN\src\osgPlugins\dicom\ReaderWriterDICOM.cpp
> > 365
> > Error 5 error C2227: left of '->getUserData' must point to
> > class/struct/union/generic type
> >
> f:\dev\OpenSceneGraph\OpenSceneGraphSVN\src\osgPlugins\dicom\ReaderWriterDICOM.cpp
> > 365
> >
> > The problem is that i don't correct understand what you would like to get
> > throught user data. But we need to define result . it's defined within a
> for
> > loop. but how can we fix it?
> >
> > /adrian
> >
> > MSVC 2005
> > --
> > ********************************************
> > Adrian Egli
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
********************************************
Adrian Egli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20091128/b894543c/attachment.htm>
More information about the osg-users
mailing list