diff --git a/Packages/Min_circle_2/web/Min_circle_2.aw b/Packages/Min_circle_2/web/Min_circle_2.aw index b259ccf8a86..257aa904f38 100644 --- a/Packages/Min_circle_2/web/Min_circle_2.aw +++ b/Packages/Min_circle_2/web/Min_circle_2.aw @@ -15,6 +15,7 @@ @usepackage[latin1]{inputenc} @usepackage{a4wide2} @usepackage{amssymb} +@usepackage{path} @usepackage{cc_manual} @article @@ -1169,6 +1170,32 @@ traits class object. } @end +@! ---------------------------------------------------------------------------- +\subsubsection{Graphical Output} + +@macro = @begin + #ifdef CGAL_MIN_CIRCLE_2_H + #ifndef CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2 + #define CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2 + + template< class R > + CGAL_Window_stream& + operator << ( CGAL_Window_stream &ws, + const CGAL_Min_circle_2& min_circle) + { + typedef typename CGAL_Min_circle_2::Point_iterator Point_iterator; + + Point_iterator first( min_circle.points_begin()); + Point_iterator last ( min_circle.points_end()); + for ( ; first != last; ++first) + ws << *first; + return( ws << min_circle.circle()); + } + + #endif // CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2 + #endif // CGAL_MIN_CIRCLE_2_H +@end + @! ---------------------------------------------------------------------------- \subsubsection{Private Member Function {\ccFont compute\_circle}} @@ -1572,6 +1599,33 @@ emptiness and degeneracy, resp. } @end +@! ---------------------------------------------------------------------------- +\subsubsection{Graphical Output} + +@macro = @begin + #ifdef CGAL_OPTIMISATION_CIRCLE_2_H + #ifndef CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2 + #define CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2 + + template< class R > + CGAL_Window_stream& + operator << ( CGAL_Window_stream &ws, + const CGAL_Optimisation_circle_2& oc) + { + double cx( CGAL_to_double( oc.center().x())); + double cy( CGAL_to_double( oc.center().y())); + double sr( CGAL_to_double( oc.squared_radius())); + + if ( ! CGAL_is_negative( sr)) + ws.draw_circle( cx, cy, sqrt( sr)); + return( ws); + } + + #endif // CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2 + #endif // CGAL_OPTIMISATION_CIRCLE_2_H +@end + + @! ---------------------------------------------------------------------------- @! Class template CGAL_Min_circle_2_traits_2 @! ---------------------------------------------------------------------------- @@ -3042,6 +3096,34 @@ end of each file. @ @end +@! ---------------------------------------------------------------------------- +@! Min_circle_2_Window_stream.h +@! ---------------------------------------------------------------------------- + +\subsection{Min\_circle\_2\_Window\_stream.h} + +@file = @begin + @( + "include/CGAL/IO/Min_circle_2_Window_stream.h", + "graphical output to `leda_window' for Min_circle_2 algorith.") + + // Each of the following operators is individually + // protected against multiple inclusion. + + // Window_stream I/O operators + // =========================== + + // Optimisation_circle_2 + // --------------------- + @ + + // Min_circle_2 + // ------------ + @ + + @ +@end + @! ---------------------------------------------------------------------------- @! test_Min_circle_2.C @! ---------------------------------------------------------------------------- @@ -3121,6 +3203,6 @@ web file. \clearpage \bibliographystyle{plain} -\bibliography{geom,cgal} +\bibliography{geom,../../doc_tex/basic/Optimisation/cgal} @! ===== EOF ==================================================================