示例#1
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartIsoCutterVisParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey,offset,IsoCutter, ['inPolygons'],[],[],[],['inData'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
示例#2
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartMagmaTraceVisParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, MagmaTrace, ['geo_in'],[],[],[],['data_in'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
示例#3
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ overload recreate() since Sampling inputs arent used """
     self.PartTracerVisinitBase()    # call __initBase from PartTracerVis
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, TracerComp,
                           ['meshIn'],['octtreesIn'],[],[],['dataIn'],['fieldIn'],['pointsIn'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
示例#4
0
 def recreate(self, negMsgHandler, parentKey, offset):
     self.__initBase()
     PartTransform.recreate(self, negMsgHandler, parentKey, offset)
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, BoundingBox, ['GridIn0'],[],[],[],[],[],[])
     if (self.params.name == "Part3DBoundingBoxVisParams") or (self.params.name == "BoundingBox"):
         # The name of Part3DBoundingBoxVis was never changed in previous versions. Copy it from parent if it's the default name.
         self.params.name = globalKeyHandler().getObject(parentKey).params.name
示例#5
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     Part__TEMPLATE__VisParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, __TEMPLATE__, ['Geometry_in'],[],[],[],['Scalar_in'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
示例#6
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartClipIntervalVisParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, ClipInterval, ['GridIn0'],[],[],[],['DataIn0'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
示例#7
0
 def recreate(self, negMsgHandler, parentKey, geoInput=[], geoSampleInput=[], dataSampleInput=[], dataInInput=[], sampleType=MAX_FLT, offset=0):
     """ recreate is called after all classes of the session have been unpickled """
     self.__initBase()
     self.params.setMoreParams()
     PartInteractorVis.setFormat(self, 1)
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, CuttingSurfaceComp, geoInput, [], geoSampleInput, dataSampleInput, dataInInput, [], [], sampleType)
     PartColoredVis.recreate(self,negMsgHandler, parentKey, offset )
     PartColoredVis.setColorMap(self,True)
示例#8
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            IsoSurfaceComp, ['GridIn0'], [], [], [],
                            ['DataIn0'], ['DataIn1'])
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
示例#9
0
    def recreate(self, negMsgHandler, parentKey, offset):

        return # TODO: probe is not working at the moment: stuck in saveExecute (data or grid missing)

        """ recreate is called after all classes of the session have been unpickled """
        self.__initBase()
        PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, Probe3D, ['meshIn'],['gOcttreesIn'],[],[],['gdataIn'],['gdataIn'])
        PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
示例#10
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartVectorFieldVisParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, VectorField, ['meshIn'],[],[],[],['vdataIn'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
     PartTransform.recreate(self, negMsgHandler, parentKey, offset)  
示例#11
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ overload recreate() since Sampling inputs arent used """
     self.PartTracerVisinitBase()  # call __initBase from PartTracerVis
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            TracerComp, ['meshIn'], ['octtreesIn'], [], [],
                            ['dataIn'], ['fieldIn'], ['pointsIn'])
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
示例#12
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartDomainLinesVisParams.mergeDefaultParams(
         self.params)  # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            DomainSurface, ['GridIn0'], [], [], [], [], [],
                            [], None, False, False)
示例#13
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     self.__initBase()
     self.__correctParams()
     PartInteractorVis.setFormat(self, 0)
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, TracerComp, 
                           ['meshIn'],['octtreesIn'],['SampleGeom'],['SampleData'],['dataIn'],['fieldIn'],['pointsIn'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
示例#14
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartMagmaTraceVisParams.mergeDefaultParams(
         self.params)  # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            MagmaTrace, ['geo_in'], [], [], [], ['data_in'])
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
示例#15
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     Part__TEMPLATE__VisParams.mergeDefaultParams(
         self.params)  # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            __TEMPLATE__, ['Geometry_in'], [], [], [],
                            ['Scalar_in'])
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
示例#16
0
 def recreate(self, negMsgHandler, parentKey, offset):
     self.__initBase()
     self.params.mergeDefaultParams()
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,False)
     PartTransform.recreate(self, negMsgHandler, parentKey, offset)
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, Collect, ['GridIn0'],[],[],[],[],[],[],1,False, False )
     if (self.params.name == "Part2DRawVisParams") or (self.params.name == "Appearance"):
         # The name of Part2DRawVis was never changed in previous versions. Copy it from parent if it's the default name.
         self.params.name = globalKeyHandler().getObject(parentKey).params.name
示例#17
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartIsoCutterVisParams.mergeDefaultParams(
         self.params)  # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            IsoCutter, ['inPolygons'], [], [], [],
                            ['inData'])
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
示例#18
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartVectorFieldVisParams.mergeDefaultParams(
         self.params)  # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            VectorField, ['meshIn'], [], [], [],
                            ['vdataIn'])
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
     PartTransform.recreate(self, negMsgHandler, parentKey, offset)
示例#19
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     self.__initBase()
     self.__correctParams()
     PartInteractorVis.setFormat(self, 0)
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            TracerComp, ['meshIn'], ['octtreesIn'],
                            ['SampleGeom'], ['SampleData'], ['dataIn'],
                            ['fieldIn'], ['pointsIn'])
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
示例#20
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartDomainSurfaceVisParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     self.__initBase()
     
     if self.params.variable == None or self.params.variable == 'unset': 
         PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, DomainSurface, ['GridIn0'],[],[],[],[], [], [], 1, False, False)        
     else: 
         PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, DomainSurface, ['GridIn0'],[],[],[],['DataIn0'], [], [], 1, False, False)
         
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)
示例#21
0
    def recreate(self, negMsgHandler, parentKey, offset):
        """ recreate is called after all classes of the session have been unpickled """
        PartDomainSurfaceVisParams.mergeDefaultParams(
            self.params)  # explicitly call mergeDefaultParams of this class
        self.__initBase()

        if self.params.variable == None or self.params.variable == 'unset':
            PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                                   DomainSurface, ['GridIn0'], [], [], [], [],
                                   [], [], 1, False, False)
        else:
            PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                                   DomainSurface, ['GridIn0'], [], [], [],
                                   ['DataIn0'], [], [], 1, False, False)

        PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
        PartColoredVis.setColorMap(self, True)
示例#22
0
 def recreate(self,
              negMsgHandler,
              parentKey,
              geoInput=[],
              geoSampleInput=[],
              dataSampleInput=[],
              dataInInput=[],
              sampleType=MAX_FLT,
              offset=0):
     """ recreate is called after all classes of the session have been unpickled """
     self.__initBase()
     self.params.setMoreParams()
     PartInteractorVis.setFormat(self, 1)
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset,
                            CuttingSurfaceComp, geoInput, [],
                            geoSampleInput, dataSampleInput, dataInInput,
                            [], [], sampleType)
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self, True)
示例#23
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     PartDomainLinesVisParams.mergeDefaultParams(self.params) # explicitly call mergeDefaultParams of this class
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, DomainSurface, ['GridIn0'],[],[],[],[],[],[],None,False,False )
示例#24
0
 def recreate(self, negMsgHandler, parentKey, offset):
     """ recreate is called after all classes of the session have been unpickled """
     self.__initBase()
     PartModuleVis.recreate(self, negMsgHandler, parentKey, offset, IsoSurfaceComp, ['GridIn0'],[],[],[],['DataIn0'],['DataIn1'] )
     PartColoredVis.recreate(self, negMsgHandler, parentKey, offset)
     PartColoredVis.setColorMap(self,True)