Tcl vs C++ for vtkImageReader
Anthony Sacramone
asacramone at draper.com
Thu Aug 19 17:43:05 EDT 1999
Sorry about that.
Thanks again.
>
> They are methods, use them like this:
> reader = vtkImageReader::New()
> reader->SetDataVOI(xlow,xhigh,ylow,yhigh,zlow,zhigh).
>
> As you might have guessed from the name "vtkSetVector6Macro"
> you must provide 6 parameters, not four.
>
> Also, in the future I ask that you post requests for help
> to the vtk mailing list, not directly to me.
>
> - David
>
> --David Gobbi, MSc dgobbi at irus.rri.on.ca
> Advanced Imaging Research Group
> Robarts Research Institute, University of Western Ontario
>
> On Thu, 19 Aug 1999, Anthony Sacramone wrote:
>
> > THANKS MUCH FOR THE REPLY!!!!
> >
> > That's kinda neet.
> > So, how do I invoke them from my C++ application ???
> >
> > Is it SetDataVOI(a,b,c,d), vtkSetDataVOI(a,b,c,d),
> > vol->SetDataVOI(a,b,c,d), SetDataVOI(vol,a,b,c,d) ????
> >
> > I've tried numerous combinations to no avail.
> >
> > THANKS AGAIN!!!
> >
> > -ANTHony
> >
> > --------------------------------------------------------------------
> > >
> > > In vtkImageReader.h:
> > >
> > > vtkSetVector6Macro(DataVOI,int);
> > > vtkGetVector6Macro(DataVOI,int);
> > >
> > > These two macros define SetDataVOI() and GetDataVOI(). The
> > > functions are available from all languages. Though I'm
> > > not a fan of macros in general, their use in VTK helps to
> > > provide a very consistent interface, which in turn makes
> > > it easier to provide bindings for languages other than C++.
> > >
> > > - David
> > >
> >
>
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list