contrib/gel/vmal/vmal_convert_osl.h
Go to the documentation of this file.
00001 // This is gel/vmal/vmal_convert_osl.h
00002 #ifndef vmal_convert_osl_h_
00003 #define vmal_convert_osl_h_
00004 //:
00005 // \file
00006 // \brief Toolbox to make conversion from osl to vtol
00007 // \author L. Guichard
00008 //------------------------------------------------------------------------------
00009 
00010 #include <vtol/vtol_vertex_2d_sptr.h>
00011 #include <vtol/vtol_edge_2d_sptr.h>
00012 
00013 #include <osl/osl_vertex.h>
00014 #include <osl/osl_edge.h>
00015 
00016 #include <mvl/HomgPoint2D.h>
00017 
00018 #include <vcl_vector.h>
00019 #include <vcl_string.h>
00020 
00021 vtol_vertex_2d_sptr convert_vertex_2d(osl_vertex & in);
00022 
00023 // Convert an osl_edge to a vtol_edge_2d.
00024 // If the osl_edge is a line then set type=LINE.
00025 // If you don't know anything about the shape of the curve, set type=CURVE_NO_TYPE (default)
00026 vtol_edge_2d_sptr convert_edge_2d(osl_edge & in,vcl_string type="CURVE_NO_TYPE");
00027 
00028 vcl_vector<vtol_edge_2d_sptr>* convert_vector_edge_2d(vcl_list<osl_edge*> & in,
00029                                                       vcl_string type="CURVE_NO_TYPE");
00030 
00031 vcl_vector<vcl_vector<vtol_edge_2d_sptr>*>* convert_array_edge_2d(vcl_list<vcl_list<osl_edge *>*> & in,
00032                                                                   vcl_string type);
00033 
00034 void convert_pointarray(vcl_vector<vtol_vertex_2d_sptr>& in,vcl_vector<HomgPoint2D> & out);
00035 
00036 #endif // vmal_convert_osl_h_