Moka controlers
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
controler-gmap-selection.hh
Go to the documentation of this file.
1 /*
2  * lib-controler-gmap : Le contrôleur de 3-G-cartes, surcouche de lib-controler.
3  * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC
4  * http://www.sic.sp2mi.univ-poitiers.fr/
5  * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS,
6  * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/
7  *
8  * This file is part of lib-controler-gmap
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  */
23 
24 //******************************************************************************
25 // Ce fichier est une partie de "controler-gmap.hh".
26 //******************************************************************************
27 private:
28 
32 
33 public:
35 
40 int getNbSelectionLevels() const;
41 
43 int getSelectionLevel () const;
44 int getNextSelectionLevel(int AIndex=1) const;
46 
48 TOrbit getSelectionOrbit () const;
49 void setSelectionOrbit (TOrbit AOrbit);
51 
52 bool getHalfSelectionOrbit() const;
53 void setHalfSelectionOrbit(bool ABool);
55 
57 
59 int getSelectionMark () const;
60 
62 int getSelectionMark (int ALevel) const;
63 
66 int getNextSelectionMark(int AIndex=1) const;
68 
70 CDart* getLastSelectedDart () const;
71 CDart* getLastSelectedDart (int ALevel) const;
72 CDart* getNextLastSelectedDart(int AIndex=1) const;
73 
74 void unsetLastSelectedDart ();
75 void unsetLastSelectedDart (int ALevel);
76 void unsetNextLastSelectedDart(int AIndex=1);
79 
81 
82 // Test de la sélection d'un brin
83 bool isDartSelected (CDart* ADart) const;
84 bool isDartSelected (CDart* ADart, int ALevel) const;
85 bool isDartNextSelected(CDart* ADart, int AIndex=1) const;
86 
87 // Sélection d'un brin
88 void selectDart (CDart* ADart, int ALevel);
89 void selectDart (CDart* ADart);
90 void selectNextDart(CDart* ADart, int AIndex=1);
91 
92 // Désélection d'un brin
93 void deselectDart (CDart* ADart, int ALevel);
94 void deselectDart (CDart* ADart);
95 void deselectNextDart(CDart* ADart, int AIndex=1);
96 
97 // Pour sélectionner ou désélectionner un brin selon son état actuel.
98 void toggleDartSelection (CDart* ADart, int ALevel);
99 void toggleDartSelection (CDart* ADart);
100 void toggleDartNextSelection(CDart* ADart, int AIndex=1);
101 
103 
105 
106 // Sélection d'une orbite
107 void selectOrbit (CDart* ADart);
108 void selectOrbit (CDart* ADart, int ALevel);
109 void selectNextOrbit(CDart* ADart, int AIndex=1);
110 
111 // Désélection d'une orbite
112 void deselectOrbit (CDart* ADart);
113 void deselectOrbit (CDart* ADart, int ALevel);
114 void deselectNextOrbit(CDart* ADart, int AIndex=1);
115 
116 // Pour sélectionner ou déséllectionner une orbite selon son état actuel.
117 void toggleOrbitSelection (CDart* ADart);
118 void toggleOrbitSelection (CDart* ADart, int ALevel);
119 void toggleOrbitNextSelection(CDart* ADart, int AIndex=1);
120 
122 
124 bool takeCenter(CVertex & AResult);
125 bool takeVector(CVertex & AResult);
127 
130 bool getModeDeselectionAtStop() const;
131 
134 
135 //******************************************************************************