Salome HOME
Merge from V6_main 13/12/2012
[modules/hexablock.git] / idl / Edge.idl
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 __Edge_idl__
20 #define __Edge_idl__
21 /*!
22  \defgroup EXAMPLES SALOME EXAMPLES components
23  */
24 #include "SALOME_Exception.idl"
25 #include "SALOME_GenericObj.idl"
26
27 #include "GEOM_Gen.idl"
28
29 #include "Element.idl"
30 #include "Vertex.idl"
31
32
33 /*!  \ingroup EXAMPLES
34
35 This package contains the interface HEXABLOCK_ORB used
36 for  %HEXABLOCK component as an example in %SALOME application.
37 */
38 module HEXABLOCK_ORB
39 {
40
41   struct EdgeAssociation
42   {
43     GEOM::GEOM_Object geomObj;
44     double debut;
45     double fin;
46   };
47
48   typedef sequence<EdgeAssociation>  EdgeAssociations;
49
50   interface Edge : Element
51   {
52     Vertex getVertex( in long n ) raises (SALOME::SALOME_Exception);
53     boolean getWay() raises (SALOME::SALOME_Exception);
54
55     void clearAssociation ( )
56           raises (SALOME::SALOME_Exception);
57
58     void setColor (in double val)
59          raises (SALOME::SALOME_Exception);
60
61     long addAssociation (in NewShape geom, in long subid, in double debut,
62                                                           in double fin )
63                        raises (SALOME::SALOME_Exception);
64   };
65
66   typedef sequence<Edge>  Edges;
67 };
68
69 #endif