Salome HOME
6d6da5147c2ac5292996bcb1a6c9706bf38779d0
[modules/hexablock.git] / src / HEXABLOCK_I / HexVertex_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 __HexVertex_impl__
20 #define __HexVertex_impl__
21
22 // #include <TopoDS_Shape.hxx>
23
24 #include <SALOMEconfig.h>
25 #include CORBA_SERVER_HEADER(Vertex)
26 #include "SALOME_GenericObj_i.hh"
27
28 #include "hexa_base.hxx"
29
30 #include "hexa_base.hxx"
31 #include "HexVertex.hxx"
32
33 class Vertex_impl : public POA_HEXABLOCK_ORB::Vertex,
34                     public SALOME::GenericObj_i
35 {
36 public:
37   Vertex_impl(HEXA_NS::Vertex *ptrCpp);
38   HEXA_NS::Vertex* GetImpl();
39
40   ::CORBA::Double getX() throw (SALOME::SALOME_Exception);
41   ::CORBA::Double getY() throw (SALOME::SALOME_Exception);
42   ::CORBA::Double getZ() throw (SALOME::SALOME_Exception);
43   void setX(::CORBA::Double x) throw (SALOME::SALOME_Exception);
44   void setY(::CORBA::Double y) throw (SALOME::SALOME_Exception);
45   void setZ(::CORBA::Double z) throw (SALOME::SALOME_Exception);
46   void setAssociation(GEOM::GEOM_Object_ptr geom_object_vertex) throw (SALOME::SALOME_Exception);
47   GEOM::GEOM_Object_ptr getAssociation() throw (SALOME::SALOME_Exception);
48   void clearAssociation() throw (SALOME::SALOME_Exception);
49
50   void setScalar( ::CORBA::Double val )throw (SALOME::SALOME_Exception);
51
52   void dump() throw (SALOME::SALOME_Exception);
53   void printName() throw (SALOME::SALOME_Exception);
54   char* getName() throw (SALOME::SALOME_Exception);
55   void  setName (const char* name) throw (SALOME::SALOME_Exception);
56
57 private:
58   HEXA_NS::Vertex* _vertex_cpp;
59 //   GEOM::GEOM_Object_ptr _association;
60 };
61
62 #endif