diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index 24ad9c3..af632ba 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -62,20 +62,32 @@ class ContourMIPConfig(wx.Panel): wx.Panel.__init__(self, prnt) self.mip_size_spin = wx.SpinCtrl(self, -1, min=1, max=240, initial=const.PROJECTION_MIP_SIZE) + self.mip_size_spin.SetToolTip(wx.ToolTip(_("Number of slices used to compound the visualization"))) w, h = self.mip_size_spin.GetTextExtent('M') self.mip_size_spin.SetMinSize((4 * w + 10, -1)) self.mip_size_spin.SetMaxSize((4 * w + 10, -1)) + self.border_spin = FS.FloatSpin(self, -1, min_val=0, max_val=10, increment=0.1, value=const.PROJECTION_BORDER_SIZE, digits=1, agwStyle=FS.FS_LEFT) + self.border_spin.SetToolTip(wx.ToolTip(_("Controls the sharpness of the" + " contour. The greater the" + " value, the sharper the" + " contour"))) w, h = self.border_spin.GetTextExtent('M') self.border_spin.SetMinSize((5 * w + 10, -1)) self.border_spin.SetMaxSize((5 * w + 10, -1)) + self.inverted = wx.CheckBox(self, -1, "inverted") + self.inverted.SetToolTip(wx.ToolTip(_("If checked, the slices are" + " traversed in descending" + " order to compound the" + " visualization instead of" + " ascending order"))) - txt_mip_size = wx.StaticText(self, -1, "MIP size", style=wx.ALIGN_CENTER_HORIZONTAL) - self.txt_mip_border = wx.StaticText(self, -1, "Border") + txt_mip_size = wx.StaticText(self, -1, "Number of slices", style=wx.ALIGN_CENTER_HORIZONTAL) + self.txt_mip_border = wx.StaticText(self, -1, "Sharpness") sizer = wx.BoxSizer(wx.HORIZONTAL) sizer.Add(txt_mip_size, 0, wx.EXPAND | wx.ALL, 2) -- libgit2 0.21.2