X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHEXABLOCK%2FHexNewShape.hxx;h=20b3bccd70214182a7ad36c57c51929f75ff120f;hb=9e17eedef4be735106e6d2ea4bb51e3ce116d0e3;hp=3c1a17e293bbc2505a72706b6aef9e3f44a9d40b;hpb=624082b6806f6695a1e2f31ba595534e464f0f91;p=modules%2Fhexablock.git diff --git a/src/HEXABLOCK/HexNewShape.hxx b/src/HEXABLOCK/HexNewShape.hxx index 3c1a17e..20b3bcc 100644 --- a/src/HEXABLOCK/HexNewShape.hxx +++ b/src/HEXABLOCK/HexNewShape.hxx @@ -1,10 +1,28 @@ // class : Gestion des formes associees (Hexa 5) +// Copyright (C) 2009-2015 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 +// + #ifndef __NEW_SHAPE_H_ #define __NEW_SHAPE_H_ -#include "Hex_defines.hxx" #include "HexEltBase.hxx" #ifndef SWIG @@ -16,7 +34,7 @@ BEGIN_NAMESPACE_HEXA -class HEXABLOCKENGINE_EXPORT NewShape : public EltBase +class HexaExport NewShape : public EltBase { public : // for TUI virtual int countVertex () { return tab_vertex.size (); } @@ -35,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 ; } @@ -52,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 ();