Skip to content
Permalink
Browse files

Forward declare more classes

  • Loading branch information
nyalldawson committed Dec 18, 2020
1 parent 1be1229 commit 60aea700d1ae029552cbe75bd9e1c85873997944
@@ -10,6 +10,8 @@





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

~QgsColorRampShader();

QgsColorRampShader( const QgsColorRampShader &other );
%Docstring
Copy constructor
@@ -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;
@@ -20,7 +20,7 @@
#include "qgsmeshlayerutils.h"
#include "qgsapplication.h"
#include "qgsmeshvirtualdatasetgroup.h"

#include "qgslogger.h"

QList<int> QgsMeshDatasetGroupStore::datasetGroupIndexes() const
{
@@ -40,6 +40,7 @@
#include "qgsstyle.h"
#include "qgsmeshdataprovidertemporalcapabilities.h"
#include "qgsmapclippingutils.h"
#include "qgscolorrampshader.h"

QgsMeshLayerRenderer::QgsMeshLayerRenderer(
QgsMeshLayer *layer,
@@ -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 )
@@ -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.
@@ -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
*/

0 comments on commit 60aea70

Please sign in to comment.
You can’t perform that action at this time.