Back to index

salome-geom  6.5.0
libGEOM_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('_libGEOM_Swig', [dirname(__file__)])
00016         except ImportError:
00017             import _libGEOM_Swig
00018             return _libGEOM_Swig
00019         if fp is not None:
00020             try:
00021                 _mod = imp.load_module('_libGEOM_Swig', fp, pathname, description)
00022             finally:
00023                 fp.close()
00024             return _mod
00025     _libGEOM_Swig = swig_import_helper()
00026     del swig_import_helper
00027 else:
00028     import _libGEOM_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 class GEOM_Swig(_object):
00070     __swig_setmethods__ = {}
00071     __setattr__ = lambda self, name, value: _swig_setattr(self, GEOM_Swig, name, value)
00072     __swig_getmethods__ = {}
00073     __getattr__ = lambda self, name: _swig_getattr(self, GEOM_Swig, name)
00074     __repr__ = _swig_repr
00075     def __init__(self): 
00076         this = _libGEOM_Swig.new_GEOM_Swig()
00077         try: self.this.append(this)
00078         except: self.this = this
00079     __swig_destroy__ = _libGEOM_Swig.delete_GEOM_Swig
00080     __del__ = lambda self : None;
00081     def createAndDisplayGO(self, *args): return _libGEOM_Swig.GEOM_Swig_createAndDisplayGO(self, *args)
00082     def eraseGO(self, *args): return _libGEOM_Swig.GEOM_Swig_eraseGO(self, *args)
00083     def createAndDisplayFitAllGO(self, *args): return _libGEOM_Swig.GEOM_Swig_createAndDisplayFitAllGO(self, *args)
00084     def UpdateViewer(self): return _libGEOM_Swig.GEOM_Swig_UpdateViewer(self)
00085     def getIndexTopology(self, *args): return _libGEOM_Swig.GEOM_Swig_getIndexTopology(self, *args)
00086     def getShapeTypeString(self, *args): return _libGEOM_Swig.GEOM_Swig_getShapeTypeString(self, *args)
00087     def setDisplayMode(self, *args): return _libGEOM_Swig.GEOM_Swig_setDisplayMode(self, *args)
00088     def setVectorsMode(self, *args): return _libGEOM_Swig.GEOM_Swig_setVectorsMode(self, *args)
00089     def setColor(self, *args): return _libGEOM_Swig.GEOM_Swig_setColor(self, *args)
00090     def setTransparency(self, *args): return _libGEOM_Swig.GEOM_Swig_setTransparency(self, *args)
00091     def setDeflection(self, *args): return _libGEOM_Swig.GEOM_Swig_setDeflection(self, *args)
00092     def getShapeTypeIcon(self, *args): return _libGEOM_Swig.GEOM_Swig_getShapeTypeIcon(self, *args)
00093     def initGeomGen(self): return _libGEOM_Swig.GEOM_Swig_initGeomGen(self)
00094 GEOM_Swig_swigregister = _libGEOM_Swig.GEOM_Swig_swigregister
00095 GEOM_Swig_swigregister(GEOM_Swig)
00096 
00097 
00098