From: Peter V. <Pet...@es...> - 2003-11-16 21:06:29
|
Dear all, In core/vgl, most classes are templated on the data type (float or double). But the vgl_polygon and the vgl_*iterator classes are not, which causes some inconvenience when using e.g. vgl_polygon together with vgl_point_2d<double>. I have now "templatised" all classes in vgl. The "diff" of vgl_fwd.h is below. This causes of course a (minor) interface incompatibility: every user will have to replace every occurrence of vgl_polygon in his private code with vgl_polygon<float> . Shall I go ahead and cvs commit my changes? -- Peter. Index: core/vgl/vgl_fwd.h =================================================================== RCS file: /cvsroot/vxl/vxl/core/vgl/vgl_fwd.h,v retrieving revision 1.6 diff -u -w -r1.6 vgl_fwd.h --- core/vgl/vgl_fwd.h 17 May 2003 14:35:15 -0000 1.6 +++ core/vgl/vgl_fwd.h 14 Nov 2003 19:51:16 -0000 @@ -21,10 +21,11 @@ template <class T> class vgl_box_2d; template <class T> class vgl_box_3d; template <class T> class vgl_conic; -class vgl_polygon; -class vgl_polygon_scan_iterator; +template <class T> class vgl_polygon; struct vgl_region_scan_iterator; -struct vgl_triangle_scan_iterator; -struct vgl_window_scan_iterator; +template <class T> class vgl_ellipse_scan_iterator; +template <class T> class vgl_polygon_scan_iterator; +template <class T> class vgl_triangle_scan_iterator; +template <class T> class vgl_window_scan_iterator; #endif // vgl_fwd_h_ |