ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/mg_assemblage.h
Revision: 740
Committed: Wed Sep 30 22:24:50 2015 UTC (9 years, 7 months ago) by couturad
Content type: text/plain
File size: 2368 byte(s)
Log Message:
Ajout d'assemblage dans un arbre caractéristique
Modification de la gestion des id de occ avec retro-compatibilité
script adaptable au assemblage

File Contents

# User Rev Content
1 couturad 740 //------------------------------------------------------------
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     // mg_assemblage.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 � 11H22
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifdef CSG_OCC
24    
25    
26     #ifndef __MGASSEMBLAGE_
27     #define __MGASSEMBLAGE_
28    
29     #ifdef WINDOWS_VERSION
30     #ifdef BUILT_DLL_GEOMETRIE
31     #define DLLPORTGEOMETRIE __declspec(dllexport)
32     #else
33     #define DLLPORTGEOMETRIE __declspec(dllimport)
34     #endif
35     #else
36     #define DLLPORTGEOMETRIE
37     #endif
38    
39     #include "mg_construction_geometrique.h"
40    
41    
42    
43    
44     #include <map>
45    
46     class MG_PRIMITIVE;
47    
48     typedef std::map<unsigned long,MG_PRIMITIVE*,std::less<unsigned long> > LISTE_MG_PRIMITIVE;
49    
50     class DLLPORTGEOMETRIE MG_ASSEMBLAGE : public MG_CONSTRUCTION_GEOMETRIQUE
51     {
52     public:
53     MG_ASSEMBLAGE(std::string nm);
54     MG_ASSEMBLAGE(unsigned long num,std::string nm);
55     MG_ASSEMBLAGE(MG_ASSEMBLAGE& mdd);
56     virtual ~MG_ASSEMBLAGE();
57    
58     int ajouter_mg_primitive(MG_PRIMITIVE *mgprim);
59     MG_PRIMITIVE* get_mg_primitiveid(unsigned long num);
60     MG_PRIMITIVE* get_mg_primitive(unsigned int num);
61     MG_PRIMITIVE* get_premier_primitive(LISTE_MG_PRIMITIVE::iterator & it);
62     MG_PRIMITIVE* get_suivant_primitive(LISTE_MG_PRIMITIVE::iterator & it);
63     unsigned int get_nb_mg_primitive(void);
64     int supprimer_mg_primitiveid(unsigned long num);
65     int supprimer_mg_primitive(unsigned int num);
66     void supprimer_tout_mg_primitive(void);
67    
68     virtual void enregistrer(std::ostream& o);
69    
70     private:
71    
72     protected:
73     LISTE_MG_PRIMITIVE lst_mg_primitive;
74     std::string nom;
75     };
76    
77    
78     #endif
79    
80     #endif