diff --git a/Stream_support/demo/Stream_support_LEDA/Istream_iterator.cpp b/Stream_support/demo/Stream_support_LEDA/Istream_iterator.cpp deleted file mode 100644 index c73af819849..00000000000 --- a/Stream_support/demo/Stream_support_LEDA/Istream_iterator.cpp +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2001, 2003 Utrecht University (The Netherlands), -// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany), -// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg -// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria), -// and Tel-Aviv University (Israel). All rights reserved. -// -// This file is part of CGAL (www.cgal.org); you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public License as -// published by the Free Software Foundation; version 2.1 of the License. -// See the file LICENSE.LGPL 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$ -// $Id$ -// -// -// Author(s) : Sylvain Pion - - -#include - - -#ifndef CGAL_USE_LEDA -#include -int main(){ std::cout << "This demo needs LEDA" << std::endl; return 0;} -#else - -#include -#include -#include -#include -#include - -typedef CGAL::Cartesian::Point_2 Point; -typedef CGAL::Istream_iterator Iterator; - -#ifdef CGAL_USE_CGAL_WINDOW -#define leda_window CGAL::window -#define leda_green CGAL::green -#endif - -void init_window( leda_window& W) { - CGAL::cgalize( W); - W.set_fg_color( leda_green); - W.display(); - W.init(-1.0, 1.0, -1.0); -} - -int main () { - CGAL::Window_stream window( 512, 512); - init_window(window); - std::copy( Iterator(window), Iterator(), - std::ostream_iterator(std::cout,"\n")); - return 0; -} - -#endif diff --git a/Stream_support/demo/Stream_support_LEDA/README b/Stream_support/demo/Stream_support_LEDA/README deleted file mode 100644 index f191be7c7f8..00000000000 --- a/Stream_support/demo/Stream_support_LEDA/README +++ /dev/null @@ -1,10 +0,0 @@ -demo/Stream_support_LEDA/README -------------------------------- - -The generalized input stream and output stream iterator adaptor -are tested with the output and input of CGAL objects to and -from the LEDA window. - -The provided makefile is prepared to link with LEDA. - -Lutz Kettner diff --git a/Stream_support/demo/Stream_support_LEDA/makefile b/Stream_support/demo/Stream_support_LEDA/makefile deleted file mode 100644 index ebf10db26c0..00000000000 --- a/Stream_support/demo/Stream_support_LEDA/makefile +++ /dev/null @@ -1,56 +0,0 @@ -# Created by the script cgal_create_makefile -# This is the makefile for compiling a CGAL application. - -#---------------------------------------------------------------------# -# include platform specific settings -#---------------------------------------------------------------------# -# Choose the right include file from the /make directory. - -# CGAL_MAKEFILE = ENTER_YOUR_INCLUDE_MAKEFILE_HERE -include $(CGAL_MAKEFILE) - -#---------------------------------------------------------------------# -# compiler flags -#---------------------------------------------------------------------# - -CXXFLAGS = \ - $(CGAL_CXXFLAGS) \ - $(LONG_NAME_PROBLEM_CXXFLAGS) \ - $(DEBUG_OPT) - -#---------------------------------------------------------------------# -# linker flags -#---------------------------------------------------------------------# - -LIBPATH = \ - $(CGAL_WINDOW_LIBPATH) - -LDFLAGS = \ - $(LONG_NAME_PROBLEM_LDFLAGS) \ - $(CGAL_LDFLAGS) - -#---------------------------------------------------------------------# -# target entries -#---------------------------------------------------------------------# - -all: \ - Istream_iterator$(EXE_EXT) \ - stream_iterator$(EXE_EXT) - -Istream_iterator$(EXE_EXT): Istream_iterator$(OBJ_EXT) - $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)Istream_iterator Istream_iterator$(OBJ_EXT) $(LDFLAGS) - -stream_iterator$(EXE_EXT): stream_iterator$(OBJ_EXT) - $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)stream_iterator stream_iterator$(OBJ_EXT) $(LDFLAGS) - -clean: \ - Istream_iterator.clean \ - stream_iterator.clean - -#---------------------------------------------------------------------# -# suffix rules -#---------------------------------------------------------------------# - -.cpp$(OBJ_EXT): - $(CGAL_CXX) $(CXXFLAGS) $(OBJ_OPT) $< - diff --git a/Stream_support/demo/Stream_support_LEDA/stream_iterator.cpp b/Stream_support/demo/Stream_support_LEDA/stream_iterator.cpp deleted file mode 100644 index bd96ce72562..00000000000 --- a/Stream_support/demo/Stream_support_LEDA/stream_iterator.cpp +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 1999, 2001, 2003 Utrecht University (The Netherlands), -// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany), -// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg -// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria), -// and Tel-Aviv University (Israel). All rights reserved. -// -// This file is part of CGAL (www.cgal.org); you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public License as -// published by the Free Software Foundation; version 2.1 of the License. -// See the file LICENSE.LGPL 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$ -// $Id$ -// -// -// Author(s) : Lutz Kettner - - -#include - -#ifndef CGAL_USE_LEDA -#include -int main(){ std::cout << "This demo needs LEDA" << std::endl; return 0;} -#else - - -// stream_iterator.C -// ---------------------------------------------------------- -// CGAL example program for the CGAL stream iterator adaptor. - -#include -#include -#include -#include -#include -#include -#include - -typedef CGAL::Cartesian TutorialR; -typedef TutorialR::Point_2 Point; -typedef CGAL::Creator_uniform_2 Creator; -typedef CGAL::Random_points_in_disc_2 Random_points_in_disc; - -#ifdef CGAL_USE_CGAL_WINDOW -#define leda_window CGAL::window -#define leda_green CGAL::green -#endif - -void init_window( leda_window& W) -{ - CGAL::cgalize( W); - W.set_fg_color( leda_green); - W.display(); - W.init(-1.0, 1.0, -1.0); -} - -int main() { - Point points[100]; - - // Create 100 random points uniform distributed in a disc of radius 1. - // Use deterministic initialization for the random number generator. - CGAL::Random rnd(1); - Random_points_in_disc rnd_points( 1.0, rnd); - CGAL::copy_n( rnd_points, 100, points); - - // Display points in a 512x512 pixel window. - leda_window W(512, 512); - init_window( W); - std::copy( points, points+100, - CGAL::Ostream_iterator(W)); - - // Wait for mouse click in window. - CGAL::Istream_iterator si(W); - Point q = *si; // W >> q; - - return 0; -} - -#endif