@@ -889,9 +889,9 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
889
889
if ( mName == " circle" )
890
890
{
891
891
if ( mBrush .style () != Qt::NoBrush )
892
- e.writeFilledCircle ( layerName, bc, QgsPoint ( shift. x (), shift. y () ) , halfSize );
892
+ e.writeFilledCircle ( layerName, bc, shift, halfSize );
893
893
if ( mPen .style () != Qt::NoPen )
894
- e.writeCircle ( layerName, pc, QgsPoint ( shift. x (), shift. y () ) , halfSize, " CONTINUOUS" , outlineWidth );
894
+ e.writeCircle ( layerName, pc, shift, halfSize, " CONTINUOUS" , outlineWidth );
895
895
}
896
896
else if ( mName == " square" || mName == " rectangle" )
897
897
{
@@ -903,7 +903,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
903
903
QPointF pt4 = t.map ( QPointF ( halfSize, halfSize ) );
904
904
905
905
if ( mBrush .style () != Qt::NoBrush )
906
- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) );
906
+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt4 );
907
907
908
908
if ( mPen .style () != Qt::NoPen )
909
909
{
@@ -921,7 +921,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
921
921
QPointF pt4 = t.map ( QPointF ( halfSize, 0 ) );
922
922
923
923
if ( mBrush .style () != Qt::NoBrush )
924
- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) );
924
+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt4 );
925
925
926
926
if ( mPen .style () != Qt::NoPen )
927
927
{
@@ -938,7 +938,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
938
938
QPointF pt3 = t.map ( QPointF ( 0 , halfSize ) );
939
939
940
940
if ( mBrush .style () != Qt::NoBrush )
941
- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x () , pt3. y () ), QgsPoint ( pt3. x (), pt3. y () ) );
941
+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt3 );
942
942
943
943
if ( mPen .style () != Qt::NoPen )
944
944
{
@@ -959,7 +959,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
959
959
QPointF pt2 = t.map ( QPointF ( 0 , -halfSize ) );
960
960
961
961
if ( mPen .style () != Qt::NoPen )
962
- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
962
+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
963
963
}
964
964
else if ( mName == " cross" )
965
965
{
@@ -970,8 +970,8 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
970
970
971
971
if ( mPen .style () != Qt::NoPen )
972
972
{
973
- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
974
- e.writeLine ( QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
973
+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
974
+ e.writeLine ( pt3, pt4, layerName, " CONTINUOUS" , pc, outlineWidth );
975
975
}
976
976
}
977
977
else if ( mName == " x" || mName == " cross2" )
@@ -983,8 +983,8 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
983
983
984
984
if ( mPen .style () != Qt::NoPen )
985
985
{
986
- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
987
- e.writeLine ( QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
986
+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
987
+ e.writeLine ( pt3, pt4, layerName, " CONTINUOUS" , pc, outlineWidth );
988
988
}
989
989
}
990
990
else if ( mName == " arrowhead" )
@@ -995,8 +995,8 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
995
995
996
996
if ( mPen .style () != Qt::NoPen )
997
997
{
998
- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
999
- e.writeLine ( QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
998
+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
999
+ e.writeLine ( pt3, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
1000
1000
}
1001
1001
}
1002
1002
else if ( mName == " filled_arrowhead" )
@@ -1007,7 +1007,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
1007
1007
1008
1008
if ( mBrush .style () != Qt::NoBrush )
1009
1009
{
1010
- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x () , pt3. y () ), QgsPoint ( pt3. x (), pt3. y () ) );
1010
+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt3 );
1011
1011
}
1012
1012
}
1013
1013
else
0 commit comments