Skip to content
Permalink
Browse files

Add assignment operator

  • Loading branch information
NEDJIMAbelgacem committed Nov 9, 2020
1 parent c9d184d commit eefc97819ea5a438c205a575092e1aa5159c7f41
Showing with 20 additions and 2 deletions.
  1. +10 −0 src/3d/qgsshadowsettings.cpp
  2. +1 −1 src/3d/qgsshadowsettings.h
  3. +8 −0 src/3d/qgsskyboxsettings.cpp
  4. +1 −1 src/3d/qgsskyboxsettings.h
@@ -30,6 +30,16 @@ QgsShadowSettings::QgsShadowSettings( const QgsShadowSettings &other )

}

QgsShadowSettings &QgsShadowSettings::operator=( QgsShadowSettings const &rhs )
{
this->mRenderShadows = rhs.mRenderShadows;
this->mSelectedDirectionalLight = rhs.mSelectedDirectionalLight;
this->mMaximumShadowRenderingDistance = rhs.mMaximumShadowRenderingDistance;
this->mShadowBias = rhs.mShadowBias;
this->mShadowMapResolution = rhs.mShadowMapResolution;
return *this;
}

void QgsShadowSettings::readXml( const QDomElement &element, const QgsReadWriteContext &context )
{
Q_UNUSED( context );
@@ -39,7 +39,7 @@ class _3D_EXPORT QgsShadowSettings
//! Copy constructor
QgsShadowSettings( const QgsShadowSettings &other );
//! delete assignment operator
QgsShadowSettings &operator=( QgsShadowSettings const & ) = delete;
QgsShadowSettings &operator=( QgsShadowSettings const &rhs );

//! Reads settings from a DOM \a element
void readXml( const QDomElement &element, const QgsReadWriteContext &context );
@@ -28,6 +28,14 @@ QgsSkyboxSettings::QgsSkyboxSettings( const QgsSkyboxSettings &other )

}

QgsSkyboxSettings &QgsSkyboxSettings::operator=( QgsSkyboxSettings const &rhs )
{
this->mSkyboxType = rhs.mSkyboxType;
this->mPanoramicTexturePath = rhs.mPanoramicTexturePath;
this->mCubeMapFacesPaths = rhs.mCubeMapFacesPaths;
return *this;
}

void QgsSkyboxSettings::readXml( const QDomElement &element, const QgsReadWriteContext &context )
{
const QgsPathResolver &pathResolver = context.pathResolver();
@@ -40,7 +40,7 @@ class _3D_EXPORT QgsSkyboxSettings
//! copy constructor
QgsSkyboxSettings( const QgsSkyboxSettings &other );
//! delete assignment operator
QgsSkyboxSettings &operator=( QgsSkyboxSettings const & ) = delete;
QgsSkyboxSettings &operator=( QgsSkyboxSettings const &rhs );

//! Reads settings from a DOM \a element
void readXml( const QDomElement &element, const QgsReadWriteContext &context );

0 comments on commit eefc978

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