contrib/mul/msm/utils/msm_draw_shape_to_eps.h
Go to the documentation of this file.
00001 #ifndef msm_draw_shape_to_eps_h_
00002 #define msm_draw_shape_to_eps_h_
00003 //:
00004 // \file
00005 // \brief Draws current shape instance to an eps file
00006 // \author Tim Cootes
00007 
00008 #include <mbl/mbl_eps_writer.h>
00009 #include <msm/msm_points.h>
00010 #include <msm/msm_curve.h>
00011 
00012 //: Draws current shape instance to an eps file
00013 //  Uses writer.draw_polygon() function to write 
00014 //  given curves to file in current colour, linewidth etc.
00015 void msm_draw_shape_to_eps(mbl_eps_writer& writer,
00016                            const msm_points& points,
00017                            const msm_curves& curves);
00018 
00019 //: Draws points to an eps file with given radius
00020 //  Uses writer.draw_disk() or .draw_circle() function to write 
00021 //  points in current colour.
00022 void msm_draw_points_to_eps(mbl_eps_writer& writer,
00023                            const msm_points& points,
00024                            double radius, bool filled=true);
00025 
00026 #endif // msm_draw_shape_to_eps_h_