Skip to content

Commit e5f8169

Browse files
committedApr 19, 2018
Add sip binding and comments
1 parent f5c03db commit e5f8169

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
 

‎python/core/dxf/qgsdxfexport.sip

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,14 @@ class QgsDxfExport
375375
//! @note added in 2.15
376376
void writeMText( const QString &layer, const QString &text, const QgsPointV2 &pt, double width, double angle, const QColor& color );
377377

378+
/** Returns scale factor for conversion to map units
379+
@param mapUnitsPerPixel Map units per pixel*/
378380
static double mapUnitScaleFactor( double scaleDenominator, QgsSymbolV2::OutputUnit symbolUnits, QGis::UnitType mapUnits, double mapUnitsPerPixel = 1.0 );
381+
/** Clips value to scale minimum/maximum
382+
@param value the value to clip
383+
@param scale the scale dependent minimum/maximum values
384+
@param pixelToMMFactor pixels per mm*/
385+
void clipValueToMapUnitScale( double& value, const QgsMapUnitScale& scale, double pixelToMMFactor ) const;
379386

380387
//! Return cleaned layer name for use in DXF
381388
static QString dxfLayerName( const QString &name );

‎src/core/dxf/qgsdxfexport.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,13 @@ class CORE_EXPORT QgsDxfExport
402402
//! @note added in 2.15
403403
void writeMText( const QString &layer, const QString &text, const QgsPointV2 &pt, double width, double angle, const QColor& color );
404404

405+
/** Returns scale factor for conversion to map units
406+
@param mapUnitsPerPixel Map units per pixel*/
405407
static double mapUnitScaleFactor( double scaleDenominator, QgsSymbolV2::OutputUnit symbolUnits, QGis::UnitType mapUnits, double mapUnitsPerPixel = 1.0 );
408+
/** Clips value to scale minimum/maximum
409+
@param value the value to clip
410+
@param scale the scale dependent minimum/maximum values
411+
@param pixelToMMFactor pixels per mm*/
406412
void clipValueToMapUnitScale( double& value, const QgsMapUnitScale& scale, double pixelToMMFactor ) const;
407413

408414
//! Return cleaned layer name for use in DXF

‎src/core/dxf/qgsdxfpaintengine.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class CORE_EXPORT QgsDxfPaintEngine: public QPaintEngine
6161
QTransform mTransform;
6262
QPen mPen;
6363
QBrush mBrush;
64+
/** Opacity*/
6465
double mOpacity;
6566
QString mLayer;
6667
QPointF mShift;
@@ -86,7 +87,9 @@ class CORE_EXPORT QgsDxfPaintEngine: public QPaintEngine
8687
static double power( double a, int b );
8788
static int faculty( int n );
8889

90+
/** Returns current pen color*/
8991
QColor penColor() const;
92+
/** Returns current brush color*/
9093
QColor brushColor() const;
9194
};
9295

0 commit comments

Comments
 (0)
Please sign in to comment.