2018-10-13 21:07:11 +02:00
|
|
|
# -*- 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 *
|
2022-02-23 15:51:59 +10:00
|
|
|
|
|
|
|
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
|
|
|
|
|