23 from PyQt5
import QtCore, QtWidgets
24 from .render_mode_widget
import RenderModeWidget
29 RenderModeWidget.__init__(self, parent)
35 self.
mode_mode_ = gfx.RenderMode.TRACE
47 arc_label = QtWidgets.QLabel(
"Arc Detail")
50 self.
arc_spinbox_arc_spinbox_.setRange(min_arc_detail, max_arc_detail)
53 radius_tube_label = QtWidgets.QLabel(
"Radius")
61 self.
width_tube_slider_width_tube_slider_.setRange(int(min_width*10.0), int(max_tube_width*10.0))
65 grid = QtWidgets.QGridLayout()
66 grid.addWidget(arc_label,3,0,1,3)
69 grid.addWidget(radius_tube_label, 5, 0, 1, 1)
73 grid.setRowStretch(15,1)
80 self.setMinimumSize(250,60)
83 self.
arc_spinbox_arc_spinbox_.setValue(options.GetArcDetail())
92 self.
GetOptionsGetOptions().SetArcDetail(value)
96 self.
GetOptionsGetOptions().SetTubeRadius(value)
99 self.
GetOptionsGetOptions().SetTubeRadius(value/10.0)
102 value = round(value, 2)
109 return self.
text_text_
112 return self.
mode_mode_