Skip to content

Commit

Permalink
Added some comments explaining how alpha works
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Feb 24, 2012
1 parent 371d7fe commit c1b268c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/core/symbology-ng-core.sip
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -624,7 +624,9 @@ class QgsSymbolV2RenderContext
QgsSymbolV2::OutputUnit outputUnit() const; QgsSymbolV2::OutputUnit outputUnit() const;
void setOutputUnit( QgsSymbolV2::OutputUnit u ); void setOutputUnit( QgsSymbolV2::OutputUnit u );


//! Get alpha transparency 1 for opaque, 0 for invisible
qreal alpha() const; qreal alpha() const;
//! Set alpha transparency 1 for opaque, 0 for invisible
void setAlpha( qreal alpha ); void setAlpha( qreal alpha );


bool selected() const; bool selected() const;
Expand Down
4 changes: 4 additions & 0 deletions src/core/symbology-ng/qgssymbolv2.h
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ class CORE_EXPORT QgsSymbolV2
OutputUnit outputUnit() const { return mOutputUnit; } OutputUnit outputUnit() const { return mOutputUnit; }
void setOutputUnit( OutputUnit u ) { mOutputUnit = u; } void setOutputUnit( OutputUnit u ) { mOutputUnit = u; }


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


//! @note added in 1.5 //! @note added in 1.5
Expand Down Expand Up @@ -137,7 +139,9 @@ class CORE_EXPORT QgsSymbolV2RenderContext
QgsSymbolV2::OutputUnit outputUnit() const { return mOutputUnit; } QgsSymbolV2::OutputUnit outputUnit() const { return mOutputUnit; }
void setOutputUnit( QgsSymbolV2::OutputUnit u ) { mOutputUnit = u; } void setOutputUnit( QgsSymbolV2::OutputUnit u ) { mOutputUnit = u; }


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


bool selected() const { return mSelected; } bool selected() const { return mSelected; }
Expand Down

0 comments on commit c1b268c

Please sign in to comment.