2023-12-07 10:38:10 +01: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
|
2024-08-30 08:45:02 +10:00
|
|
|
from qgis._3d_p import *
|
2023-12-07 10:38:10 +01:00
|
|
|
|
2024-08-30 08:45:02 +10:00
|
|
|
from qgis.core import Qgis as _Qgis
|
2023-12-07 10:38:10 +01:00
|
|
|
|
|
|
|
@MONKEYPATCH_INJECTIONS@
|
|
|
|
|
|
|
|
# manual monkey patching for old enum values
|
2024-08-30 08:45:02 +10:00
|
|
|
Qgs3DTypes.AltitudeClamping = _Qgis.AltitudeClamping
|
|
|
|
Qgs3DTypes.AltClampAbsolute = _Qgis.AltitudeClamping.Absolute
|
2023-12-07 10:38:10 +01:00
|
|
|
Qgs3DTypes.AltClampAbsolute.is_monkey_patched = True
|
2024-08-30 08:45:02 +10:00
|
|
|
Qgs3DTypes.AltClampRelative = _Qgis.AltitudeClamping.Relative
|
2023-12-07 10:38:10 +01:00
|
|
|
Qgs3DTypes.AltClampRelative.is_monkey_patched = True
|
2024-08-30 08:45:02 +10:00
|
|
|
Qgs3DTypes.AltClampTerrain = _Qgis.AltitudeClamping.Terrain
|
2023-12-07 10:38:10 +01:00
|
|
|
Qgs3DTypes.AltClampTerrain.is_monkey_patched = True
|
|
|
|
|
2024-08-30 08:45:02 +10:00
|
|
|
Qgs3DTypes.AltitudeBinding = _Qgis.AltitudeBinding
|
|
|
|
Qgs3DTypes.AltBindVertex = _Qgis.AltitudeBinding.Vertex
|
2023-12-07 10:38:10 +01:00
|
|
|
Qgs3DTypes.AltBindVertex.is_monkey_patched = True
|
2024-08-30 08:45:02 +10:00
|
|
|
Qgs3DTypes.AltBindCentroid = _Qgis.AltitudeBinding.Centroid
|
2023-12-07 10:38:10 +01:00
|
|
|
Qgs3DTypes.AltBindCentroid.is_monkey_patched = True
|
2024-08-30 08:45:02 +10:00
|
|
|
|
|
|
|
QgsPoint3DSymbol.Shape = _Qgis.Point3DShape
|
|
|
|
QgsPoint3DSymbol.Cylinder = _Qgis.Point3DShape.Cylinder
|
|
|
|
QgsPoint3DSymbol.Cylinder.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.Sphere = _Qgis.Point3DShape.Sphere
|
|
|
|
QgsPoint3DSymbol.Sphere.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.Cone = _Qgis.Point3DShape.Cone
|
|
|
|
QgsPoint3DSymbol.Cone.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.Cube = _Qgis.Point3DShape.Cube
|
|
|
|
QgsPoint3DSymbol.Cube.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.Torus = _Qgis.Point3DShape.Torus
|
|
|
|
QgsPoint3DSymbol.Torus.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.Plane = _Qgis.Point3DShape.Plane
|
|
|
|
QgsPoint3DSymbol.Plane.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.ExtrudedText = _Qgis.Point3DShape.ExtrudedText
|
|
|
|
QgsPoint3DSymbol.ExtrudedText.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.Model = _Qgis.Point3DShape.Model
|
|
|
|
QgsPoint3DSymbol.Model.is_monkey_patched = True
|
|
|
|
QgsPoint3DSymbol.Billboard = _Qgis.Point3DShape.Billboard
|
|
|
|
QgsPoint3DSymbol.Billboard.is_monkey_patched = True
|