Skip to content

Namespace SFCGAL::io#

Namespace List > io

Main Input/output namespace.

Namespaces#

Type Name
namespace OBJ
OBJ file format tools.
namespace STL
namespace VKT
VKT file format tools.
namespace VTK

Classes#

Type Name
class BinarySerializer
class BinaryUnserializer

Public Functions#

Type Name
SFCGAL_API void osgWriteFile (const Geometry & g, const std::string & filepath)
[helper] write an OSG geometry in a file. The format depends on the extension ( http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/Plugins ) Note that osgviewer command line executable allows the visualization of the resulting files, screenshots and co
auto readBinaryGeometry (const std::string & str)
auto readBinaryPrepared (const std::string & str)
auto readEwkb (std::istream & stream, bool asHexString)
auto readEwkb (const std::string & s, bool asHexString=false)
auto readEwkb (const char * str, size_t len, bool asHexString)
auto readEwkt (std::istream & s)
auto readEwkt (const std::string & s)
auto readEwkt (const char * str, size_t len)
auto readWkb (std::istream & stream, bool asHexString=false)
auto readWkb (const std::string & s, bool asHexString=false)
auto readWkb (const char * str, size_t len, bool asHexString=false)
auto readWkt (std::istream & s)
auto readWkt (const std::string & s)
auto readWkt (const char * str, size_t len)
SFCGAL_API osg::Geometry * toOsgGeometry (const Geometry & g)
[helper] converts a SFCGAL::Geometry to an OSG geometry
auto writeBinaryGeometry (const SFCGAL::Geometry & g)
auto writeBinaryPrepared (const SFCGAL::PreparedGeometry & g)

Public Functions Documentation#

function osgWriteFile#

[helper] write an OSG geometry in a file. The format depends on the extension ( http://www.openscenegraph.org/projects/osg/wiki/Support/UserGuides/Plugins ) Note that osgviewer command line executable allows the visualization of the resulting files, screenshots and co

SFCGAL_API void io::osgWriteFile (
    const Geometry & g,
    const std::string & filepath
) 

Warning:

requires OpenSceneGraph

Todo

list of geometries?


function readBinaryGeometry#

auto io::readBinaryGeometry (
    const std::string & str
) 

Read a Geometry from a binary representation


function readBinaryPrepared#

auto io::readBinaryPrepared (
    const std::string & str
) 

Read a PreparedGeometry from a binary representation


function readEwkb#

auto io::readEwkb (
    std::istream & stream,
    bool asHexString
) 

Read a WKB geometry from an input stream

Read a EWKB geometry from an input stream


function readEwkb#

auto io::readEwkb (
    const std::string & s,
    bool asHexString=false
) 

Read a EWKB geometry from a string


function readEwkb#

auto io::readEwkb (
    const char * str,
    size_t len,
    bool asHexString
) 

Read a WKB geometry from a char*

Read a EWKB geometry from a char*


function readEwkt#

auto io::readEwkt (
    std::istream & s
) 

Read a EWKT prepared geometry from an input stream


function readEwkt#

auto io::readEwkt (
    const std::string & s
) 

Read a EWKT geometry from a string


function readEwkt#

auto io::readEwkt (
    const char * str,
    size_t len
) 

Read a EWKT geometry from a char*


function readWkb#

auto io::readWkb (
    std::istream & stream,
    bool asHexString=false
) 

Read a WKB geometry from an input stream


function readWkb#

auto io::readWkb (
    const std::string & s,
    bool asHexString=false
) 

Read a WKB geometry from a string


function readWkb#

auto io::readWkb (
    const char * str,
    size_t len,
    bool asHexString=false
) 

Read a WKB geometry from a char*


function readWkt#

auto io::readWkt (
    std::istream & s
) 

Read a WKT geometry from an input stream


function readWkt#

auto io::readWkt (
    const std::string & s
) 

Read a WKT geometry from a string


function readWkt#

auto io::readWkt (
    const char * str,
    size_t len
) 

Read a WKT geometry from a char*


function toOsgGeometry#

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

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

function writeBinaryGeometry#

auto io::writeBinaryGeometry (
    const SFCGAL::Geometry & g
) 

Convert a Geometry to its binary representation

Warning:

resulting string may contain 0s


function writeBinaryPrepared#

auto io::writeBinaryPrepared (
    const SFCGAL::PreparedGeometry & g
) 

Convert a PreparedGeometry to its binary representation

Warning:

resulting string may contain 0s



The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/detail/io/Serialization.cpp