Salome HOME
Livraison C-S du 28/11/2013
[modules/hexablock.git] / src / HEXABLOCK / work / hexablock.py
1 # -*- coding: latin-1 -*-
2 # HexaBlock : Module principal
3
4 import hexablock_swig
5
6 hexa = hexablock_swig.hex_instance ()
7
8 # ======================================================== what
9 def what () :
10    hexa.what ()
11
12 # ======================================================== countDocument
13 def countDocument () :
14    return hexa.countDocument ()
15
16 # ======================================================== getDocument
17 def getDocument (nro) :
18    return  hexa.getDocument (nro)
19
20 # ======================================================== removeDocument
21 def removeDocument (doc) :
22    return  hexa.removeDocument (doc)
23
24 # ======================================================== addDocument
25 def addDocument (nomdoc) :
26    return  hexa.addDocument (nomdoc)
27
28 # ======================================================== loadDocument
29 def loadDocument (filename) :
30    return  hexa.loadDocument (filename)
31
32 # ======================================================== findDocument
33 def findDocument (name) :
34    return  hexa.findDocument (name)
35
36 # ======================================================== mesh
37 def mesh (doc, name=None, dim=3, container="FactoryServer"):
38    return  0
39
40 # ======================================================== mesh
41 def mesh (doc, name=None, dim=3, container="FactoryServer"):
42    return  0
43
44 # ======================================================== mesh
45 def mesh (doc, name=None, dim=3, container="FactoryServer"):
46    return  0
47
48 # ======================================================== dump
49 def dump (doc, mesh=None, full=False) :
50    return  [ 36, 15, 36, 17]
51
52 # ======================================================= printMessage
53 def printMessage () :
54
55     nl = hexa.sizeofMessage()
56     if nl == 0 : 
57        return
58     for ni in range (nl) :
59         mess = hexa.getMessageLine (ni)
60         print mess
61