All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::gm::WKTActions Class Reference

A class that implements the Grammar Rules for well known text (WKT) format for Geometry. More...

#include <WKTActions.h>

Public Member Functions

void reset ()
 This method resets the Action class to original state. More...
 
Constructor

Initilizer methods.

 WKTActions ()
 Default constructor. More...
 
 ~WKTActions ()
 Destructor. More...
 
Actions methods.

Actions methods to WKT geometry parser.

void createPoint (const boost::fusion::vector2< double, double > &c)
 
void createPointZ (const boost::fusion::vector3< double, double, double > &c)
 
void createPointM (const boost::fusion::vector3< double, double, double > &c)
 
void createPointZM (const boost::fusion::vector4< double, double, double, double > &c)
 
void createPoint ()
 
void createPointZ ()
 
void createPointM ()
 
void createPointZM ()
 
void createLine ()
 
void createLineZ ()
 
void createLineM ()
 
void createLineZM ()
 
void createLinearRing ()
 
void createLinearRingZ ()
 
void createLinearRingM ()
 
void createLinearRingZM ()
 
void createPolygon ()
 
void createPolygonZ ()
 
void createPolygonM ()
 
void createPolygonZM ()
 
void createMultiPoint ()
 
void createMultiPointZ ()
 
void createMultiPointM ()
 
void createMultiPointZM ()
 
void createMultiLineString ()
 
void createMultiLineStringZ ()
 
void createMultiLineStringM ()
 
void createMultiLineStringZM ()
 
void createMultiPolygon ()
 
void createMultiPolygonZ ()
 
void createMultiPolygonM ()
 
void createMultiPolygonZM ()
 
void createPolyhedralSurface ()
 
void createPolyhedralSurfaceZ ()
 
void createPolyhedralSurfaceM ()
 
void createPolyhedralSurfaceZM ()
 
void createTIN ()
 
void createTINZ ()
 
void createTINM ()
 
void createTINZM ()
 
void createTriangle ()
 
void createTriangleZ ()
 
void createTriangleM ()
 
void createTriangleZM ()
 
void createGeometryCollection ()
 
void createGeometryCollectionZ ()
 
void createGeometryCollectionM ()
 
void createGeometryCollectionZM ()
 
void endGeometry ()
 
void end ()
 
Access method.

Method to access the geometry generated.

GeometrygetGeometry ()
 It returns the geometry generated by the parser process. More...
 

Private Member Functions

Auxiliaries methods.

Auxiliaries methods to WKT geometry parser.

void buildLine (LineString *l)
 
void buildPolygon (const GeomType &t)
 
void buildPolygon (Polygon *p)
 
void buildMultiPoint (const GeomType &t)
 
void buildMultiLineString (const GeomType &t)
 
void buildMultiPolygon (const GeomType &t)
 
void buildPolyhedralSurface (PolyhedralSurface *ps)
 
void buildGeometryCollection (const GeomType &t)
 

Private Attributes

Geometrym_g
 
std::vector< Geometry * > m_geometries
 
std::vector< LineString * > m_lines
 
std::vector< Point * > m_points
 
std::vector< Polygon * > m_polygons
 

Detailed Description

A class that implements the Grammar Rules for well known text (WKT) format for Geometry.

Definition at line 54 of file WKTActions.h.

Constructor & Destructor Documentation

te::gm::WKTActions::WKTActions ( )

Default constructor.

Definition at line 46 of file WKTActions.cpp.

te::gm::WKTActions::~WKTActions ( )

Destructor.

Definition at line 50 of file WKTActions.cpp.

Member Function Documentation

void te::gm::WKTActions::buildGeometryCollection ( const GeomType t)
private

Definition at line 454 of file WKTActions.cpp.

References te::gm::GeometryCollection::setGeometryN().

void te::gm::WKTActions::buildLine ( LineString l)
private
void te::gm::WKTActions::buildMultiLineString ( const GeomType t)
private

Definition at line 417 of file WKTActions.cpp.

References te::gm::GeometryCollection::setGeometryN().

void te::gm::WKTActions::buildMultiPoint ( const GeomType t)
private

Definition at line 404 of file WKTActions.cpp.

References te::gm::GeometryCollection::setGeometryN().

void te::gm::WKTActions::buildMultiPolygon ( const GeomType t)
private

Definition at line 430 of file WKTActions.cpp.

References te::gm::GeometryCollection::setGeometryN().

void te::gm::WKTActions::buildPolygon ( const GeomType t)
private

Definition at line 389 of file WKTActions.cpp.

References te::gm::CurvePolygon::setRingN().

void te::gm::WKTActions::buildPolygon ( Polygon p)
private

Definition at line 376 of file WKTActions.cpp.

References te::gm::CurvePolygon::setRingN().

void te::gm::WKTActions::buildPolyhedralSurface ( PolyhedralSurface ps)
private

Definition at line 443 of file WKTActions.cpp.

References te::gm::PolyhedralSurface::setPatchN().

void te::gm::WKTActions::createGeometryCollection ( )
void te::gm::WKTActions::createGeometryCollectionM ( )
void te::gm::WKTActions::createGeometryCollectionZ ( )
void te::gm::WKTActions::createGeometryCollectionZM ( )
void te::gm::WKTActions::createLine ( )

Definition at line 126 of file WKTActions.cpp.

References te::gm::LineStringType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createLinearRing ( )

Definition at line 150 of file WKTActions.cpp.

References te::gm::LineStringType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createLinearRingM ( )

Definition at line 162 of file WKTActions.cpp.

References te::gm::LineStringMType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createLinearRingZ ( )

Definition at line 156 of file WKTActions.cpp.

References te::gm::LineStringZType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createLinearRingZM ( )

Definition at line 168 of file WKTActions.cpp.

References te::gm::LineStringZMType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createLineM ( )

Definition at line 138 of file WKTActions.cpp.

References te::gm::LineStringMType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createLineZ ( )

Definition at line 132 of file WKTActions.cpp.

References te::gm::LineStringZType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createLineZM ( )

Definition at line 144 of file WKTActions.cpp.

References te::gm::LineStringZMType.

Referenced by te::gm::WKTParser< Iterator >::initLine().

void te::gm::WKTActions::createMultiLineString ( )

Definition at line 218 of file WKTActions.cpp.

References te::gm::MultiLineStringType.

Referenced by te::gm::WKTParser< Iterator >::initMultiLine().

void te::gm::WKTActions::createMultiLineStringM ( )
void te::gm::WKTActions::createMultiLineStringZ ( )
void te::gm::WKTActions::createMultiLineStringZM ( )
void te::gm::WKTActions::createMultiPoint ( )

Definition at line 198 of file WKTActions.cpp.

References te::gm::MultiPointType.

Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().

void te::gm::WKTActions::createMultiPointM ( )

Definition at line 208 of file WKTActions.cpp.

References te::gm::MultiPointMType.

Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().

void te::gm::WKTActions::createMultiPointZ ( )

Definition at line 203 of file WKTActions.cpp.

References te::gm::MultiPointZType.

Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().

void te::gm::WKTActions::createMultiPointZM ( )

Definition at line 213 of file WKTActions.cpp.

References te::gm::MultiPointZMType.

Referenced by te::gm::WKTParser< Iterator >::initMultiPoint().

void te::gm::WKTActions::createMultiPolygon ( )

Definition at line 238 of file WKTActions.cpp.

References te::gm::MultiPolygonType.

Referenced by te::gm::WKTParser< Iterator >::initMultiPolygon().

void te::gm::WKTActions::createMultiPolygonM ( )
void te::gm::WKTActions::createMultiPolygonZ ( )
void te::gm::WKTActions::createMultiPolygonZM ( )
void te::gm::WKTActions::createPoint ( const boost::fusion::vector2< double, double > &  c)

Definition at line 70 of file WKTActions.cpp.

void te::gm::WKTActions::createPoint ( )
void te::gm::WKTActions::createPointM ( const boost::fusion::vector3< double, double, double > &  c)

Definition at line 84 of file WKTActions.cpp.

void te::gm::WKTActions::createPointM ( )
void te::gm::WKTActions::createPointZ ( const boost::fusion::vector3< double, double, double > &  c)

Definition at line 77 of file WKTActions.cpp.

void te::gm::WKTActions::createPointZ ( )
void te::gm::WKTActions::createPointZM ( const boost::fusion::vector4< double, double, double, double > &  c)

Definition at line 91 of file WKTActions.cpp.

void te::gm::WKTActions::createPointZM ( )
void te::gm::WKTActions::createPolygon ( )

Definition at line 174 of file WKTActions.cpp.

References te::gm::PolygonType.

Referenced by te::gm::WKTParser< Iterator >::initPolygon().

void te::gm::WKTActions::createPolygonM ( )

Definition at line 186 of file WKTActions.cpp.

References te::gm::PolygonMType.

Referenced by te::gm::WKTParser< Iterator >::initPolygon().

void te::gm::WKTActions::createPolygonZ ( )

Definition at line 180 of file WKTActions.cpp.

References te::gm::PolygonZType.

Referenced by te::gm::WKTParser< Iterator >::initPolygon().

void te::gm::WKTActions::createPolygonZM ( )

Definition at line 192 of file WKTActions.cpp.

References te::gm::PolygonZMType.

Referenced by te::gm::WKTParser< Iterator >::initPolygon().

void te::gm::WKTActions::createPolyhedralSurface ( )
void te::gm::WKTActions::createPolyhedralSurfaceM ( )
void te::gm::WKTActions::createPolyhedralSurfaceZ ( )
void te::gm::WKTActions::createPolyhedralSurfaceZM ( )
void te::gm::WKTActions::createTIN ( )

Definition at line 282 of file WKTActions.cpp.

References te::gm::TINType.

Referenced by te::gm::WKTParser< Iterator >::initTIN().

void te::gm::WKTActions::createTINM ( )

Definition at line 294 of file WKTActions.cpp.

References te::gm::TINMType.

Referenced by te::gm::WKTParser< Iterator >::initTIN().

void te::gm::WKTActions::createTINZ ( )

Definition at line 288 of file WKTActions.cpp.

References te::gm::TINZType.

Referenced by te::gm::WKTParser< Iterator >::initTIN().

void te::gm::WKTActions::createTINZM ( )

Definition at line 300 of file WKTActions.cpp.

References te::gm::TINZMType.

Referenced by te::gm::WKTParser< Iterator >::initTIN().

void te::gm::WKTActions::createTriangle ( )

Definition at line 306 of file WKTActions.cpp.

References te::gm::TriangleType.

Referenced by te::gm::WKTParser< Iterator >::initTriangle().

void te::gm::WKTActions::createTriangleM ( )

Definition at line 318 of file WKTActions.cpp.

References te::gm::TriangleMType.

Referenced by te::gm::WKTParser< Iterator >::initTriangle().

void te::gm::WKTActions::createTriangleZ ( )

Definition at line 312 of file WKTActions.cpp.

References te::gm::TriangleZType.

Referenced by te::gm::WKTParser< Iterator >::initTriangle().

void te::gm::WKTActions::createTriangleZM ( )

Definition at line 324 of file WKTActions.cpp.

References te::gm::TriangleZMType.

Referenced by te::gm::WKTParser< Iterator >::initTriangle().

void te::gm::WKTActions::end ( )

Definition at line 358 of file WKTActions.cpp.

Referenced by te::gm::WKTParser< Iterator >::WKTParser().

te::gm::Geometry * te::gm::WKTActions::getGeometry ( )

It returns the geometry generated by the parser process.

Note
The caller of this method will take the ownership of the geometry.

Definition at line 466 of file WKTActions.cpp.

Referenced by te::gm::WKTParser< Iterator >::getGeometry().

void te::gm::WKTActions::reset ( )

This method resets the Action class to original state.

Note
Should be called case the parser processing faill.
Basically, it is responsable to free the memory.

Definition at line 53 of file WKTActions.cpp.

References te::common::FreeContents().

Referenced by te::gm::WKTParser< Iterator >::reset().

Member Data Documentation

Geometry* te::gm::WKTActions::m_g
private

Definition at line 227 of file WKTActions.h.

std::vector<Geometry*> te::gm::WKTActions::m_geometries
private

Definition at line 232 of file WKTActions.h.

std::vector<LineString*> te::gm::WKTActions::m_lines
private

Definition at line 230 of file WKTActions.h.

std::vector<Point*> te::gm::WKTActions::m_points
private

Definition at line 229 of file WKTActions.h.

std::vector<Polygon*> te::gm::WKTActions::m_polygons
private

Definition at line 231 of file WKTActions.h.


The documentation for this class was generated from the following files: