ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/sld_fonction.h
Revision: 23
Committed: Wed Jul 4 21:15:31 2007 UTC (17 years, 10 months ago) by bournival
Content type: text/plain
Original Path: magic/lib/geometrie/geometrie/src/sld_fonction.h
File size: 2630 byte(s)
Log Message:

File Contents

# User Rev Content
1 5 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuillière et Vincent FRANCOIS
5     // Département de Génie Mécanique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du département
8     // de génie mécanique de l'Université du Québec à
9     // Trois Rivières
10     // Les librairies ne peuvent être utilisées sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // sld_fonction.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifdef BREP_SLD
24    
25    
26    
27     #ifndef sld_fonctionH
28     #define sld_fonctionH
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     #include <atl\atlmod.h>
41     #include "SldWorks_TLB.h"
42     #include "SwConst_TLB.h"
43    
44    
45    
46    
47     class DLLPORTGEOMETRIE SLD_FONCTION
48     {
49    
50    
51     public:
52     SLD_FONCTION(void) ;
53     ~SLD_FONCTION(void);
54    
55     CComPtr <ISldWorks> swApp;
56     CComPtr <IModelDoc2> swModel;
57    
58     void OuvrirFichier(char* );
59     void Sauvegarder(char* file);
60     void identificateur(void);
61     void VideNom(void);
62     void Fermer(void);
63     void Connection(void);
64    
65     void get_face_tessellation(CComPtr<IFace2> __swFace, long *__triangleCount, double ** __tessPts);
66    
67     void SetID(IFace2* , long type=0 );
68     void SetID(IEdge* ,long type=0 );
69     void SetID(IVertex* ,long type=0);
70    
71     void EffaceID(IFace2* );
72     void EffaceID(IEdge* );
73     void EffaceID(IVertex* );
74    
75     BOOL GetParID(char* ID,CComPtr<IFace2>&);
76     BOOL GetParID(char* ID,CComPtr<IEdge>&);
77     BOOL GetParID(char* ID,CComPtr<IVertex>&);
78     BOOL GetParID(char* ID,CComPtr<ISurface>&);
79     BOOL GetParID(char* ID,CComPtr<ICurve>& );
80     BOOL GetParID(BSTR nom,CComPtr<IFace2>&);
81     BOOL GetParID(BSTR nom,CComPtr<IEdge>&);
82     BOOL GetParID(BSTR nom,CComPtr<IVertex>&);
83    
84     class AnsiString GetID(IEdge* );
85     class AnsiString GetID(IFace2* );
86     class AnsiString GetID(IVertex* );
87    
88     CComPtr <IAttributeDef> DefAttrDoublon;
89    
90 bournival 23 double GetValeurTolerance();
91    
92 5 private:
93     int ouvert;
94 bournival 23 double tolerance;
95 5
96    
97     };
98     #endif
99     #endif
100    
101    
102