00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef PARAMETER_DART_HH
00026 #define PARAMETER_DART_HH
00027
00028 #include "parameter.hh"
00029
00041 namespace GMap3d
00042 {
00043 class CParameterDart : public CParameter
00044 {
00045 public:
00050
00053 CParameterDart(int ANbSelectionLevels, int ANbRef = 0);
00054 CParameterDart(const CParameterDart &);
00055 CParameter * copy() const;
00056
00059 virtual ~CParameterDart();
00060
00062
00067
00072 virtual void save(std::ostream&);
00073
00078 virtual void load(std::istream&);
00079
00084 virtual void reinit();
00085
00087
00092 int getLWDarts() const;
00093 void setLWDarts(int);
00094
00096
00101 int getSAloneDarts() const;
00102 void setSAloneDarts(int);
00104
00109
00110 float getCLUnsel(int ALevel, int AIndice) const;
00111 void setCLUnsel(int ALevel, int AIndice, float AValue);
00112 const float * getCLUnsel(int ALevel) const;
00113 void setCLUnsel(int ALevel,
00114 float AValue0, float AValue1, float AValue2);
00115 void setCLUnsel(int ALevel,const float ATab[3]);
00116
00118 float getCLSel(int ALevel, int AIndice) const;
00119 void setCLSel(int ALevel, int AIndice, float AValue);
00120 const float * getCLSel(int ALevel) const;
00121 void setCLSel(int ALevel,
00122 float AValue0, float AValue1, float AValue2);
00123 void setCLSel(int ALevel,const float ATab[3]);
00124
00126 float getCLLastSel(int ALevel, int AIndice) const;
00127 void setCLLastSel(int ALevel, int AIndice, float AValue);
00128 const float * getCLLastSel(int ALevel) const;
00129 void setCLLastSel(int ALevel,
00130 float AValue0, float AValue1, float AValue2);
00131 void setCLLastSel(int ALevel,const float ATab[3]);
00132
00134
00136 virtual int getType() const;
00137
00139 friend std::ostream& operator << (std::ostream&, const CParameterDart &);
00140 friend std::istream& operator >> (std::istream&, CParameterDart &);
00141
00142 private:
00145 int FNbSelectionLevels;
00146
00148 int FLWDarts;
00149
00151 int FSAloneDarts;
00152
00153 float ** FCLUnsel;
00154
00155 float ** FCLSel;
00156
00157 float ** FCLLastSel;
00158 };
00159
00160 }
00161
00162 #endif // PARAMETER_DART_HH
00163