Salome HOME
Updated copyright comment
[modules/hexablock.git] / src / HEXABLOCK / HexAssoEdge.hxx
index b14107cb972a39d407a29d7e443b34833e139088..6712f030ddc258dfbd5b171cb54f47c14ae1bf86 100644 (file)
@@ -1,33 +1,51 @@
 
 // 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 __ASSO_EDGE_H_
 #define __ASSO_EDGE_H_
 
 #include "HexEdgeShape.hxx"
 
-#ifndef NO_CASCADE
 #include <TopTools_IndexedMapOfShape.hxx>
 #include <TopoDS_Shape.hxx>
-#endif
 
 BEGIN_NAMESPACE_HEXA
 
-class AssoEdge
+class HexaExport AssoEdge
 {
 public :
     AssoEdge (EdgeShape* shape, double deb, double fin);
+    virtual ~AssoEdge ()         {}
 
-    EdgeShape*         getEdgeShape() { return arc_line; }
-    BRepAdaptor_Curve* getCurve ()   { return arc_curve; }
-    double             getStart ()   { return arc_para1; }
-    double             getEnd   ()   { return arc_para2; }
+    EdgeShape*         getEdgeShape() { return arc_line;  }
+    BRepAdaptor_Curve* getCurve ()    { return arc_curve; }
+    double             getStart ()    { return arc_para1; }
+    double             getEnd   ()    { return arc_para2; }
     double             length   ();
     double             getUstart ();                       // for Mesh Plugin
 
 
-    const double*      getOrigin ()  { return arc_start; }
-    const double*      getExtrem ()  { return arc_end;   }
+    const double*      getOrigin ()   { return arc_start; }
+    const double*      getExtrem ()   { return arc_end;   }
 
     int onExtremity (AssoEdge* other, int& ext_other);
     int onExtremity (double* point);
@@ -45,7 +63,7 @@ private :
 
     bool    arc_reverse;
     Real3   arc_start,  arc_end;
-    BRepAdaptor_Curve*  arc_curve;    // Duplication a cause du plugin BP
+    BRepAdaptor_Curve*  arc_curve;  // Duplication a cause du plugin BP
 };
 END_NAMESPACE_HEXA
 #endif