def setData(self, dataArray, usrAttribs=dict()):

        # If the user passed in attributes, use those
        if (usrAttribs):
            self._attribs = usrAttribs

        # Create the extractor, description and update the attributes
        self._extractor, self._bbox, self._attribs, self._descrip = VisusFunctions.createExtractor(
            dataArray, self._attribs)

        # Set the bounding box of the root
        self._root.setValue(self._bbox)
Beispiel #2
0
 def setData( self,dataArray,usrAttribs=dict() ):
   
   # If the user passed in attributes, use those
   if(usrAttribs):
     self._attribs = usrAttribs
       
   # Create the extractor, description and update the attributes 
   self._extractor, self._bbox, self._attribs, self._descrip = VisusFunctions.createExtractor(dataArray,
                                                                                              self._attribs)
   
   
   # Set the bounding box of the root
   self._root.setValue(self._bbox)