Back to index

salome-gui  6.5.0
libSALOME_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('_libSALOME_Swig', [dirname(__file__)])
00016         except ImportError:
00017             import _libSALOME_Swig
00018             return _libSALOME_Swig
00019         if fp is not None:
00020             try:
00021                 _mod = imp.load_module('_libSALOME_Swig', fp, pathname, description)
00022             finally:
00023                 fp.close()
00024             return _mod
00025     _libSALOME_Swig = swig_import_helper()
00026     del swig_import_helper
00027 else:
00028     import _libSALOME_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 SALOMEGUI_Swig(_object):
00070     __swig_setmethods__ = {}
00071     __setattr__ = lambda self, name, value: _swig_setattr(self, SALOMEGUI_Swig, name, value)
00072     __swig_getmethods__ = {}
00073     __getattr__ = lambda self, name: _swig_getattr(self, SALOMEGUI_Swig, name)
00074     __repr__ = _swig_repr
00075     def __init__(self): 
00076         this = _libSALOME_Swig.new_SALOMEGUI_Swig()
00077         try: self.this.append(this)
00078         except: self.this = this
00079     __swig_destroy__ = _libSALOME_Swig.delete_SALOMEGUI_Swig
00080     __del__ = lambda self : None;
00081     def hasDesktop(self): return _libSALOME_Swig.SALOMEGUI_Swig_hasDesktop(self)
00082     def updateObjBrowser(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_updateObjBrowser(self, *args)
00083     def getActiveStudyId(self): return _libSALOME_Swig.SALOMEGUI_Swig_getActiveStudyId(self)
00084     def getActiveStudyName(self): return _libSALOME_Swig.SALOMEGUI_Swig_getActiveStudyName(self)
00085     def getComponentName(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_getComponentName(self, *args)
00086     def getComponentUserName(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_getComponentUserName(self, *args)
00087     def SelectedCount(self): return _libSALOME_Swig.SALOMEGUI_Swig_SelectedCount(self)
00088     def getSelected(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_getSelected(self, *args)
00089     def AddIObject(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_AddIObject(self, *args)
00090     def RemoveIObject(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_RemoveIObject(self, *args)
00091     def ClearIObjects(self): return _libSALOME_Swig.SALOMEGUI_Swig_ClearIObjects(self)
00092     def Display(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_Display(self, *args)
00093     def DisplayOnly(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_DisplayOnly(self, *args)
00094     def Erase(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_Erase(self, *args)
00095     def DisplayAll(self): return _libSALOME_Swig.SALOMEGUI_Swig_DisplayAll(self)
00096     def EraseAll(self): return _libSALOME_Swig.SALOMEGUI_Swig_EraseAll(self)
00097     def IsInCurrentView(self, *args): return _libSALOME_Swig.SALOMEGUI_Swig_IsInCurrentView(self, *args)
00098     def UpdateView(self): return _libSALOME_Swig.SALOMEGUI_Swig_UpdateView(self)
00099     def FitAll(self): return _libSALOME_Swig.SALOMEGUI_Swig_FitAll(self)
00100     def ResetView(self): return _libSALOME_Swig.SALOMEGUI_Swig_ResetView(self)
00101     def ViewTop(self): return _libSALOME_Swig.SALOMEGUI_Swig_ViewTop(self)
00102     def ViewBottom(self): return _libSALOME_Swig.SALOMEGUI_Swig_ViewBottom(self)
00103     def ViewLeft(self): return _libSALOME_Swig.SALOMEGUI_Swig_ViewLeft(self)
00104     def ViewRight(self): return _libSALOME_Swig.SALOMEGUI_Swig_ViewRight(self)
00105     def ViewFront(self): return _libSALOME_Swig.SALOMEGUI_Swig_ViewFront(self)
00106     def ViewBack(self): return _libSALOME_Swig.SALOMEGUI_Swig_ViewBack(self)
00107 SALOMEGUI_Swig_swigregister = _libSALOME_Swig.SALOMEGUI_Swig_swigregister
00108 SALOMEGUI_Swig_swigregister(SALOMEGUI_Swig)
00109 
00110 
00111