Salome HOME
Merge from V6_main_20120808 08Aug12
[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     long addAssociation (in GEOM::GEOM_Object geom_object_1D, in double debut, in double val ) //CS_NOT_SPEC
56       raises (SALOME::SALOME_Exception);
57
58       void clearAssociation ( ) 
59           raises (SALOME::SALOME_Exception);
60
61 //     sequence<EdgeAssociation> getAssociations() //CS_NOT_SPEC
62     EdgeAssociations getAssociations() //CS_NOT_SPEC CS_WARNING: not working when reloading a document
63       raises (SALOME::SALOME_Exception);
64
65 //     void addAssociation( in GEOM::GEOM_Object geom_object_1D, in double debut, in double val )
66 //       raises (SALOME::SALOME_Exception);
67 //     GEOM_Objects getAssociations() raises (SALOME::SALOME_Exception);
68
69 //     GEOM_Objects GEOM::GEOM_Object getAssociation()
70 //             raises (SALOME::SALOME_Exception);
71
72 //     void removeAssociation()
73 //             raises (SALOME::SALOME_Exception);
74
75      void setScalar( in double val ) //CS_NOT_SPEC
76         raises (SALOME::SALOME_Exception);
77
78   };
79
80   typedef sequence<Edge>  Edges;
81
82
83 };
84
85 #endif