Tcl vs C++ for vtkImageReader

David Gobbi dgobbi at irus.rri.on.ca
Thu Aug 19 16:29:11 EDT 1999


Hi 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

--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:

> I am trying to use SetDataExtent or SetDataVOI
> with vtkImageReader.  I can't find either of these
> functions in the C++ source or .a files.
> 
> However, I was able to find them in the TCL scripts
> and libVTKimagingTcl.a.   
> 
> Does this mean I can only use these methods from TCL ???
> 
> Why ????
> 
> -ANTHony
> _____________________________________________________
> Anthony Sacramone     Image Recognition Systems Group
> C.S. Draper Labs      Phone: 617-258-4206 
> 555 Technology Sq     FAX:   617-258-2555
> Cambridge, MA 02139   email: asacramone at draper.com
> 
> 
> -----------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------
> 



-----------------------------------------------------------------------------
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