QGIS/python/core/auto_generated/qgscadutils.sip.in

77 lines
2.3 KiB
Plaintext
Raw Normal View History

2017-09-14 16:50:09 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscadutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsCadUtils
{
%Docstring
2017-12-15 10:36:55 -04:00
The QgsCadUtils class provides routines for CAD editing.
2017-09-14 16:50:09 +02:00
.. versionadded:: 3.0
%End
%TypeHeaderCode
#include "qgscadutils.h"
%End
public:
struct AlignMapPointConstraint
{
AlignMapPointConstraint( bool locked = false, bool relative = false, double value = 0 );
bool locked;
bool relative;
double value;
};
struct AlignMapPointContext
{
QgsSnappingUtils *snappingUtils;
double mapUnitsPerPixel;
QgsCadUtils::AlignMapPointConstraint xConstraint;
QgsCadUtils::AlignMapPointConstraint yConstraint;
QgsCadUtils::AlignMapPointConstraint distanceConstraint;
QgsCadUtils::AlignMapPointConstraint angleConstraint;
QgsCadUtils::AlignMapPointConstraint commonAngleConstraint;
QList<QgsPointXY> cadPointList;
};
struct AlignMapPointOutput
{
bool valid;
QgsPointXY finalMapPoint;
QgsPointLocator::Match edgeMatch;
2018-06-06 11:29:00 +02:00
double softLockCommonAngle;
2017-09-14 16:50:09 +02:00
};
static QgsCadUtils::AlignMapPointOutput alignMapPoint( const QgsPointXY &originalMapPoint, const QgsCadUtils::AlignMapPointContext &ctx );
%Docstring
2017-12-15 10:36:55 -04:00
Applies X/Y/angle/distance constraints from the given context to a map point.
Returns a structure containing aligned map point, whether the constraints are valid and
some extra information.
2017-09-14 16:50:09 +02:00
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgscadutils.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/