Skip to content

Commit

Permalink
Forward declare more classes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 18, 2020
1 parent 1be1229 commit 60aea70
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions python/core/auto_generated/raster/qgscolorrampshader.sip.in
Expand Up @@ -10,6 +10,8 @@





class QgsColorRampShader : QgsRasterShaderFunction
{
%Docstring
Expand Down Expand Up @@ -48,6 +50,8 @@ Creates a new color ramp shader.
:return: new QgsColorRampShader
%End

~QgsColorRampShader();

QgsColorRampShader( const QgsColorRampShader &other );
%Docstring
Copy constructor
Expand Down
1 change: 1 addition & 0 deletions src/core/mesh/qgsmesh3daveraging.cpp
Expand Up @@ -20,6 +20,7 @@
#include "qgsmesh3daveraging.h"
#include "qgsmeshdataprovider.h"
#include "qgsmeshrenderersettings.h"
#include "qgsfeedback.h"

// threshold for length intervals, to avoid division by 0
static const double eps = 1e-6;
Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshdatasetgroupstore.cpp
Expand Up @@ -20,7 +20,7 @@
#include "qgsmeshlayerutils.h"
#include "qgsapplication.h"
#include "qgsmeshvirtualdatasetgroup.h"

#include "qgslogger.h"

QList<int> QgsMeshDatasetGroupStore::datasetGroupIndexes() const
{
Expand Down
1 change: 1 addition & 0 deletions src/core/mesh/qgsmeshlayerrenderer.cpp
Expand Up @@ -40,6 +40,7 @@
#include "qgsstyle.h"
#include "qgsmeshdataprovidertemporalcapabilities.h"
#include "qgsmapclippingutils.h"
#include "qgscolorrampshader.h"

QgsMeshLayerRenderer::QgsMeshLayerRenderer(
QgsMeshLayer *layer,
Expand Down
2 changes: 2 additions & 0 deletions src/core/raster/qgscolorrampshader.cpp
Expand Up @@ -41,6 +41,8 @@ QgsColorRampShader::QgsColorRampShader( double minimumValue, double maximumValue
setSourceColorRamp( colorRamp );
}

QgsColorRampShader::~QgsColorRampShader() = default;

QgsColorRampShader::QgsColorRampShader( const QgsColorRampShader &other )
: QgsRasterShaderFunction( other )
, mColorRampType( other.mColorRampType )
Expand Down
8 changes: 6 additions & 2 deletions src/core/raster/qgscolorrampshader.h
Expand Up @@ -27,11 +27,13 @@ originally part of the larger QgsRasterLayer class
#include <QVector>
#include <memory>

#include "qgscolorramp.h"
#include "qgsrasterinterface.h"
#include "qgsrastershaderfunction.h"
#include "qgsrectangle.h"

class QgsColorRamp;
class QgsRasterInterface;


/**
* \ingroup core
* A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
Expand Down Expand Up @@ -68,6 +70,8 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction
*/
QgsColorRampShader( double minimumValue = 0.0, double maximumValue = 255.0, QgsColorRamp *colorRamp SIP_TRANSFER = nullptr, Type type = Interpolated, ClassificationMode classificationMode = Continuous );

~QgsColorRampShader() override;

/**
* Copy constructor
*/
Expand Down

0 comments on commit 60aea70

Please sign in to comment.