ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/mtu/src/sld_fonction.h
Revision: 1158
Committed: Thu Jun 13 22:18:49 2024 UTC (11 months, 1 week ago) by francois
Content type: text/plain
File size: 2576 byte(s)
Log Message:
compatibilité Ubuntu 22.04
Suppression des refeences à Windows
Ajout d'une banière

File Contents

# User Rev Content
1 francois 1158 //####//------------------------------------------------------------
2     //####//------------------------------------------------------------
3     //####// MAGiC
4     //####// Jean Christophe Cuilliere et Vincent FRANCOIS
5     //####// Departement de Genie Mecanique - UQTR
6     //####//------------------------------------------------------------
7     //####// MAGIC est un projet de recherche de l equipe ERICCA
8     //####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres
9     //####// http://www.uqtr.ca/ericca
10     //####// http://www.uqtr.ca/
11     //####//------------------------------------------------------------
12     //####//------------------------------------------------------------
13     //####//
14     //####// sld_fonction.h
15     //####//
16     //####//------------------------------------------------------------
17     //####//------------------------------------------------------------
18     //####// COPYRIGHT 2000-2024
19     //####// jeu 13 jun 2024 11:58:54 EDT
20     //####//------------------------------------------------------------
21     //####//------------------------------------------------------------
22 francois 283 #ifdef BREP_SLD
23    
24    
25    
26     #ifndef sld_fonctionH
27     #define sld_fonctionH
28    
29    
30     #include <atl\atlmod.h>
31     #include "SldWorks_TLB.h"
32     #include "SwConst_TLB.h"
33    
34    
35    
36    
37 francois 1158 class SLD_FONCTION
38 francois 283 {
39    
40    
41     public:
42     SLD_FONCTION(void) ;
43     ~SLD_FONCTION(void);
44    
45     CComPtr <ISldWorks> swApp;
46     CComPtr <IModelDoc2> swModel;
47    
48    
49     void OuvrirFichier(char* );
50     void Sauvegarder(char* file);
51     void identificateur(void);
52     void VideNom(void);
53     void Fermer(void);
54     void Connection(void);
55    
56     void get_face_tessellation(CComPtr<IFace2> __swFace, long *__triangleCount, double ** __tessPts);
57    
58     void Modeler_SetToleranceValue(long iTol, double __tolerance);
59    
60     void SetID(IFace2* , long type=0 );
61     void SetID(IEdge* ,long type=0 );
62     void SetID(IVertex* ,long type=0);
63    
64     void EffaceID(IFace2* );
65     void EffaceID(IEdge* );
66     void EffaceID(IVertex* );
67    
68     BOOL GetParID(char* ID,CComPtr<IFace2>&);
69     BOOL GetParID(char* ID,CComPtr<IEdge>&);
70     BOOL GetParID(char* ID,CComPtr<IVertex>&);
71     BOOL GetParID(char* ID,CComPtr<ISurface>&);
72     BOOL GetParID(char* ID,CComPtr<ICurve>& );
73     BOOL GetParID(BSTR nom,CComPtr<IFace2>&);
74     BOOL GetParID(BSTR nom,CComPtr<IEdge>&);
75     BOOL GetParID(BSTR nom,CComPtr<IVertex>&);
76    
77     class AnsiString GetID(IEdge* );
78     class AnsiString GetID(IFace2* );
79     class AnsiString GetID(IVertex* );
80    
81     CComPtr <IAttributeDef> DefAttrDoublon;
82    
83     double GetValeurTolerance();
84     double sensMaitre;
85    
86     private:
87     int ouvert;
88     double tolerance;
89    
90    
91     };
92     #endif
93     #endif
94    
95    
96