def __init__(self):
        VTKPythonAlgorithmBase.__init__(self, nInputPorts=0, nOutputPorts=1, outputType='vtkTable')
        self._filename = None
        self._ndata = None
        self._timesteps = None

        from vtkmodules.vtkCommonCore import vtkDataArraySelection
        self._arrayselection = vtkDataArraySelection()
        self._arrayselection.AddObserver("ModifiedEvent", createModifiedCallback(self))
Esempio n. 2
0
    def __init__(self):
        VTKPythonAlgorithmBase.__init__(self, nInputPorts=0, nOutputPorts=1, outputType='vtkTable')
        self._filename = None
        self._ndata = None
        self._timesteps = None

        from vtkmodules.vtkCommonCore import vtkDataArraySelection
        self._arrayselection = vtkDataArraySelection()
        self._arrayselection.AddObserver("ModifiedEvent", createModifiedCallback(self))
Esempio n. 3
0
    def __init__(self):
        VTKPythonAlgorithmBase.__init__(self,
                                        nInputPorts=0,
                                        nOutputPorts=2,
                                        outputType='vtkPartitionedDataSet')
        self._filename = None
        self._timevalues = None
        self._series = None
        self._timemap = {}

        from vtkmodules.vtkCommonCore import vtkDataArraySelection
        self._arrayselection = vtkDataArraySelection()
        self._arrayselection.AddObserver("ModifiedEvent",
                                         createModifiedCallback(self))

        self._speciesselection = vtkDataArraySelection()
        self._speciesselection.AddObserver("ModifiedEvent",
                                           createModifiedCallback(self))

        self._particlearrayselection = vtkDataArraySelection()
        self._particlearrayselection.AddObserver("ModifiedEvent",
                                                 createModifiedCallback(self))
    def __init__(self):
        VTKPythonAlgorithmBase.__init__(self,
                                        nInputPorts=0,
                                        nOutputPorts=1,
                                        outputType='vtkPolyData')
        self.filename = None
        self.nc_dataset = None

        self.newPoints = vtk.vtkPoints()

        #this will be the polyline output, drawn on screen
        self.pdo = vtk.vtkPolyData()
        self.polyIndex = 0

        #the mandatory dimensions - will be put separately from the other (generic) variables
        self.lat = None
        self.lon = None
        self.height = None
        self.time = None

        self.nc_point_variables = []
        self.nc_cell_variables = []

        self.nc_dimensions = []
        self.timesteps = None

        self.timeStepsCount = 0
        # timeCompare is unused for now, will be used to figure out wether the timesteps are played forward or backward
        self.timeCompare = 0
        self.heightCount = 0
        self.numPoints = 0

        from vtkmodules.vtkCommonCore import vtkDataArraySelection
        self.arrayselection = vtkDataArraySelection()
        self.arrayselection.AddObserver("ModifiedEvent",
                                        createModifiedCallback(self))

        self.lifetime = None
        self.lifetimeEnabled = False
        #lifetime minimum - modify this if you wish to allow a different minimum value
        self.lifetimeMin = 30

        #cut off the variables array if we jump forward to an animation time step > 1
        self.b_cut_off = False
        self.cut_off_start = 0