ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/reconstruction/src/sq_branche.cpp
Revision: 1003
Committed: Tue Jan 29 13:48:44 2019 UTC (6 years, 3 months ago) by amroune
File size: 1023 byte(s)
Log Message:
-Ajout d'une fonction qui calcul le centre géométrique d'un countour: centre_contour
-Ajout d'une nouvelle classe SQ_BRANCHE
-Intégration de la nouvelle classe dans la classe REC_SQUELETTE_OPT

File Contents

# User Rev Content
1 amroune 1003 #include "sq_branche.h"
2     #include <stdio.h>
3    
4     SQ_BRANCHE::SQ_BRANCHE(std::vector<SQ_NOEUD*> bran)
5     {
6     branche=bran;
7     }
8    
9    
10    
11     SQ_BRANCHE::SQ_BRANCHE(void)
12     {
13     }
14    
15    
16    
17     SQ_BRANCHE::SQ_BRANCHE(SQ_BRANCHE& mdd)
18     {
19     branche=mdd.branche;
20     LstSections=mdd.LstSections;
21     LstGuides=mdd.LstGuides;
22     }
23    
24    
25    
26     SQ_BRANCHE::~SQ_BRANCHE()
27     {
28     }
29    
30    
31    
32     std::vector<SQ_NOEUD*> SQ_BRANCHE::get_branche()
33     {
34     return branche;
35     }
36    
37    
38    
39     std::vector<MG_NOEUD*> SQ_BRANCHE::get_section(int i)
40     {
41     return LstSections[i];
42     }
43    
44    
45    
46     int SQ_BRANCHE::get_nb_sections(void)
47     {
48     return LstSections.size();
49     }
50    
51    
52    
53     std::vector<MG_NOEUD*> SQ_BRANCHE::get_guide(int i)
54     {
55     return LstGuides[i];
56     }
57    
58    
59    
60     int SQ_BRANCHE::get_nb_guides(void)
61     {
62     return LstGuides.size();
63     }
64    
65    
66    
67     void SQ_BRANCHE::change_branche(std::vector<SQ_NOEUD*> bran)
68     {
69     branche=bran;
70     }
71    
72    
73    
74     void SQ_BRANCHE::ajouter_section(std::vector<MG_NOEUD*> section)
75     {
76     LstSections.push_back(section);
77     }
78    
79    
80    
81     void SQ_BRANCHE::ajouter_guide(std::vector<MG_NOEUD*> guide)
82     {
83     LstGuides.push_back(guide);
84     }

Properties

Name Value
svn:executable *