mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-03 00:04:47 -04:00
This commit adds a new option for showing annotation layers in 3d maps. From the annotation layer properties, 3d tab, users can set the layer to render as 3d billboards. When activated, all MARKERS from the layer will be shown as floating billboard symbols above the 3d map. (lines, polygons, and text items from the layer are ignored). Users have control over the terrain clamping and offset for the billboards, and whether or not "callout" lines should be shown (vertical lines joining the billboard to the corresponding location on the terrain surface)
125 lines
3.5 KiB
XML
125 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>QgsAnnotationLayer3dRendererWidgetBase</class>
|
|
<widget class="QWidget" name="QgsAnnotationLayer3dRendererWidgetBase">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>555</width>
|
|
<height>515</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Annotation Layer 3D Renderer</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QComboBox" name="mComboRendererType"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QStackedWidget" name="mStackedWidget">
|
|
<property name="currentIndex">
|
|
<number>1</number>
|
|
</property>
|
|
<widget class="QWidget" name="mPageNoRenderer"/>
|
|
<widget class="QWidget" name="mPageBillboards">
|
|
<layout class="QGridLayout" name="gridLayout" columnstretch="1,2">
|
|
<item row="1" column="0" colspan="2">
|
|
<widget class="QLabel" name="mLabelClampingExplanation">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QgsDoubleSpinBox" name="mOffsetZSpinBox">
|
|
<property name="decimals">
|
|
<number>6</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-99999999999.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>99999999999.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<spacer name="verticalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="mOffsetLabel">
|
|
<property name="text">
|
|
<string>Offset</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0" colspan="2">
|
|
<widget class="QComboBox" name="mComboClamping"/>
|
|
</item>
|
|
<item row="3" column="0" colspan="2">
|
|
<widget class="QCheckBox" name="mCheckShowCallouts">
|
|
<property name="toolTip">
|
|
<string>If checked, vertical lines will be drawn from the terrain to the billboard symbol</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Show callout lines</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>QgsDoubleSpinBox</class>
|
|
<extends>QDoubleSpinBox</extends>
|
|
<header>qgsdoublespinbox.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|