-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge of rendercontext branch into trunk
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8440 c8812cc2-4d05-0410-92ff-de0c093fc19c
- Loading branch information
mhugent
committed
May 15, 2008
1 parent
15c76ee
commit 47f79b5
Showing
68 changed files
with
1,153 additions
and
958 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
class QgsRenderContext | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include <qgsrendercontext.h> | ||
%End | ||
|
||
public: | ||
QgsRenderContext(); | ||
~QgsRenderContext(); | ||
|
||
//getters | ||
|
||
QPainter* painter(); | ||
|
||
const QgsCoordinateTransform* coordTransform() const; | ||
|
||
const QgsRect& extent() const; | ||
|
||
const QgsMapToPixel& mapToPixel() const; | ||
|
||
double scaleFactor() const; | ||
|
||
double rasterScaleFactor() const; | ||
|
||
bool renderingStopped() const; | ||
|
||
bool forceVectorOutput() const; | ||
|
||
bool drawEditingInformation() const; | ||
|
||
//setters | ||
|
||
/**Sets coordinate transformation. QgsRenderContext takes ownership and deletes if necessary*/ | ||
void setCoordTransform(QgsCoordinateTransform* t); | ||
void setMapToPixel(const QgsMapToPixel& mtp); | ||
void setExtent(const QgsRect& extent); | ||
void setDrawEditingInformation(bool b); | ||
void setRenderingStopped(bool stopped); | ||
void setScaleFactor(double factor); | ||
void setRasterScaleFactor(double factor); | ||
void setPainter(QPainter* p); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.