mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-03 00:14:12 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
# -*- coding: utf-8 -*-
 | 
						|
 | 
						|
"""
 | 
						|
***************************************************************************
 | 
						|
    __init__.py
 | 
						|
    ---------------------
 | 
						|
    Date                 : May 2014
 | 
						|
    Copyright            : (C) 2014 by Nathan Woodrow
 | 
						|
    Email                : woodrow dot nathan at gmail dot com
 | 
						|
***************************************************************************
 | 
						|
*                                                                         *
 | 
						|
*   This program is free software; you can redistribute it and/or modify  *
 | 
						|
*   it under the terms of the GNU General Public License as published by  *
 | 
						|
*   the Free Software Foundation; either version 2 of the License, or     *
 | 
						|
*   (at your option) any later version.                                   *
 | 
						|
*                                                                         *
 | 
						|
***************************************************************************
 | 
						|
"""
 | 
						|
 | 
						|
__author__ = 'Nathan Woodrow'
 | 
						|
__date__ = 'May 2014'
 | 
						|
__copyright__ = '(C) 2014, Nathan Woodrow'
 | 
						|
 | 
						|
from qgis.PyQt import QtCore
 | 
						|
from qgis._3d import *
 | 
						|
 | 
						|
from qgis.core import Qgis
 | 
						|
# manual monkey patching for old enum values
 | 
						|
Qgs3DTypes.AltitudeClamping = Qgis.AltitudeClamping
 | 
						|
Qgs3DTypes.AltClampAbsolute = Qgis.AltitudeClamping.Absolute
 | 
						|
Qgs3DTypes.AltClampAbsolute.is_monkey_patched = True
 | 
						|
Qgs3DTypes.AltClampRelative = Qgis.AltitudeClamping.Relative
 | 
						|
Qgs3DTypes.AltClampRelative.is_monkey_patched = True
 | 
						|
Qgs3DTypes.AltClampTerrain = Qgis.AltitudeClamping.Terrain
 | 
						|
Qgs3DTypes.AltClampTerrain.is_monkey_patched = True
 | 
						|
 | 
						|
Qgs3DTypes.AltitudeBinding = Qgis.AltitudeBinding
 | 
						|
Qgs3DTypes.AltBindVertex = Qgis.AltitudeBinding.Vertex
 | 
						|
Qgs3DTypes.AltBindVertex.is_monkey_patched = True
 | 
						|
Qgs3DTypes.AltBindCentroid = Qgis.AltitudeBinding.Centroid
 | 
						|
Qgs3DTypes.AltBindCentroid.is_monkey_patched = True
 | 
						|
 |