ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/reconstruction/src/sq_branche.h
Revision: 1005
Committed: Tue Feb 26 14:16:40 2019 UTC (6 years, 2 months ago) by amroune
Content type: text/plain
File size: 1103 byte(s)
Log Message:
-Intégration des espaces de contrôle dans le code pour diminuer le temps d'exécution
-Ajout de la fonction "rayon_max" qui calcul le rayon maximal dans une section
-Ajout de deux fonctions pour l'affichage de voisinage: "affichage_voisinage_seg" et "affichage_voisinage_tri"

File Contents

# User Rev Content
1 amroune 1003 #ifndef _SQ_BRANCHE_
2     #define _SQ_BRANCHE_
3    
4     #include "mg_noeud.h"
5     #include "sq_noeud.h"
6     #include "mg_maillage.h"
7    
8    
9     class SQ_BRANCHE
10     {
11     public:
12     SQ_BRANCHE(std::vector<SQ_NOEUD*> bran);
13 amroune 1004 SQ_BRANCHE();
14 amroune 1003 SQ_BRANCHE(SQ_BRANCHE& mdd);
15     virtual ~SQ_BRANCHE();
16    
17     std::vector<SQ_NOEUD*> get_branche();
18 amroune 1004 double get_longueur();
19 amroune 1005 double get_rayon_max();
20 amroune 1003 std::vector<MG_NOEUD*> get_section(int i);
21 amroune 1005 SQ_NOEUD* get_no_central_section(int i);
22 amroune 1004 int get_nb_sections();
23 amroune 1003 std::vector<MG_NOEUD*> get_guide(int i);
24 amroune 1004 int get_nb_guides();
25     bool get_validite();
26 amroune 1003
27     void change_branche(std::vector<SQ_NOEUD*> bran);
28 amroune 1004 void calcul_longueur();
29 amroune 1005 void change_rayon_max(double Rmax);
30     void ajouter_section(SQ_NOEUD* no_central,std::vector<MG_NOEUD*> section);
31 amroune 1003 void ajouter_guide(std::vector<MG_NOEUD*> guide);
32 amroune 1004 void change_validite(bool validite);
33 amroune 1003
34     protected:
35     std::vector<SQ_NOEUD*> branche;
36 amroune 1004 double longueur;
37 amroune 1005 double rayon_max;
38     std::vector<std::pair<SQ_NOEUD*,std::vector<MG_NOEUD*>>> LstSections;
39 amroune 1003 std::vector<std::vector<MG_NOEUD*>> LstGuides;
40 amroune 1004 bool branche_valid;
41 amroune 1003 };
42     #endif
43 amroune 1004

Properties

Name Value
svn:executable *