📄 min_circle_2_window_stream.h
字号:
// Copyright (c) 1997-2001 Freie Universitaet Berlin (Germany).// All rights reserved.//// This file is part of CGAL (www.cgal.org); you may redistribute it under// the terms of the Q Public License version 1.0.// See the file LICENSE.QPL distributed with CGAL.//// Licensees holding a valid commercial license may use this file in// accordance with the commercial license agreement provided with the software.//// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.//// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Min_circle_2/include/CGAL/IO/Min_circle_2_Window_stream.h $// $Id: Min_circle_2_Window_stream.h 28567 2006-02-16 14:30:13Z lsaboret $// //// Author(s) : Sven Schoenherr <sven@inf.ethz.ch>, Bernd Gaertner// Each of the following operators is individually// protected against multiple inclusion.// Window_stream I/O operators// ===========================// Optimisation_circle_2// ---------------------#ifdef CGAL_OPTIMISATION_CIRCLE_2_H#ifndef CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2#define CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2template< class K_ >CGAL::Window_stream&operator << ( CGAL::Window_stream &ws, const CGAL::Optimisation_circle_2<K_>& 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_NTS is_negative( sr)) ws.draw_circle( cx, cy, CGAL::sqrt( sr)); return( ws);}#endif // CGAL_IO_WINDOW_STREAM_OPTIMISATION_CIRCLE_2#endif // CGAL_OPTIMISATION_CIRCLE_2_H// Min_circle_2// ------------#ifdef CGAL_MIN_CIRCLE_2_H#ifndef CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2#define CGAL_IO_WINDOW_STREAM_MIN_CIRCLE_2template< class Traits_ >CGAL::Window_stream&operator << ( CGAL::Window_stream &ws, const CGAL::Min_circle_2<Traits_>& min_circle){ typedef typename CGAL::Min_circle_2<Traits_>::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// ===== EOF ==================================================================
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -