File: XdmfVtk.py

package info (click to toggle)
xdmf 3.0%2Bgit20160803-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 35,388 kB
  • ctags: 36,627
  • sloc: ansic: 265,382; cpp: 162,889; python: 10,976; f90: 1,378; yacc: 687; fortran: 464; xml: 200; java: 187; lex: 125; makefile: 82; sh: 28
file content (20 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

from vtk import *
from Xdmf import *
from libvtkXdmfPython import *
import string
import sys

platform = string.upper(sys.platform)

if (platform == 'WIN32') or (platform == 'CYGWIN') :
	class vtkXdmfRenderWindowInteractor ( vtkXdmfWin32RenderWindowInteractor ) :
			def __init__(self) :
				pass
else :
	class vtkXdmfRenderWindowInteractor ( vtkXdmfXRenderWindowInteractor ) :
			def __init__(self) :
				pass