1 |
francois |
283 |
//--------------------------------------------------------------------------- |
2 |
|
|
//------------------------------------------------------------ |
3 |
|
|
//------------------------------------------------------------ |
4 |
|
|
// MAGiC |
5 |
|
|
// Jean Christophe Cuilli�re et Vincent FRANCOIS |
6 |
|
|
// D�partement de G�nie M�canique - UQTR |
7 |
|
|
//------------------------------------------------------------ |
8 |
|
|
// Le projet MAGIC est un projet de recherche du d�partement |
9 |
|
|
// de g�nie m�canique de l'Universit� du Qu�bec � |
10 |
|
|
// Trois Rivi�res |
11 |
|
|
// Les librairies ne peuvent �tre utilis�es sans l'accord |
12 |
|
|
// des auteurs (contact : francois@uqtr.ca) |
13 |
|
|
//------------------------------------------------------------ |
14 |
|
|
//------------------------------------------------------------ |
15 |
|
|
// |
16 |
|
|
// OCC_Courbe.h |
17 |
|
|
// |
18 |
|
|
//------------------------------------------------------------ |
19 |
|
|
//------------------------------------------------------------ |
20 |
|
|
// COPYRIGHT 2000 |
21 |
|
|
// Version du 02/03/2006 � 11H22 |
22 |
|
|
//------------------------------------------------------------ |
23 |
|
|
//------------------------------------------------------------ |
24 |
|
|
//--------------------------------------------------------------------------- |
25 |
|
|
#ifdef BREP_OCC |
26 |
|
|
#ifndef OCC_CourbeH |
27 |
|
|
#define OCC_CourbeH |
28 |
|
|
//--------------------------------------------------------------------------- |
29 |
|
|
|
30 |
|
|
#ifdef WINDOWS_VERSION |
31 |
|
|
#ifdef BUILT_DLL_GEOMETRIE |
32 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllexport) |
33 |
|
|
#else |
34 |
|
|
#define DLLPORTGEOMETRIE __declspec(dllimport) |
35 |
|
|
#endif |
36 |
|
|
#else |
37 |
|
|
#define DLLPORTGEOMETRIE |
38 |
|
|
#endif |
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
#include "mg_courbe.h" |
43 |
|
|
#include "Geom_Curve.hxx" |
44 |
couturad |
740 |
#include "occ_fonction.h" |
45 |
francois |
283 |
#include "TopoDS_Edge.hxx" |
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
class DLLPORTGEOMETRIE OCC_COURBE:public MG_COURBE |
53 |
|
|
{ |
54 |
|
|
public: |
55 |
couturad |
906 |
OCC_COURBE(unsigned long num,TopoDS_Edge crb, OCC_FONCTION* fonc); |
56 |
|
|
OCC_COURBE(TopoDS_Edge crb, OCC_FONCTION* fonc); |
57 |
|
|
OCC_COURBE(TopoDS_Edge crb); |
58 |
francois |
283 |
OCC_COURBE(OCC_COURBE& mdd); |
59 |
|
|
virtual ~OCC_COURBE(); |
60 |
|
|
virtual void evaluer(double t, double *xyz); |
61 |
|
|
virtual void deriver(double t, double *xyz ); |
62 |
|
|
virtual void deriver_seconde(double t,double *ddxyz,double *dxyz,double *xyz); |
63 |
|
|
virtual void inverser(double& t,double *xyz,double precision=1e-6); |
64 |
couturad |
906 |
virtual bool est_sur_courbe(double *xyz,double precision=1e-6); |
65 |
|
|
|
66 |
francois |
283 |
virtual int est_periodique(void); |
67 |
|
|
virtual double get_periode(void); |
68 |
|
|
virtual double get_longueur(double t1,double t2,double precis=1e-6); |
69 |
francois |
763 |
virtual void enregistrer(std::ostream& o,double version); |
70 |
francois |
283 |
|
71 |
|
|
virtual int get_type_geometrique(TPL_LISTE_ENTITE<double> ¶m); |
72 |
|
|
virtual void get_param_NURBS(int& indx_premier_ptctr,TPL_LISTE_ENTITE<double> ¶m); |
73 |
couturad |
906 |
virtual void change_occ_fonction(OCC_FONCTION* fonction); |
74 |
francois |
283 |
|
75 |
|
|
private: |
76 |
|
|
TopoDS_Edge edge; |
77 |
couturad |
906 |
class OCC_FONCTION* fonction1; |
78 |
francois |
283 |
|
79 |
|
|
|
80 |
|
|
}; |
81 |
|
|
|
82 |
|
|
|
83 |
|
|
#endif |
84 |
|
|
#endif |