SFCGAL  1.3.0
Classes | Functions
SFCGAL::io Namespace Reference

Classes

class  BinarySerializer
 
class  BinaryUnserializer
 

Functions

std::string writeBinaryGeometry (const SFCGAL::Geometry &)
 Convert a Geometry to its binary representation. More...
 
std::string writeBinaryPrepared (const SFCGAL::PreparedGeometry &)
 Convert a PreparedGeometry to its binary representation. More...
 
std::auto_ptr< GeometryreadBinaryGeometry (const std::string &)
 Read a Geometry from a binary representation. More...
 
std::auto_ptr< PreparedGeometryreadBinaryPrepared (const std::string &)
 Read a PreparedGeometry from a binary representation. More...
 
std::auto_ptr< PreparedGeometryreadEwkt (std::istream &s)
 Read a EWKT prepared geometry from an input stream. More...
 
std::auto_ptr< PreparedGeometryreadEwkt (const std::string &s)
 Read a EWKT geometry from a string. More...
 
std::auto_ptr< PreparedGeometryreadEwkt (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)
 
std::auto_ptr< GeometryreadWkt (std::istream &s)
 Read a WKT geometry from an input stream. More...
 
std::auto_ptr< GeometryreadWkt (const std::string &s)
 Read a WKT geometry from a string. More...
 
std::auto_ptr< GeometryreadWkt (const char *, size_t)
 Read a WKT geometry from a char*. More...
 

Function Documentation

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

Read a Geometry from a binary representation.

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

Read a PreparedGeometry from a binary representation.

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

Read a EWKT prepared geometry from an input stream.

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

Read a EWKT geometry from a string.

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

Read a EWKT geometry from a char*.

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

Read a WKT geometry from an input stream.

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

Read a WKT geometry from a string.

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

Read a WKT geometry from a char*.

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

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

void SFCGAL::io::vtk ( const Polygon poly,
const std::string &  file 
)
inline
template<typename MultiPolygonOrPolyhedraSurface >
void SFCGAL::io::vtk ( const MultiPolygonOrPolyhedraSurface &  multiPoly,
const std::string &  file 
)
void SFCGAL::io::vtk ( const Triangle tri,
const std::string &  file 
)
inline
void SFCGAL::io::vtk ( const TriangulatedSurface s,
const std::string &  file 
)
inline
void SFCGAL::io::vtk ( const Geometry g,
const std::string &  file 
)
inline
SFCGAL_API std::string SFCGAL::io::writeBinaryGeometry ( const SFCGAL::Geometry )

Convert a Geometry to its binary representation.

Warning
resulting string may contain 0s
SFCGAL_API std::string SFCGAL::io::writeBinaryPrepared ( const SFCGAL::PreparedGeometry )

Convert a PreparedGeometry to its binary representation.

Warning
resulting string may contain 0s