LCOV - code coverage report
Current view: top level - analysis/vector/geometry_checker - qgsgeometrycheckcontext.cpp (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 9 9 100.0 %
Date: 2021-04-10 08:29:14 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /***************************************************************************
       2                 :            :     qgsgeometrycheckcontext.h
       3                 :            :     ---------------------
       4                 :            :     begin                : September 2018
       5                 :            :     copyright            : (C) 2018 Matthias Kuhn
       6                 :            :     email                : matthias@opengis.ch
       7                 :            :  ***************************************************************************
       8                 :            :  *                                                                         *
       9                 :            :  *   This program is free software; you can redistribute it and/or modify  *
      10                 :            :  *   it under the terms of the GNU General Public License as published by  *
      11                 :            :  *   the Free Software Foundation; either version 2 of the License, or     *
      12                 :            :  *   (at your option) any later version.                                   *
      13                 :            :  *                                                                         *
      14                 :            :  ***************************************************************************/
      15                 :            : 
      16                 :            : #include "qgsgeometrycheckcontext.h"
      17                 :            : #include <QThread>
      18                 :            : 
      19                 :         26 : QgsGeometryCheckContext::QgsGeometryCheckContext( int precision, const QgsCoordinateReferenceSystem &mapCrs, const QgsCoordinateTransformContext &transformContext, const QgsProject *project )
      20                 :         26 :   : tolerance( std::pow( 10, -precision ) )
      21                 :         26 :   , reducedTolerance( std::pow( 10, -precision / 2 ) )
      22                 :         26 :   , mapCrs( mapCrs )
      23                 :         26 :   , transformContext( transformContext )
      24                 :         26 :   , mProject( project )
      25                 :            : {
      26                 :         26 : }
      27                 :            : 
      28                 :          3 : const QgsProject *QgsGeometryCheckContext::project() const
      29                 :            : {
      30                 :            :   Q_ASSERT( qApp->thread() == QThread::currentThread() );
      31                 :          3 :   return mProject;
      32                 :            : }

Generated by: LCOV version 1.14