]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK_I/HexCrossElements_impl.hxx
Salome HOME
Set dev tag back to 1
[modules/hexablock.git] / src / HEXABLOCK_I / HexCrossElements_impl.hxx
1 // Copyright (C) 2009-2012  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.
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 #ifndef __HexCrossElements_impl__
20 #define __HexCrossElements_impl__
21
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(CrossElements)
24 #include "SALOME_GenericObj_i.hh"
25
26 #include "hexa_base.hxx"
27 #include "HexCrossElements.hxx"
28
29 using namespace HEXABLOCK_ORB;
30
31 class CrossElements_impl : public POA_HEXABLOCK_ORB::CrossElements,
32                            public SALOME::GenericObj_i
33 {
34 public:
35     CrossElements_impl(HEXA_NS::CrossElements *ptrCpp);
36     HEXA_NS::CrossElements* GetImpl();
37
38     Vertex_ptr getVertexIJK(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
39
40     Edge_ptr getEdgeI(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
41     Edge_ptr getEdgeJ(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
42     Edge_ptr getEdgeK(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
43
44     Quad_ptr getQuadIJ(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
45     Quad_ptr getQuadIK(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
46     Quad_ptr getQuadJK(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
47
48     Hexa_ptr getHexaIJK(::CORBA::Long part, ::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
49
50     ::CORBA::Long saveVtk(const char* fname) throw (SALOME::SALOME_Exception);
51   void dump() throw (SALOME::SALOME_Exception);
52   void printName() throw (SALOME::SALOME_Exception);
53   char* getName() throw (SALOME::SALOME_Exception);
54   void  setName (const char* name) throw (SALOME::SALOME_Exception);
55
56 private:
57     HEXA_NS::CrossElements *_crossElements_cpp;
58 };
59
60 #endif