Salome HOME
Copyrights update
[modules/med.git] / src / MedClient / src / COORDINATEClient.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/
19 //
20 #ifndef _COORDINATE_CLIENT_HXX
21 #define _COORDINATE_CLIENT_HXX
22
23 #include <SALOMEconfig.h>
24 #include "MEDMEM_Coordinate.hxx"
25 #include CORBA_CLIENT_HEADER(MED)
26
27 namespace MEDMEM {
28 class COORDINATEClient : public COORDINATE {
29
30 protected:
31
32   mutable bool _complete;
33   SALOME_MED::MESH_var IOR_Mesh ;
34
35 public:
36
37   /*!
38   COORDINATEClient constructor
39   
40   Build an "empty" coordinate object (without the actual coordinate values).
41   The object hold a Corba IOR and get data from it on user demand.
42
43   Parameters in : m (Mesh Corba IOR)
44                   mode (FULL_ or NO_ interlace)
45  */
46   COORDINATEClient(const SALOME_MED::MESH_ptr m, MED_EN::medModeSwitch Mode);
47
48
49   /*!
50   COORDINATEClient::blankCopy()
51   
52   "(Re)Blank" the coordinate object.
53   
54   Update fixed sized data from the Corba IOR (dimensions, strings).
55   Get rid of variable sized data (coordinate values).
56   Next call of getCoordinates (for instance) will update the
57   object.
58   */
59   void blankCopy();
60
61
62   /*!
63   COORDINATEClient::fillCopy()
64   
65   (Re)fill the coordinate object from the Corba IOR 
66   */
67   void fillCopy();
68
69
70   virtual ~COORDINATEClient() {};
71
72   virtual const double *  getCoordinates(MED_EN::medModeSwitch Mode);
73   virtual double          getCoordinate(int Number,int Axis);
74   virtual const double *  getCoordinateAxis(int Axis);
75   virtual const int*      getNodesNumbers() const;
76
77 };
78 };
79
80 #endif