Salome HOME
Porting HEXABLOCK module on WIN32 platform.
[modules/hexablock.git] / src / HEXABLOCK / HexShape.hxx
1
2 // class : Gestion des formes associees
3
4 // Copyright (C) 2009-2013  CEA/DEN, EDF R&D
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.
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 "Hex_defines.hxx"
27 #include "hexa_base.hxx"
28
29 BEGIN_NAMESPACE_HEXA
30
31 class HEXABLOCKENGINE_EXPORT Shape 
32 {
33 public :
34     Shape (string brep);
35     string getBrep  () { return b_rep; }
36     string getIdent () { return ident; }
37     string getIor   () { return ior; }
38
39     double getStart () { return debut;  }
40     double getEnd   () { return fin;   }
41     void   getBounds (double& pdeb, double& pfin)  { pdeb=debut ; pfin = fin; }
42
43     void  setBrep   (string brep)               { b_rep = brep; }
44     void  setIdent  (string name)               { ident = name; }
45     void  setIor    (string val)                { ior   = val; }
46
47     void  setBounds (double pdeb, double pfin)  { debut = pdeb ; fin = pfin; }
48     void  setStart  (double val)                { debut = val ; }
49     void  setEnd    (double val)                { fin   = val ; }
50
51     void  saveXml   (XmlWriter* xml);
52
53 private :
54     double debut;
55     double fin;
56     string ident;
57     string ior;
58
59     std::string b_rep;
60 };
61 END_NAMESPACE_HEXA
62 #endif