Salome HOME
Updated copyright comment
[modules/hexablock.git] / src / HEXABLOCK / HexNewShape.hxx
index eb5765959b8c2c79812f8dfe3748e5074c3f9a54..9507a65c49bf2bf7ea45c7d32730ccd05f1b1811 100644 (file)
@@ -1,6 +1,25 @@
 
 // class : Gestion des formes associees (Hexa 5)
 
+// Copyright (C) 2009-2024  CEA, EDF
+//
+// 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
+//
+
 #ifndef __NEW_SHAPE_H_
 #define __NEW_SHAPE_H_
 
@@ -34,7 +53,7 @@ public :         // for TUI
 
 #ifndef SWIG
 public :         // for GUI
-   const string&       getBrep ();
+   cpchar              getBrep ();
    const TopoDS_Shape& getShape ();
 
    EnumShape    getOrigin ()        { return sh_origin ; }
@@ -51,11 +70,14 @@ public :         // for Others
    void  addAssociation (Quad*   elt, int subid);
 
    VertexShape* findVertex   (int subid);
+   VertexShape* findVertex   (double point[]);
    EdgeShape*   findEdge     (int subid);
+   EdgeShape*   findEdge     (double p1[], double p2[]);
    FaceShape*   findFace     (int subid);
 
    SubShape*    findSubShape (int subid);
 
+
    const TopoDS_Shape& getGeoShape (int subid);
 
    int   saveBrep ();
@@ -81,7 +103,7 @@ private :     // ________________________________________________________
    TopoDS_Shape    geo_shape;
 
    EnumShape    sh_origin;
-   string       geo_brep;
+   std::string  geo_brep;
    bool         brep_defined, shape_defined;
 
    TopTools_IndexedMapOfShape map_shape;