Skip to content

Commit

Permalink
[sipify] Minor cleanup to auto additions
Browse files Browse the repository at this point in the history
Condense injections into a single block instead of multiple
separate blocks
  • Loading branch information
nyalldawson committed Sep 9, 2024
1 parent da93db5 commit f21722a
Show file tree
Hide file tree
Showing 1,419 changed files with 5,652 additions and 8,014 deletions.
9 changes: 6 additions & 3 deletions python/3d/auto_additions/qgs3d.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# The following has been generated automatically from src/3d/qgs3d.h
Qgs3D.instance = staticmethod(Qgs3D.instance)
Qgs3D.initialize = staticmethod(Qgs3D.initialize)
Qgs3D.materialRegistry = staticmethod(Qgs3D.materialRegistry)
try:
Qgs3D.instance = staticmethod(Qgs3D.instance)
Qgs3D.initialize = staticmethod(Qgs3D.initialize)
Qgs3D.materialRegistry = staticmethod(Qgs3D.materialRegistry)
except NameError:
pass
5 changes: 1 addition & 4 deletions python/3d/auto_additions/qgs3dmapscene.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# The following has been generated automatically from src/3d/qgs3dmapscene.h
try:
Qgs3DMapScene.__attribute_docs__ = {'terrainEntityChanged': 'Emitted when the current terrain entity is replaced by a new one\n', 'terrainPendingJobsCountChanged': "Emitted when the number of terrain's pending jobs changes\n", 'totalPendingJobsCountChanged': 'Emitted when the total number of pending jobs changes\n\n.. versionadded:: 3.12\n', 'sceneStateChanged': "Emitted when the scene's state has changed\n", 'fpsCountChanged': 'Emitted when the FPS count changes\n', 'fpsCounterEnabledChanged': 'Emitted when the FPS counter is activated or deactivated\n', 'viewed2DExtentFrom3DChanged': 'Emitted when the viewed 2D extent seen by the 3D camera has changed\n\n.. versionadded:: 3.26\n', 'gpuMemoryLimitReached': "Emitted when one of the entities reaches its GPU memory limit\nand it is not possible to lower the GPU memory use by unloading\ndata that's not currently needed.\n"}
except NameError:
pass
Qgs3DMapScene.openScenes = staticmethod(Qgs3DMapScene.openScenes)
try:
Qgs3DMapScene.openScenes = staticmethod(Qgs3DMapScene.openScenes)
Qgs3DMapScene.__signal_arguments__ = {'fpsCountChanged': ['fpsCount: float'], 'fpsCounterEnabledChanged': ['fpsCounterEnabled: bool'], 'viewed2DExtentFrom3DChanged': ['extent: List[QgsPointXY]']}
except NameError:
pass
3 changes: 0 additions & 3 deletions python/3d/auto_additions/qgs3dmapsettings.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# The following has been generated automatically from src/3d/qgs3dmapsettings.h
try:
Qgs3DMapSettings.__attribute_docs__ = {'settingsChanged': 'Emitted when one of the configuration settings has changed\n\n.. versionadded:: 3.24\n', 'backgroundColorChanged': 'Emitted when the background color has changed\n', 'selectionColorChanged': 'Emitted when the selection color has changed\n', 'layersChanged': 'Emitted when the list of map layers for 3d rendering has changed.\n\n.. seealso:: :py:func:`setLayers`\n\n.. seealso:: :py:func:`layers`\n', 'terrainGeneratorChanged': 'Emitted when the terrain generator has changed\n', 'terrainVerticalScaleChanged': 'Emitted when the vertical scale of the terrain has changed\n', 'mapTileResolutionChanged': 'Emitted when the map tile resoulution has changed\n', 'maxTerrainScreenErrorChanged': 'Emitted when the maximum terrain screen error has changed\n', 'maxTerrainGroundErrorChanged': 'Emitted when the maximum terrain ground error has changed\n', 'terrainElevationOffsetChanged': 'Emitted when the terrain elevation offset is changed\n\n.. versionadded:: 3.16\n', 'terrainShadingChanged': 'Emitted when terrain shading enabled flag or terrain shading material has changed\n\n.. versionadded:: 3.6\n', 'terrainMapThemeChanged': "Emitted when terrain's map theme has changed\n\n.. versionadded:: 3.6\n", 'renderersChanged': "Emitted when the list of map's extra renderers have been modified\n\n.. versionadded:: 3.10\n", 'showTerrainBoundingBoxesChanged': "Emitted when the flag whether terrain's bounding boxes are shown has changed\n", 'showTerrainTilesInfoChanged': "Emitted when the flag whether terrain's tile info is shown has changed\n", 'showCameraViewCenterChanged': "Emitted when the flag whether camera's view center is shown has changed\n\n.. versionadded:: 3.4\n", 'showCameraRotationCenterChanged': "Emitted when the flag whether camera's rotation center is shown has changed\n\n.. versionadded:: 3.24\n", 'showLightSourceOriginsChanged': 'Emitted when the flag whether light source origins are shown has changed.\n\n.. versionadded:: 3.15\n', 'showLabelsChanged': 'Emitted when the flag whether labels are displayed on terrain tiles has changed\n', 'eyeDomeLightingEnabledChanged': 'Emitted when the flag whether eye dome lighting is used has changed\n\n.. versionadded:: 3.18\n', 'eyeDomeLightingStrengthChanged': 'Emitted when the eye dome lighting strength has changed\n\n.. versionadded:: 3.18\n', 'eyeDomeLightingDistanceChanged': 'Emitted when the eye dome lighting distance has changed\n\n.. versionadded:: 3.18\n', 'debugShadowMapSettingsChanged': 'Emitted when shadow map debugging has changed\n\n.. versionadded:: 3.18\n', 'debugDepthMapSettingsChanged': 'Emitted when depth map debugging has changed\n\n.. versionadded:: 3.18\n', 'pointLightsChanged': 'Emitted when the list of point lights changes\n\n.. versionadded:: 3.6\n', 'lightSourcesChanged': 'Emitted when any of the light source settings in the map changes.\n\n.. versionadded:: 3.26\n', 'directionalLightsChanged': 'Emitted when the list of directional lights changes\n\n.. versionadded:: 3.16\n', 'fieldOfViewChanged': 'Emitted when the camera lens field of view changes\n\n.. versionadded:: 3.8\n', 'projectionTypeChanged': 'Emitted when the camera lens projection type changes\n\n.. versionadded:: 3.18\n', 'cameraNavigationModeChanged': 'Emitted when the camera navigation mode was changed\n\n.. versionadded:: 3.18\n', 'cameraMovementSpeedChanged': 'Emitted when the camera movement speed was changed\n\n.. versionadded:: 3.18\n', 'skyboxSettingsChanged': 'Emitted when skybox settings are changed\n\n.. versionadded:: 3.16\n', 'shadowSettingsChanged': 'Emitted when shadow rendering settings are changed\n\n.. versionadded:: 3.16\n', 'ambientOcclusionSettingsChanged': 'Emitted when ambient occlusion rendering settings are changed\n\n.. versionadded:: 3.28\n', 'fpsCounterEnabledChanged': 'Emitted when the FPS counter is enabled or disabled\n\n.. versionadded:: 3.18\n', 'viewFrustumVisualizationEnabledChanged': "Emitted when the camera's view frustum visualization on the main 2D map canvas is enabled or disabled\n\n.. versionadded:: 3.26\n", 'axisSettingsChanged': 'Emitted when 3d axis rendering settings are changed\n\n.. versionadded:: 3.26\n', 'debugOverlayEnabledChanged': 'Emitted when the debug overaly is enabled or disabled\n\n.. versionadded:: 3.26\n', 'extentChanged': "Emitted when the 3d view's 2d extent has changed\n\n.. seealso:: :py:func:`setExtent`\n\n.. versionadded:: 3.30\n", 'showExtentIn2DViewChanged': "Emitted when the parameter to display 3d view's extent in the 2D canvas has changed\n\n.. seealso:: :py:func:`setShowExtentIn2DView`\n\n.. versionadded:: 3.32\n"}
except NameError:
pass
try:
Qgs3DMapSettings.__signal_arguments__ = {'terrainElevationOffsetChanged': ['newElevation: float'], 'fpsCounterEnabledChanged': ['fpsCounterEnabled: bool'], 'debugOverlayEnabledChanged': ['debugOverlayEnabled: bool']}
except NameError:
pass
3 changes: 0 additions & 3 deletions python/3d/auto_additions/qgscameracontroller.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# The following has been generated automatically from src/3d/qgscameracontroller.h
try:
QgsCameraController.__attribute_docs__ = {'cameraChanged': 'Emitted when camera has been updated\n', 'navigationModeChanged': 'Emitted when the navigation mode is changed using the hotkey ctrl + ~\n', 'cameraMovementSpeedChanged': 'Emitted whenever the camera movement speed is changed by the controller.\n', 'setCursorPosition': 'Emitted when the mouse cursor position should be moved to the specified ``point``\non the map viewport.\n', 'requestDepthBufferCapture': 'Emitted to ask for the depth buffer image\n\n.. versionadded:: 3.24\n', 'cameraRotationCenterChanged': 'Emitted when the camera rotation center changes\n\n.. versionadded:: 3.24\n'}
except NameError:
pass
try:
QgsCameraController.__signal_arguments__ = {'navigationModeChanged': ['mode: Qgis.NavigationMode'], 'cameraMovementSpeedChanged': ['speed: float'], 'setCursorPosition': ['point: QPoint'], 'cameraRotationCenterChanged': ['position: QVector3D']}
except NameError:
pass
4 changes: 2 additions & 2 deletions python/3d/auto_additions/qgsgoochmaterialsettings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The following has been generated automatically from src/3d/materials/qgsgoochmaterialsettings.h
QgsGoochMaterialSettings.create = staticmethod(QgsGoochMaterialSettings.create)
QgsGoochMaterialSettings.supportsTechnique = staticmethod(QgsGoochMaterialSettings.supportsTechnique)
try:
QgsGoochMaterialSettings.create = staticmethod(QgsGoochMaterialSettings.create)
QgsGoochMaterialSettings.supportsTechnique = staticmethod(QgsGoochMaterialSettings.supportsTechnique)
QgsGoochMaterialSettings.__group__ = ['materials']
except NameError:
pass
5 changes: 4 additions & 1 deletion python/3d/auto_additions/qgslayoutitem3dmap.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# The following has been generated automatically from src/3d/qgslayoutitem3dmap.h
QgsLayoutItem3DMap.create = staticmethod(QgsLayoutItem3DMap.create)
try:
QgsLayoutItem3DMap.create = staticmethod(QgsLayoutItem3DMap.create)
except NameError:
pass
2 changes: 1 addition & 1 deletion python/3d/auto_additions/qgslightsource.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following has been generated automatically from src/3d/lights/qgslightsource.h
QgsLightSource.createFromXml = staticmethod(QgsLightSource.createFromXml)
try:
QgsLightSource.createFromXml = staticmethod(QgsLightSource.createFromXml)
QgsLightSource.__group__ = ['lights']
except NameError:
pass
2 changes: 1 addition & 1 deletion python/3d/auto_additions/qgsline3dsymbol.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following has been generated automatically from src/3d/symbols/qgsline3dsymbol.h
QgsLine3DSymbol.create = staticmethod(QgsLine3DSymbol.create)
try:
QgsLine3DSymbol.create = staticmethod(QgsLine3DSymbol.create)
QgsLine3DSymbol.__group__ = ['symbols']
except NameError:
pass
4 changes: 2 additions & 2 deletions python/3d/auto_additions/qgsmetalroughmaterialsettings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The following has been generated automatically from src/3d/materials/qgsmetalroughmaterialsettings.h
QgsMetalRoughMaterialSettings.supportsTechnique = staticmethod(QgsMetalRoughMaterialSettings.supportsTechnique)
QgsMetalRoughMaterialSettings.create = staticmethod(QgsMetalRoughMaterialSettings.create)
try:
QgsMetalRoughMaterialSettings.supportsTechnique = staticmethod(QgsMetalRoughMaterialSettings.supportsTechnique)
QgsMetalRoughMaterialSettings.create = staticmethod(QgsMetalRoughMaterialSettings.create)
QgsMetalRoughMaterialSettings.__group__ = ['materials']
except NameError:
pass
4 changes: 2 additions & 2 deletions python/3d/auto_additions/qgsnullmaterialsettings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The following has been generated automatically from src/3d/materials/qgsnullmaterialsettings.h
QgsNullMaterialSettings.supportsTechnique = staticmethod(QgsNullMaterialSettings.supportsTechnique)
QgsNullMaterialSettings.create = staticmethod(QgsNullMaterialSettings.create)
try:
QgsNullMaterialSettings.supportsTechnique = staticmethod(QgsNullMaterialSettings.supportsTechnique)
QgsNullMaterialSettings.create = staticmethod(QgsNullMaterialSettings.create)
QgsNullMaterialSettings.__group__ = ['materials']
except NameError:
pass
4 changes: 2 additions & 2 deletions python/3d/auto_additions/qgsphongmaterialsettings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The following has been generated automatically from src/3d/materials/qgsphongmaterialsettings.h
QgsPhongMaterialSettings.supportsTechnique = staticmethod(QgsPhongMaterialSettings.supportsTechnique)
QgsPhongMaterialSettings.create = staticmethod(QgsPhongMaterialSettings.create)
try:
QgsPhongMaterialSettings.supportsTechnique = staticmethod(QgsPhongMaterialSettings.supportsTechnique)
QgsPhongMaterialSettings.create = staticmethod(QgsPhongMaterialSettings.create)
QgsPhongMaterialSettings.__group__ = ['materials']
except NameError:
pass
4 changes: 2 additions & 2 deletions python/3d/auto_additions/qgsphongtexturedmaterialsettings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The following has been generated automatically from src/3d/materials/qgsphongtexturedmaterialsettings.h
QgsPhongTexturedMaterialSettings.supportsTechnique = staticmethod(QgsPhongTexturedMaterialSettings.supportsTechnique)
QgsPhongTexturedMaterialSettings.create = staticmethod(QgsPhongTexturedMaterialSettings.create)
try:
QgsPhongTexturedMaterialSettings.supportsTechnique = staticmethod(QgsPhongTexturedMaterialSettings.supportsTechnique)
QgsPhongTexturedMaterialSettings.create = staticmethod(QgsPhongTexturedMaterialSettings.create)
QgsPhongTexturedMaterialSettings.__group__ = ['materials']
except NameError:
pass
6 changes: 3 additions & 3 deletions python/3d/auto_additions/qgspoint3dsymbol.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# The following has been generated automatically from src/3d/symbols/qgspoint3dsymbol.h
QgsPoint3DSymbol.create = staticmethod(QgsPoint3DSymbol.create)
QgsPoint3DSymbol.shapeFromString = staticmethod(QgsPoint3DSymbol.shapeFromString)
QgsPoint3DSymbol.shapeToString = staticmethod(QgsPoint3DSymbol.shapeToString)
try:
QgsPoint3DSymbol.create = staticmethod(QgsPoint3DSymbol.create)
QgsPoint3DSymbol.shapeFromString = staticmethod(QgsPoint3DSymbol.shapeFromString)
QgsPoint3DSymbol.shapeToString = staticmethod(QgsPoint3DSymbol.shapeToString)
QgsPoint3DSymbol.__group__ = ['symbols']
except NameError:
pass
2 changes: 1 addition & 1 deletion python/3d/auto_additions/qgspolygon3dsymbol.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The following has been generated automatically from src/3d/symbols/qgspolygon3dsymbol.h
QgsPolygon3DSymbol.create = staticmethod(QgsPolygon3DSymbol.create)
try:
QgsPolygon3DSymbol.create = staticmethod(QgsPolygon3DSymbol.create)
QgsPolygon3DSymbol.__group__ = ['symbols']
except NameError:
pass
5 changes: 4 additions & 1 deletion python/3d/auto_additions/qgsrulebased3drenderer.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# The following has been generated automatically from src/3d/qgsrulebased3drenderer.h
QgsRuleBased3DRenderer.Rule.create = staticmethod(QgsRuleBased3DRenderer.Rule.create)
try:
QgsRuleBased3DRenderer.Rule.create = staticmethod(QgsRuleBased3DRenderer.Rule.create)
except NameError:
pass
4 changes: 2 additions & 2 deletions python/3d/auto_additions/qgssimplelinematerialsettings.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# The following has been generated automatically from src/3d/materials/qgssimplelinematerialsettings.h
QgsSimpleLineMaterialSettings.supportsTechnique = staticmethod(QgsSimpleLineMaterialSettings.supportsTechnique)
QgsSimpleLineMaterialSettings.create = staticmethod(QgsSimpleLineMaterialSettings.create)
try:
QgsSimpleLineMaterialSettings.supportsTechnique = staticmethod(QgsSimpleLineMaterialSettings.supportsTechnique)
QgsSimpleLineMaterialSettings.create = staticmethod(QgsSimpleLineMaterialSettings.create)
QgsSimpleLineMaterialSettings.__group__ = ['materials']
except NameError:
pass
9 changes: 6 additions & 3 deletions python/PyQt6/3d/auto_additions/qgs3d.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# The following has been generated automatically from src/3d/qgs3d.h
Qgs3D.instance = staticmethod(Qgs3D.instance)
Qgs3D.initialize = staticmethod(Qgs3D.initialize)
Qgs3D.materialRegistry = staticmethod(Qgs3D.materialRegistry)
try:
Qgs3D.instance = staticmethod(Qgs3D.instance)
Qgs3D.initialize = staticmethod(Qgs3D.initialize)
Qgs3D.materialRegistry = staticmethod(Qgs3D.materialRegistry)
except NameError:
pass
5 changes: 1 addition & 4 deletions python/PyQt6/3d/auto_additions/qgs3dmapscene.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
Qgs3DMapScene.Updating = Qgs3DMapScene.SceneState.Updating
try:
Qgs3DMapScene.__attribute_docs__ = {'terrainEntityChanged': 'Emitted when the current terrain entity is replaced by a new one\n', 'terrainPendingJobsCountChanged': "Emitted when the number of terrain's pending jobs changes\n", 'totalPendingJobsCountChanged': 'Emitted when the total number of pending jobs changes\n\n.. versionadded:: 3.12\n', 'sceneStateChanged': "Emitted when the scene's state has changed\n", 'fpsCountChanged': 'Emitted when the FPS count changes\n', 'fpsCounterEnabledChanged': 'Emitted when the FPS counter is activated or deactivated\n', 'viewed2DExtentFrom3DChanged': 'Emitted when the viewed 2D extent seen by the 3D camera has changed\n\n.. versionadded:: 3.26\n', 'gpuMemoryLimitReached': "Emitted when one of the entities reaches its GPU memory limit\nand it is not possible to lower the GPU memory use by unloading\ndata that's not currently needed.\n"}
except NameError:
pass
Qgs3DMapScene.openScenes = staticmethod(Qgs3DMapScene.openScenes)
try:
Qgs3DMapScene.openScenes = staticmethod(Qgs3DMapScene.openScenes)
Qgs3DMapScene.__signal_arguments__ = {'fpsCountChanged': ['fpsCount: float'], 'fpsCounterEnabledChanged': ['fpsCounterEnabled: bool'], 'viewed2DExtentFrom3DChanged': ['extent: List[QgsPointXY]']}
except NameError:
pass
Loading

0 comments on commit f21722a

Please sign in to comment.