Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For the time being the class is kept in the server code while it is still being used there.
- Loading branch information
Showing
114 changed files
with
592 additions
and
1,260 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
class QgsPainting | ||
{ | ||
%TypeHeaderCode | ||
#include <qgspainting.h> | ||
%End | ||
|
||
public: | ||
|
||
/** Blending modes enum defining the available composition modes that can | ||
* be used when rendering a layer | ||
*/ | ||
enum BlendMode | ||
{ | ||
BlendNormal, | ||
BlendLighten, | ||
BlendScreen, | ||
BlendDodge, | ||
BlendAddition, | ||
BlendDarken, | ||
BlendMultiply, | ||
BlendBurn, | ||
BlendOverlay, | ||
BlendSoftLight, | ||
BlendHardLight, | ||
BlendDifference, | ||
BlendSubtract, | ||
BlendSource, | ||
BlendDestinationOver, | ||
BlendClear, | ||
BlendDestination, | ||
BlendSourceIn, | ||
BlendDestinationIn, | ||
BlendSourceOut, | ||
BlendDestinationOut, | ||
BlendSourceAtop, | ||
BlendDestinationAtop, | ||
BlendXor, | ||
}; | ||
|
||
//! Returns a QPainter::CompositionMode corresponding to a BlendMode | ||
static QPainter::CompositionMode getCompositionMode( QgsPainting::BlendMode blendMode ); | ||
//! Returns a BlendMode corresponding to a QPainter::CompositionMode | ||
static QgsPainting::BlendMode getBlendModeEnum( QPainter::CompositionMode blendMode ); | ||
|
||
}; |
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.