Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New classes for circle and ellipse. #4358

Closed
wants to merge 316 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
271e6f1
Make search box in options pages blend in better
nyalldawson Apr 13, 2017
1eaa486
Followup 271e6f1, fix sidebar styling in style dock
nyalldawson Apr 13, 2017
2e21d46
Fixes for moving between nodes with keyboard
wonder-sk Apr 13, 2017
bf946ca
Fix inherited method setSemiMajorAxis/setSemiMinorAxis for QgsCircle.
lbartoletti Apr 13, 2017
92e3e75
Move from "or", "and" to proper C-style ||, &&
wonder-sk Apr 13, 2017
47a81f0
Fix map canvas destruction fix (got broken after rebase)
wonder-sk Apr 13, 2017
cc55ae1
Merge pull request #4344 from rldhont/server-wfs-configparser
rldhont Apr 14, 2017
2264661
Add tooltips to Vector layer properties dialog
DelazJ Apr 13, 2017
d6e3da6
Add spelling mistake observed in recent PR
nyalldawson Apr 16, 2017
798c318
[sipify] Fix loss of class docstring if newline present between
nyalldawson Apr 17, 2017
96d5b9d
Implement a QGIS 3.0 TODO for QgsMessageLogViewer, cleanup docs
nyalldawson Apr 17, 2017
6a72c94
[sipify] Don't autocreate Docstrings for overridden members
nyalldawson Apr 17, 2017
952bc02
Fix some Coverity null pointer dereference warnings
nyalldawson Apr 17, 2017
e4d6bbf
Fix Coverity divide by 0 error
nyalldawson Apr 17, 2017
eff5a82
[sipify] Convert "\a arg" to "``arg``" when processing Docstrings
nyalldawson Apr 17, 2017
e73a52b
[FEATURE] New node tool implementation
wonder-sk Apr 17, 2017
ec5a891
use QgsPasswordLineEdit in the master password dialog
alexbruy Apr 13, 2017
6bcc066
sipify QgsCredentials dialog
alexbruy Apr 14, 2017
8578815
doxymentation
alexbruy Apr 17, 2017
8a46a1d
R.I.P. old node tool
wonder-sk Apr 17, 2017
8b08285
added measureLineProjected and computeSpheroidProject to QgsDistanceArea
mj10777 Apr 17, 2017
316d9c3
R.I.P. QgsSnapper and QgsMapCanvasSnapper
wonder-sk Apr 17, 2017
8c20d99
sipify qgscolorbutton and qgscolorrampbutton (#4365)
nirvn Apr 17, 2017
c749057
Merge pull request #4363 from alexbruy/passwordlineedits
alexbruy Apr 17, 2017
7b202ed
Remove QgsVectorLayer::snapPoint() and unused code in QgsSelectedFeature
wonder-sk Apr 17, 2017
4fc49c9
Cleanup QgsDistanceArea API
nyalldawson Apr 17, 2017
53e1df4
sipify QgsDistanceArea
nyalldawson Apr 17, 2017
275158a
Cleanup ellipsoidal mode detection in QgsDistanceArea
nyalldawson Apr 17, 2017
cdef076
Use default copy constructors and assignment operators for QgsDistanc…
nyalldawson Apr 17, 2017
4925fab
C++11 = good
nyalldawson Apr 17, 2017
3ada8a2
Use a transparent cache to avoid db lookups when setting QgsDistanceA…
nyalldawson Apr 17, 2017
ca2b199
Fix possible corruption of cache
nyalldawson Apr 17, 2017
cc5b9bf
More QgsDistanceArea API cleanups and simplification
nyalldawson Apr 17, 2017
147bb7f
Move ellipsoid parameter retrieval to new QgsEllipsoidUtils class
nyalldawson Apr 17, 2017
5f1656b
Move retrieval of lists of known ellipsoids to QgsEllipsoidUtils
nyalldawson Apr 18, 2017
05b737c
Add doxygen note linking QgsDistanceArea to QgsEllipsoidUtils
nyalldawson Apr 18, 2017
0b36ee3
Use weak layer references and loose matching for composer legend
nyalldawson Apr 12, 2017
468c784
sipify QgsLayerTreeGroup
nyalldawson Apr 12, 2017
023ad46
sipify QgsLayerTreeLayer
nyalldawson Apr 12, 2017
1805a70
Add missing docs
nyalldawson Apr 12, 2017
87a6708
[sipify] Always add virtual keyword for overridden methods
nyalldawson Apr 18, 2017
3535ee2
Allow QgsDataProvider access through QgsMapLayer
nyalldawson Apr 18, 2017
0c1f97c
Merge pull request #4367 from nyalldawson/distance_area_api
nyalldawson Apr 18, 2017
302e9dd
Fix ui build warning
nyalldawson Apr 18, 2017
33b6c41
Merge pull request #4357 from nyalldawson/composer_layer_ref
nyalldawson Apr 18, 2017
c4ea048
New QgsRange template based class for storing interval ranges
nyalldawson Apr 11, 2017
c460f07
Add missing docs
nyalldawson Apr 11, 2017
7949c81
Add templated docs to acceptable missing docs
nyalldawson Apr 11, 2017
405da59
Rename QgsNodeTool2 to QgsNodeTool
wonder-sk Apr 17, 2017
6bb3fa6
Merge pull request #4353 from nyalldawson/range
nyalldawson Apr 18, 2017
35410fd
Some API improvements to QgsMapLayerRef, unit tests
nyalldawson Apr 18, 2017
1efd623
Move layer ref resolving to QgsMapLayerRef
nyalldawson Apr 18, 2017
85a7327
Add some useful operators to layer reference
nyalldawson Apr 18, 2017
eb1e820
[composer] Use weak layer reference matching when loading attribute t…
nyalldawson Apr 18, 2017
dc3b2cd
Add some methods for working with lists of map layer references
nyalldawson Apr 18, 2017
2ca70dc
[composer] Correctly restore map item layers when loading a template
nyalldawson Apr 18, 2017
f413963
Change &operator to get()
nyalldawson Apr 18, 2017
e6aa44f
Merge pull request #4368 from nyalldawson/composer_map_layer_ref
nyalldawson Apr 18, 2017
832d2dd
Node tool: improvements for deletion of vertices
wonder-sk Apr 18, 2017
5b6b035
Correctly handle restoring atlas coverage layer from template
nyalldawson Apr 18, 2017
58ded28
[composer] Correctly handle restoring map layer style overrides from …
nyalldawson Apr 18, 2017
3e2d60e
Disable cad perpendicular/parallel buttons when snapping is disabled
nyalldawson Apr 19, 2017
1962c54
[cad] Listen out for CRS changes and enable if appropriate
nyalldawson Apr 19, 2017
cbf5e9c
Silence some annoyingly debug chatty classes
nyalldawson Apr 19, 2017
24c5b03
Rewrite addTopologicalPoints() and remove legacy snapping code + unit…
wonder-sk Apr 19, 2017
18c8c1f
Add is2d() method to QgsBox3d to determine whether box is 2d
nyalldawson Apr 19, 2017
23de9a0
Rework QgsRange to better handle temporal ranges
nyalldawson Apr 19, 2017
3b5b191
[processing] fix parsing selection parameter in translate algorithm
alexbruy Apr 19, 2017
1016119
[processing] prevent division by zero in random points in polygons fixed
alexbruy Apr 19, 2017
737906c
[processing] add information message when feature skipped
alexbruy Apr 19, 2017
a5998b4
update ICOs
Mar 28, 2017
daa3c2a
fix windows build
Apr 19, 2017
55860e8
sipify QgsFieldExpressionWidget
3nids Apr 19, 2017
51aa44d
[sipify] fix enum combination
3nids Apr 19, 2017
a260146
[sipify] fix remove protected members
3nids Apr 19, 2017
652d6b4
[sipify] remove Q_INVOKABLE
3nids Apr 19, 2017
56aa36e
sipify QgsRelation
3nids Apr 19, 2017
7552d1c
sipify QgsFileWidget, QgsExternalResourceWidget
3nids Apr 19, 2017
bd4f712
sipify QgsMapLayerCombobox, QgsFieldCombobox
3nids Apr 19, 2017
0b0e8a6
move QgsFieldModel and QgsFieldProxyModel to core and sipify
3nids Apr 19, 2017
be9a51c
sipify QgsMapLayerModel, QgsMapLayerProxyModel
3nids Apr 19, 2017
e5ab2f6
[sipify] fix struct member assignment
3nids Apr 19, 2017
1341537
sipify QgsIdentifyMenu
3nids Apr 19, 2017
490f5f0
Revise main window title bar text
nyalldawson Apr 20, 2017
dce3c88
Add methods to clone annotations
nyalldawson Apr 20, 2017
6ecb17f
Merge pull request #4380 from nyalldawson/clone_annotations
nyalldawson Apr 20, 2017
dd6c7fd
Add a QgsProject::ellipsoidChanged signal
nyalldawson Apr 20, 2017
3660419
sipify QgsScaleWidget
3nids Apr 19, 2017
f9ec382
fix doxymentation
3nids Apr 19, 2017
5d6ebd4
update INSTALL
jef-n Apr 20, 2017
02dade8
utf8 translation string fix
jef-n Apr 20, 2017
414772b
[processing] removed commander
volaya Apr 20, 2017
54e30b9
improvements for extracts within subsets
volaya Apr 20, 2017
e5dd936
[processing] fixed I/O of models
volaya Apr 20, 2017
b272bf8
[sipify] read file at once into an array
3nids Apr 20, 2017
8f2a5c7
sipify all
3nids Apr 20, 2017
1ab5a62
[sipify] handle override method signature on several lines
3nids Apr 20, 2017
f022858
[sipify] handle SIP_SKIP on several lines
3nids Apr 20, 2017
5b8c083
indentation fix
volaya Apr 20, 2017
1bbc39e
[BUGFIX][Processing] Fix spatialite version comparison
rldhont Apr 20, 2017
20197c2
avoid opening multiple attribute forms for a single feature in identify
jef-n Apr 20, 2017
db848a3
Upgrade the save as image function into a background task (#4382)
nirvn Apr 21, 2017
e0d20e5
Update decorators to avoid relying on map canvas when rendering (#4388)
nirvn Apr 21, 2017
bcf1ef5
fix tab order in qgsvectorlayer properties dialog
Gustry Apr 18, 2017
25ed76b
Move labeling engine config to a new class + QgsPalLabeling cleanup
wonder-sk Apr 21, 2017
a55390e
Restore body() accessor in QgsRequestHandler
dmarteau Apr 21, 2017
11bb234
Merge pull request #4391 from dmarteau/server_request_body_accessor
rldhont Apr 21, 2017
018d2a2
Server: pass full url string and data to handleRequest()
dmarteau Apr 21, 2017
608d519
Add stack info to crash dialog
NathanW2 Apr 17, 2017
e192bc4
Remove old stack trace dump code in main
NathanW2 Apr 21, 2017
1083f9f
Merge pull request #4392 from dmarteau/server_handle_request_full_url
elpaso Apr 22, 2017
d03b005
[server] Expose HTTP status code and test refactoring
elpaso Apr 22, 2017
7f08e72
[server] More Qt-style getter changes getHeader( key ) -> header( key )
elpaso Apr 22, 2017
c2ba231
[server] handleRequest accept QgsServerRequest.Method instead of a st…
elpaso Apr 22, 2017
97e55d2
[server] Fix access control test
elpaso Apr 22, 2017
428ca7b
Update indentation
nyalldawson Apr 22, 2017
abd035a
[server] disabled failing check
elpaso Apr 22, 2017
d35bd4a
[server] disabled failing check
elpaso Apr 22, 2017
cbcd193
[server] Add to API break and pass enum by value
elpaso Apr 22, 2017
1659659
Fix crash when saving map image and dpi != 90
nyalldawson Apr 22, 2017
4a2226a
Allow canceling background map renders
nyalldawson Apr 23, 2017
268acab
[FEATURE] New "Save as image" settings dialog (#4390)
nirvn Apr 23, 2017
f7b7254
Merge pull request #4284 from arnaud-morvan/expression_compare_arrays
nyalldawson Apr 23, 2017
d36e47c
fix windows build (followup e0d20e53)
jef-n Apr 23, 2017
bfcf252
Add QgsCrashHandler for single place for all platforms (#4395)
NathanW2 Apr 23, 2017
82c66f8
"Fix" failing spell check
nyalldawson Apr 23, 2017
6beaa51
Add test to provider test suite that provider source does not rely
nyalldawson Apr 23, 2017
0dfe687
Fix crash when OGR layer is removed when source is stored
nyalldawson Apr 23, 2017
c85a437
Partial fix for virtual layer iterator depending on provider
nyalldawson Apr 23, 2017
b819bc2
Correct use of private vs protected in provider/sources
nyalldawson Apr 23, 2017
8c1584f
AFS feature source doesn't need to be a QObject
nyalldawson Apr 23, 2017
706b5a8
Use unique_ptrs in provider feature sources
nyalldawson Apr 23, 2017
3584a5f
Nicer initialization of members in iterators/sources
nyalldawson Apr 23, 2017
94c56aa
Remove unused variable
nyalldawson Apr 23, 2017
716ff6c
Merge pull request #4394 from nyalldawson/bad_iterator_go_and_sit_in_…
nyalldawson Apr 23, 2017
c86264e
UI cleanup for crash dialog
NathanW2 Apr 23, 2017
858129d
Remove virtual method from class which shouldn't be subclassed
nyalldawson Apr 24, 2017
7b3859b
Save as image cleanup:
nirvn Apr 24, 2017
cb68c98
Revert "Remove virtual method from class which shouldn't be subclassed"
nyalldawson Apr 24, 2017
1bfa539
[sipify] remove extra blank line
3nids Apr 24, 2017
347934f
follow up 1bfa539
3nids Apr 24, 2017
8c80a60
Merge pull request #4385 from volaya/remove_processing_commander
alexbruy Apr 24, 2017
6d26bb3
[spelling] fix bad inword detection for activeXXX
3nids Apr 24, 2017
2a8555e
Revert "Revert "Remove virtual method from class which shouldn't be s…
3nids Apr 24, 2017
3652fa7
Revert "Revert "Revert "Remove virtual method from class which should…
3nids Apr 24, 2017
68e0a62
revert 82c66f8aa38e4e0e2d213b2040360410cafef30d
3nids Apr 24, 2017
6e7b753
sipify improvements
3nids Apr 24, 2017
10d34ec
sipify batch
3nids Apr 24, 2017
9b523cb
[sipify] do not remove function body within SIP_RUN blocks
3nids Apr 24, 2017
c540ab3
sipify QgsApplication
3nids Apr 24, 2017
2a7d5d4
Merge pull request #4393 from elpaso/server-api-mods
elpaso Apr 24, 2017
419185b
[sipify] remove EXPORT macro from struct definition
3nids Apr 24, 2017
5a19463
sipify batch
3nids Apr 24, 2017
d345306
[server] Tests housekeeping and improved robustness
elpaso Apr 24, 2017
8f35ee4
sipify improvements
3nids Apr 24, 2017
fbe10d4
followup 8f35ee464f0a32284263b684abbdf2a42c0e9131
3nids Apr 24, 2017
46310d4
Merge pull request #4404 from elpaso/server-tests-improvements
elpaso Apr 24, 2017
085803d
[sifpiy] handle multiline body
3nids Apr 24, 2017
cd521d6
Adjust expected results for GDAL 2.2
rouault Apr 24, 2017
e596945
[auth] Add authentication configuration support to QgsFileDownloader
elpaso Apr 24, 2017
ae7ace9
pep8 travis quirks (do not err locally)
elpaso Apr 24, 2017
965350b
DBManager: fix importing a new layer in a GeoPackage (#16295)
rouault Apr 24, 2017
b0c1604
fix indentation
3nids Apr 25, 2017
80d07cb
Add method to perform invalid geometry checking in QgsFeatureRequest
nyalldawson Apr 24, 2017
595f104
Allow specifying a callback for encountering invalid geometries while…
nyalldawson Apr 24, 2017
5d377be
Expand unit tests
nyalldawson Apr 24, 2017
ee77744
[processing] Remove special handling for invalid geometries
nyalldawson Apr 24, 2017
92cc88d
Slight reorganisation of geometry check to make it easier to
nyalldawson Apr 24, 2017
9743831
Expose invalid geometry callback to python
nyalldawson Apr 25, 2017
c658f5a
Cleaner MethodCode
nyalldawson Apr 25, 2017
5be060f
More cleanups to MethodCode
nyalldawson Apr 25, 2017
d27cbe7
Try to fix build failure on clang
nyalldawson Apr 25, 2017
3fa1162
Merge pull request #4408 from rouault/fix_12695
rouault Apr 25, 2017
997b630
Merge pull request #4402 from nyalldawson/iterator_invalid_geom
nyalldawson Apr 25, 2017
6b260ff
Remove deprecated assertEquals use
nyalldawson Apr 25, 2017
1577091
sipify layer tree classes
3nids Apr 24, 2017
a60b31d
fix doxymentation
3nids Apr 25, 2017
448d2fd
[doxygen] add include path to allow macro retrieval
3nids Apr 25, 2017
c183285
sipify batch
3nids Apr 25, 2017
4b67b27
Add QgsStackTrace class
NathanW2 Apr 24, 2017
27a9053
[Server] WMS GetCapabilities refactoring - Part 1
rldhont Apr 20, 2017
96151e7
remove extra SIP_TRANSFERTHIS in cpp files
3nids Apr 25, 2017
70a21d4
Merge pull request #4415 from rldhont/server-wms-configparser-getcapa…
rldhont Apr 25, 2017
c869fa2
[BUGFIX][Server] Filter restorer modifying layers and not well restor…
rldhont Apr 25, 2017
c8549f9
Fix spelling + requests and suggestions
lbartoletti Apr 25, 2017
59eed74
fix stupid error...
lbartoletti Apr 25, 2017
66f4ff9
Merge pull request #4407 from boundlessgeo/filedownloader-auth
dakcarto Apr 25, 2017
13b4472
Add a simple qHash for QVariant
nyalldawson Apr 25, 2017
3633363
Add a QgsFeatureSink interface for classes which accept adding features
nyalldawson Apr 26, 2017
7ae71de
QgsVectorDataProvider is a QgsFeatureSink
nyalldawson Apr 26, 2017
8d0a9d6
Add In,Out annotations to QgsFeatureSink methods
nyalldawson Apr 26, 2017
8d59833
QgsVectorFileWriter is a QgsFeatureSink
nyalldawson Apr 26, 2017
c4578c3
QgsVectorLayer is a QgsFeatureSink
nyalldawson Apr 26, 2017
49d4b5e
QgsFeatureStore is a QgsFeatureSink
nyalldawson Apr 26, 2017
1280779
Don't force use of In,Out in QgsFeatureSink methods
nyalldawson Apr 26, 2017
e273ec7
Remove invalid doxygen note
nyalldawson Apr 26, 2017
dd7be73
Add a method to QgsFeatureSink to add all features from an iterator
nyalldawson Apr 26, 2017
b40bc0c
Refactor scale bar rendering
nyalldawson Apr 21, 2017
fa21311
More robust test for numeric scale bar
nyalldawson Apr 22, 2017
8d24a9a
Add missing docs
nyalldawson Apr 22, 2017
9e4f9d4
Sipify update
nyalldawson Apr 26, 2017
3dfc4cf
Provide a base class version of QgsFeatureSink::addFeature
nyalldawson Apr 26, 2017
4293de6
Add missing override keywords
nyalldawson Apr 26, 2017
16cb244
Merge pull request #4416 from nyalldawson/feature_sink
nyalldawson Apr 26, 2017
fea6bff
Merge pull request #4389 from nyalldawson/scalebar
nyalldawson Apr 26, 2017
241d283
Create a context object for processing algorithm execution
nyalldawson Apr 24, 2017
dd4f530
[processing] Pass context argument to processAlgorithm
nyalldawson Apr 25, 2017
06a20b9
Add UseSelection flag to QgsProcessingContext
nyalldawson Apr 25, 2017
f3cfb8b
Add invalid geometry handling method to processing context
nyalldawson Apr 25, 2017
adc7cf0
Add context argument to vector.features
nyalldawson Apr 25, 2017
3f137e1
Add context argument to other vector methods
nyalldawson Apr 25, 2017
8cf1617
Use context to control vector.features()
nyalldawson Apr 25, 2017
b32b395
Add methods for getting vector iterators to QgsProcessingUtils
nyalldawson Apr 25, 2017
e6a33e8
Allow setting the invalid geometry callback in processing context
nyalldawson Apr 25, 2017
f4f4ca3
Raise GeoAlgorithmExecutionException when encountering invalid
nyalldawson Apr 25, 2017
6397386
Remove len method from vector.features
nyalldawson Apr 25, 2017
427c3b1
Remove vector.features
nyalldawson Apr 25, 2017
1c6f165
Add missing doc
nyalldawson Apr 25, 2017
b067bd7
Rename UseSelection -> UseSelectionIfPresent, clarify docs
nyalldawson Apr 25, 2017
86002f3
Move createContext to dataobjects
nyalldawson Apr 25, 2017
845027d
Fix failing tests
nyalldawson Apr 25, 2017
a28bc08
Indentation/sipify
nyalldawson Apr 25, 2017
91679b3
[processing] Don't use config values for invalid geometry handling in…
nyalldawson Apr 25, 2017
f247a7c
Add c++ optimised uniqueValues method which respects processing context
nyalldawson Apr 25, 2017
13f0813
Fix failing test
nyalldawson Apr 26, 2017
a4cd66f
Port some more code to new API
nyalldawson Apr 26, 2017
5169e0d
Merge pull request #4412 from nyalldawson/processing_get_features
nyalldawson Apr 26, 2017
1394c28
[processing] Move some log handling to c++ class
nyalldawson Apr 24, 2017
93c32e6
Fix logging from GDAL
nyalldawson Apr 25, 2017
e9f13d1
Just use standard QgsMessageLog functionality instead of a dedicated
nyalldawson Apr 26, 2017
6b4ddb3
Add temporary layer store to processing context
nyalldawson Apr 26, 2017
7c9b00c
Merge pull request #4400 from nyalldawson/processing_log
nyalldawson Apr 26, 2017
7c71ea6
Add missing docs
nyalldawson Apr 26, 2017
b05ff0d
SIP_FACTORY
lbartoletti Apr 26, 2017
9bb0762
[sipify] improvements
3nids Apr 26, 2017
a5e33fa
Add method to take layer and ownership from a project
nyalldawson Apr 26, 2017
946f0fa
Merge pull request #4418 from nyalldawson/take_layer
nyalldawson Apr 26, 2017
45266cd
[sipify] improvements
3nids Apr 26, 2017
9688b81
followup 45266cd03ef8037fd657b992357b0d2d716522da
3nids Apr 26, 2017
0f9ddc2
fix doxgen test
3nids Apr 26, 2017
4cc4a27
[sipify] operators, remove argument
3nids Apr 26, 2017
23cb825
Enable osx tests
m-kuhn Apr 23, 2017
b407428
Calculate travis timeout dynamically
m-kuhn Apr 26, 2017
623bdf9
New classes for circle and ellipse.
lbartoletti Apr 12, 2017
b5c8fa0
Fix inherited method setSemiMajorAxis/setSemiMinorAxis for QgsCircle.
lbartoletti Apr 13, 2017
d620cb7
Fix spelling + requests and suggestions
lbartoletti Apr 25, 2017
66d6cac
fix stupid error...
lbartoletti Apr 25, 2017
3dc747f
SIP_FACTORY
lbartoletti Apr 26, 2017
b860181
rebase and sipify for circle and ellipse
lbartoletti Apr 26, 2017
0759bdf
Merge branch 'circle_ellipse' of https://github.com/lbartoletti/QGIS …
lbartoletti Apr 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/core/core.sip
Expand Up @@ -357,10 +357,12 @@

%Include geometry/qgsabstractgeometry.sip
%Include geometry/qgsbox3d.sip
%Include geometry/qgscircle.sip
%Include geometry/qgscircularstring.sip
%Include geometry/qgscompoundcurve.sip
%Include geometry/qgscurvepolygon.sip
%Include geometry/qgscurve.sip
%Include geometry/qgsellipse.sip
%Include geometry/qgsgeometry.sip
%Include geometry/qgsgeometrycollection.sip
%Include geometry/qgsgeometryengine.sip
Expand Down
178 changes: 178 additions & 0 deletions python/core/geometry/qgscircle.sip
@@ -0,0 +1,178 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geometry/qgscircle.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/








class QgsCircle : QgsEllipse
{

%TypeHeaderCode
#include "qgscircle.h"
%End
public:
QgsCircle();

QgsCircle( const QgsPointV2 &center, double radius, double azimuth = 0 );
%Docstring
Constructs a circle by defining all the members.
@param center The center of the circle.
@param radius The radius of the circle.
@param azimuth Angle in degrees started from the North to the first quadrant.
%End

static QgsCircle by2Points( const QgsPointV2 &pt1, const QgsPointV2 &pt2 );
%Docstring
Constructs a circle by 2 points on the circle.
The center point can have z and m values which are the result from the midpoint operation between pt1 and pt2.
The radius is calculated from the 2D distance between pt1 and pt2.
The azimuth is the angle between pt1 and pt2.
@param pt1 First point.
@param pt2 Second point.
:rtype: QgsCircle
%End

static QgsCircle by3Points( const QgsPointV2 &pt1, const QgsPointV2 &pt2, const QgsPointV2 &pt3, double epsilon = 1E-8 );
%Docstring
Constructs a circle by 3 points on the circle.
Z and m values are dropped for the center point.
The azimuth always takes the default value.
If the points are colinear an empty circle is returned.
@param pt1 First point.
@param pt2 Second point.
@param pt3 Third point.
@param epsilon Value used to compare point.
:rtype: QgsCircle
%End

static QgsCircle byCenterDiameter( const QgsPointV2 &ptc, double diameter, double azimuth = 0 );
%Docstring
Constructs a circle by a center point and a diameter.
The center point keep z and m values from ptc.
@param ptc Center point.
@param diameter Diameter of the circle.
@param azimuth Azimuth of the circle.
:rtype: QgsCircle
%End


static QgsCircle byCenterPoint( const QgsPointV2 &ptc, const QgsPointV2 &pt1 );
%Docstring
Constructs a circle by a center point and a another point.
The center point keep z and m values from ptc.
Axes are calculated from the 2D distance between ptc and pt1.
The azimuth is the angle between ptc and pt1.
@param ptc Center point.
@param pt1 A point on the circle.
:rtype: QgsCircle
%End


static QgsCircle by3Tangents( const QgsPointV2 &pt1_tg1, const QgsPointV2 &pt2_tg1,
const QgsPointV2 &pt1_tg2, const QgsPointV2 &pt2_tg2,
const QgsPointV2 &pt1_tg3, const QgsPointV2 &pt2_tg3, double epsilon = 1E-8 );
%Docstring
Constructs a circle by 3 tangents on the circle (aka inscribed circle of a triangle).
Z and m values are dropped for the center point.
The azimuth always takes the default value.
@param pt1_tg1 First point of the first tangent.
@param pt2_tg1 Second point of the first tangent.
@param pt1_tg2 First point of the second tangent.
@param pt2_tg2 Second point of the second tangent.
@param pt1_tg3 First point of the third tangent.
@param pt2_tg3 Second point of the third tangent.
@param epsilon Value used to compare point.
:rtype: QgsCircle
%End

static QgsCircle byExtent( const QgsPointV2 &pt1, const QgsPointV2 &pt2 );
%Docstring
Constructs a circle by an extent (aka bounding box / QgsRectangle).
The center point can have z and m values which are the result from the midpoint operation between pt1 and pt2.
Axes are calculated from the 2D distance between pt1 and pt2.
The azimuth always takes the default value.
@param pt1 First corner.
@param pt2 Second corner.
:rtype: QgsCircle
%End

double area() const;
%Docstring
:rtype: float
%End
double perimeter() const;
%Docstring
:rtype: float
%End



void setSemiMajorAxis( const double semiMajorAxis );
%Docstring
Inherited method. Use setRadius instead.
@see radius()
@see setRadius()
%End

void setSemiMinorAxis( const double semiMinorAxis );
%Docstring
Inherited method. Use setRadius instead.
@see radius()
@see setRadius()
%End

double radius() const;
%Docstring
Returns the radius of the circle
:rtype: float
%End
void setRadius( double radius );
%Docstring
Set the radius of the circle
%End

QVector<QgsPointV2> northQuadrant() const;
%Docstring
The four quadrant of the ellipse.
The are oriented and started from North.
@return quadrant defined by four point.
@see quadrant()
:rtype: list of QgsPointV2
%End

QgsCircularString toCircularString( bool oriented = false ) const;
%Docstring
Returns a circular string from the circle.
@param oriented If oriented is true the start point are from azimuth instead from north.
:rtype: QgsCircularString
%End


QgsRectangle boundingBox() const;
%Docstring
:rtype: QgsRectangle
%End

QString toString( int pointPrecision = 17, int radiusPrecision = 17, int azimuthPrecision = 2 ) const;
%Docstring
:rtype: str
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geometry/qgscircle.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/