SFCGAL
Classes | Functions
SFCGAL::io Namespace Reference

Classes

class  BinarySerializer
 
class  BinaryUnserializer
 

Functions

auto writeBinaryGeometry (const SFCGAL::Geometry &)
 Convert a Geometry to its binary representation. More...
 
auto writeBinaryPrepared (const SFCGAL::PreparedGeometry &)
 Convert a PreparedGeometry to its binary representation. More...
 
auto readBinaryGeometry (const std::string &)
 Read a Geometry from a binary representation. More...
 
auto readBinaryPrepared (const std::string &)
 Read a PreparedGeometry from a binary representation. More...
 
auto readEwkt (std::istream &s)
 Read a EWKT prepared geometry from an input stream. More...
 
auto readEwkt (const std::string &s)
 Read a EWKT geometry from a string. More...
 
auto readEwkt (const char *, size_t)
 Read a EWKT geometry from a char*. More...
 
SFCGAL_API osg::Geometry * toOsgGeometry (const Geometry &g)
 [helper] converts a SFCGAL::Geometry to an OSG geometry More...
 
void vtk (const Polygon &poly, const std::string &file)
 
template<typename MultiPolygonOrPolyhedraSurface >
void vtk (const MultiPolygonOrPolyhedraSurface &multiPoly, const std::string &file)
 
void vtk (const Triangle &tri, const std::string &file)
 
void vtk (const TriangulatedSurface &s, const std::string &file)
 
void vtk (const Geometry &g, const std::string &file)
 
auto readWkt (std::istream &s)
 Read a WKT geometry from an input stream. More...
 
auto readWkt (const std::string &s)
 Read a WKT geometry from a string. More...
 
auto readWkt (const char *, size_t)
 Read a WKT geometry from a char*. More...
 

Function Documentation

◆ readBinaryGeometry()

SFCGAL_API std::unique_ptr< SFCGAL::Geometry > SFCGAL::io::readBinaryGeometry ( const std::string &  str) -> std::unique_ptr< Geometry >

Read a Geometry from a binary representation.

◆ readBinaryPrepared()

SFCGAL_API std::unique_ptr< SFCGAL::PreparedGeometry > SFCGAL::io::readBinaryPrepared ( const std::string &  str) -> std::unique_ptr< PreparedGeometry >

Read a PreparedGeometry from a binary representation.

◆ readEwkt() [1/3]

SFCGAL_API std::unique_ptr< PreparedGeometry > SFCGAL::io::readEwkt ( const char *  str,
size_t  len 
) -> std::unique_ptr< PreparedGeometry >

Read a EWKT geometry from a char*.

◆ readEwkt() [2/3]

SFCGAL_API std::unique_ptr< PreparedGeometry > SFCGAL::io::readEwkt ( const std::string &  s) -> std::unique_ptr< PreparedGeometry >

Read a EWKT geometry from a string.

◆ readEwkt() [3/3]

SFCGAL_API std::unique_ptr< PreparedGeometry > SFCGAL::io::readEwkt ( std::istream &  s) -> std::unique_ptr< PreparedGeometry >

Read a EWKT prepared geometry from an input stream.

◆ readWkt() [1/3]

SFCGAL_API std::unique_ptr< Geometry > SFCGAL::io::readWkt ( const char *  str,
size_t  len 
) -> std::unique_ptr< Geometry >

Read a WKT geometry from a char*.

◆ readWkt() [2/3]

SFCGAL_API std::unique_ptr< Geometry > SFCGAL::io::readWkt ( const std::string &  s) -> std::unique_ptr< Geometry >

Read a WKT geometry from a string.

◆ readWkt() [3/3]

SFCGAL_API std::unique_ptr< Geometry > SFCGAL::io::readWkt ( std::istream &  s) -> std::unique_ptr< Geometry >

Read a WKT geometry from an input stream.

◆ toOsgGeometry()

SFCGAL_API osg::Geometry * SFCGAL::io::toOsgGeometry ( const Geometry g)

[helper] converts a SFCGAL::Geometry to an OSG geometry

◆ vtk() [1/5]

void SFCGAL::io::vtk ( const Geometry g,
const std::string &  file 
)
inline

◆ vtk() [2/5]

template<typename MultiPolygonOrPolyhedraSurface >
void SFCGAL::io::vtk ( const MultiPolygonOrPolyhedraSurface &  multiPoly,
const std::string &  file 
)

◆ vtk() [3/5]

void SFCGAL::io::vtk ( const Polygon poly,
const std::string &  file 
)
inline

◆ vtk() [4/5]

void SFCGAL::io::vtk ( const Triangle tri,
const std::string &  file 
)
inline

◆ vtk() [5/5]

void SFCGAL::io::vtk ( const TriangulatedSurface s,
const std::string &  file 
)
inline

◆ writeBinaryGeometry()

SFCGAL_API std::string SFCGAL::io::writeBinaryGeometry ( const SFCGAL::Geometry )

Convert a Geometry to its binary representation.

Warning
resulting string may contain 0s

◆ writeBinaryPrepared()

SFCGAL_API std::string SFCGAL::io::writeBinaryPrepared ( const SFCGAL::PreparedGeometry )

Convert a PreparedGeometry to its binary representation.

Warning
resulting string may contain 0s