2 // class : Gestion des Sous-shapes categorie Edge
4 #ifndef __LIBE_SHAPE_H_
5 #define __LIBE_SHAPE_H_
7 #include "HexSubShape.hxx"
11 class EdgeShape : public SubShape
14 EdgeShape (NewShape* dad, int id);
16 void addAssociation (Edge* elt);
17 int countAssociation () { return tab_assoc.size(); }
18 Edge* getAssociation (int nro);
20 BRepAdaptor_Curve* getCurve ();
21 BRepAdaptor_Curve* makeCurve ();
22 void getCoords (double pstart[], double pend[]);
23 int getPoint (double param, double point[]);
24 double getParam (double point[]);
26 int onExtremity (double point[]);
28 static bool samePoints (double point1[], double point2[]);
30 // void saveXml (XmlWriter* xml);
35 BRepAdaptor_Curve* lin_curve;
38 double lin_length, par_mini, par_maxi;