QGIS API Documentation  3.0.2-Girona (307d082)
Public Member Functions | List of all members
QgsSnappingConfig::IndividualLayerSettings Class Reference

This is a container of advanced configuration (per layer) of the snapping of the project. More...

#include <qgssnappingconfig.h>

Public Member Functions

 IndividualLayerSettings (bool enabled, QgsSnappingConfig::SnappingType type, double tolerance, QgsTolerance::UnitType units)
 IndividualLayerSettings. More...
 
 IndividualLayerSettings ()=default
 Constructs an invalid setting. More...
 
bool enabled () const
 return if snapping is enabled More...
 
bool operator!= (const QgsSnappingConfig::IndividualLayerSettings &other) const
 Compare this configuration to other. More...
 
bool operator== (const QgsSnappingConfig::IndividualLayerSettings &other) const
 
void setEnabled (bool enabled)
 enables the snapping More...
 
void setTolerance (double tolerance)
 set the tolerance More...
 
void setType (QgsSnappingConfig::SnappingType type)
 define the type of snapping More...
 
void setUnits (QgsTolerance::UnitType units)
 set the type of units More...
 
double tolerance () const
 return the tolerance More...
 
QgsSnappingConfig::SnappingType type () const
 return the type (vertices and/or segments) More...
 
QgsTolerance::UnitType units () const
 return the type of units More...
 
bool valid () const
 return if settings are valid More...
 

Detailed Description

This is a container of advanced configuration (per layer) of the snapping of the project.

Since
QGIS 3.0

Definition at line 69 of file qgssnappingconfig.h.

Constructor & Destructor Documentation

◆ IndividualLayerSettings() [1/2]

QgsSnappingConfig::IndividualLayerSettings::IndividualLayerSettings ( bool  enabled,
QgsSnappingConfig::SnappingType  type,
double  tolerance,
QgsTolerance::UnitType  units 
)

IndividualLayerSettings.

Parameters
enabled
type
tolerance
units

Definition at line 27 of file qgssnappingconfig.cpp.

◆ IndividualLayerSettings() [2/2]

QgsSnappingConfig::IndividualLayerSettings::IndividualLayerSettings ( )
default

Constructs an invalid setting.

Member Function Documentation

◆ enabled()

bool QgsSnappingConfig::IndividualLayerSettings::enabled ( ) const

return if snapping is enabled

Definition at line 40 of file qgssnappingconfig.cpp.

◆ operator!=()

bool QgsSnappingConfig::IndividualLayerSettings::operator!= ( const QgsSnappingConfig::IndividualLayerSettings other) const

Compare this configuration to other.

Definition at line 80 of file qgssnappingconfig.cpp.

◆ operator==()

bool QgsSnappingConfig::IndividualLayerSettings::operator== ( const QgsSnappingConfig::IndividualLayerSettings other) const

Definition at line 89 of file qgssnappingconfig.cpp.

◆ setEnabled()

void QgsSnappingConfig::IndividualLayerSettings::setEnabled ( bool  enabled)

enables the snapping

Definition at line 45 of file qgssnappingconfig.cpp.

◆ setTolerance()

void QgsSnappingConfig::IndividualLayerSettings::setTolerance ( double  tolerance)

set the tolerance

Definition at line 65 of file qgssnappingconfig.cpp.

◆ setType()

void QgsSnappingConfig::IndividualLayerSettings::setType ( QgsSnappingConfig::SnappingType  type)

define the type of snapping

Definition at line 55 of file qgssnappingconfig.cpp.

◆ setUnits()

void QgsSnappingConfig::IndividualLayerSettings::setUnits ( QgsTolerance::UnitType  units)

set the type of units

Definition at line 75 of file qgssnappingconfig.cpp.

◆ tolerance()

double QgsSnappingConfig::IndividualLayerSettings::tolerance ( ) const

return the tolerance

Definition at line 60 of file qgssnappingconfig.cpp.

◆ type()

QgsSnappingConfig::SnappingType QgsSnappingConfig::IndividualLayerSettings::type ( ) const

return the type (vertices and/or segments)

Definition at line 50 of file qgssnappingconfig.cpp.

◆ units()

QgsTolerance::UnitType QgsSnappingConfig::IndividualLayerSettings::units ( ) const

return the type of units

Definition at line 70 of file qgssnappingconfig.cpp.

◆ valid()

bool QgsSnappingConfig::IndividualLayerSettings::valid ( ) const

return if settings are valid

Definition at line 35 of file qgssnappingconfig.cpp.


The documentation for this class was generated from the following files: