Back to index

salome-med  6.5.0
libMEDSPLITTER_Swig.py
Go to the documentation of this file.
00001 # This file was automatically generated by SWIG (http://www.swig.org).
00002 # Version 1.3.40
00003 #
00004 # Do not make changes to this file unless you know what you are doing--modify
00005 # the SWIG interface file instead.
00006 # This file is compatible with both classic and new-style classes.
00007 
00008 from sys import version_info
00009 if version_info >= (2,6,0):
00010     def swig_import_helper():
00011         from os.path import dirname
00012         import imp
00013         fp = None
00014         try:
00015             fp, pathname, description = imp.find_module('_libMEDSPLITTER_Swig', [dirname(__file__)])
00016         except ImportError:
00017             import _libMEDSPLITTER_Swig
00018             return _libMEDSPLITTER_Swig
00019         if fp is not None:
00020             try:
00021                 _mod = imp.load_module('_libMEDSPLITTER_Swig', fp, pathname, description)
00022             finally:
00023                 fp.close()
00024             return _mod
00025     _libMEDSPLITTER_Swig = swig_import_helper()
00026     del swig_import_helper
00027 else:
00028     import _libMEDSPLITTER_Swig
00029 del version_info
00030 try:
00031     _swig_property = property
00032 except NameError:
00033     pass # Python < 2.2 doesn't have 'property'.
00034 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
00035     if (name == "thisown"): return self.this.own(value)
00036     if (name == "this"):
00037         if type(value).__name__ == 'SwigPyObject':
00038             self.__dict__[name] = value
00039             return
00040     method = class_type.__swig_setmethods__.get(name,None)
00041     if method: return method(self,value)
00042     if (not static) or hasattr(self,name):
00043         self.__dict__[name] = value
00044     else:
00045         raise AttributeError("You cannot add attributes to %s" % self)
00046 
00047 def _swig_setattr(self,class_type,name,value):
00048     return _swig_setattr_nondynamic(self,class_type,name,value,0)
00049 
00050 def _swig_getattr(self,class_type,name):
00051     if (name == "thisown"): return self.this.own()
00052     method = class_type.__swig_getmethods__.get(name,None)
00053     if method: return method(self)
00054     raise AttributeError(name)
00055 
00056 def _swig_repr(self):
00057     try: strthis = "proxy of " + self.this.__repr__()
00058     except: strthis = ""
00059     return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
00060 
00061 try:
00062     _object = object
00063     _newclass = 1
00064 except AttributeError:
00065     class _object : pass
00066     _newclass = 0
00067 
00068 
00069 METIS = _libMEDSPLITTER_Swig.METIS
00070 SCOTCH = _libMEDSPLITTER_Swig.SCOTCH
00071 MedAscii = _libMEDSPLITTER_Swig.MedAscii
00072 MedXML = _libMEDSPLITTER_Swig.MedXML
00073 Undefined = _libMEDSPLITTER_Swig.Undefined
00074 class Graph(_object):
00075     __swig_setmethods__ = {}
00076     __setattr__ = lambda self, name, value: _swig_setattr(self, Graph, name, value)
00077     __swig_getmethods__ = {}
00078     __getattr__ = lambda self, name: _swig_getattr(self, Graph, name)
00079     __repr__ = _swig_repr
00080     METIS = _libMEDSPLITTER_Swig.Graph_METIS
00081     SCOTCH = _libMEDSPLITTER_Swig.Graph_SCOTCH
00082     def __init__(self): 
00083         this = _libMEDSPLITTER_Swig.new_Graph()
00084         try: self.this.append(this)
00085         except: self.this = this
00086     __swig_destroy__ = _libMEDSPLITTER_Swig.delete_Graph
00087     __del__ = lambda self : None;
00088 Graph_swigregister = _libMEDSPLITTER_Swig.Graph_swigregister
00089 Graph_swigregister(Graph)
00090 
00091 class MESHCollection(_object):
00092     __swig_setmethods__ = {}
00093     __setattr__ = lambda self, name, value: _swig_setattr(self, MESHCollection, name, value)
00094     __swig_getmethods__ = {}
00095     __getattr__ = lambda self, name: _swig_getattr(self, MESHCollection, name)
00096     __repr__ = _swig_repr
00097     def __init__(self, *args): 
00098         this = _libMEDSPLITTER_Swig.new_MESHCollection(*args)
00099         try: self.this.append(this)
00100         except: self.this = this
00101     def createPartition(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_createPartition(self, *args)
00102     def setDriverType(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_setDriverType(self, *args)
00103     def setSubdomainBoundaryCreates(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_setSubdomainBoundaryCreates(self, *args)
00104     def write(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_write(self, *args)
00105     def castAllFields(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_castAllFields(self, *args)
00106     def castFamilies(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_castFamilies(self, *args)
00107     def castField(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_castField(self, *args)
00108     def setIndivisibleGroup(self, *args): return _libMEDSPLITTER_Swig.MESHCollection_setIndivisibleGroup(self, *args)
00109     __swig_destroy__ = _libMEDSPLITTER_Swig.delete_MESHCollection
00110     __del__ = lambda self : None;
00111 MESHCollection_swigregister = _libMEDSPLITTER_Swig.MESHCollection_swigregister
00112 MESHCollection_swigregister(MESHCollection)
00113 
00114 
00115