# Python stubs generated by omniidl from .././../idl/SMESH_Pattern.idl

import omniORB, _omnipy
from omniORB import CORBA, PortableServer
_0_CORBA = CORBA

_omnipy.checkVersion(3,0, __file__)

# #include "SALOME_Exception.idl"
import SALOME_Exception_idl
_0_SALOME = omniORB.openModule("SALOME")
_0_SALOME__POA = omniORB.openModule("SALOME__POA")
# #include "SALOME_GenericObj.idl"
import SALOME_GenericObj_idl
_0_SALOME = omniORB.openModule("SALOME")
_0_SALOME__POA = omniORB.openModule("SALOME__POA")
# #include "SALOMEDS.idl"
import SALOMEDS_idl
_0_SALOMEDS = omniORB.openModule("SALOMEDS")
_0_SALOMEDS__POA = omniORB.openModule("SALOMEDS__POA")
# #include "SALOME_PyNode.idl"
import SALOME_PyNode_idl
_0_Engines = omniORB.openModule("Engines")
_0_Engines__POA = omniORB.openModule("Engines__POA")
# #include "SALOME_Component.idl"
import SALOME_Component_idl
_0_Engines = omniORB.openModule("Engines")
_0_Engines__POA = omniORB.openModule("Engines__POA")
# #include "SALOMEDS_Attributes.idl"
import SALOMEDS_Attributes_idl
_0_SALOMEDS = omniORB.openModule("SALOMEDS")
_0_SALOMEDS__POA = omniORB.openModule("SALOMEDS__POA")
# #include "GEOM_Gen.idl"
import GEOM_Gen_idl
_0_GEOM = omniORB.openModule("GEOM")
_0_GEOM__POA = omniORB.openModule("GEOM__POA")
# #include "SALOME_Comm.idl"
import SALOME_Comm_idl
_0_SALOME = omniORB.openModule("SALOME")
_0_SALOME__POA = omniORB.openModule("SALOME__POA")
# #include "MED.idl"
import MED_idl
_0_SALOME_MED = omniORB.openModule("SALOME_MED")
_0_SALOME_MED__POA = omniORB.openModule("SALOME_MED__POA")
# #include "SMESH_Mesh.idl"
import SMESH_Mesh_idl
_0_SMESH = omniORB.openModule("SMESH")
_0_SMESH__POA = omniORB.openModule("SMESH__POA")

#
# Start of module "SMESH"
#
__name__ = "SMESH"
_0_SMESH = omniORB.openModule("SMESH", r".././../idl/SMESH_Pattern.idl")
_0_SMESH__POA = omniORB.openModule("SMESH__POA", r".././../idl/SMESH_Pattern.idl")


# typedef ... point_array
class point_array:
    _NP_RepositoryId = "IDL:SMESH/point_array:1.0"
    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")
_0_SMESH.point_array = point_array
_0_SMESH._d_point_array  = (omniORB.tcInternal.tv_sequence, omniORB.typeMapping["IDL:SMESH/PointStruct:1.0"], 0)
_0_SMESH._ad_point_array = (omniORB.tcInternal.tv_alias, point_array._NP_RepositoryId, "point_array", (omniORB.tcInternal.tv_sequence, omniORB.typeMapping["IDL:SMESH/PointStruct:1.0"], 0))
_0_SMESH._tc_point_array = omniORB.tcInternal.createTypeCode(_0_SMESH._ad_point_array)
omniORB.registerType(point_array._NP_RepositoryId, _0_SMESH._ad_point_array, _0_SMESH._tc_point_array)
del point_array

# interface SMESH_Pattern
_0_SMESH._d_SMESH_Pattern = (omniORB.tcInternal.tv_objref, "IDL:SMESH/SMESH_Pattern:1.0", "SMESH_Pattern")
omniORB.typeMapping["IDL:SMESH/SMESH_Pattern:1.0"] = _0_SMESH._d_SMESH_Pattern
_0_SMESH.SMESH_Pattern = omniORB.newEmptyClass()
class SMESH_Pattern :
    _NP_RepositoryId = _0_SMESH._d_SMESH_Pattern[1]

    def __init__(self, *args, **kw):
        raise RuntimeError("Cannot construct objects of this type.")

    _nil = CORBA.Object._nil

    
    # enum ErrorCode
    ERR_OK = omniORB.EnumItem("ERR_OK", 0)
    ERR_READ_NB_POINTS = omniORB.EnumItem("ERR_READ_NB_POINTS", 1)
    ERR_READ_POINT_COORDS = omniORB.EnumItem("ERR_READ_POINT_COORDS", 2)
    ERR_READ_TOO_FEW_POINTS = omniORB.EnumItem("ERR_READ_TOO_FEW_POINTS", 3)
    ERR_READ_3D_COORD = omniORB.EnumItem("ERR_READ_3D_COORD", 4)
    ERR_READ_NO_KEYPOINT = omniORB.EnumItem("ERR_READ_NO_KEYPOINT", 5)
    ERR_READ_BAD_INDEX = omniORB.EnumItem("ERR_READ_BAD_INDEX", 6)
    ERR_READ_ELEM_POINTS = omniORB.EnumItem("ERR_READ_ELEM_POINTS", 7)
    ERR_READ_NO_ELEMS = omniORB.EnumItem("ERR_READ_NO_ELEMS", 8)
    ERR_READ_BAD_KEY_POINT = omniORB.EnumItem("ERR_READ_BAD_KEY_POINT", 9)
    ERR_SAVE_NOT_LOADED = omniORB.EnumItem("ERR_SAVE_NOT_LOADED", 10)
    ERR_LOAD_EMPTY_SUBMESH = omniORB.EnumItem("ERR_LOAD_EMPTY_SUBMESH", 11)
    ERR_LOADF_NARROW_FACE = omniORB.EnumItem("ERR_LOADF_NARROW_FACE", 12)
    ERR_LOADF_CLOSED_FACE = omniORB.EnumItem("ERR_LOADF_CLOSED_FACE", 13)
    ERR_LOADF_CANT_PROJECT = omniORB.EnumItem("ERR_LOADF_CANT_PROJECT", 14)
    ERR_LOADV_BAD_SHAPE = omniORB.EnumItem("ERR_LOADV_BAD_SHAPE", 15)
    ERR_LOADV_COMPUTE_PARAMS = omniORB.EnumItem("ERR_LOADV_COMPUTE_PARAMS", 16)
    ERR_APPL_NOT_LOADED = omniORB.EnumItem("ERR_APPL_NOT_LOADED", 17)
    ERR_APPL_BAD_DIMENTION = omniORB.EnumItem("ERR_APPL_BAD_DIMENTION", 18)
    ERR_APPL_BAD_NB_VERTICES = omniORB.EnumItem("ERR_APPL_BAD_NB_VERTICES", 19)
    ERR_APPLF_BAD_TOPOLOGY = omniORB.EnumItem("ERR_APPLF_BAD_TOPOLOGY", 20)
    ERR_APPLF_BAD_VERTEX = omniORB.EnumItem("ERR_APPLF_BAD_VERTEX", 21)
    ERR_APPLF_INTERNAL_EEROR = omniORB.EnumItem("ERR_APPLF_INTERNAL_EEROR", 22)
    ERR_APPLV_BAD_SHAPE = omniORB.EnumItem("ERR_APPLV_BAD_SHAPE", 23)
    ERR_MAKEM_NOT_COMPUTED = omniORB.EnumItem("ERR_MAKEM_NOT_COMPUTED", 24)
    ErrorCode = omniORB.Enum("IDL:SMESH/SMESH_Pattern/ErrorCode:1.0", (ERR_OK, ERR_READ_NB_POINTS, ERR_READ_POINT_COORDS, ERR_READ_TOO_FEW_POINTS, ERR_READ_3D_COORD, ERR_READ_NO_KEYPOINT, ERR_READ_BAD_INDEX, ERR_READ_ELEM_POINTS, ERR_READ_NO_ELEMS, ERR_READ_BAD_KEY_POINT, ERR_SAVE_NOT_LOADED, ERR_LOAD_EMPTY_SUBMESH, ERR_LOADF_NARROW_FACE, ERR_LOADF_CLOSED_FACE, ERR_LOADF_CANT_PROJECT, ERR_LOADV_BAD_SHAPE, ERR_LOADV_COMPUTE_PARAMS, ERR_APPL_NOT_LOADED, ERR_APPL_BAD_DIMENTION, ERR_APPL_BAD_NB_VERTICES, ERR_APPLF_BAD_TOPOLOGY, ERR_APPLF_BAD_VERTEX, ERR_APPLF_INTERNAL_EEROR, ERR_APPLV_BAD_SHAPE, ERR_MAKEM_NOT_COMPUTED,))

    _d_ErrorCode  = (omniORB.tcInternal.tv_enum, ErrorCode._NP_RepositoryId, "ErrorCode", ErrorCode._items)
    _tc_ErrorCode = omniORB.tcInternal.createTypeCode(_d_ErrorCode)
    omniORB.registerType(ErrorCode._NP_RepositoryId, _d_ErrorCode, _tc_ErrorCode)


_0_SMESH.SMESH_Pattern = SMESH_Pattern
_0_SMESH._tc_SMESH_Pattern = omniORB.tcInternal.createTypeCode(_0_SMESH._d_SMESH_Pattern)
omniORB.registerType(SMESH_Pattern._NP_RepositoryId, _0_SMESH._d_SMESH_Pattern, _0_SMESH._tc_SMESH_Pattern)

# SMESH_Pattern operations and attributes
SMESH_Pattern._d_LoadFromFile = (((omniORB.tcInternal.tv_string,0), ), (omniORB.tcInternal.tv_boolean, ), None)
SMESH_Pattern._d_LoadFromFace = ((omniORB.typeMapping["IDL:SMESH/SMESH_Mesh:1.0"], omniORB.typeMapping["IDL:GEOM/GEOM_Object:1.0"], omniORB.tcInternal.tv_boolean), (omniORB.tcInternal.tv_boolean, ), None)
SMESH_Pattern._d_LoadFrom3DBlock = ((omniORB.typeMapping["IDL:SMESH/SMESH_Mesh:1.0"], omniORB.typeMapping["IDL:GEOM/GEOM_Object:1.0"]), (omniORB.tcInternal.tv_boolean, ), None)
SMESH_Pattern._d_ApplyToFace = ((omniORB.typeMapping["IDL:GEOM/GEOM_Object:1.0"], omniORB.typeMapping["IDL:GEOM/GEOM_Object:1.0"], omniORB.tcInternal.tv_boolean), (omniORB.typeMapping["IDL:SMESH/point_array:1.0"], ), None)
SMESH_Pattern._d_ApplyTo3DBlock = ((omniORB.typeMapping["IDL:GEOM/GEOM_Object:1.0"], omniORB.typeMapping["IDL:GEOM/GEOM_Object:1.0"], omniORB.typeMapping["IDL:GEOM/GEOM_Object:1.0"]), (omniORB.typeMapping["IDL:SMESH/point_array:1.0"], ), None)
SMESH_Pattern._d_ApplyToMeshFaces = ((omniORB.typeMapping["IDL:SMESH/SMESH_Mesh:1.0"], omniORB.typeMapping["IDL:SMESH/long_array:1.0"], omniORB.tcInternal.tv_long, omniORB.tcInternal.tv_boolean), (omniORB.typeMapping["IDL:SMESH/point_array:1.0"], ), None)
SMESH_Pattern._d_ApplyToHexahedrons = ((omniORB.typeMapping["IDL:SMESH/SMESH_Mesh:1.0"], omniORB.typeMapping["IDL:SMESH/long_array:1.0"], omniORB.tcInternal.tv_long, omniORB.tcInternal.tv_long), (omniORB.typeMapping["IDL:SMESH/point_array:1.0"], ), None)
SMESH_Pattern._d_MakeMesh = ((omniORB.typeMapping["IDL:SMESH/SMESH_Mesh:1.0"], omniORB.tcInternal.tv_boolean, omniORB.tcInternal.tv_boolean), (omniORB.tcInternal.tv_boolean, ), None)
SMESH_Pattern._d_GetString = ((), ((omniORB.tcInternal.tv_string,0), ), None)
SMESH_Pattern._d_GetErrorCode = ((), (omniORB.typeMapping["IDL:SMESH/SMESH_Pattern/ErrorCode:1.0"], ), None)
SMESH_Pattern._d_Is2D = ((), (omniORB.tcInternal.tv_boolean, ), None)
SMESH_Pattern._d_GetPoints = ((), (omniORB.typeMapping["IDL:SMESH/point_array:1.0"], ), None)
SMESH_Pattern._d_GetKeyPoints = ((), (omniORB.typeMapping["IDL:SMESH/long_array:1.0"], ), None)
SMESH_Pattern._d_GetElementPoints = ((omniORB.tcInternal.tv_boolean, ), (omniORB.typeMapping["IDL:SMESH/array_of_long_array:1.0"], ), None)

# SMESH_Pattern object reference
class _objref_SMESH_Pattern (CORBA.Object):
    _NP_RepositoryId = SMESH_Pattern._NP_RepositoryId

    def __init__(self):
        CORBA.Object.__init__(self)

    def LoadFromFile(self, *args):
        return _omnipy.invoke(self, "LoadFromFile", _0_SMESH.SMESH_Pattern._d_LoadFromFile, args)

    def LoadFromFace(self, *args):
        return _omnipy.invoke(self, "LoadFromFace", _0_SMESH.SMESH_Pattern._d_LoadFromFace, args)

    def LoadFrom3DBlock(self, *args):
        return _omnipy.invoke(self, "LoadFrom3DBlock", _0_SMESH.SMESH_Pattern._d_LoadFrom3DBlock, args)

    def ApplyToFace(self, *args):
        return _omnipy.invoke(self, "ApplyToFace", _0_SMESH.SMESH_Pattern._d_ApplyToFace, args)

    def ApplyTo3DBlock(self, *args):
        return _omnipy.invoke(self, "ApplyTo3DBlock", _0_SMESH.SMESH_Pattern._d_ApplyTo3DBlock, args)

    def ApplyToMeshFaces(self, *args):
        return _omnipy.invoke(self, "ApplyToMeshFaces", _0_SMESH.SMESH_Pattern._d_ApplyToMeshFaces, args)

    def ApplyToHexahedrons(self, *args):
        return _omnipy.invoke(self, "ApplyToHexahedrons", _0_SMESH.SMESH_Pattern._d_ApplyToHexahedrons, args)

    def MakeMesh(self, *args):
        return _omnipy.invoke(self, "MakeMesh", _0_SMESH.SMESH_Pattern._d_MakeMesh, args)

    def GetString(self, *args):
        return _omnipy.invoke(self, "GetString", _0_SMESH.SMESH_Pattern._d_GetString, args)

    def GetErrorCode(self, *args):
        return _omnipy.invoke(self, "GetErrorCode", _0_SMESH.SMESH_Pattern._d_GetErrorCode, args)

    def Is2D(self, *args):
        return _omnipy.invoke(self, "Is2D", _0_SMESH.SMESH_Pattern._d_Is2D, args)

    def GetPoints(self, *args):
        return _omnipy.invoke(self, "GetPoints", _0_SMESH.SMESH_Pattern._d_GetPoints, args)

    def GetKeyPoints(self, *args):
        return _omnipy.invoke(self, "GetKeyPoints", _0_SMESH.SMESH_Pattern._d_GetKeyPoints, args)

    def GetElementPoints(self, *args):
        return _omnipy.invoke(self, "GetElementPoints", _0_SMESH.SMESH_Pattern._d_GetElementPoints, args)

    __methods__ = ["LoadFromFile", "LoadFromFace", "LoadFrom3DBlock", "ApplyToFace", "ApplyTo3DBlock", "ApplyToMeshFaces", "ApplyToHexahedrons", "MakeMesh", "GetString", "GetErrorCode", "Is2D", "GetPoints", "GetKeyPoints", "GetElementPoints"] + CORBA.Object.__methods__

omniORB.registerObjref(SMESH_Pattern._NP_RepositoryId, _objref_SMESH_Pattern)
_0_SMESH._objref_SMESH_Pattern = _objref_SMESH_Pattern
del SMESH_Pattern, _objref_SMESH_Pattern

# SMESH_Pattern skeleton
__name__ = "SMESH__POA"
class SMESH_Pattern (PortableServer.Servant):
    _NP_RepositoryId = _0_SMESH.SMESH_Pattern._NP_RepositoryId


    _omni_op_d = {"LoadFromFile": _0_SMESH.SMESH_Pattern._d_LoadFromFile, "LoadFromFace": _0_SMESH.SMESH_Pattern._d_LoadFromFace, "LoadFrom3DBlock": _0_SMESH.SMESH_Pattern._d_LoadFrom3DBlock, "ApplyToFace": _0_SMESH.SMESH_Pattern._d_ApplyToFace, "ApplyTo3DBlock": _0_SMESH.SMESH_Pattern._d_ApplyTo3DBlock, "ApplyToMeshFaces": _0_SMESH.SMESH_Pattern._d_ApplyToMeshFaces, "ApplyToHexahedrons": _0_SMESH.SMESH_Pattern._d_ApplyToHexahedrons, "MakeMesh": _0_SMESH.SMESH_Pattern._d_MakeMesh, "GetString": _0_SMESH.SMESH_Pattern._d_GetString, "GetErrorCode": _0_SMESH.SMESH_Pattern._d_GetErrorCode, "Is2D": _0_SMESH.SMESH_Pattern._d_Is2D, "GetPoints": _0_SMESH.SMESH_Pattern._d_GetPoints, "GetKeyPoints": _0_SMESH.SMESH_Pattern._d_GetKeyPoints, "GetElementPoints": _0_SMESH.SMESH_Pattern._d_GetElementPoints}

SMESH_Pattern._omni_skeleton = SMESH_Pattern
_0_SMESH__POA.SMESH_Pattern = SMESH_Pattern
omniORB.registerSkeleton(SMESH_Pattern._NP_RepositoryId, SMESH_Pattern)
del SMESH_Pattern
__name__ = "SMESH"

#
# End of module "SMESH"
#
__name__ = "SMESH_Pattern_idl"

_exported_modules = ( "SMESH", )

# The end.
