1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/
20 #ifndef _COORDINATE_CLIENT_HXX
21 #define _COORDINATE_CLIENT_HXX
23 #include <SALOMEconfig.h>
24 #include "MEDMEM_Coordinate.hxx"
25 #include CORBA_CLIENT_HEADER(MED)
28 class COORDINATEClient : public COORDINATE {
32 mutable bool _complete;
33 SALOME_MED::MESH_var IOR_Mesh ;
38 COORDINATEClient constructor
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.
43 Parameters in : m (Mesh Corba IOR)
44 mode (FULL_ or NO_ interlace)
46 COORDINATEClient(const SALOME_MED::MESH_ptr m, MED_EN::medModeSwitch Mode);
50 COORDINATEClient::blankCopy()
52 "(Re)Blank" the coordinate object.
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
63 COORDINATEClient::fillCopy()
65 (Re)fill the coordinate object from the Corba IOR
70 virtual ~COORDINATEClient() {};
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;