Salome HOME
Update copyrights
[modules/hexablock.git] / src / HEXABLOCK / HexShape.hxx
old mode 100755 (executable)
new mode 100644 (file)
index cec8612..b5f625e
@@ -1,8 +1,25 @@
 
-// Class : Implementation provisoire et symbolique de la classe "shape"
+// class : Gestion des formes associees
+
+// Copyright (C) 2009-2019  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-// #ifdef  _NO_CASCADE 
 #ifndef __SHAPE_H_
 #define __SHAPE_H_
 
 
 BEGIN_NAMESPACE_HEXA
 
-class Shape 
+class HexaExport Shape 
 {
 public :
     Shape (string brep);
-    string getBrep ()  { return b_rep; }
+    string getBrep  () { return b_rep; }
+    string getIdent () { return ident; }
+    string getIor   () { return ior; }
 
-public :
-    double debut;   
-    double fin;   
+    double getStart () { return debut;  }
+    double getEnd   () { return fin;   }
+    void   getBounds (double& pdeb, double& pfin)  { pdeb=debut ; pfin = fin; }
 
-public :
-    // char* getName (char* buffer);
+    void  setBrep   (string brep)               { b_rep = brep; }
+    void  setIdent  (string name)               { ident = name; }
+    void  setIor    (string val)                { ior   = val; }
+
+    void  setBounds (double pdeb, double pfin)  { debut = pdeb ; fin = pfin; }
+    void  setStart  (double val)                { debut = val ; }
+    void  setEnd    (double val)                { fin   = val ; }
+
+    void  saveXml   (XmlWriter* xml);
 
 private :
-    // int nro_shape;
-    // static int nbr_shapes;
+    double debut;
+    double fin;
+    string ident;
+    string ior;
+
     std::string b_rep;
 };
-
-typedef Shape* TopoDS_Shape;
-
 END_NAMESPACE_HEXA
 #endif
-// #endif