Skip to content

Commit

Permalink
Export QgsMapSettings rotation API to python
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Dec 9, 2014
1 parent 5683ebd commit b3953b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 9 additions & 0 deletions python/core/qgsmapsettings.sip
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ class QgsMapSettings
//! Set the size of the resulting map image
void setOutputSize( const QSize& size );

//! Return the rotation of the resulting map image
//! Units are clockwise degrees
//! @note added in 2.8
double rotation() const;
//! Set the rotation of the resulting map image
//! Units are clockwise degrees
//! @note added in 2.8
void setRotation( double degrees );

//! Return DPI used for conversion between real world units (e.g. mm) and pixels
//! Default value is 96
int outputDpi() const;
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsmapsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ class CORE_EXPORT QgsMapSettings
double rotation() const;
//! Set the rotation of the resulting map image
//! Units are clockwise degrees
//! TODO: define relation between extent and rotation
//! @note added in 2.8
void setRotation( double degrees );

Expand Down

0 comments on commit b3953b8

Please sign in to comment.