parameters: (self, inInputFilter)
return_statement: return newParaViewFilter
docstring: create the box clip box for ParaView
docstring_summary: create the box clip box for ParaView
docstring_tokens: create the box clip box for ParaView
function: def CreateParaViewFilter(self, inInputFilter):
      """create the box clip box for ParaView"""
      if PhactoriDbg(100):
        myDebugPrint3('PhactoriBoxClipOperation.CreateParaViewFilter entered\n', 100)
      #info in block class should already be parsed and checked
  
      savedActiveSource = GetActiveSource()
  
      UpdatePipelineWithCurrentTimeArgument(inInputFilter)
  
      if PhactoriDbg(100):
        DebugPrintCellAndPointArrayInfo("data arrays coming into PhactoriBoxClipOperation.CreateParaViewFilter\n", inInputFilter, 100)
  
      newParaViewFilter = Clip(Input = inInputFilter, ClipType = "Box")
  
      viewBoundsArray = [None]
      centerToUse = self.mCenterPtInfo.GetCurrentGeometricPointWithDisplacement(
          inInputFilter, viewBoundsArray, True)
  
      if PhactoriDbg():
        myDebugPrint3("  about to find extents--absolute or calced from relative\n")
      myViewBounds = viewBoundsArray[0]
      if self.mExtentsRelAbsFlag[0]:
        if myViewBounds == None:
          myViewBounds = GetGlobalDataBoundsParallel(inInputFilter)
        halfXExt = self.mExtents[0] * (myViewBounds[1] - myViewBounds[0]) * 0.5
        if halfXExt <= 1e-20:
          halfXExt = 0.001
      else:
        halfXExt = self.mExtents[0] * 0.5
  
      if self.mExtentsRelAbsFlag[1]:
        if myViewBounds == None:
          myViewBounds = GetGlobalDataBoundsParallel(inInputFilter)
        halfYExt = self.mExtents[1] * (myViewBounds[3] - myViewBounds[2]) * 0.5
        if halfYExt <= 1e-20:
          halfYExt = 0.001
      else:
        halfYExt = self.mExtents[1] * 0.5
  
      if self.mExtentsRelAbsFlag[2]:
        if myViewBounds == None:
          myViewBounds = GetGlobalDataBoundsParallel(inInputFilter)
        halfZExt = self.mExtents[2] * (myViewBounds[5] - myViewBounds[4]) * 0.5
        if halfZExt <= 1e-20:
          halfZExt = 0.001
      else:
        halfZExt = self.mExtents[2] * 0.5
  
      if PhactoriDbg():
        myDebugPrint3("  halfExtents: " + str(halfXExt) + ", " + str(halfYExt) + ", " + str(halfZExt) + "\n")
  
      #newParaViewFilter.ClipType.Position = [centerToUse[0],
      #    centerToUse[1],
      #    centerToUse[2]]
      #newParaViewFilter.ClipType.Bounds = [-halfXExt, halfXExt,
      #    -halfYExt, halfYExt, -halfZExt, halfZExt]
      newParaViewFilter.ClipType.Position = [centerToUse[0] - halfXExt,
          centerToUse[1] - halfYExt,
          centerToUse[2] - halfZExt]
      newParaViewFilter.ClipType.Length = [halfXExt * 2.0, halfYExt * 2.0, halfZExt * 2.0]
      newParaViewFilter.ClipType.Rotation = [self.mRotations[0],
          self.mRotations[1],
          self.mRotations[2]]
  
      newParaViewFilter.Crinkleclip = self.mCrinkleSetting
      if gParaViewCatalystVersionFlag < 50502:
        if self.mKeepInside:
          newParaViewFilter.InsideOut = 1
        else:
          newParaViewFilter.InsideOut = 0
      else:
        if self.mKeepInside:
          newParaViewFilter.Invert = 1
        else:
          newParaViewFilter.Invert = 0
  
      SetActiveSource(newParaViewFilter)
      SetActiveSource(savedActiveSource)
  
      UpdatePipelineWithCurrentTimeArgument(newParaViewFilter)
  
      if PhactoriDbg(100):
        DebugPrintCellAndPointArrayInfo("data arrays coming out of PhactoriBoxClipOperation.CreateParaViewFilter\n", newParaViewFilter, 100)
  
      if PhactoriDbg(100):
        myDebugPrint3('PhactoriBoxClipOperation.CreateParaViewFilter returning\n', 100)
  
      return newParaViewFilter
function_tokens: def CreateParaViewFilter ( self , inInputFilter ) : if PhactoriDbg ( 100 ) : myDebugPrint3 ( 'PhactoriBoxClipOperation.CreateParaViewFilter entered\n' , 100 ) #info in block class should already be parsed and checked savedActiveSource = GetActiveSource ( ) UpdatePipelineWithCurrentTimeArgument ( inInputFilter ) if PhactoriDbg ( 100 ) : DebugPrintCellAndPointArrayInfo ( "data arrays coming into PhactoriBoxClipOperation.CreateParaViewFilter\n" , inInputFilter , 100 ) newParaViewFilter = Clip ( Input = inInputFilter , ClipType = "Box" ) viewBoundsArray = [ None ] centerToUse = self . mCenterPtInfo . GetCurrentGeometricPointWithDisplacement ( inInputFilter , viewBoundsArray , True ) if PhactoriDbg ( ) : myDebugPrint3 ( "  about to find extents--absolute or calced from relative\n" ) myViewBounds = viewBoundsArray [ 0 ] if self . mExtentsRelAbsFlag [ 0 ] : if myViewBounds == None : myViewBounds = GetGlobalDataBoundsParallel ( inInputFilter ) halfXExt = self . mExtents [ 0 ] * ( myViewBounds [ 1 ] - myViewBounds [ 0 ] ) * 0.5 if halfXExt <= 1e-20 : halfXExt = 0.001 else : halfXExt = self . mExtents [ 0 ] * 0.5 if self . mExtentsRelAbsFlag [ 1 ] : if myViewBounds == None : myViewBounds = GetGlobalDataBoundsParallel ( inInputFilter ) halfYExt = self . mExtents [ 1 ] * ( myViewBounds [ 3 ] - myViewBounds [ 2 ] ) * 0.5 if halfYExt <= 1e-20 : halfYExt = 0.001 else : halfYExt = self . mExtents [ 1 ] * 0.5 if self . mExtentsRelAbsFlag [ 2 ] : if myViewBounds == None : myViewBounds = GetGlobalDataBoundsParallel ( inInputFilter ) halfZExt = self . mExtents [ 2 ] * ( myViewBounds [ 5 ] - myViewBounds [ 4 ] ) * 0.5 if halfZExt <= 1e-20 : halfZExt = 0.001 else : halfZExt = self . mExtents [ 2 ] * 0.5 if PhactoriDbg ( ) : myDebugPrint3 ( "  halfExtents: " + str ( halfXExt ) + ", " + str ( halfYExt ) + ", " + str ( halfZExt ) + "\n" ) #newParaViewFilter.ClipType.Position = [centerToUse[0], #    centerToUse[1], #    centerToUse[2]] #newParaViewFilter.ClipType.Bounds = [-halfXExt, halfXExt, #    -halfYExt, halfYExt, -halfZExt, halfZExt] newParaViewFilter . ClipType . Position = [ centerToUse [ 0 ] - halfXExt , centerToUse [ 1 ] - halfYExt , centerToUse [ 2 ] - halfZExt ] newParaViewFilter . ClipType . Length = [ halfXExt * 2.0 , halfYExt * 2.0 , halfZExt * 2.0 ] newParaViewFilter . ClipType . Rotation = [ self . mRotations [ 0 ] , self . mRotations [ 1 ] , self . mRotations [ 2 ] ] newParaViewFilter . Crinkleclip = self . mCrinkleSetting if gParaViewCatalystVersionFlag < 50502 : if self . mKeepInside : newParaViewFilter . InsideOut = 1 else : newParaViewFilter . InsideOut = 0 else : if self . mKeepInside : newParaViewFilter . Invert = 1 else : newParaViewFilter . Invert = 0 SetActiveSource ( newParaViewFilter ) SetActiveSource ( savedActiveSource ) UpdatePipelineWithCurrentTimeArgument ( newParaViewFilter ) if PhactoriDbg ( 100 ) : DebugPrintCellAndPointArrayInfo ( "data arrays coming out of PhactoriBoxClipOperation.CreateParaViewFilter\n" , newParaViewFilter , 100 ) if PhactoriDbg ( 100 ) : myDebugPrint3 ( 'PhactoriBoxClipOperation.CreateParaViewFilter returning\n' , 100 ) return newParaViewFilter