def __init__(self, parent=None): QtWidgets.QWidget.__init__(self, parent) Ui_GenericVisualizerPanelBase.__init__(self) self.setupUi(self) #current object key self.__key = -1 # remove unneccessary tabs self.TabWidgetGeneralAdvanced.removeTab( self.TabWidgetGeneralAdvanced.indexOf( self.tabAdjustmentStreamline)) self.TabWidgetGeneralAdvanced.removeTab( self.TabWidgetGeneralAdvanced.indexOf( self.tabAdjustmentCuttingSurface)) self.TabWidgetGeneralAdvanced.removeTab( self.TabWidgetGeneralAdvanced.indexOf(self.tabAdvanced)) self.TabWidgetGeneralAdvanced.removeTab( self.TabWidgetGeneralAdvanced.indexOf(self.tabClipPlane)) self.TabWidgetGeneralAdvanced.removeTab( self.TabWidgetGeneralAdvanced.indexOf(self.tabPositioning)) self.__generalTab = self.tab self.__generalTabText = self.TabWidgetGeneralAdvanced.tabText( self.TabWidgetGeneralAdvanced.indexOf(self.tab)) self.TabWidgetGeneralAdvanced.setCurrentIndex( 0 ) # ignore index set by the designer (usually no one cares about the active index when editing ui-files) self.visibilityCheckBox.setVisible( covise.coConfigIsOn("vr-prepare.AdditionalVisibilityCheckbox", False)) #default setting of the panel self.vrpCheckBoxMapVariable.hide() self.vrpComboBoxVariable.hide() #self.vrpToolButtonChain.hide() self.floatInRangeEndPointX.hide() self.floatInRangeEndPointY.hide() self.floatInRangeEndPointZ.hide() self.textEndPointX.hide() self.textEndPointY.hide() self.textEndPointZ.hide() self.checkBoxFreeStartpoints.hide() self.vrpPushButtonAdjustPreview.hide() self.__baseVariable = None #temporary storage of this parameter part self.colorCreator = None middleFloatInRangeCtrls = [self.floatInRangeX] self.__boundingBox = ((-1, 1), (-1, 1), (-1, 1)) for w, r in zip(middleFloatInRangeCtrls, self.__boundingBox): w.setRange(r) sideRange = 0, self.__heuristicProbeMaxSideLengthFromBox( self.__boundingBox) DomainSurfacePanelConnector(self)
def __init__(self, parent=None): QtWidgets.QWidget.__init__(self, parent) Ui_GenericVisualizerPanelBase.__init__(self) self.setupUi(self) #current object key self.__key = -1 # remove unneccessary tabs self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabAdjustmentStreamline)) self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabAdjustmentCuttingSurface)) self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabAdvanced)) self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabClipPlane)) self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabPositioning)) self.__generalTab = self.tab self.__generalTabText = self.TabWidgetGeneralAdvanced.tabText(self.TabWidgetGeneralAdvanced.indexOf(self.tab)) self.TabWidgetGeneralAdvanced.setCurrentIndex(0) # ignore index set by the designer (usually no one cares about the active index when editing ui-files) self.visibilityCheckBox.setVisible(covise.coConfigIsOn("vr-prepare.AdditionalVisibilityCheckbox", False)) #default setting of the panel self.vrpCheckBoxMapVariable.hide() self.vrpComboBoxVariable.hide() #self.vrpToolButtonChain.hide() self.floatInRangeEndPointX.hide() self.floatInRangeEndPointY.hide() self.floatInRangeEndPointZ.hide() self.textEndPointX.hide() self.textEndPointY.hide() self.textEndPointZ.hide() self.checkBoxFreeStartpoints.hide() self.vrpPushButtonAdjustPreview.hide() self.__baseVariable = None #temporary storage of this parameter part self.colorCreator = None middleFloatInRangeCtrls = [self.floatInRangeX] self.__boundingBox = ((-1, 1), (-1, 1), (-1, 1)) for w, r in zip(middleFloatInRangeCtrls, self.__boundingBox): w.setRange(r) sideRange = 0, self.__heuristicProbeMaxSideLengthFromBox( self.__boundingBox) DomainSurfacePanelConnector(self)
def __init__(self, parent=None): _infoer.function = str(self.__init__) _infoer.write("") QtWidgets.QWidget.__init__(self, parent) Ui_GenericVisualizerPanelBase.__init__(self) self.setupUi(self) # current object key self.__key = -1 self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabAdjustmentCuttingSurface)) self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabClipPlane)) self.TabWidgetGeneralAdvanced.setCurrentIndex(0) # ignore index set by the designer (usually no one cares about the active index when editing ui-files) self.visibilityCheckBox.setVisible(covise.coConfigIsOn("vr-prepare.AdditionalVisibilityCheckbox", False)) self.vrpPushButtonAdjustPreview.hide() # manager handling the starting rectangle self.__rectangleManager = RectangleManager( self, self.emitTraceParametersApply, self.emitRadioBttnsTracerApply, self.emitRectangleChange ) # keys of 2D objects in combobox self.__key2UsePart = {} self.__UsePart2key = {} # current task type self.__taskType = STREAMLINE # start style of tracer to that the panel will change self.__startStyle = PLANE self.__baseVariable = None #temporary storage of this parameter part self.colorCreator = None # qt connections and settings StreamlinesPanelConnector(self)
def __init__(self, parent=None): QtWidgets.QWidget.__init__(self, parent) Ui_GenericVisualizerPanelBase.__init__(self) self.setupUi(self) #current object self.__key = -1 self.vrpPushButtonAdjustPreview.hide() self.floatInRangeRotX.setEnabled(False) self.floatInRangeRotY.setEnabled(True) self.floatInRangeRotZ.setEnabled(True) self.floatInRangeEndPointX.hide() self.floatInRangeEndPointY.hide() self.floatInRangeEndPointZ.hide() self.textEndPointX.hide() self.textEndPointY.hide() self.textEndPointZ.hide() self.vrpCheckBoxShow.setText(self.__tr("Show Preview")) self.vrpGroupBoxPositioning.setTitle(self.__tr("Plane Positioning")) self.checkBoxFreeStartpoints.hide() self.vrpCheckBoxMapVariable.hide() self.vrpComboBoxVariable.hide() self.textLabel4_3_3.hide() self.floatInRangeWidth.hide() self.textLabel4_3_2_3.hide() self.floatInRangeHeight.hide() self.checkBoxDomainFromList.hide() self.comboBoxDomain.hide() self.checkBoxFreeStartpoints.hide() self.groupOrientation.setTitle(self.__tr("Normal:")) # change tooltips self.textLabel4_4_3.setToolTip(self.__tr("x, y, z define one point on the plane.")) self.textLabel4_4_3.setWhatsThis(self.__tr("x, y, z define one point on the plane.")) self.textLabel4_4_2_3.setToolTip(self.__tr("x, y, z define one point on the plane.")) self.textLabel4_4_2_3.setWhatsThis(self.__tr("x, y, z define one point on the plane.")) self.textLabel4_4_2_2_2.setToolTip(self.__tr("x, y, z define one point on the plane.")) self.textLabel4_4_2_2_2.setWhatsThis(self.__tr("x, y, z define one point on the plane.")) self.xAxisRadioButton.setToolTip(self.__tr("Orientation defines the normal of the plane.")) self.xAxisRadioButton.setWhatsThis(self.__tr("Orientation defines the normal of the plane.")) self.yAxisRadioButton.setToolTip(self.__tr("Orientation defines the normal of the plane.")) self.yAxisRadioButton.setWhatsThis(self.__tr("Orientation defines the normal of the plane.")) self.zAxisRadioButton.setToolTip(self.__tr("Orientation defines the normal of the plane.")) self.zAxisRadioButton.setWhatsThis(self.__tr("Orientation defines the normal of the plane.")) self.textLabelRotX.setToolTip(self.__tr("For finetuning the orientation<br> of the plane, you can add rotations around each axis.")) self.textLabelRotX.setWhatsThis(self.__tr("For finetuning the orientation<br> of the plane, you can add rotations around each axis.")) self.textLabelRotY.setToolTip(self.__tr("For finetuning the orientation<br> of the plane, you can add rotations around each axis.")) self.textLabelRotY.setWhatsThis(self.__tr("For finetuning the orientation<br> of the plane, you can add rotations around each axis.")) self.textLabelRotZ.setToolTip(self.__tr("For finetuning the orientation<br> of the plane, you can add rotations around each axis.")) self.textLabelRotZ.setWhatsThis(self.__tr("For finetuning the orientation<br> of the plane, you can add rotations around each axis.")) self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabAdjustmentStreamline)) self.TabWidgetGeneralAdvanced.removeTab(self.TabWidgetGeneralAdvanced.indexOf(self.tabAdvanced)) self.TabWidgetGeneralAdvanced.setCurrentIndex(0) # ignore index set by the designer (usually no one cares about the active index when editing ui-files) self.visibilityCheckBox.setVisible(covise.coConfigIsOn("vr-prepare.AdditionalVisibilityCheckbox", False)) # manager handling the starting rectangle self.__rectangleManager = RectangleManager( self, self.emitPlaneParametersApply, self.emitPlaneParametersApply, self.emitRectangleChange, CUTTINGSURFACE ) self.__vector = PLANE self.__baseVariable = None #temporary storage of this parameter part self.colorCreator = None #qt connections and settings CuttingSurfacePanelConnector(self)