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

Module grid3DCommands

source code

This module integrates Volume.Grid3D with PMV for rendering 3D Grids. It includes Add/Remove, Isocontour, OrthoSlice and VolRender commands, and a table widget for navigating between grids.

Classes [hide private]
  readAnyGrid
The readAnyGrid reads any of the grids supported by Volume.IO and...
  GridMultiListbox
Extends MultiListbox from mglutil.gui.BasicWidgets.Tk.multiListbox
  Grid3DCommands
This is the main class that adds GridMultiListbox widget with Add/Remove, Isocontour and OrthoSlice icons and widgets
  AddRemove
  IGraph
Extends Tkinter.Frame by adding a canvas with histogram and bars for isocontouring.
  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.
  OrthoSliceCommand
  myLUT
Extend mglutil.gui.BasicWidgets.Tk.tablemaker.LUT; removes label to top
  myTF
Extends mglutil.gui.BasicWidgets.Tk.tablemaker.TableManager and removes iso widget
  LUT_data
This class stores LUT data
  VolRenCommand
Volume Rendering command with Trasnfer Function editor GUI

Functions [hide private]
  get_icon(icon)
  initModule(viewer)

Variables [hide private]
  isocontour = None
  Grid_ICONPATH = os.path.join(Grid_ICONPATH, 'Grid3D')
  rightClick = "Right-Click"
  typecodeDict = {'D': 'Complex64', 'F': 'Complex32', 'd': 'Float64',...
  readAnyGridGUI = CommandGUI()
  width = 440
  height = 200
  Grid3DGUI = MVCommandGUI()
  msg = '3D Grid/Volume Rendering'
  AddRemoveGUI = CommandGUI()
  displayIsocontourGUI = CommandGUI()
  OrthoSliceGUI = CommandGUI()
  globalFont = "Helvetica", 10
  commandList = [{'name': 'Grid3DReadAny', 'cmd': readAnyGrid(), 'gu...

Function Details [hide private]

get_icon(icon)

source code 
None

initModule(viewer)

source code 
None

Variables Details [hide private]

isocontour

None
Value:
None                                                                  
      

Grid_ICONPATH

None
Value:
os.path.join(Grid_ICONPATH, 'Grid3D')                                  
      

rightClick

None
Value:
"Right-Click"                                                          
      

typecodeDict

None
Value:
{'D': 'Complex64', 'F': 'Complex32', 'd': 'Float64', 'f': 'Float32', '
l': 'Int32', 'i': 'Int32', 's': 'Int16', '1': 'Int8', 'u': 'UInt32', '
w': 'UInt16', 'b': 'UInt8'}                                            
      

readAnyGridGUI

None
Value:
CommandGUI()                                                           
      

width

None
Value:
440                                                                    
      

height

None
Value:
200                                                                    
      

Grid3DGUI

None
Value:
MVCommandGUI()                                                         
      

msg

None
Value:
'3D Grid/Volume Rendering'                                             
      

AddRemoveGUI

None
Value:
CommandGUI()                                                           
      

displayIsocontourGUI

None
Value:
CommandGUI()                                                           
      

OrthoSliceGUI

None
Value:
CommandGUI()                                                           
      

globalFont

None
Value:
"Helvetica", 10                                                        
      

commandList

None
Value:
[{'name': 'Grid3DReadAny', 'cmd': readAnyGrid(), 'gui': readAnyGridGUI
}, {'name': 'Grid3DAddRemove', 'cmd': AddRemove(), 'gui': AddRemoveGUI
}, {'name': 'Grid3DCommands', 'cmd': Grid3DCommands(), 'gui': Grid3DGU
I}, {'name': 'Grid3DIsocontour', 'cmd': IsocontourCommand(), 'gui': No
ne}, {'name': 'Grid3DOrthoSlice', 'cmd': OrthoSliceCommand(), 'gui': N
one}, {'name': 'Grid3DVolRen', 'cmd': VolRenCommand(), 'gui': None},]