コード例 #1
0
    def __init__(self, parent=None):
        QtWidgets.QWidget.__init__(self, parent)
        Ui_DatasetInformationPanelBase.__init__(self)
        self.setupUi(self)
        TransformManager.__init__(self, self.emitDataChanged, True)

        self.__key = -1

        self.lineEditNameDataset.setText(
            coTranslate('<ds-filename not set yet>'))
        self.__dsNumberGeometryObjects = 0
        self.__dsNumberOfGrids = 0
        self.__dsConversionDate = coTranslate('<ds-date not set yet>')
        self.__inUseNumberGeometryObjects = 0
        self.__inUseNumberOfGrids = 0
        self.__updateFromIntern()
        # hide dummy information for "content"
        self.vrpFrameInformation.hide()

        #validators:
        # allow only double values for transform lineEdits
        doubleValidator = QtGui.QDoubleValidator(self)
        self.floatX.setValidator(doubleValidator)
        self.floatY.setValidator(doubleValidator)
        self.floatZ.setValidator(doubleValidator)
コード例 #2
0
ファイル: DNAItemPanel.py プロジェクト: nixz/covise
    def __init__(self, parent=None):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        QtWidgets.QWidget.__init__(self, parent)
        Ui_DNAItemPanelBase.__init__(self)
        self.setupUi(self)
        TransformManager.__init__(self, self.emitTransformChange)

        #disable Colorpanel till it is working
        self.TabWidgetGeneralAdvanced.setTabEnabled(2, False)
        #hide all Connections
        self.vrpCheckBoxConn1.hide()
        self.vrpCheckBoxConnEnabled1.hide()        
        self.vrpCheckBoxConn2.hide()
        self.vrpCheckBoxConnEnabled2.hide()        
        self.vrpCheckBoxConn3.hide()
        self.vrpCheckBoxConnEnabled3.hide()        
        self.vrpCheckBoxConn4.hide()
        self.vrpCheckBoxConnEnabled4.hide()        
        self.vrpCheckBoxConn5.hide()        
        self.vrpCheckBoxConnEnabled5.hide()        
        
        self.connections = [self.vrpCheckBoxConn1, self.vrpCheckBoxConn2, self.vrpCheckBoxConn3, self.vrpCheckBoxConn4, self.vrpCheckBoxConn5]
        self.connectionsEnabled = [self.vrpCheckBoxConnEnabled1, self.vrpCheckBoxConnEnabled2, self.vrpCheckBoxConnEnabled3, self.vrpCheckBoxConnEnabled4, self.vrpCheckBoxConnEnabled5]

        self.TabWidgetGeneralAdvanced.setCurrentIndex(0) # ignore index set by the designer (usually no one cares about the active index when editing ui-files)

        # list of associated keys from same type
        self.__keys = []

        # for multi selection
        self.oldPanelParams = {}

        DNAItemPanelConnector(self)
コード例 #3
0
    def __init__(self, parent=None):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        QtWidgets.QWidget.__init__(self, parent)
        Ui_PartVisualizationPanelBase.__init__(self)
        self.setupUi(self)
        Visualization2DPanel.__init__(self)
        TransformManager.__init__(self, self.emitDataChangedTransform)

        # list of associated keys from same type
        self.__keys = []

        #default setting
        self.floatInRangeShininess_2.setRange([0,40.0])
        self.floatInRangeShininess_2.setValue(16.0)
        self.floatInRangeTrans.setRange([0,1.0])
        self.floatInRangeTrans.setValue(1.0)
        self.__floatParams = ''
        self.__intParams = ''
        self.__boolParams = ''
        self.__vec2Params = ''
        self.__vec3Params = ''
        self.__vec4Params = ''
        self.__mat2Params = ''
        self.__mat3Params = ''
        self.__mat4Params = ''
        self.__r = 200
        self.__g = 200
        self.__b = 200
        self.__ambient = [180,180,180]
        self.__specular = [255,255,130]
        self.color = NO_COLOR
        self.colorCreator = None
        self.vectorVariableNames = []
        self.scalarVariableNames = []
        self.__baseVariable = 'Select a Variable'
        self.variablesSet = False
        self.TabWidgetGeneralAdvanced.setCurrentIndex(0) # ignore index set by the designer (usually no one cares about the active index when editing ui-files)

        # for multi selection
        self.oldPanelParams = {}
        self.oldPanelRealParams = {}

        self.__rectangleManager = RectangleManager( self, self.emitCutChanged, self.emitCutChanged, None, CUTTINGSURFACE )

        fillShaderList(self.shaderList)

        PartVisualizationPanelConnector(self)
コード例 #4
0
    def __init__(self, parent=None):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        QtWidgets.QWidget.__init__(self, parent)
        Ui_DNAItemPanelBase.__init__(self)
        self.setupUi(self)
        TransformManager.__init__(self, self.emitTransformChange)

        #disable Colorpanel till it is working
        self.TabWidgetGeneralAdvanced.setTabEnabled(2, False)
        #hide all Connections
        self.vrpCheckBoxConn1.hide()
        self.vrpCheckBoxConnEnabled1.hide()
        self.vrpCheckBoxConn2.hide()
        self.vrpCheckBoxConnEnabled2.hide()
        self.vrpCheckBoxConn3.hide()
        self.vrpCheckBoxConnEnabled3.hide()
        self.vrpCheckBoxConn4.hide()
        self.vrpCheckBoxConnEnabled4.hide()
        self.vrpCheckBoxConn5.hide()
        self.vrpCheckBoxConnEnabled5.hide()

        self.connections = [
            self.vrpCheckBoxConn1, self.vrpCheckBoxConn2,
            self.vrpCheckBoxConn3, self.vrpCheckBoxConn4, self.vrpCheckBoxConn5
        ]
        self.connectionsEnabled = [
            self.vrpCheckBoxConnEnabled1, self.vrpCheckBoxConnEnabled2,
            self.vrpCheckBoxConnEnabled3, self.vrpCheckBoxConnEnabled4,
            self.vrpCheckBoxConnEnabled5
        ]

        self.TabWidgetGeneralAdvanced.setCurrentIndex(
            0
        )  # ignore index set by the designer (usually no one cares about the active index when editing ui-files)

        # list of associated keys from same type
        self.__keys = []

        # for multi selection
        self.oldPanelParams = {}

        DNAItemPanelConnector(self)
コード例 #5
0
    def __init__(self, parent=None):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        QtWidgets.QWidget.__init__(self, parent)
        Ui_SceneGraphItemPanelBase.__init__(self)
        self.setupUi(self)
        TransformManager.__init__(self, self.emitDataChanged, True)

        #remove Tranformpanel till it is working
        #self.TabWidgetGeneralAdvanced.removeTab(2)
        #disable Color (only material coloring is working for VRML)
        #self.vrpRadioButtonColorRGB.setEnabled(False)

        self.floatInRangeTrans.setRange([0.0, 1.0])

        self.TabWidgetGeneralAdvanced.setCurrentIndex(
            0
        )  # ignore index set by the designer (usually no one cares about the active index when editing ui-files)

        # list of associated keys from same type
        self.__keys = []

        #default setting
        self.floatInRangeShininess_2.setRange([0, 40.0])
        self.floatInRangeShininess_2.setValue(16.0)
        self.floatInRangeTrans.setRange([0, 1.0])
        self.floatInRangeTrans.setValue(1.0)
        self.__r = 200
        self.__g = 200
        self.__b = 200
        self.__ambient = [180, 180, 180]
        self.__specular = [255, 255, 130]
        self.color = NO_COLOR

        # for multi selection
        self.oldPanelParams = {}

        fillShaderList(self.shaderList)

        SceneGraphItemPanelConnector(self)
コード例 #6
0
ファイル: SceneGraphItemPanel.py プロジェクト: nixz/covise
    def __init__(self, parent=None):
        _infoer.function = str(self.__init__)
        _infoer.write("")
        QtWidgets.QWidget.__init__(self, parent)
        Ui_SceneGraphItemPanelBase.__init__(self)
        self.setupUi(self)
        TransformManager.__init__(self, self.emitDataChanged, True)

        #remove Tranformpanel till it is working
        #self.TabWidgetGeneralAdvanced.removeTab(2)
        #disable Color (only material coloring is working for VRML)
        #self.vrpRadioButtonColorRGB.setEnabled(False)

        self.floatInRangeTrans.setRange([0.0, 1.0])

        self.TabWidgetGeneralAdvanced.setCurrentIndex(0) # ignore index set by the designer (usually no one cares about the active index when editing ui-files)

        # list of associated keys from same type
        self.__keys = []

        #default setting
        self.floatInRangeShininess_2.setRange([0,40.0])
        self.floatInRangeShininess_2.setValue(16.0)
        self.floatInRangeTrans.setRange([0,1.0])
        self.floatInRangeTrans.setValue(1.0)
        self.__r = 200
        self.__g = 200
        self.__b = 200
        self.__ambient = [180,180,180]
        self.__specular = [255,255,130]
        self.color = NO_COLOR

        # for multi selection
        self.oldPanelParams = {}
        
        fillShaderList(self.shaderList)

        SceneGraphItemPanelConnector(self)
コード例 #7
0
ファイル: VectorFieldPanel.py プロジェクト: nixz/covise
    def __init__(self, parent=None):
        QtWidgets.QWidget.__init__(self, parent)
        Ui_VectorFieldPanelBase.__init__(self)
        self.setupUi(self)
        TransformManager.__init__(self, self.emitTransformChanged)

        #current object key
        self.__key = -1

        # for custom RGB color
        self.__r = None
        self.__g = None
        self.__b = None
        self.__coloringOption = None

        #default setting of the panel
        self.vrpCheckBoxMapVariable.setEnabled(False)
        self.vrpComboBoxVariable.setEnabled(False)
        self.vrpLineEditVariable.hide()

        self.__baseVariable = None

        #temporary storage of this parameter part
        self.colorCreator = None

#        middleFloatInRangeCtrls = [self.floatInRangeScalingValue]
#        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)

        VectorFieldPanelConnector(self)

        self.visibilityCheckBox.setVisible(covise.coConfigIsOn("vr-prepare.AdditionalVisibilityCheckbox", False))

        # set up initial radio group status
        self.emitChangedRadioGroup()
コード例 #8
0
    def __init__(self, parent=None):
        QtWidgets.QWidget.__init__(self, parent)
        Ui_DatasetInformationPanelBase.__init__(self)
        self.setupUi(self)
        TransformManager.__init__(self, self.emitDataChanged, True)

        self.__key = -1

        self.lineEditNameDataset.setText(coTranslate('<ds-filename not set yet>'))
        self.__dsNumberGeometryObjects = 0
        self.__dsNumberOfGrids = 0
        self.__dsConversionDate = coTranslate('<ds-date not set yet>')
        self.__inUseNumberGeometryObjects = 0
        self.__inUseNumberOfGrids = 0
        self.__updateFromIntern()
        # hide dummy information for "content"
        self.vrpFrameInformation.hide()

        #validators:
        # allow only double values for transform lineEdits
        doubleValidator = QtGui.QDoubleValidator(self)
        self.floatX.setValidator(doubleValidator)
        self.floatY.setValidator(doubleValidator)
        self.floatZ.setValidator(doubleValidator)
コード例 #9
0
    def __init__(self, parent=None):
        QtWidgets.QWidget.__init__(self, parent)
        Ui_GridVisualizationPanelBase.__init__(self)
        self.setupUi(self)
        VisualizationPanel.__init__(self)
        TransformManager.__init__(self, self.emitDataChanged)

        #dictionaries to enable the buttons
        self._enableDictComposedMode = {
                self.CuttingSurfaceArrowPushButton: False,
                self.CuttingSurfaceColoredPushButton: False,
                self.IsoSurfacePushButton: False,
                self.MovingPointsPushButton: True,
                self.PathlinesPushButton: True,
                self.ProbingPointPushButton: False,
                self.ProbingSquarePushButton: False,
                self.StreaklinesPushButton: False,
                self.StreamlinesPushButton: True,
                self.DomainLinesPushButton: False,
                self.DomainSurfacePushButton: False,
                }
        self._enableDictVectorVariable = {
                self.CuttingSurfaceArrowPushButton: True,
                self.CuttingSurfaceColoredPushButton: True,
                self.IsoSurfacePushButton: False,
                self.MovingPointsPushButton: True,
                self.PathlinesPushButton: True,
                self.ProbingPointPushButton: False,
                self.ProbingSquarePushButton: False,
                self.StreaklinesPushButton: True,
                self.StreamlinesPushButton: True,
                self.DomainLinesPushButton: False,
                self.DomainSurfacePushButton: False,
                }
        self._enableDictScalarVariable = {
                self.CuttingSurfaceArrowPushButton: False,
                self.CuttingSurfaceColoredPushButton: True,
                self.IsoSurfacePushButton: True,
                self.MovingPointsPushButton: False,
                self.PathlinesPushButton: False,
                self.ProbingPointPushButton: False, #True,
                self.ProbingSquarePushButton: False, #True,
                self.StreaklinesPushButton: False,
                self.StreamlinesPushButton: False,
                self.DomainLinesPushButton: False,
                self.DomainSurfacePushButton: True,
                }
        self._enableDictUnsetVariable = {
                self.CuttingSurfaceArrowPushButton: False,
                self.CuttingSurfaceColoredPushButton: False,
                self.IsoSurfacePushButton: False,
                self.MovingPointsPushButton: False,
                self.PathlinesPushButton: False,
                self.ProbingPointPushButton: False, #True,
                self.ProbingSquarePushButton: False, #True,
                self.StreaklinesPushButton: False,
                self.StreamlinesPushButton: False,
                self.DomainLinesPushButton: True,
                self.DomainSurfacePushButton: True,
                }

        #disabled buttons
        self._disablees = [
            self.ProbingPointPushButton,
            self.ProbingSquarePushButton,
            self.StreaklinesPushButton,
            self.DescriptionCheckBox,
            ]
        # list of associated keys
        self.__keys = []
        self.__visible = False

        self.__inFixedGridMode = True
        self._disableBrokenParts()
        # temporary restriction for composed grids

        self.tabWidget.setCurrentIndex(0) # ignore index set by the designer (usually no one cares about the active index when editing ui-files)

        GridVisualizationPanelConnector(self)