Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Standardise constructor formatting
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent 991d402 commit 1803e63
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions src/core/mesh/qgsmeshtracerenderer.cpp
Expand Up @@ -134,28 +134,28 @@ QgsVector QgsMeshVectorValueInterpolatorFromVertex::interpolatedValuePrivate( in
}

QgsMeshVectorValueInterpolator::QgsMeshVectorValueInterpolator( const QgsTriangularMesh &triangularMesh,
const QgsMeshDataBlock &datasetVectorValues ):
mTriangularMesh( triangularMesh ),
mDatasetValues( datasetVectorValues ),
mUseScalarActiveFaceFlagValues( false )
const QgsMeshDataBlock &datasetVectorValues )
: mTriangularMesh( triangularMesh )
, mDatasetValues( datasetVectorValues )
, mUseScalarActiveFaceFlagValues( false )
{}

QgsMeshVectorValueInterpolator::QgsMeshVectorValueInterpolator( const QgsTriangularMesh &triangularMesh,
const QgsMeshDataBlock &datasetVectorValues,
const QgsMeshDataBlock &scalarActiveFaceFlagValues ):
mTriangularMesh( triangularMesh ),
mDatasetValues( datasetVectorValues ),
mActiveFaceFlagValues( scalarActiveFaceFlagValues ),
mUseScalarActiveFaceFlagValues( true )
const QgsMeshDataBlock &scalarActiveFaceFlagValues )
: mTriangularMesh( triangularMesh )
, mDatasetValues( datasetVectorValues )
, mActiveFaceFlagValues( scalarActiveFaceFlagValues )
, mUseScalarActiveFaceFlagValues( true )
{}

QgsMeshVectorValueInterpolator::QgsMeshVectorValueInterpolator( const QgsMeshVectorValueInterpolator &other ):
mTriangularMesh( other.mTriangularMesh ),
mDatasetValues( other.mDatasetValues ),
mActiveFaceFlagValues( other.mActiveFaceFlagValues ),
mFaceCache( other.mFaceCache ),
mCacheFaceIndex( other.mCacheFaceIndex ),
mUseScalarActiveFaceFlagValues( other.mUseScalarActiveFaceFlagValues )
QgsMeshVectorValueInterpolator::QgsMeshVectorValueInterpolator( const QgsMeshVectorValueInterpolator &other )
: mTriangularMesh( other.mTriangularMesh )
, mDatasetValues( other.mDatasetValues )
, mActiveFaceFlagValues( other.mActiveFaceFlagValues )
, mFaceCache( other.mFaceCache )
, mCacheFaceIndex( other.mCacheFaceIndex )
, mUseScalarActiveFaceFlagValues( other.mUseScalarActiveFaceFlagValues )
{}

void QgsMeshVectorValueInterpolator::updateCacheFaceIndex( const QgsPointXY &point ) const
Expand Down Expand Up @@ -210,12 +210,12 @@ QgsMeshStreamField::QgsMeshStreamField(
bool dataIsOnVertices,
const QgsRenderContext &rendererContext,
const QgsInterpolatedLineColor &vectorColoring,
int resolution ):
mFieldResolution( resolution ),
mVectorColoring( vectorColoring ),
mRenderContext( rendererContext ),
mLayerExtent( layerExtent ),
mMaximumMagnitude( magnitudeMaximum )
int resolution )
: mFieldResolution( resolution )
, mVectorColoring( vectorColoring )
, mRenderContext( rendererContext )
, mLayerExtent( layerExtent )
, mMaximumMagnitude( magnitudeMaximum )
{
if ( dataIsOnVertices )
{
Expand Down Expand Up @@ -243,25 +243,25 @@ QgsMeshStreamField::QgsMeshStreamField(
}
}

QgsMeshStreamField::QgsMeshStreamField( const QgsMeshStreamField &other ):
mFieldSize( other.mFieldSize ),
mFieldResolution( other.mFieldResolution ),
mPen( other.mPen ),
mTraceImage( other.mTraceImage ),
mMapToFieldPixel( other.mMapToFieldPixel ),
mVectorColoring( other.mVectorColoring ),
mDirectionField( other.mDirectionField ),
mRenderContext( other.mRenderContext ),
mPixelFillingCount( other.mPixelFillingCount ),
mMaxPixelFillingCount( other.mMaxPixelFillingCount ),
mLayerExtent( other.mLayerExtent ),
mMapExtent( other.mMapExtent ),
mFieldTopLeftInDeviceCoordinates( other.mFieldTopLeftInDeviceCoordinates ),
mValid( other.mValid ),
mMaximumMagnitude( other.mMaximumMagnitude ),
mPixelFillingDensity( other.mPixelFillingDensity ),
mMinMagFilter( other.mMinMagFilter ),
mMinimizeFieldSize( other.mMinimizeFieldSize )
QgsMeshStreamField::QgsMeshStreamField( const QgsMeshStreamField &other )
: mFieldSize( other.mFieldSize )
, mFieldResolution( other.mFieldResolution )
, mPen( other.mPen )
, mTraceImage( other.mTraceImage )
, mMapToFieldPixel( other.mMapToFieldPixel )
, mVectorColoring( other.mVectorColoring )
, mDirectionField( other.mDirectionField )
, mRenderContext( other.mRenderContext )
, mPixelFillingCount( other.mPixelFillingCount )
, mMaxPixelFillingCount( other.mMaxPixelFillingCount )
, mLayerExtent( other.mLayerExtent )
, mMapExtent( other.mMapExtent )
, mFieldTopLeftInDeviceCoordinates( other.mFieldTopLeftInDeviceCoordinates )
, mValid( other.mValid )
, mMaximumMagnitude( other.mMaximumMagnitude )
, mPixelFillingDensity( other.mPixelFillingDensity )
, mMinMagFilter( other.mMinMagFilter )
, mMinimizeFieldSize( other.mMinimizeFieldSize )
{
mPainter.reset( new QPainter( &mTraceImage ) );
mVectorValueInterpolator =
Expand Down

0 comments on commit 1803e63

Please sign in to comment.