Moka controlers
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
parameter-dart.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 #ifndef PARAMETER_DART_HH
26 #define PARAMETER_DART_HH
27 //******************************************************************************
28 #include "parameter.hh"
29 //******************************************************************************
41 namespace GMap3d
42 {
43  class CParameterDart : public CParameter
44  {
45  public:
50 
53  CParameterDart(int ANbSelectionLevels, int ANbRef = 0);
55  CParameter * copy() const;
56 
59  virtual ~CParameterDart();
60 
62 
67 
72  virtual void save(std::ostream&);
73 
78  virtual void load(std::istream&);
79 
84  virtual void reinit();
85 
87 
92  int getLWDarts() const;
93  void setLWDarts(int);
94 
96 
101  int getSAloneDarts() const; // taille des brin 0-libre
102  void setSAloneDarts(int);
104 
109 
110  float getCLUnsel(int ALevel, int AIndice) const;
111  void setCLUnsel(int ALevel, int AIndice, float AValue);
112  const float * getCLUnsel(int ALevel) const;
113  void setCLUnsel(int ALevel,
114  float AValue0, float AValue1, float AValue2);
115  void setCLUnsel(int ALevel,const float ATab[3]);
116 
118  float getCLSel(int ALevel, int AIndice) const;
119  void setCLSel(int ALevel, int AIndice, float AValue);
120  const float * getCLSel(int ALevel) const;
121  void setCLSel(int ALevel,
122  float AValue0, float AValue1, float AValue2);
123  void setCLSel(int ALevel,const float ATab[3]);
124 
126  float getCLLastSel(int ALevel, int AIndice) const;
127  void setCLLastSel(int ALevel, int AIndice, float AValue);
128  const float * getCLLastSel(int ALevel) const;
129  void setCLLastSel(int ALevel,
130  float AValue0, float AValue1, float AValue2);
131  void setCLLastSel(int ALevel,const float ATab[3]);
132 
134 
136  float getCL0Remove(int ALevel, int AIndice) const;
137  void setCL0Remove(int ALevel, int AIndice, float AValue);
138  const float * getCL0Remove(int ALevel) const;
139  void setCL0Remove(int ALevel,
140  float AValue0, float AValue1, float AValue2);
141  void setCL0Remove(int ALevel,const float ATab[3]);
142 
144  float getCL1Remove(int ALevel, int AIndice) const;
145  void setCL1Remove(int ALevel, int AIndice, float AValue);
146  const float * getCL1Remove(int ALevel) const;
147  void setCL1Remove(int ALevel,
148  float AValue0, float AValue1, float AValue2);
149  void setCL1Remove(int ALevel,const float ATab[3]);
150 
152  virtual int getType() const;
153 
155  friend std::ostream& operator << (std::ostream&, const CParameterDart &);
156  friend std::istream& operator >> (std::istream&, CParameterDart &);
157 
158  private:
161  int FNbSelectionLevels;
162 
164  int FLWDarts;
165 
167  int FSAloneDarts;
168 
171  float ** FCLUnsel;
172 
173  float ** FCLSel;
174 
175  float ** FCLLastSel;
176 
177  float ** FCL0Remove;
178 
179  float ** FCL1Remove;
180  };
181 
182 } // namespace GMap3d
183 //******************************************************************************
184 #endif // PARAMETER_DART_HH
185 //******************************************************************************