SFCGAL 1.4.1
Public Member Functions | Protected Member Functions | List of all members
SFCGAL::detail::io::OsgFactory Class Reference

helper class to convert SFCGAL::Geometry to osg::Geometry More...

#include <OsgFactory.h>

Public Member Functions

osg::Geometry * createGeometry (const Geometry &g)
 create a osg::Geometry from a Point
 
osg::Vec3 createVec3 (const Point &g) const
 create a osg::Vec3 from a Point
 

Protected Member Functions

size_t createVertex (osg::Vec3Array *vertices, const Point &g)
 create a vertex and returns its position in a vertice array
 
size_t createVertex (osg::Vec3Array *vertices, const osg::Vec3 &g)
 create a vertex and returns its position in a vertice array
 
void addToGeometry (osg::Geometry *, const Geometry &)
 add a SFCGAL::Geometry to a osg::Geometry (dispatch method)
 
void addToGeometry (osg::Geometry *, const Point &)
 add a Point to a osg::Geometry
 
void addToGeometry (osg::Geometry *, const LineString &)
 add a LineString to a osg::Geometry
 
void addToGeometry (osg::Geometry *, const Triangle &)
 add a Triangle to a osg::Geometry
 
void addToGeometry (osg::Geometry *, const Polygon &)
 add a Polygon to a osg::Geometry
 
void addToGeometry (osg::Geometry *, const TriangulatedSurface &)
 add a TIN to a osg::Geometry
 
void addToGeometry (osg::Geometry *, const PolyhedralSurface &)
 add a PolyhedralSurface to a osg::Geometry
 
void addToGeometry (osg::Geometry *, const Solid &)
 add a Solid to a osg::Geometry
 
void addToGeometry (osg::Geometry *, const GeometryCollection &)
 add a GeometryCollection to a osg::Geometry
 

Detailed Description

helper class to convert SFCGAL::Geometry to osg::Geometry

Member Function Documentation

◆ addToGeometry() [1/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const Geometry &  )
protected

add a SFCGAL::Geometry to a osg::Geometry (dispatch method)

◆ addToGeometry() [2/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const GeometryCollection &  )
protected

add a GeometryCollection to a osg::Geometry

◆ addToGeometry() [3/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const LineString &  )
protected

add a LineString to a osg::Geometry

◆ addToGeometry() [4/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const Point &  )
protected

add a Point to a osg::Geometry

◆ addToGeometry() [5/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const Polygon &  )
protected

add a Polygon to a osg::Geometry

◆ addToGeometry() [6/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const PolyhedralSurface &  )
protected

add a PolyhedralSurface to a osg::Geometry

◆ addToGeometry() [7/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const Solid &  )
protected

add a Solid to a osg::Geometry

◆ addToGeometry() [8/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const Triangle &  )
protected

add a Triangle to a osg::Geometry

◆ addToGeometry() [9/9]

void SFCGAL::detail::io::OsgFactory::addToGeometry ( osg::Geometry * ,
const TriangulatedSurface &  )
protected

add a TIN to a osg::Geometry

◆ createGeometry()

osg::Geometry * SFCGAL::detail::io::OsgFactory::createGeometry ( const Geometry & g)

create a osg::Geometry from a Point

◆ createVec3()

osg::Vec3 SFCGAL::detail::io::OsgFactory::createVec3 ( const Point & g) const

create a osg::Vec3 from a Point

◆ createVertex() [1/2]

size_t SFCGAL::detail::io::OsgFactory::createVertex ( osg::Vec3Array * vertices,
const osg::Vec3 & g )
protected

create a vertex and returns its position in a vertice array

◆ createVertex() [2/2]

size_t SFCGAL::detail::io::OsgFactory::createVertex ( osg::Vec3Array * vertices,
const Point & g )
protected

create a vertex and returns its position in a vertice array