proposal: eliminate hints file

David Gobbi dgobbi at irus.rri.on.ca
Sun Apr 9 14:46:24 EDT 2000


Hi all,

For those people who either access vtk through cvs and/or write
your own vtk classes, I have a proposal that would really cut
down on build time: move all of the info in the vtk/wrap/hints
file into the individual header files.

This could be done with a set of typedefs in vtkSetGet.h that the wrappers
could recognize:

typedef float *vtkfloat2;
typedef float *vtkfloat3;
typedef double *vtkdouble4;
etc.

A declaration with a return-type hint would look like e.g.

vtkfloat3 IntersectWithLine(const float p1[3], const float p2[3], 
                            const normal[3], const origin[3])

This function would automatically be wrapped to return 3 floats,
and the .html docs would translate 'vtkfloat3' back into 'float *'
or possibly into 'float[3]' (which is more informative, but not
absolutely correct).

Any thoughts?  

 - David

--
  David Gobbi, MSc                    dgobbi at irus.rri.on.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list