diff --git a/include/pli_vis/ui/plugins/local_tractography_toolbox.ui b/include/pli_vis/ui/plugins/local_tractography_toolbox.ui index 2905691a64e028f9d138e8abc8695360623f07a9..2e52ee63f5b1a7c49b63824609bffbdeda0df77e 100644 --- a/include/pli_vis/ui/plugins/local_tractography_toolbox.ui +++ b/include/pli_vis/ui/plugins/local_tractography_toolbox.ui @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>337</width> - <height>580</height> + <height>613</height> </rect> </property> <property name="windowTitle"> @@ -40,710 +40,6 @@ </property> </widget> </item> - <item row="2" column="0" colspan="4"> - <layout class="QGridLayout" name="gridLayout_4"> - <item row="0" column="1"> - <widget class="QLabel" name="label_offset"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Offset</string> - </property> - </widget> - </item> - <item row="0" column="2"> - <widget class="QLabel" name="label_size"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Size</string> - </property> - </widget> - </item> - <item row="0" column="3"> - <widget class="QLabel" name="label_stride"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Stride</string> - </property> - </widget> - </item> - <item row="1" column="0"> - <widget class="QLabel" name="label_x"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <pointsize>8</pointsize> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>X</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - <item row="1" column="1"> - <widget class="QLineEdit" name="line_edit_offset_x"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Offset</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>0</string> - </property> - </widget> - </item> - <item row="1" column="2"> - <widget class="QLineEdit" name="line_edit_size_x"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Size</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>0</string> - </property> - </widget> - </item> - <item row="1" column="3"> - <widget class="QLineEdit" name="line_edit_stride_x"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Size</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>1</string> - </property> - </widget> - </item> - <item row="1" column="4"> - <widget class="QxtSpanSlider" name="slider_x"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="maximum"> - <number>0</number> - </property> - <property name="value"> - <number>0</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item row="2" column="0"> - <widget class="QLabel" name="label_y"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <pointsize>8</pointsize> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Y</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - <item row="2" column="1"> - <widget class="QLineEdit" name="line_edit_offset_y"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Offset</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>0</string> - </property> - </widget> - </item> - <item row="2" column="2"> - <widget class="QLineEdit" name="line_edit_size_y"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Size</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>0</string> - </property> - </widget> - </item> - <item row="2" column="3"> - <widget class="QLineEdit" name="line_edit_stride_y"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Size</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>1</string> - </property> - </widget> - </item> - <item row="2" column="4"> - <widget class="QxtSpanSlider" name="slider_y"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="maximum"> - <number>0</number> - </property> - <property name="value"> - <number>0</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item row="3" column="0"> - <widget class="QLabel" name="label_z"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="font"> - <font> - <pointsize>8</pointsize> - <weight>50</weight> - <bold>false</bold> - </font> - </property> - <property name="text"> - <string>Z</string> - </property> - <property name="alignment"> - <set>Qt::AlignCenter</set> - </property> - </widget> - </item> - <item row="3" column="1"> - <widget class="QLineEdit" name="line_edit_offset_z"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Offset</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>0</string> - </property> - </widget> - </item> - <item row="3" column="2"> - <widget class="QLineEdit" name="line_edit_size_z"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Size</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>0</string> - </property> - </widget> - </item> - <item row="3" column="3"> - <widget class="QLineEdit" name="line_edit_stride_z"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>42</width> - <height>21</height> - </size> - </property> - <property name="toolTip"> - <string>Size</string> - </property> - <property name="text"> - <string/> - </property> - <property name="alignment"> - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - <property name="placeholderText"> - <string>1</string> - </property> - </widget> - </item> - <item row="3" column="4"> - <widget class="QxtSpanSlider" name="slider_z"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="maximum"> - <number>0</number> - </property> - <property name="value"> - <number>0</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - </layout> - </item> - <item row="3" column="0" colspan="2"> - <widget class="QLabel" name="label_integration_step"> - <property name="text"> - <string>Integration Step</string> - </property> - </widget> - </item> - <item row="3" column="2"> - <widget class="QSlider" name="slider_integration_step"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>4</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="minimum"> - <number>1</number> - </property> - <property name="maximum"> - <number>10000</number> - </property> - <property name="value"> - <number>10000</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item row="3" column="3"> - <widget class="QLineEdit" name="line_edit_integration_step"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="placeholderText"> - <string>1</string> - </property> - </widget> - </item> - <item row="4" column="0"> - <widget class="QLabel" name="label_iterations"> - <property name="text"> - <string>Iterations</string> - </property> - </widget> - </item> - <item row="4" column="2"> - <widget class="QSlider" name="slider_iterations"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>4</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="minimum"> - <number>1</number> - </property> - <property name="maximum"> - <number>10000</number> - </property> - <property name="value"> - <number>10</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item row="4" column="3"> - <widget class="QLineEdit" name="line_edit_iterations"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="placeholderText"> - <string>10</string> - </property> - </widget> - </item> - <item row="5" column="0" colspan="2"> - <widget class="QLabel" name="label_streamline_radius"> - <property name="text"> - <string>Streamline Radius</string> - </property> - </widget> - </item> - <item row="5" column="2"> - <widget class="QSlider" name="slider_streamline_radius"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>4</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="minimum"> - <number>1</number> - </property> - <property name="maximum"> - <number>10000</number> - </property> - <property name="value"> - <number>1000</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - </widget> - </item> - <item row="5" column="3"> - <widget class="QLineEdit" name="line_edit_streamline_radius"> - <property name="sizePolicy"> - <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> - <horstretch>1</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="placeholderText"> - <string>0.1</string> - </property> - </widget> - </item> - <item row="6" column="0" colspan="4"> - <layout class="QHBoxLayout" name="horizontalLayout"> - <item> - <widget class="QPushButton" name="button_local_trace"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Local Trace</string> - </property> - </widget> - </item> - <item> - <widget class="QPushButton" name="button_remote_trace"> - <property name="enabled"> - <bool>true</bool> - </property> - <property name="sizePolicy"> - <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Remote Trace</string> - </property> - </widget> - </item> - </layout> - </item> - <item row="7" column="0"> - <spacer name="spacer_vertical"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>4</height> - </size> - </property> - </spacer> - </item> <item row="1" column="0" colspan="4"> <widget class="QxtLetterBoxWidget" name="letterbox"> <property name="sizePolicy"> @@ -1211,6 +507,733 @@ </layout> </widget> </item> + <item row="2" column="0" colspan="4"> + <layout class="QGridLayout" name="gridLayout_4"> + <item row="0" column="1"> + <widget class="QLabel" name="label_offset"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>Offset</string> + </property> + </widget> + </item> + <item row="0" column="2"> + <widget class="QLabel" name="label_size"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>Size</string> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QLabel" name="label_stride"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>Stride</string> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_x"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>8</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>X</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLineEdit" name="line_edit_offset_x"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Offset</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QLineEdit" name="line_edit_size_x"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Size</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + </item> + <item row="1" column="3"> + <widget class="QLineEdit" name="line_edit_stride_x"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Size</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>1</string> + </property> + </widget> + </item> + <item row="1" column="4"> + <widget class="QxtSpanSlider" name="slider_x"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="maximum"> + <number>0</number> + </property> + <property name="value"> + <number>0</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_y"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>8</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>Y</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QLineEdit" name="line_edit_offset_y"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Offset</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + </item> + <item row="2" column="2"> + <widget class="QLineEdit" name="line_edit_size_y"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Size</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QLineEdit" name="line_edit_stride_y"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Size</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>1</string> + </property> + </widget> + </item> + <item row="2" column="4"> + <widget class="QxtSpanSlider" name="slider_y"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="maximum"> + <number>0</number> + </property> + <property name="value"> + <number>0</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_z"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="font"> + <font> + <pointsize>8</pointsize> + <weight>50</weight> + <bold>false</bold> + </font> + </property> + <property name="text"> + <string>Z</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QLineEdit" name="line_edit_offset_z"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Offset</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QLineEdit" name="line_edit_size_z"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Size</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>0</string> + </property> + </widget> + </item> + <item row="3" column="3"> + <widget class="QLineEdit" name="line_edit_stride_z"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>42</width> + <height>21</height> + </size> + </property> + <property name="toolTip"> + <string>Size</string> + </property> + <property name="text"> + <string/> + </property> + <property name="alignment"> + <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> + </property> + <property name="placeholderText"> + <string>1</string> + </property> + </widget> + </item> + <item row="3" column="4"> + <widget class="QxtSpanSlider" name="slider_z"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="maximum"> + <number>0</number> + </property> + <property name="value"> + <number>0</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + </layout> + </item> + <item row="3" column="0" colspan="2"> + <widget class="QLabel" name="label_integration_step"> + <property name="text"> + <string>Integration Step</string> + </property> + </widget> + </item> + <item row="3" column="2"> + <widget class="QSlider" name="slider_integration_step"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>4</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>10000</number> + </property> + <property name="value"> + <number>10000</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="3" column="3"> + <widget class="QLineEdit" name="line_edit_integration_step"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="placeholderText"> + <string>1</string> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_iterations"> + <property name="text"> + <string>Iterations</string> + </property> + </widget> + </item> + <item row="4" column="2"> + <widget class="QSlider" name="slider_iterations"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>4</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>10000</number> + </property> + <property name="value"> + <number>10</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="4" column="3"> + <widget class="QLineEdit" name="line_edit_iterations"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="placeholderText"> + <string>10</string> + </property> + </widget> + </item> + <item row="5" column="0" colspan="2"> + <widget class="QLabel" name="label_streamline_radius"> + <property name="text"> + <string>Streamline Radius</string> + </property> + </widget> + </item> + <item row="5" column="2"> + <widget class="QSlider" name="slider_streamline_radius"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>4</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>10000</number> + </property> + <property name="value"> + <number>1000</number> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item row="5" column="3"> + <widget class="QLineEdit" name="line_edit_streamline_radius"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="placeholderText"> + <string>0.1</string> + </property> + </widget> + </item> + <item row="6" column="0" colspan="2"> + <widget class="QLabel" name="label_remote_address"> + <property name="text"> + <string>Remote Address</string> + </property> + </widget> + </item> + <item row="6" column="2" colspan="2"> + <widget class="QLineEdit" name="line_edit_remote_address"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string/> + </property> + <property name="placeholderText"> + <string>tcp://linuxihdc090.rz.rwth-aachen.de:14130</string> + </property> + </widget> + </item> + <item row="7" column="0" colspan="4"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="button_local_trace"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Local Trace</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="button_remote_trace"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Remote Trace</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="8" column="0" colspan="4"> + <spacer name="spacer_vertical"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>4</height> + </size> + </property> + </spacer> + </item> </layout> </widget> <customwidgets> diff --git a/include/pli_vis/ui/widgets/remote_viewer.hpp b/include/pli_vis/ui/widgets/remote_viewer.hpp index 836c1a34af52a5e149cdc8289a515d3ad8dd9892..5cb1b4a5c2e42579cd8548d7e11f5b4c4f6252e2 100644 --- a/include/pli_vis/ui/widgets/remote_viewer.hpp +++ b/include/pli_vis/ui/widgets/remote_viewer.hpp @@ -25,7 +25,7 @@ class application; class remote_viewer : public QLabel { public: - explicit remote_viewer (application* owner, interactor* interactor, QWidget* parent = nullptr); + explicit remote_viewer (const std::string& address, application* owner, interactor* interactor, QWidget* parent = nullptr); remote_viewer (const remote_viewer& that) = default; remote_viewer ( remote_viewer&& temp) = default; virtual ~remote_viewer (); @@ -42,7 +42,7 @@ public: boost::signals2::signal<void()> on_render; protected: - std::string address_ = "tcp://linuxihdc090.rz.rwth-aachen.de:14130"; + std::string address_ ; application* owner_ ; interactor* interactor_ ; std::atomic<bool> alive_ ; diff --git a/source/ui/plugins/local_tractography_plugin.cpp b/source/ui/plugins/local_tractography_plugin.cpp index 85df728cfe5760ee8fd06d650c89b546f19a81b0..2edeca87c450c23756a6bb6f410a47716f36ec39 100644 --- a/source/ui/plugins/local_tractography_plugin.cpp +++ b/source/ui/plugins/local_tractography_plugin.cpp @@ -344,7 +344,7 @@ void local_tractography_plugin::trace() } void local_tractography_plugin::remote_trace() { - remote_viewer_ = std::make_unique<remote_viewer>(owner_, owner_->viewer->interactor()); + remote_viewer_ = std::make_unique<remote_viewer>(line_edit::get_text<std::string>(line_edit_remote_address), owner_, owner_->viewer->interactor()); remote_viewer_->on_close.connect([&]() { remote_viewer_.reset(); diff --git a/source/ui/widgets/remote_viewer.cpp b/source/ui/widgets/remote_viewer.cpp index 888ad300b29a4e04ec6535301d4caefd11c7c7b2..d77885b9db3a8b01501c58d5641221255335dc4d 100644 --- a/source/ui/widgets/remote_viewer.cpp +++ b/source/ui/widgets/remote_viewer.cpp @@ -18,7 +18,7 @@ namespace pli { -remote_viewer::remote_viewer(application* owner, interactor* interactor, QWidget* parent) : QLabel(parent), owner_(owner), alive_(true), interactor_(interactor) +remote_viewer::remote_viewer(const std::string& address, application* owner, interactor* interactor, QWidget* parent) : QLabel(parent), address_(address), owner_(owner), interactor_(interactor), alive_(true) { setWindowTitle(std::string("Remote Viewer " + address_).c_str()); resize (640, 480);