mirror of https://github.com/CGAL/cgal
This commit is contained in:
parent
d7fc109b99
commit
92bc2eeb2c
|
|
@ -0,0 +1,83 @@
|
|||
// ======================================================================
|
||||
//
|
||||
// Copyright (c) 1997 The CGAL Consortium
|
||||
//
|
||||
// This software and related documentation is part of an INTERNAL release
|
||||
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
||||
// intended for general use.
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// release : $CGAL_Revision: CGAL-2.3-I-44 $
|
||||
// release_date : $CGAL_Date: 2001/03/09 $
|
||||
//
|
||||
// file : include/CGAL/IO/Pm_Geomview_stream.h
|
||||
// package : pm (5.45)
|
||||
// maintainer : Eyal Flato <flato@math.tau.ac.il>
|
||||
// source :
|
||||
// revision :
|
||||
// revision_date :
|
||||
// author(s) : Eti Ezra <estere@post.tau.ac.il>
|
||||
//
|
||||
//
|
||||
// coordinator : Tel-Aviv University (Dan Halperin <halperin@math.tau.ac.il>)
|
||||
//
|
||||
// Chapter :
|
||||
// ======================================================================
|
||||
|
||||
|
||||
#ifndef CGAL_IO_PM_GEOMVIEW_STREAM_H
|
||||
#define CGAL_IO_PM_GEOMVIEW_STREAM_H
|
||||
|
||||
#ifndef CGAL_PLANAR_MAP_2_H
|
||||
#include <CGAL/Planar_map_2.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
#ifndef CGAL_IO_PM_BOUNDING_BOX_BASE_WINDOW_STREAM_H
|
||||
#include <CGAL/IO/Pm_bounding_box_base_Window_stream.h>
|
||||
#endif
|
||||
*/
|
||||
|
||||
#ifndef CGAL_IO_PM_DRAWER_H
|
||||
#include <CGAL/IO/Pm_drawer.h>
|
||||
#endif
|
||||
|
||||
#ifndef CGAL_IO_DRAW_PM_H
|
||||
#include <CGAL/IO/draw_pm.h>
|
||||
#endif
|
||||
|
||||
CGAL_BEGIN_NAMESPACE
|
||||
|
||||
template <class Dcel,class Traits>
|
||||
Geomview_stream& operator << (Geomview_stream& os, const Planar_map_2<Dcel,Traits> &pm)
|
||||
{
|
||||
Pm_drawer< Planar_map_2<Dcel,Traits>, Geomview_stream> drawer(os);
|
||||
|
||||
draw_pm(pm, drawer, os);
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
/*template <class Dcel,class Traits>
|
||||
Window_stream& write(Window_stream& os, Planar_map_2<Dcel,Traits> &m)
|
||||
{
|
||||
// os << *m.get_bounding_box();
|
||||
Halfedge_iterator it = m.halfedges_begin(), end = m.halfedges_end();
|
||||
const Traits& traits=m.get_traits();
|
||||
while(it != end){
|
||||
write(os,it->curve(),traits);
|
||||
++it;++it;
|
||||
}
|
||||
return os;
|
||||
} */
|
||||
|
||||
|
||||
CGAL_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
// ======================================================================
|
||||
//
|
||||
// Copyright (c) 1997 The CGAL Consortium
|
||||
//
|
||||
// This software and related documentation is part of an INTERNAL release
|
||||
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
||||
// intended for general use.
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// release : $CGAL_Revision: CGAL-2.3-I-44 $
|
||||
// release_date : $CGAL_Date: 2001/03/09 $
|
||||
//
|
||||
// file : include/CGAL/IO/Pm_Postscript_file_stream.h
|
||||
// package : pm (5.45)
|
||||
// maintainer : Eyal Flato <flato@math.tau.ac.il>
|
||||
// source :
|
||||
// revision :
|
||||
// revision_date :
|
||||
// author(s) : Eti Ezra <estere@post.tau.ac.il>
|
||||
//
|
||||
//
|
||||
// coordinator : Tel-Aviv University (Dan Halperin <halperin@math.tau.ac.il>)
|
||||
//
|
||||
// Chapter :
|
||||
// ======================================================================
|
||||
|
||||
#ifndef CGAL_IO_PM_POSTSCRIPT_FILE_STREAM_H
|
||||
#define CGAL_IO_PM_POSTSCRIPT_FILE_STREAM_H
|
||||
|
||||
#ifndef CGAL_LEDA_WINDOW_H
|
||||
#include <CGAL/IO/leda_window.h>
|
||||
#endif
|
||||
|
||||
#ifndef CGAL_POSTSCRIPT_FILE_STREAM_H
|
||||
#include <CGAL/IO/Postscript_file_stream.h>
|
||||
#endif
|
||||
|
||||
#ifndef CGAL_PLANAR_MAP_2_H
|
||||
#include <CGAL/Planar_map_2.h>
|
||||
#endif
|
||||
|
||||
/* #ifndef CGAL_IO_PM_BOUNDING_BOX_BASE_WINDOW_STREAM_H
|
||||
#include <CGAL/IO/Pm_bounding_box_base_Window_stream.h>
|
||||
#endif
|
||||
*/
|
||||
|
||||
#ifndef CGAL_IO_PM_DRAWER_H
|
||||
#include <CGAL/IO/Pm_drawer.h>
|
||||
#endif
|
||||
|
||||
#ifndef CGAL_IO_DRAW_PM_H
|
||||
#include <CGAL/IO/draw_pm.h>
|
||||
#endif
|
||||
|
||||
CGAL_BEGIN_NAMESPACE
|
||||
|
||||
template <class Dcel,class Traits>
|
||||
Postscript_file_stream& operator << (Postscript_file_stream & ps, Planar_map_2<Dcel,Traits> &pm)
|
||||
{
|
||||
Pm_drawer< Planar_map_2<Dcel,Traits> , Postscript_file_stream> drawer(ps);
|
||||
|
||||
draw_pm(pm, drawer, ps);
|
||||
|
||||
return ps;
|
||||
}
|
||||
|
||||
|
||||
/*template <class Dcel,class Traits>
|
||||
Window_stream& write(Window_stream& os, Planar_map_2<Dcel,Traits> &m)
|
||||
{
|
||||
// os << *m.get_bounding_box();
|
||||
Halfedge_iterator it = m.halfedges_begin(), end = m.halfedges_end();
|
||||
const Traits& traits=m.get_traits();
|
||||
while(it != end){
|
||||
write(os,it->curve(),traits);
|
||||
++it;++it;
|
||||
}
|
||||
return os;
|
||||
} */
|
||||
|
||||
|
||||
CGAL_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,76 @@
|
|||
// ======================================================================
|
||||
//
|
||||
// Copyright (c) 1997 The CGAL Consortium
|
||||
//
|
||||
// This software and related documentation is part of an INTERNAL release
|
||||
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
||||
// intended for general use.
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// release : $CGAL_Revision: CGAL-2.3-I-44 $
|
||||
// release_date : $CGAL_Date: 2001/03/09 $
|
||||
//
|
||||
// file : include/CGAL/IO/Pm_Window_stream.h
|
||||
// package : pm (5.45)
|
||||
// maintainer : Eyal Flato <flato@math.tau.ac.il>
|
||||
// source :
|
||||
// revision :
|
||||
// revision_date :
|
||||
// author(s) : Eti Ezra <estere@post.tau.ac.il>
|
||||
//
|
||||
//
|
||||
// coordinator : Tel-Aviv University (Dan Halperin <halperin@math.tau.ac.il>)
|
||||
//
|
||||
// Chapter :
|
||||
// ======================================================================
|
||||
|
||||
#ifndef CGAL_IO_PM_WINDOW_STREAM_H
|
||||
#define CGAL_IO_PM_WINDOW_STREAM_H
|
||||
|
||||
#ifndef CGAL_PLANAR_MAP_2_H
|
||||
#include <CGAL/Planar_map_2.h>
|
||||
#endif
|
||||
|
||||
#ifndef CGAL_IO_PM_DRAWER_H
|
||||
#include <CGAL/IO/Pm_drawer.h>
|
||||
#endif
|
||||
|
||||
#ifndef CGAL_IO_DRAW_PM_H
|
||||
#include <CGAL/IO/draw_pm.h>
|
||||
#endif
|
||||
|
||||
CGAL_BEGIN_NAMESPACE
|
||||
|
||||
template <class Dcel,class Traits>
|
||||
Window_stream& operator << (Window_stream& os, const Planar_map_2<Dcel,Traits> &pm)
|
||||
{
|
||||
Pm_drawer< Planar_map_2<Dcel,Traits>, Window_stream> drawer(os);
|
||||
|
||||
draw_pm(pm, drawer, os);
|
||||
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
/*template <class Dcel,class Traits>
|
||||
Window_stream& write(Window_stream& os, Planar_map_2<Dcel,Traits> &m)
|
||||
{
|
||||
// os << *m.get_bounding_box();
|
||||
Halfedge_iterator it = m.halfedges_begin(), end = m.halfedges_end();
|
||||
const Traits& traits=m.get_traits();
|
||||
while(it != end){
|
||||
write(os,it->curve(),traits);
|
||||
++it;++it;
|
||||
}
|
||||
return os;
|
||||
} */
|
||||
|
||||
|
||||
CGAL_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
// ======================================================================
|
||||
//
|
||||
// Copyright (c) 1997 The CGAL Consortium
|
||||
//
|
||||
// This software and related documentation is part of an INTERNAL release
|
||||
// of the Computational Geometry Algorithms Library (CGAL). It is not
|
||||
// intended for general use.
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
//
|
||||
// release : $CGAL_Revision: CGAL-2.3-I-44 $
|
||||
// release_date : $CGAL_Date: 2001/03/09 $
|
||||
//
|
||||
// file : include/CGAL/IO/Pm_iostream.h
|
||||
// package : pm (5.45)
|
||||
// maintainer : Eyal Flato <flato@math.tau.ac.il>
|
||||
// source :
|
||||
// revision :
|
||||
// revision_date :
|
||||
// author(s) : Eti Ezra <estere@post.tau.ac.il>
|
||||
//
|
||||
//
|
||||
// coordinator : Tel-Aviv University (Dan Halperin <halperin@math.tau.ac.il>)
|
||||
//
|
||||
// Chapter :
|
||||
// ======================================================================
|
||||
|
||||
#ifndef CGAL_PM_IOSTREAM_H
|
||||
#define CGAL_PM_IOSTREAM_H
|
||||
|
||||
#ifndef CGAL_BASIC_H
|
||||
#include <CGAL/basic.h>
|
||||
#endif
|
||||
|
||||
#ifndef CGAL_PLANAR_MAP_2_H
|
||||
#include <CGAL/Planar_map_2.h>
|
||||
#endif
|
||||
|
||||
//#ifndef CGAL_INVERSE_INDEX_H
|
||||
//#include <CGAL/Inverse_index.h>
|
||||
//#endif
|
||||
|
||||
#ifndef CGAL_IO_PM_FILE_WRITER_H
|
||||
#include <CGAL/IO/Pm_file_writer.h>
|
||||
#endif // CGAL_IO_PM_FILE_WRITER_H
|
||||
|
||||
#ifndef CGAL_IO_WRITE_PM_H
|
||||
#include <CGAL/IO/write_pm.h>
|
||||
#endif // CGAL_IO_WRITE_PM_H
|
||||
|
||||
#include <iostream>
|
||||
|
||||
CGAL_BEGIN_NAMESPACE
|
||||
|
||||
template <class Dcel, class Traits> inline
|
||||
::std::ostream& operator << (::std::ostream& o, const Planar_map_2<Dcel,Traits>& pm)
|
||||
{
|
||||
|
||||
Pm_file_writer< Planar_map_2<Dcel,Traits> > writer(o, pm);
|
||||
|
||||
write_pm(pm, writer, o);
|
||||
|
||||
return o;
|
||||
}
|
||||
|
||||
template <class Dcel, class Traits> inline
|
||||
::std::istream& operator >> ( std::istream& in, Planar_map_2<Dcel,Traits>& pm) {
|
||||
|
||||
pm.read(std::cin);
|
||||
|
||||
return in;
|
||||
}
|
||||
|
||||
CGAL_END_NAMESPACE
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue