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 |
|
|
//####// mg_assemblage.h |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 11:58:55 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
couturad |
740 |
#ifdef CSG_OCC |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
#ifndef __MGASSEMBLAGE_ |
26 |
|
|
#define __MGASSEMBLAGE_ |
27 |
|
|
|
28 |
|
|
|
29 |
francois |
1158 |
|
30 |
couturad |
740 |
#include "mg_construction_geometrique.h" |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
#include <map> |
36 |
francois |
741 |
#include <vector> |
37 |
couturad |
740 |
|
38 |
|
|
class MG_PRIMITIVE; |
39 |
francois |
741 |
class MG_ARBRE; |
40 |
couturad |
740 |
|
41 |
|
|
typedef std::map<unsigned long,MG_PRIMITIVE*,std::less<unsigned long> > LISTE_MG_PRIMITIVE; |
42 |
|
|
|
43 |
francois |
1158 |
class MG_ASSEMBLAGE : public MG_CONSTRUCTION_GEOMETRIQUE |
44 |
couturad |
740 |
{ |
45 |
|
|
public: |
46 |
|
|
MG_ASSEMBLAGE(std::string nm); |
47 |
|
|
MG_ASSEMBLAGE(unsigned long num,std::string nm); |
48 |
|
|
MG_ASSEMBLAGE(MG_ASSEMBLAGE& mdd); |
49 |
|
|
virtual ~MG_ASSEMBLAGE(); |
50 |
|
|
|
51 |
|
|
int ajouter_mg_primitive(MG_PRIMITIVE *mgprim); |
52 |
francois |
741 |
int ajouter_mg_primitive(unsigned long id); |
53 |
couturad |
740 |
MG_PRIMITIVE* get_mg_primitiveid(unsigned long num); |
54 |
|
|
MG_PRIMITIVE* get_mg_primitive(unsigned int num); |
55 |
|
|
MG_PRIMITIVE* get_premier_primitive(LISTE_MG_PRIMITIVE::iterator & it); |
56 |
|
|
MG_PRIMITIVE* get_suivant_primitive(LISTE_MG_PRIMITIVE::iterator & it); |
57 |
|
|
unsigned int get_nb_mg_primitive(void); |
58 |
|
|
int supprimer_mg_primitiveid(unsigned long num); |
59 |
|
|
int supprimer_mg_primitive(unsigned int num); |
60 |
|
|
void supprimer_tout_mg_primitive(void); |
61 |
francois |
741 |
void ini_donne(MG_ARBRE* arb); |
62 |
francois |
763 |
virtual void enregistrer(std::ostream& o,double version); |
63 |
couturad |
906 |
virtual int get_type_mg_construction_geometrique(void); |
64 |
couturad |
740 |
|
65 |
|
|
private: |
66 |
|
|
|
67 |
|
|
protected: |
68 |
francois |
741 |
LISTE_MG_PRIMITIVE lst_mg_primitive; |
69 |
|
|
std::vector<unsigned long> lst_mg_primitive_id; |
70 |
couturad |
740 |
std::string nom; |
71 |
|
|
}; |
72 |
|
|
|
73 |
|
|
|
74 |
|
|
#endif |
75 |
|
|
|
76 |
|
|
#endif |