Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make auto shift point cloud button follow other similar UI widget
appearance, and add explanatory tooltip
  • Loading branch information
nyalldawson committed Feb 18, 2021
1 parent 962c68a commit 282cb68
Showing 1 changed file with 47 additions and 33 deletions.
80 changes: 47 additions & 33 deletions src/ui/pointcloud/qgspointcloudelevationpropertieswidgetbase.ui
Expand Up @@ -41,6 +41,26 @@
<string notr="true">vectorgeneral</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<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="3" column="0">
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QgsDoubleSpinBox" name="mScaleZSpinBox">
<property name="decimals">
Expand All @@ -57,13 +77,10 @@
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_3">
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Elevation scaling and offset can be used to manually correct elevation values in the point cloud at render time.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The scale is applied to the point cloud elevation values before adding the offset.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
<string>Offset</string>
</property>
</widget>
</item>
Expand All @@ -74,40 +91,37 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Offset</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QgsDoubleSpinBox" name="mOffsetZSpinBox">
<property name="decimals">
<number>6</number>
<item row="2" column="2">
<widget class="QPushButton" name="mShifPointCloudZAxisButton">
<property name="minimumSize">
<size>
<width>24</width>
<height>24</height>
</size>
</property>
<property name="minimum">
<double>-99999999999.000000000000000</double>
<property name="maximumSize">
<size>
<width>24</width>
<height>16777215</height>
</size>
</property>
<property name="maximum">
<double>99999999999.000000000000000</double>
<property name="toolTip">
<string>Automatically sets the offset so that the lowest point in the cloud sits at an elevation of 0.</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
<property name="icon">
<iconset>
<normalon>:/images/themes/default/mActionRefresh.svg</normalon>
</iconset>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QPushButton" name="mShifPointCloudZAxisButton">
<property name="toolTip">
<string/>
</property>
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Shift point cloud Z axis</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Elevation scaling and offset can be used to manually correct elevation values in the point cloud at render time.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The scale is applied to the point cloud elevation values before adding the offset.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
Expand Down

0 comments on commit 282cb68

Please sign in to comment.