Salome HOME
Merge 'abn/V8_1_fix' branch into V8_1_BR.
[modules/med.git] / src / MEDCalc / tui / __init__.py
1 # Copyright (C) 2015-2016  CEA/DEN, EDF R&D
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 # This functions are to be used to notify the USER of some events
21 # arising on the field operation. It is NOT to be used for logging
22 # purpose
23 def inf(msg): print "INF: "+str(msg)
24 def wrn(msg): print "WRN: "+str(msg)
25 def err(msg): print "ERR: "+str(msg)
26 def dbg(msg): print "DBG: "+str(msg)
27
28 # Initialize CORBA stuff
29 import medcorba
30
31 # Connect event listener
32 import medevents
33
34 # Fields utilities
35 from fieldproxy import newFieldProxy, FieldProxy
36
37 # Input/Output
38 from medio import LoadDataSource, LoadImageAsDataSource, GetFirstMeshFromDataSource
39
40 # Presentations
41 from medpresentation import MakeMeshView
42 from medpresentation import MakeScalarMap
43 from medpresentation import MakeContour
44 from medpresentation import MakeVectorField
45 from medpresentation import MakeSlices
46 from medpresentation import MakePointSprite
47 from medpresentation import RemovePresentation
48 from medpresentation import MakeDeflectionShape
49
50 from medpresentation import GetMeshViewParameters
51 from medpresentation import GetScalarMapParameters
52 from medpresentation import GetContourParameters
53 from medpresentation import GetSlicesParameters
54 from medpresentation import GetPointSpriteParameters
55 from medpresentation import GetVectorFieldParameters
56 from medpresentation import GetDeflectionShapeParameters
57
58 from medpresentation import UpdateMeshView
59 from medpresentation import UpdateScalarMap
60 from medpresentation import UpdateContour
61 from medpresentation import UpdateSlices
62 from medpresentation import UpdateVectorField
63 from medpresentation import UpdatePointSprite
64 from medpresentation import UpdateDeflectionShape
65
66 from medpresentation import ComputeCellAverageSize, GetDomainCenter, GetSliceOrigins, SelectSourceField
67
68 # Console commands
69 import medconsole
70
71 # Playing test scenarii
72 from medtest import PlayQtTestingScenario
73 from medtest import RequestSALOMETermination