MAGiC  V5.0
Mailleurs Automatiques de Géometries intégrés à la Cao
sld_fonction.h
Aller à la documentation de ce fichier.
1 //####//------------------------------------------------------------
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 #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 
38 {
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 
SLD_FONCTION::Fermer
void Fermer(void)
Definition: sld_fonction.cpp:172
SLD_FONCTION::VideNom
void VideNom(void)
Definition: sld_fonction.cpp:282
SLD_FONCTION::GetValeurTolerance
double GetValeurTolerance()
Definition: sld_fonction.cpp:812
SLD_FONCTION::SetID
void SetID(IFace2 *, long type=0)
Definition: sld_fonction.cpp:596
SLD_FONCTION::SLD_FONCTION
SLD_FONCTION(void)
Definition: sld_fonction.cpp:40
SLD_FONCTION
Definition: sld_fonction.h:37
SLD_FONCTION::swApp
CComPtr< ISldWorks > swApp
Definition: sld_fonction.h:45
SLD_FONCTION::Sauvegarder
void Sauvegarder(char *file)
Definition: sld_fonction.cpp:139
SLD_FONCTION::identificateur
void identificateur(void)
Definition: sld_fonction.cpp:188
SLD_FONCTION::OuvrirFichier
void OuvrirFichier(char *)
Definition: sld_fonction.cpp:52
SLD_FONCTION::get_face_tessellation
void get_face_tessellation(CComPtr< IFace2 > __swFace, long *__triangleCount, double **__tessPts)
Definition: sld_fonction.cpp:78
SLD_FONCTION::Modeler_SetToleranceValue
void Modeler_SetToleranceValue(long iTol, double __tolerance)
Definition: sld_fonction.cpp:106
SLD_FONCTION::DefAttrDoublon
CComPtr< IAttributeDef > DefAttrDoublon
Definition: sld_fonction.h:81
SLD_FONCTION::EffaceID
void EffaceID(IFace2 *)
Definition: sld_fonction.cpp:626
SLD_FONCTION::tolerance
double tolerance
Definition: sld_fonction.h:88
SLD_FONCTION::Connection
void Connection(void)
Definition: sld_fonction.cpp:158
SLD_FONCTION::sensMaitre
double sensMaitre
Definition: sld_fonction.h:84
SLD_FONCTION::swModel
CComPtr< IModelDoc2 > swModel
Definition: sld_fonction.h:46
SLD_FONCTION::GetParID
BOOL GetParID(char *ID, CComPtr< IFace2 > &)
Definition: sld_fonction.cpp:381
SLD_FONCTION::ouvert
int ouvert
Definition: sld_fonction.h:87
SLD_FONCTION::GetID
class AnsiString GetID(IEdge *)
Definition: sld_fonction.cpp:728
SLD_FONCTION::~SLD_FONCTION
~SLD_FONCTION(void)
Definition: sld_fonction.cpp:45