-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
#include "SALOME_GenericObj.idl"
#include "SALOME_Exception.idl"
-module MEDOP
+module MEDCALC
{
struct DatasourceHandler {
long id;
* point that aggregate a list of fields that relie on the same mesh
* with the same type (the fields in a timeseries differ by their
* time step).
- *
+ *
* Then you could have a field with no fieldseries associated but
* directly associated to a mesh. That is typically the case of
* fields created by MED operations: if you operate tow fields
};
typedef sequence<FieldseriesHandler> FieldseriesHandlerList;
- // The FieldHandler structure is a lightweigth data structure that
+ // The FieldHandler structure is a lightweight data structure that
// represents a single field (as understood in MEDCoupling model).
struct FieldHandler {
long id;
typedef sequence<FieldHandler> FieldHandlerList;
typedef sequence<long> FieldIdList;
+ struct InterpolationParameters {
+ double precision;
+ double defaultValue;
+ boolean reverse;
+ string method;
+ string nature;
+ string intersectionType;
+ };
+
interface MEDDataManager: SALOME::GenericObj
{
-
+
//==========================================================
// Datasource management
//==========================================================
- DatasourceHandler addDatasource(in string filepath);
+ DatasourceHandler loadDatasource(in string filepath);
+ DatasourceHandler getDatasourceHandler(in string filepath);
+ DatasourceHandler getDatasourceHandlerFromID(in long sourceid);
//==========================================================
// Mesh data management
//==========================================================
-
- MeshHandler getMesh(in long meshId) raises (SALOME::SALOME_Exception);
- MeshHandlerList getMeshList(in long datasourceId);
+
+ MeshHandler getMeshHandler(in long meshId) raises (SALOME::SALOME_Exception);
+ MeshHandlerList getMeshHandlerList(in long datasourceId);
//==========================================================
// Field data management
FieldHandler getFieldHandler(in long fieldHandlerId);
FieldHandlerList getFieldHandlerList();
- // __GBO__ Maybe it could be usefull to define a getFieldHandlerList with a datasourceId in argument
+ // __GBO__ Maybe it could be useful to define a getFieldHandlerList with a datasourceId in argument
string getFieldRepresentation(in long fieldHandlerId);
// Persistency management
void updateFieldMetadata(in long fieldHandlerId,
- in string fieldname,
- in long iteration,
- in long order,
- in string source);
+ in string fieldname,
+ in long iteration,
+ in long order,
+ in string source);
//void saveFields(in FieldHandlerList fieldHandlerList, in string filepath);
void changeUnderlyingMesh(in long fieldHandlerId, in long meshHandlerId)
raises (SALOME::SALOME_Exception);
-
+
+ FieldHandler interpolateField(in long fieldHandlerId, in long meshHandlerId, in InterpolationParameters params)
+ raises (SALOME::SALOME_Exception);
+
//==========================================================
// General purpose data management
//==========================================================
// Print out server data
void serverlog();
+
+ void cleanUp() raises (SALOME::SALOME_Exception);
};
};