Skip to content

Commit 2422ef5

Browse files
timlinuxalexbruy
authored andcommitted
Added some comments explaining how alpha works
1 parent 4b88ec3 commit 2422ef5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

python/core/symbology-ng-core.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,9 @@ class QgsSymbolV2RenderContext
615615
QgsSymbolV2::OutputUnit outputUnit() const;
616616
void setOutputUnit( QgsSymbolV2::OutputUnit u );
617617

618+
//! Get alpha transparency 1 for opaque, 0 for invisible
618619
qreal alpha() const;
620+
//! Set alpha transparency 1 for opaque, 0 for invisible
619621
void setAlpha( qreal alpha );
620622

621623
bool selected() const;

src/core/symbology-ng/qgssymbolv2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ class CORE_EXPORT QgsSymbolV2
9090
OutputUnit outputUnit() const { return mOutputUnit; }
9191
void setOutputUnit( OutputUnit u ) { mOutputUnit = u; }
9292

93+
//! Get alpha transparency 1 for opaque, 0 for invisible
9394
qreal alpha() const { return mAlpha; }
95+
//! Set alpha transparency 1 for opaque, 0 for invisible
9496
void setAlpha( qreal alpha ) { mAlpha = alpha; }
9597

9698
//! @note added in 1.5
@@ -133,7 +135,9 @@ class CORE_EXPORT QgsSymbolV2RenderContext
133135
QgsSymbolV2::OutputUnit outputUnit() const { return mOutputUnit; }
134136
void setOutputUnit( QgsSymbolV2::OutputUnit u ) { mOutputUnit = u; }
135137

138+
//! Get alpha transparency 1 for opaque, 0 for invisible
136139
qreal alpha() const { return mAlpha; }
140+
//! Set alpha transparency 1 for opaque, 0 for invisible
137141
void setAlpha( qreal alpha ) { mAlpha = alpha; }
138142

139143
bool selected() const { return mSelected; }

0 commit comments

Comments
 (0)