CGAL 5.5 - 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 Point from a WKT stream. More... | |
template<typename MultiPoint > | |
bool | CGAL::IO::read_multi_point_WKT (std::istream &in, MultiPoint &mp) |
overwrites the content of a MultiPoint with the first line starting with MULTIPOINT in the stream. More... | |
template<typename LineString > | |
bool | CGAL::IO::read_linestring_WKT (std::istream &in, LineString &polyline) |
fills a Linestring from a WKT stream. More... | |
template<typename MultiLineString > | |
bool | CGAL::IO::read_multi_linestring_WKT (std::istream &in, MultiLineString &mls) |
overwrites the content of a MultiLineString with the first line starting with MULTILINESTRING in the stream. More... | |
template<typename Polygon > | |
bool | CGAL::IO::read_polygon_WKT (std::istream &in, Polygon &polygon) |
fills polygon from a WKT stream. More... | |
template<typename MultiPolygon > | |
bool | CGAL::IO::read_multi_polygon_WKT (std::istream &in, MultiPolygon &polygons) |
overwrites the content of a MultiPolygon with the first line starting with MULTIPOLYGON in the stream. More... | |
template<typename Point > | |
std::ostream & | CGAL::IO::write_point_WKT (std::ostream &out, const Point &point) |
writes point into a WKT stream. More... | |
template<typename Polygon > | |
std::ostream & | CGAL::IO::write_polygon_WKT (std::ostream &out, const Polygon &poly) |
writes poly into a WKT stream. More... | |
template<typename LineString > | |
std::ostream & | CGAL::IO::write_linestring_WKT (std::ostream &out, LineString ls) |
writes the content of ls into a WKT stream. More... | |
template<typename MultiPoint > | |
std::ostream & | CGAL::IO::write_multi_point_WKT (std::ostream &out, MultiPoint &mp) |
writes the content of mp into a WKT stream. More... | |
template<typename MultiPolygon > | |
std::ostream & | CGAL::IO::write_multi_polygon_WKT (std::ostream &out, MultiPolygon &polygons) |
writes the content of polygons into a WKT stream. More... | |
template<typename MultiLineString > | |
std::ostream & | CGAL::IO::write_multi_linestring_WKT (std::ostream &out, MultiLineString &mls) |
writes the content of mls into a WKT stream. More... | |
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 , polylines and polygons with all the POINT, MULTIPOINT, LINESTRING, MULTILINESTRING, POLYGON and MULTIPOLYGON it finds in input . More... | |
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 RandomAccessRange of CGAL::Point_2 , and have:
|
FT
are supported.CGAL::Point_2
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 RandomAccessRange of Linestring , and have:
|
FT
are supported.CGAL::Point_2
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 RandomAccessRange of CGAL::Point_2 or CGAL::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 RandomAccessRange of CGAL::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_2 or CGAL::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 RandomAccessRange of CGAL::Point_2 or CGAL::Point_3 . |
MultiLineString | must be a RandomAccessRange of Linestring . |
MultiPolygon | must be a model of RandomAccessRange of CGAL::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 RandomAccessRange of CGAL::Point_2 . |
FT
are supported.CGAL::Point_2
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 RandomAccessRange of LineString . |
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 RandomAccessRange of CGAL::Point_2 . |
FT
are supported.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 RandomAccessRange of CGAL::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_2 |
FT
are supported.CGAL::Point_2
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.