1 #ifndef __HexElements_impl__
2 #define __HexElements_impl__
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)
11 #include "SALOME_GenericObj_i.hh"
13 #include "hexa_base.hxx"
14 #include "HexElements.hxx"
16 using namespace HEXABLOCK_ORB;
18 class Elements_impl : public POA_HEXABLOCK_ORB::Elements,
19 public SALOME::GenericObj_i
22 Elements_impl(HEXA_NS::Elements *ptrCpp);
23 HEXA_NS::Elements* GetImpl();
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);
35 Vertex_ptr getVertexIJK(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
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);
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);
45 Hexa_ptr getHexaIJK(::CORBA::Long x, ::CORBA::Long y, ::CORBA::Long z) throw (SALOME::SALOME_Exception);
48 // Quad_ptr getQuad1(EnumCoord dir, ::CORBA::Long nx, ::CORBA::Long ny, ::CORBA::Long nz)
49 // throw (SALOME::SALOME_Exception);
51 // Edge_ptr getEdge1(EnumCoord dir, ::CORBA::Long nx, ::CORBA::Long ny, ::CORBA::Long nz)
52 // throw (SALOME::SALOME_Exception);
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);
59 HEXA_NS::Elements *_elements_cpp;
60 // void *_elements_cpp;