Package Pmv :: Module grid3DCommands :: Class IsocontourCommand
[hide private]
[frames] | no frames]

Class IsocontourCommand

source code

ViewerFramework.VFCommand.Command --+    
                                    |    
                  mvCommand.MVCommand --+
                                        |
                                       IsocontourCommand

IsocontourCommand calculates and displays isocontours for any given gridname
gridname, material = (0.,0.,1.0,0.5), isovalue = None , 
             name = None, invertNormals = False
   
Package : Pmv
   
Module  : grid3DCommands
   
Class   : IsocontourCommand
   
Command : isocontour
   
Synopsis:

        None<-isocontour(gridname)

   
Required Arguments:
    
        grid3D  : grids3D object

   
Optional Arguments:
  
        isovalue : if None given, uses the first element in the Grid3D 

        material : defaults to (0.,0.,1.0,0.5) - yellow half transparent

        name     : the name given to IndexedPolygons that represents isocontour.
If None given name = "Grid3D_"+str(self.grid_counter)
   
        invertNormals : defaults to False
    



Instance Methods [hide private]
  __init__(self, func=None)
  onAddCmdToViewer(self)
method called when an instance of this command is added to the viewer.
  __call__(self, grid3D, **kw)
None<-isocontour(gridname) Required Arguments: grid3D : key for self.vf.grids3D object Optional Arguments: isovalue : if None given, uses the first element in the Grid3D material : defaults to (0.,0.,1.0,0.5) - yellow half transparent name : the name given to IndexedPolygons that represents isocontour.
  doit(self, grid3D, material=None, isovalue=None, name=None, invertNormals=False)
virtual method.
  select(self)

Inherited from mvCommand.MVCommand: guiCallback, strArg

Inherited from mvCommand.MVCommand (private): _strArg

Inherited from ViewerFramework.VFCommand.Command: __repr__, addCallbackAfter, addCallbackBefore, addUndoCall, afterDoit, beforeDoit, buildFormDescr, buildLogArgList, checkDependencies, cleanup, customizeGUI, doitWrapper, getArguments, getHelp, getLastUsedValues, getLogArgs, getValNamedArgs, log, logString, onAddNewCmd, onCmdRun, setLastUsedValues, setupUndoAfter, setupUndoBefore, showForm, tkCb, updateGeom, warningMsg


Class Variables [hide private]

Inherited from ViewerFramework.VFCommand.Command: negateKw, objArgOnly


Method Details [hide private]

__init__(self, func=None)
(Constructor)

source code 
None
Overrides: mvCommand.MVCommand.__init__

onAddCmdToViewer(self)

source code 
method called when an instance of this command is added to the viewer. This enable viewer-addition time initializations
Overrides: ViewerFramework.VFCommand.Command.onAddCmdToViewer
(inherited documentation)

__call__(self, grid3D, **kw)
(Call operator)

source code 
None<-isocontour(gridname)

   
Required Arguments:
    
        grid3D  : key for self.vf.grids3D object

   
Optional Arguments:
  
        isovalue : if None given, uses the first element in the Grid3D 

        material : defaults to (0.,0.,1.0,0.5) - yellow half transparent

        name     : the name given to IndexedPolygons that represents isocontour.
If None given name = "Grid3D_"+str(self.grid_counter)
   
        invertNormals : defaults to False 

Overrides: ViewerFramework.VFCommand.Command.__call__

doit(self, grid3D, material=None, isovalue=None, name=None, invertNormals=False)

source code 
virtual method. Has to be implemented by the sub classes
Overrides: ViewerFramework.VFCommand.Command.doit
(inherited documentation)

select(self)

source code 
None