| 1 |
/*************************************************************************** |
| 2 |
applpop.h - Application dérivée de l'objet ApplPop |
| 3 |
spécifique aux populations |
| 4 |
------------------- |
| 5 |
begin : ven aug 14 10:25:55 CEST 2000 |
| 6 |
copyright : (C) 2000 by Olivier Langella CNRS UPR9034 |
| 7 |
email : [email protected] |
| 8 |
***************************************************************************/ |
| 9 |
|
| 10 |
/*************************************************************************** |
| 11 |
* * |
| 12 |
* This program is free software; you can redistribute it and/or modify * |
| 13 |
* it under the terms of the GNU General Public License as published by * |
| 14 |
* the Free Software Foundation; either version 2 of the License, or * |
| 15 |
* (at your option) any later version. * |
| 16 |
* * |
| 17 |
***************************************************************************/ |
| 18 |
|
| 19 |
#ifndef APPLPOP_H |
| 20 |
#define APPLPOP_H |
| 21 |
|
| 22 |
#include "jeupopexp.h" |
| 23 |
#include "jeupop.h" |
| 24 |
#include "arbreplus.h" |
| 25 |
#include "distgnt.h" |
| 26 |
|
| 27 |
//#include "matrices.h" |
| 28 |
#include "applications.h" |
| 29 |
|
| 30 |
typedef biolib::arbres::ArbrePlus ArbrePlus; |
| 31 |
|
| 32 |
class ApplPop:public Application { |
| 33 |
public: |
| 34 |
|
| 35 |
ApplPop(); |
| 36 |
~ApplPop(); |
| 37 |
/** Demande à l'utilisateur de choisir une population. |
| 38 |
retourne le numéro dans _tabPpop */ |
| 39 |
unsigned long DemandePopulation(char []) const; |
| 40 |
|
| 41 |
void set_groupes_individus(); |
| 42 |
void set_groupes_populations(); |
| 43 |
void set_groupes_arbre(ArbrePlus & larbre) const; |
| 44 |
void reset_groupes() {_temp.resize(0);_tab_groupes.resize(0);_tab_noms_groupes.resize(0);_tab_couleurs_groupes.resize(0);}; |
| 45 |
|
| 46 |
protected: |
| 47 |
|
| 48 |
virtual bool litGenepop(); |
| 49 |
|
| 50 |
virtual void affPubEntree() const; |
| 51 |
virtual bool iPopulations(); |
| 52 |
|
| 53 |
Jeupop* _Pjeupop; |
| 54 |
vector<string> _tab_groupes; |
| 55 |
vector<string> _tab_noms_groupes; |
| 56 |
vector<string> _tab_couleurs_groupes; |
| 57 |
|
| 58 |
unsigned int _niveau; |
| 59 |
|
| 60 |
Titre _temp; |
| 61 |
|
| 62 |
}; |
| 63 |
|
| 64 |
#endif |
| 65 |
|