| CGAL 6.1 - IO Streams
    | 
I/O Functions for the Well-Known Text (WKT) File Format.
| Functions | |
| template<typename Point > | |
| bool | CGAL::IO::read_point_WKT (std::istream &in, Point &point) | 
| fills a Pointfrom a WKT stream. | |
| template<typename MultiPoint > | |
| bool | CGAL::IO::read_multi_point_WKT (std::istream &in, MultiPoint &mp) | 
| overwrites the content of a MultiPointwith the first line starting with MULTIPOINT in the stream. | |
| template<typename LineString > | |
| bool | CGAL::IO::read_linestring_WKT (std::istream &in, LineString &polyline) | 
| fills a Linestringfrom a WKT stream. | |
| template<typename MultiLineString > | |
| bool | CGAL::IO::read_multi_linestring_WKT (std::istream &in, MultiLineString &mls) | 
| overwrites the content of a MultiLineStringwith the first line starting with MULTILINESTRING in the stream. | |
| template<typename Polygon > | |
| bool | CGAL::IO::read_polygon_WKT (std::istream &in, Polygon &polygon) | 
| fills polygonfrom a WKT stream. | |
| template<typename MultiPolygon > | |
| bool | CGAL::IO::read_multi_polygon_WKT (std::istream &in, MultiPolygon &polygons) | 
| overwrites the content of a MultiPolygonwith the first line starting with MULTIPOLYGON in the stream. | |
| template<typename Point > | |
| std::ostream & | CGAL::IO::write_point_WKT (std::ostream &out, const Point &point) | 
| writes pointinto a WKT stream. | |
| template<typename Polygon > | |
| std::ostream & | CGAL::IO::write_polygon_WKT (std::ostream &out, const Polygon &poly) | 
| writes polyinto a WKT stream. | |
| template<typename LineString > | |
| std::ostream & | CGAL::IO::write_linestring_WKT (std::ostream &out, LineString ls) | 
| writes the content of lsinto a WKT stream. | |
| template<typename MultiPoint > | |
| std::ostream & | CGAL::IO::write_multi_point_WKT (std::ostream &out, MultiPoint &mp) | 
| writes the content of mpinto a WKT stream. | |
| template<typename MultiPolygon > | |
| std::ostream & | CGAL::IO::write_multi_polygon_WKT (std::ostream &out, MultiPolygon &polygons) | 
| writes the content of polygonsinto a WKT stream. | |
| template<typename MultiLineString > | |
| std::ostream & | CGAL::IO::write_multi_linestring_WKT (std::ostream &out, MultiLineString &mls) | 
| writes the content of mlsinto a WKT stream. | |
| template<typename MultiPoint , typename MultiLineString , typename MultiPolygon > | |
| bool | CGAL::IO::read_WKT (std::istream &is, MultiPoint &points, MultiLineString &polylines, MultiPolygon &polygons) | 
| reads the content of a WKT stream and fills points,polylinesandpolygonswith all the POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON and MULTIPOLYGON it finds ininput. | |
| bool CGAL::IO::read_linestring_WKT | ( | std::istream & | in, | 
| LineString & | polyline | ||
| ) | 
#include <CGAL/IO/WKT.h>
fills a Linestring from a WKT stream. 
The first line starting with LINESTRING in the stream will be used.
| Linestring | must be a model of RandomAccessRangeofCGAL::Point_2orCGAL::Point_3, and have:
 | 
FT are supported.CGAL::Point_2 CGAL::Point_3 | bool CGAL::IO::read_multi_linestring_WKT | ( | std::istream & | in, | 
| MultiLineString & | mls | ||
| ) | 
#include <CGAL/IO/WKT.h>
overwrites the content of a MultiLineString with the first line starting with MULTILINESTRING in the stream. 
| MultiLineString | must be a model of RandomAccessRangeofLinestring, and have:
 | 
FT are supported. | bool CGAL::IO::read_multi_point_WKT | ( | std::istream & | in, | 
| MultiPoint & | mp | ||
| ) | 
#include <CGAL/IO/WKT.h>
overwrites the content of a MultiPoint with the first line starting with MULTIPOINT in the stream. 
| MultiPoint | must be a model of RandomAccessRangeofCGAL::Point_2orCGAL::Point_3, and have:
 | 
FT are supported.CGAL::Point_2 CGAL::Point_3 | bool CGAL::IO::read_multi_polygon_WKT | ( | std::istream & | in, | 
| MultiPolygon & | polygons | ||
| ) | 
#include <CGAL/IO/WKT.h>
overwrites the content of a MultiPolygon with the first line starting with MULTIPOLYGON in the stream. 
| MultiPolygon | must be a model of RandomAccessRangeofCGAL::General_polygon_with_holes_2, and have:
 | 
FT are supported.| bool CGAL::IO::read_point_WKT | ( | std::istream & | in, | 
| Point & | point | ||
| ) | 
#include <CGAL/IO/WKT.h>
fills a Point from a WKT stream. 
The first line starting with POINT in the stream will be used.
| Point | can be a CGAL::Point_2orCGAL::Point_3. | 
FT are supported.CGAL::Point_2 CGAL::Point_3 | bool CGAL::IO::read_polygon_WKT | ( | std::istream & | in, | 
| Polygon & | polygon | ||
| ) | 
#include <CGAL/IO/WKT.h>
fills polygon from a WKT stream. 
The first line starting with POLYGON in the stream will be used.
| Polygon | is a CGAL::General_polygon_with_holes_2. | 
FT are supported.| bool CGAL::IO::read_WKT | ( | std::istream & | is, | 
| MultiPoint & | points, | ||
| MultiLineString & | polylines, | ||
| MultiPolygon & | polygons | ||
| ) | 
#include <CGAL/IO/WKT.h>
reads the content of a WKT stream and fills points, polylines and polygons with all the POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON and MULTIPOLYGON it finds in input. 
| MultiPoint | must be a model of RandomAccessRangeofCGAL::Point_2orCGAL::Point_3. | 
| MultiLineString | must be a RandomAccessRangeofLinestring. | 
| MultiPolygon | must be a model of RandomAccessRangeofCGAL::General_polygon_with_holes_2. | 
FT are supported.CGAL::IO::read_linestring_WKT() | std::ostream & CGAL::IO::write_linestring_WKT | ( | std::ostream & | out, | 
| LineString | ls | ||
| ) | 
#include <CGAL/IO/WKT.h>
writes the content of ls into a WKT stream. 
| LineString | must be a RandomAccessRangeofCGAL::Point_2orCGAL::Point_3. | 
FT are supported.CGAL::Point_2 CGAL::Point_3 | std::ostream & CGAL::IO::write_multi_linestring_WKT | ( | std::ostream & | out, | 
| MultiLineString & | mls | ||
| ) | 
#include <CGAL/IO/WKT.h>
writes the content of mls into a WKT stream. 
| MultiLineString | must be a RandomAccessRangeofLineString. | 
FT are supported.CGAL::IO::write_linestring_WKT() | std::ostream & CGAL::IO::write_multi_point_WKT | ( | std::ostream & | out, | 
| MultiPoint & | mp | ||
| ) | 
#include <CGAL/IO/WKT.h>
writes the content of mp into a WKT stream. 
| MultiPoint | must be a RandomAccessRangeofCGAL::Point_2orCGAL::Point_3. | 
FT are supported.CGAL::Point_2 CGAL::Point_2 | std::ostream & CGAL::IO::write_multi_polygon_WKT | ( | std::ostream & | out, | 
| MultiPolygon & | polygons | ||
| ) | 
#include <CGAL/IO/WKT.h>
writes the content of polygons into a WKT stream. 
| MultiPolygon | must be a RandomAccessRangeofCGAL::General_polygon_with_holes_2. | 
FT are supported.| std::ostream & CGAL::IO::write_point_WKT | ( | std::ostream & | out, | 
| const Point & | point | ||
| ) | 
#include <CGAL/IO/WKT.h>
writes point into a WKT stream. 
| Point | is a CGAL::Point_2orCGAL::Point_3 | 
FT are supported.CGAL::Point_2 CGAL::Point_3 | std::ostream & CGAL::IO::write_polygon_WKT | ( | std::ostream & | out, | 
| const Polygon & | poly | ||
| ) | 
#include <CGAL/IO/WKT.h>
writes poly into a WKT stream. 
| Polygon | must be a CGAL::General_polygon_with_holes_2 | 
FT are supported.