]> SALOME platform Git repositories - modules/hexablock.git/blob - src/HEXABLOCK_I/HexQuad_impl.hxx
Salome HOME
Merge from V6_main 01/04/2013
[modules/hexablock.git] / src / HEXABLOCK_I / HexQuad_impl.hxx
1 // Copyright (C) 2009-2013  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 __HexQuad_impl__
20 #define __HexQuad_impl__
21
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(GEOM_Gen)
24 #include CORBA_SERVER_HEADER(Quad)
25 #include "SALOME_GenericObj_i.hh"
26
27 #include "hexa_base.hxx"
28 #include "HexQuad.hxx"
29
30 using namespace HEXABLOCK_ORB;
31
32 class Quad_impl : public POA_HEXABLOCK_ORB::Quad,
33                   public SALOME::GenericObj_i
34 {
35 public:
36   Quad_impl(HEXA_NS::Quad *ptrCpp);
37   HEXA_NS::Quad* GetImpl() throw (SALOME::SALOME_Exception);
38
39   Edge_ptr getEdge(::CORBA::Long n) throw (SALOME::SALOME_Exception);
40   Vertex_ptr getVertex(::CORBA::Long n) throw (SALOME::SALOME_Exception);
41
42   ::CORBA::Long addAssociation (NewShape_ptr geom, ::CORBA::Long subid)
43                          throw (SALOME::SALOME_Exception);
44
45   GEOM::ListOfGO* getAssociations () //CS_NOT_SPEC
46       throw (SALOME::SALOME_Exception);
47
48
49   void clearAssociation() throw (SALOME::SALOME_Exception);
50
51   void setColor (::CORBA::Double val)  throw (SALOME::SALOME_Exception);
52   void setScalar( ::CORBA::Double val )throw (SALOME::SALOME_Exception);
53   void dump() throw (SALOME::SALOME_Exception);
54   void printName() throw (SALOME::SALOME_Exception);
55   char* getName() throw (SALOME::SALOME_Exception);
56   void  setName (const char* name) throw (SALOME::SALOME_Exception);
57
58 private:
59   HEXA_NS::Quad *_quad_cpp;
60 };
61
62 #endif