584 lines
30 KiB
HTML
584 lines
30 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>GEOS: geos::util::GeometricShapeFactory Class Reference</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">GEOS
|
|
 <span id="projectnumber">3.9.1dev</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="namespacegeos.html">geos</a></li><li class="navelem"><a class="el" href="namespacegeos_1_1util.html">util</a></li><li class="navelem"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html">GeometricShapeFactory</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> |
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pro-methods">Protected Member Functions</a> |
|
|
<a href="#pro-attribs">Protected Attributes</a> |
|
|
<a href="classgeos_1_1util_1_1GeometricShapeFactory-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">geos::util::GeometricShapeFactory Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Computes various kinds of common geometric shapes.
|
|
<a href="classgeos_1_1util_1_1GeometricShapeFactory.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a>></code></p>
|
|
<div class="dynheader">
|
|
Inheritance diagram for geos::util::GeometricShapeFactory:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><iframe scrolling="no" frameborder="0" src="classgeos_1_1util_1_1GeometricShapeFactory__inherit__graph.svg" width="206" height="147"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
|
|
</div>
|
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
|
<div class="dynheader">
|
|
Collaboration diagram for geos::util::GeometricShapeFactory:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="classgeos_1_1util_1_1GeometricShapeFactory__coll__graph.svg" width="100%" height="458"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
|
</div>
|
|
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory_1_1Dimensions.html">Dimensions</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a9fac9a737c8cd2e09af385bb888ce342"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a9fac9a737c8cd2e09af385bb888ce342">GeometricShapeFactory</a> (const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a> *factory)</td></tr>
|
|
<tr class="memdesc:a9fac9a737c8cd2e09af385bb888ce342"><td class="mdescLeft"> </td><td class="mdescRight">Create a shape factory which will create shapes using the given GeometryFactory. <a href="#a9fac9a737c8cd2e09af385bb888ce342">More...</a><br /></td></tr>
|
|
<tr class="separator:a9fac9a737c8cd2e09af385bb888ce342"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a5b868f88a279879b7a25c223c9bc9e6f"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a5b868f88a279879b7a25c223c9bc9e6f">~GeometricShapeFactory</a> ()</td></tr>
|
|
<tr class="separator:a5b868f88a279879b7a25c223c9bc9e6f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4f8ae61f0a766f50503310cd7ea794ae"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a4f8ae61f0a766f50503310cd7ea794ae">createArc</a> (double startAng, double angExtent)</td></tr>
|
|
<tr class="memdesc:a4f8ae61f0a766f50503310cd7ea794ae"><td class="mdescLeft"> </td><td class="mdescRight">Creates an elliptical arc, as a LineString. <a href="#a4f8ae61f0a766f50503310cd7ea794ae">More...</a><br /></td></tr>
|
|
<tr class="separator:a4f8ae61f0a766f50503310cd7ea794ae"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aee4c9bf89a0f9ffefeb723db624f585a"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#aee4c9bf89a0f9ffefeb723db624f585a">createArcPolygon</a> (double startAng, double angExt)</td></tr>
|
|
<tr class="memdesc:aee4c9bf89a0f9ffefeb723db624f585a"><td class="mdescLeft"> </td><td class="mdescRight">Creates an elliptical arc polygon. <a href="#aee4c9bf89a0f9ffefeb723db624f585a">More...</a><br /></td></tr>
|
|
<tr class="separator:aee4c9bf89a0f9ffefeb723db624f585a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a894de31209dc860ed02e33c3ba95d73b"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a894de31209dc860ed02e33c3ba95d73b">createCircle</a> ()</td></tr>
|
|
<tr class="memdesc:a894de31209dc860ed02e33c3ba95d73b"><td class="mdescLeft"> </td><td class="mdescRight">Creates a circular Polygon. <a href="#a894de31209dc860ed02e33c3ba95d73b">More...</a><br /></td></tr>
|
|
<tr class="separator:a894de31209dc860ed02e33c3ba95d73b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2bb7e3f1bd8566681229f42105d591a0"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a2bb7e3f1bd8566681229f42105d591a0">createRectangle</a> ()</td></tr>
|
|
<tr class="memdesc:a2bb7e3f1bd8566681229f42105d591a0"><td class="mdescLeft"> </td><td class="mdescRight">Creates a rectangular Polygon. <a href="#a2bb7e3f1bd8566681229f42105d591a0">More...</a><br /></td></tr>
|
|
<tr class="separator:a2bb7e3f1bd8566681229f42105d591a0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aad95a032c50aec9b69745fa7c43fa159"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#aad95a032c50aec9b69745fa7c43fa159">setBase</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &base)</td></tr>
|
|
<tr class="memdesc:aad95a032c50aec9b69745fa7c43fa159"><td class="mdescLeft"> </td><td class="mdescRight">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). <a href="#aad95a032c50aec9b69745fa7c43fa159">More...</a><br /></td></tr>
|
|
<tr class="separator:aad95a032c50aec9b69745fa7c43fa159"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad929f4e8e67abb2eec93e74b75e28b4f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#ad929f4e8e67abb2eec93e74b75e28b4f">setCentre</a> (const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> &centre)</td></tr>
|
|
<tr class="memdesc:ad929f4e8e67abb2eec93e74b75e28b4f"><td class="mdescLeft"> </td><td class="mdescRight">Sets the location of the shape by specifying the centre of the shape's bounding box. <a href="#ad929f4e8e67abb2eec93e74b75e28b4f">More...</a><br /></td></tr>
|
|
<tr class="separator:ad929f4e8e67abb2eec93e74b75e28b4f"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a6dc74ac42aa17c255f0bc16ab1c2c2bf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a6dc74ac42aa17c255f0bc16ab1c2c2bf">setHeight</a> (double height)</td></tr>
|
|
<tr class="memdesc:a6dc74ac42aa17c255f0bc16ab1c2c2bf"><td class="mdescLeft"> </td><td class="mdescRight">Sets the height of the shape. <a href="#a6dc74ac42aa17c255f0bc16ab1c2c2bf">More...</a><br /></td></tr>
|
|
<tr class="separator:a6dc74ac42aa17c255f0bc16ab1c2c2bf"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9862516679db382aafeba7c6a5b3f29b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a9862516679db382aafeba7c6a5b3f29b">setNumPoints</a> (uint32_t nNPts)</td></tr>
|
|
<tr class="memdesc:a9862516679db382aafeba7c6a5b3f29b"><td class="mdescLeft"> </td><td class="mdescRight">Sets the total number of points in the created Geometry. <a href="#a9862516679db382aafeba7c6a5b3f29b">More...</a><br /></td></tr>
|
|
<tr class="separator:a9862516679db382aafeba7c6a5b3f29b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:afe0bace531c1bc91cc0a1258a3792065"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#afe0bace531c1bc91cc0a1258a3792065">setSize</a> (double size)</td></tr>
|
|
<tr class="memdesc:afe0bace531c1bc91cc0a1258a3792065"><td class="mdescLeft"> </td><td class="mdescRight">Sets the size of the extent of the shape in both x and y directions. <a href="#afe0bace531c1bc91cc0a1258a3792065">More...</a><br /></td></tr>
|
|
<tr class="separator:afe0bace531c1bc91cc0a1258a3792065"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac4db7b39da6729f69694d449eb076aac"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#ac4db7b39da6729f69694d449eb076aac">setWidth</a> (double width)</td></tr>
|
|
<tr class="memdesc:ac4db7b39da6729f69694d449eb076aac"><td class="mdescLeft"> </td><td class="mdescRight">Sets the width of the shape. <a href="#ac4db7b39da6729f69694d449eb076aac">More...</a><br /></td></tr>
|
|
<tr class="separator:ac4db7b39da6729f69694d449eb076aac"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
|
|
Protected Member Functions</h2></td></tr>
|
|
<tr class="memitem:ac3c44f75328ca459d8827169f06042f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#ac3c44f75328ca459d8827169f06042f8">coord</a> (double x, double y) const </td></tr>
|
|
<tr class="separator:ac3c44f75328ca459d8827169f06042f8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
|
|
Protected Attributes</h2></td></tr>
|
|
<tr class="memitem:a1529aff383507036beee05a77f865571"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a1529aff383507036beee05a77f865571">geomFact</a></td></tr>
|
|
<tr class="separator:a1529aff383507036beee05a77f865571"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a139cd7f3f5bb64026f5ecc82da8eef22"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classgeos_1_1geom_1_1PrecisionModel.html">geom::PrecisionModel</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a139cd7f3f5bb64026f5ecc82da8eef22">precModel</a></td></tr>
|
|
<tr class="separator:a139cd7f3f5bb64026f5ecc82da8eef22"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a96c913c99343c6a9c3ae33ecc8471d1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory_1_1Dimensions.html">Dimensions</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a96c913c99343c6a9c3ae33ecc8471d1c">dim</a></td></tr>
|
|
<tr class="separator:a96c913c99343c6a9c3ae33ecc8471d1c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2edc51830aeefb4c639057ba85c31f3b"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html#a2edc51830aeefb4c639057ba85c31f3b">nPts</a></td></tr>
|
|
<tr class="separator:a2edc51830aeefb4c639057ba85c31f3b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Computes various kinds of common geometric shapes. </p>
|
|
<p>Allows various ways of specifying the location and extent of the shapes, as well as number of line segments used to form them.</p>
|
|
<p>Example: </p><pre>
|
|
<a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html" title="Computes various kinds of common geometric shapes. ">GeometricShapeFactory</a> gsf(factory);
|
|
gsf.setSize(100);
|
|
gsf.setNumPoints(100);
|
|
gsf.setBase(Coordinate(0, 0));
|
|
std::unique_ptr<Polygon> rect ( gsf.createRectangle() );
|
|
</pre>
|
|
<p>Definition at line <a class="el" href="GeometricShapeFactory_8h_source.html#l00067">67</a> of file <a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a9fac9a737c8cd2e09af385bb888ce342"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">geos::util::GeometricShapeFactory::GeometricShapeFactory </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a> * </td>
|
|
<td class="paramname"><em>factory</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Create a shape factory which will create shapes using the given GeometryFactory. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">factory</td><td>the factory to use. You need to keep the factory alive for the whole <a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory.html" title="Computes various kinds of common geometric shapes. ">GeometricShapeFactory</a> life time. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a5b868f88a279879b7a25c223c9bc9e6f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual geos::util::GeometricShapeFactory::~GeometricShapeFactory </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="GeometricShapeFactory_8h_source.html#l00105">105</a> of file <a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="ac3c44f75328ca459d8827169f06042f8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> geos::util::GeometricShapeFactory::coord </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>x</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>y</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4f8ae61f0a766f50503310cd7ea794ae"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::unique_ptr<<a class="el" href="classgeos_1_1geom_1_1LineString.html">geom::LineString</a>> geos::util::GeometricShapeFactory::createArc </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>startAng</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>angExtent</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates an elliptical arc, as a LineString. </p>
|
|
<p>The arc is always created in a counter-clockwise direction.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">startAng</td><td>start angle in radians </td></tr>
|
|
<tr><td class="paramname">angExtent</td><td>size of angle in radians </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>an elliptical arc </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aee4c9bf89a0f9ffefeb723db624f585a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::unique_ptr<<a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a>> geos::util::GeometricShapeFactory::createArcPolygon </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>startAng</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>angExt</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates an elliptical arc polygon. </p>
|
|
<p>The polygon is formed from the specified arc of an ellipse and the two radii connecting the endpoints to the centre of the ellipse.</p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">startAng</td><td>start angle in radians </td></tr>
|
|
<tr><td class="paramname">angExt</td><td>size of angle in radians </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="section return"><dt>Returns</dt><dd>an elliptical arc polygon </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a894de31209dc860ed02e33c3ba95d73b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::unique_ptr<<a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a>> geos::util::GeometricShapeFactory::createCircle </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a circular Polygon. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>a circle </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2bb7e3f1bd8566681229f42105d591a0"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::unique_ptr<<a class="el" href="classgeos_1_1geom_1_1Polygon.html">geom::Polygon</a>> geos::util::GeometricShapeFactory::createRectangle </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Creates a rectangular Polygon. </p>
|
|
<dl class="section return"><dt>Returns</dt><dd>a rectangular Polygon </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aad95a032c50aec9b69745fa7c43fa159"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void geos::util::GeometricShapeFactory::setBase </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td>
|
|
<td class="paramname"><em>base</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>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). </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">base</td><td>the base coordinate of the shape </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad929f4e8e67abb2eec93e74b75e28b4f"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void geos::util::GeometricShapeFactory::setCentre </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classgeos_1_1geom_1_1Coordinate.html">geom::Coordinate</a> & </td>
|
|
<td class="paramname"><em>centre</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the location of the shape by specifying the centre of the shape's bounding box. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">centre</td><td>the centre coordinate of the shape </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a6dc74ac42aa17c255f0bc16ab1c2c2bf"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void geos::util::GeometricShapeFactory::setHeight </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>height</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the height of the shape. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">height</td><td>the height of the shape </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9862516679db382aafeba7c6a5b3f29b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void geos::util::GeometricShapeFactory::setNumPoints </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint32_t </td>
|
|
<td class="paramname"><em>nNPts</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the total number of points in the created Geometry. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="afe0bace531c1bc91cc0a1258a3792065"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void geos::util::GeometricShapeFactory::setSize </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>size</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the size of the extent of the shape in both x and y directions. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">size</td><td>the size of the shape's extent </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac4db7b39da6729f69694d449eb076aac"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void geos::util::GeometricShapeFactory::setWidth </td>
|
|
<td>(</td>
|
|
<td class="paramtype">double </td>
|
|
<td class="paramname"><em>width</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Sets the width of the shape. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramname">width</td><td>the width of the shape </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Data Documentation</h2>
|
|
<a class="anchor" id="a96c913c99343c6a9c3ae33ecc8471d1c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classgeos_1_1util_1_1GeometricShapeFactory_1_1Dimensions.html">Dimensions</a> geos::util::GeometricShapeFactory::dim</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="GeometricShapeFactory_8h_source.html#l00087">87</a> of file <a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1529aff383507036beee05a77f865571"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a>* geos::util::GeometricShapeFactory::geomFact</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="GeometricShapeFactory_8h_source.html#l00085">85</a> of file <a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a2edc51830aeefb4c639057ba85c31f3b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">uint32_t geos::util::GeometricShapeFactory::nPts</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="GeometricShapeFactory_8h_source.html#l00088">88</a> of file <a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a139cd7f3f5bb64026f5ecc82da8eef22"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">const <a class="el" href="classgeos_1_1geom_1_1PrecisionModel.html">geom::PrecisionModel</a>* geos::util::GeometricShapeFactory::precModel</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Definition at line <a class="el" href="GeometricShapeFactory_8h_source.html#l00086">86</a> of file <a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="GeometricShapeFactory_8h_source.html">GeometricShapeFactory.h</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.11
|
|
</small></address>
|
|
</body>
|
|
</html>
|