Moka controlers
All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
parameter-spamod.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 #ifdef MODULE_SPAMOD
26 //******************************************************************************
27 #ifndef PARAMETER_SPAMOD_HH
28 #define PARAMETER_SPAMOD_HH
29 //******************************************************************************
30 #include "parameter.hh"
31 #include "spamod-api.hh"
32 //******************************************************************************
40 namespace GMap3d
41 {
42  class CParameterSpamod: public CParameter
43  {
44  public:
49 
52  CParameterSpamod(int ANbRef = 0);
53  CParameterSpamod(const CParameterSpamod &);
54  CParameter * copy() const;
55 
58  virtual ~CParameterSpamod();
59 
61 
66 
71  virtual void save(std::ostream&);
72 
77  virtual void load(std::istream&);
78 
83  virtual void reinit();
84 
86 
88 
90  void setViewMode(TSpamodViewMode AMode);
91  TSpamodViewMode getViewMode() const;
92  void setNextViewMode();
93 
95  bool getEuclidianParam(int AIndex);
96  void setEuclidianParam(int AIndex, bool AValue);
97 
99  bool getAnalyticParam(int AIndex);
100  void setAnalyticParam(int AIndex, bool AValue);
101 
103  bool getVoxelParam(int AIndex);
104  void setVoxelParam(int AIndex, bool AValue);
105 
107  bool getK2Param(int AIndex);
108  void setK2Param(int AIndex, bool AValue);
109 
111 
113  virtual int getType() const;
114 
116  friend std::ostream& operator << (std::ostream&, const CParameterSpamod &);
117  friend std::istream& operator >> (std::istream&, CParameterSpamod &);
118 
119  private:
121  TSpamodViewMode FViewMode;
122 
123  /* Paramètres de la vue euclidienne:
124  * FEuclidianParam[0]: affichage fil de fer,
125  * FEuclidianParam[1]: affichage faces pleines.
126  */
127  bool FEuclidianParam[2];
128 
129  /* Paramètres de la vue analytique
130  * FAnalyticParam[0]: affichage des sommets,
131  * FAnalyticParam[1]: affichage des arêtes,
132  * FAnalyticParam[2]: affichage des face,
133  * FAnalyticParam[3]: transparence
134  */
135  bool FAnalyticParam[4];
136 
137  /* Paramètres de la vue voxel:
138  * FVoxelParam[0]: affichage des sommets,
139  * FVoxelParam[1]: affichage des arêtes,
140  * FVoxelParam[2]: affichage des faces.
141  */
142  bool FVoxelParam[3];
143 
144  /* Paramètres de la vue K2:
145  * FK2Param[0]: affichage des pointels,
146  * FK2Param[1]: affichage des lignels,
147  * FK2Param[2]: affichage des surfels.
148  */
149  bool FK2Param[3];
150  };
151 
152 } // namespace GMap3d
153 //******************************************************************************
154 #endif // PARAMETER_SPAMOD_HH
155 //******************************************************************************
156 #endif // MODULE_SPAMOD
157 //******************************************************************************