Moka controlers
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
parameter-preview.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_PREVIEW_HH
26 #define PARAMETER_PREVIEW_HH
27 //******************************************************************************
28 #include "parameter.hh"
29 //******************************************************************************
43 namespace GMap3d
44 {
46  {
47  public:
52 
55  CParameterPreview(int ANbRef = 0);
57  CParameter * copy() const;
58 
61  virtual ~CParameterPreview();
62 
64 
69 
74  virtual void save(std::ostream&);
75 
80  virtual void load(std::istream&);
81 
86  virtual void reinit();
87 
89 
94  int getLWPreview() const;
95  void setLWPreview(int);
96 
97  int getLWPreviewPoint() const;
98  void setLWPreviewPoint(int);
99 
101 
106  float getCLPreview(int AIndice) const;
107  const float * getCLPreview() const;
108  void setCLPreview(int AIndice, float AValue);
109  void setCLPreview(float AValue0, float AValue1, float AValue2);
110  void setCLPreview(const float ATab[3]);
111 
112  float getCLPreviewBad(int AIndice) const;
113  const float * getCLPreviewBad() const;
114  void setCLPreviewBad(int AIndice, float AValue);
115  void setCLPreviewBad(float AValue0, float AValue1, float AValue2);
116  void setCLPreviewBad(const float ATab[3]);
118 
120  virtual int getType() const;
121 
123  friend std::ostream& operator << (std::ostream&, const CParameterPreview &);
124  friend std::istream& operator >> (std::istream&, CParameterPreview &);
125 
126  private:
127 
129  int FLWPreview;
130 
132  int FLWPreviewPoint;
133 
135  float FCLPreview[3];
136  float FCLPreviewBad[3];
137  };
138 
139 } // namespace GMap3d
140 //******************************************************************************
141 #endif // PARAMETER_PREVIEW_HH
142 //******************************************************************************