#include <geos.h>
Public Member Functions | |
| GeometricShapeFactory (const geom::GeometryFactory *factory) | |
| Create a shape factory which will create shapes using the given GeometryFactory. | |
| geom::LineString * | createArc (double startAng, double endAng) |
| Creates a elliptical arc, as a LineString. | |
| geom::Polygon * | createCircle () |
| Creates a circular Polygon. | |
| geom::Polygon * | createRectangle () |
| Creates a rectangular Polygon. | |
| void | setBase (const geom::Coordinate &base) |
| Sets the location of the shape by specifying the base coordinate (which in most cases is the * lower left point of the envelope containing the shape). | |
| void | setCentre (const geom::Coordinate ¢re) |
| Sets the location of the shape by specifying the centre of the shape's bounding box. | |
| void | setHeight (double height) |
| Sets the height of the shape. | |
| void | setNumPoints (int nNPts) |
| Sets the total number of points in the created Geometry. | |
| void | setSize (double size) |
| Sets the size of the extent of the shape in both x and y directions. | |
| void | setWidth (double width) |
| Sets the width of the shape. | |
| geos::util::GeometricShapeFactory::GeometricShapeFactory | ( | const geom::GeometryFactory * | factory | ) |
Create a shape factory which will create shapes using the given GeometryFactory.
| factory | the factory to use. You need to keep the factory alive for the whole GeometricShapeFactory life time. |
| geom::LineString* geos::util::GeometricShapeFactory::createArc | ( | double | startAng, | |
| double | endAng | |||
| ) |
Creates a elliptical arc, as a LineString.
| geom::Polygon* geos::util::GeometricShapeFactory::createCircle | ( | ) |
Creates a circular Polygon.
| geom::Polygon* geos::util::GeometricShapeFactory::createRectangle | ( | ) |
Creates a rectangular Polygon.
| void geos::util::GeometricShapeFactory::setBase | ( | const geom::Coordinate & | base | ) |
Sets the location of the shape by specifying the base coordinate (which in most cases is the * lower left point of the envelope containing the shape).
| base | the base coordinate of the shape |
| void geos::util::GeometricShapeFactory::setCentre | ( | const geom::Coordinate & | centre | ) |
Sets the location of the shape by specifying the centre of the shape's bounding box.
| centre | the centre coordinate of the shape |
| void geos::util::GeometricShapeFactory::setHeight | ( | double | height | ) |
Sets the height of the shape.
| height | the height of the shape |
| void geos::util::GeometricShapeFactory::setSize | ( | double | size | ) |
Sets the size of the extent of the shape in both x and y directions.
| size | the size of the shape's extent |
| void geos::util::GeometricShapeFactory::setWidth | ( | double | width | ) |
Sets the width of the shape.
| width | the width of the shape |
1.5.4