]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK_I/HexElements_impl.hxx
Salome HOME
First publish of HEXABLOCKcomponant
[modules/hexablock.git] / src / HEXABLOCK_I / HexElements_impl.hxx
1 #ifndef __HexElements_impl__
2 #define __HexElements_impl__
3
4 #include <SALOMEconfig.h>
5 #include CORBA_SERVER_HEADER(Elements)
6 // #include CORBA_SERVER_HEADER(Vertex)
7 // #include CORBA_SERVER_HEADER(Edge)
8 // #include CORBA_SERVER_HEADER(Quad)
9 // #include CORBA_SERVER_HEADER(Hexa)
10
11 #include "SALOME_GenericObj_i.hh"
12
13 #include "hexa_base.hxx"
14 #include "HexElements.hxx"
15
16 using namespace HEXABLOCK_ORB;
17
18 class Elements_impl : public POA_HEXABLOCK_ORB::Elements,
19                       public SALOME::GenericObj_i
20 {
21 public:
22     Elements_impl(HEXA_NS::Elements *ptrCpp);
23     HEXA_NS::Elements* GetImpl();
24
25     ::CORBA::Long countVertex() throw (SALOME::SALOME_Exception);
26     ::CORBA::Long countEdge() throw (SALOME::SALOME_Exception);
27     ::CORBA::Long countQuad() throw (SALOME::SALOME_Exception);
28     ::CORBA::Long countHexa() throw (SALOME::SALOME_Exception);
29     ::CORBA::Long findVertex( Vertex_ptr p ) throw (SALOME::SALOME_Exception);
30     Vertex_ptr getVertex(::CORBA::Long n) throw (SALOME::SALOME_Exception);
31     Edge_ptr getEdge(::CORBA::Long n) throw (SALOME::SALOME_Exception);
32     Quad_ptr getQuad(::CORBA::Long n) throw (SALOME::SALOME_Exception);
33     Hexa_ptr getHexa(::CORBA::Long n) throw (SALOME::SALOME_Exception);
34
35     Vertex_ptr getVertexIJK(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
36
37     Edge_ptr getEdgeI(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
38     Edge_ptr getEdgeJ(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
39     Edge_ptr getEdgeK(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
40
41     Quad_ptr getQuadIJ(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
42     Quad_ptr getQuadIK(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
43     Quad_ptr getQuadJK(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
44
45     Hexa_ptr getHexaIJK(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
46
47
48 //     Quad_ptr getQuad1(EnumCoord dir, ::CORBA::Long nx, ::CORBA::Long ny, ::CORBA::Long nz)
49 //       throw (SALOME::SALOME_Exception);
50 // 
51 //     Edge_ptr getEdge1(EnumCoord dir, ::CORBA::Long nx, ::CORBA::Long ny, ::CORBA::Long nz)
52 //       throw (SALOME::SALOME_Exception);
53
54     ::CORBA::Long saveVtk(const char* fname) throw (SALOME::SALOME_Exception);
55     void dump() throw (SALOME::SALOME_Exception);
56     void printName() throw (SALOME::SALOME_Exception);
57
58 private:
59   HEXA_NS::Elements *_elements_cpp;
60 //   void *_elements_cpp;
61
62 };
63
64 #endif