1 // Copyright (C) 2009-2013 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #ifndef __HexVertex_impl__
20 #define __HexVertex_impl__
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(Vertex)
24 #include "SALOME_GenericObj_i.hh"
26 #include "hexa_base.hxx"
28 #include "HexVertex.hxx"
29 #include "HexNewShape_impl.hxx"
31 class Vertex_impl : public POA_HEXABLOCK_ORB::Vertex,
32 public SALOME::GenericObj_i
35 Vertex_impl(HEXA_NS::Vertex *ptrCpp);
36 HEXA_NS::Vertex* GetImpl();
38 ::CORBA::Double getX() throw (SALOME::SALOME_Exception);
39 ::CORBA::Double getY() throw (SALOME::SALOME_Exception);
40 ::CORBA::Double getZ() throw (SALOME::SALOME_Exception);
42 void setX(::CORBA::Double x) throw (SALOME::SALOME_Exception);
43 void setY(::CORBA::Double y) throw (SALOME::SALOME_Exception);
44 void setZ(::CORBA::Double z) throw (SALOME::SALOME_Exception);
45 GEOM::GEOM_Object_ptr getAssociation() throw (SALOME::SALOME_Exception);
46 void clearAssociation() throw (SALOME::SALOME_Exception);
48 void setColor (::CORBA::Double val) throw (SALOME::SALOME_Exception);
50 void dump() throw (SALOME::SALOME_Exception);
51 void printName() throw (SALOME::SALOME_Exception);
52 char* getName() throw (SALOME::SALOME_Exception);
53 void setName (const char* name) throw (SALOME::SALOME_Exception);
55 ::CORBA::Long setAssociation (NewShape_ptr geom, ::CORBA::Long subid)
56 throw (SALOME::SALOME_Exception); // Hexa5
58 ::CORBA::Double getAssoX() throw (SALOME::SALOME_Exception);
59 ::CORBA::Double getAssoY() throw (SALOME::SALOME_Exception);
60 ::CORBA::Double getAssoZ() throw (SALOME::SALOME_Exception);
63 HEXA_NS::Vertex* _vertex_cpp;