Salome HOME
ae9accebdf1c3c9a83932c71bcdf22e2523fd17c
[modules/hexablock.git] / src / HEXABLOCK / HexShape.hxx
1
2 // class : Gestion des formes associees
3
4 // Copyright (C) 2009-2023  CEA, EDF
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef __SHAPE_H_
24 #define __SHAPE_H_
25
26 #include "hexa_base.hxx"
27
28 BEGIN_NAMESPACE_HEXA
29
30 class HexaExport Shape 
31 {
32 public :
33     Shape (std::string brep);
34     std::string getBrep  () { return b_rep; }
35     std::string getIdent () { return ident; }
36     std::string getIor   () { return ior; }
37
38     double getStart () { return debut;  }
39     double getEnd   () { return fin;   }
40     void   getBounds (double& pdeb, double& pfin)  { pdeb=debut ; pfin = fin; }
41
42     void  setBrep   (std::string brep)               { b_rep = brep; }
43     void  setIdent  (std::string name)               { ident = name; }
44     void  setIor    (std::string val)                { ior   = val; }
45
46     void  setBounds (double pdeb, double pfin)  { debut = pdeb ; fin = pfin; }
47     void  setStart  (double val)                { debut = val ; }
48     void  setEnd    (double val)                { fin   = val ; }
49
50     void  saveXml   (XmlWriter* xml);
51
52 private :
53     double debut;
54     double fin;
55     std::string ident;
56     std::string ior;
57
58     std::string b_rep;
59 };
60 END_NAMESPACE_HEXA
61 #endif