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_SEW_HH
00026 #define PARAMETER_SEW_HH
00027
00028 #include "parameter.hh"
00029
00042 namespace GMap3d
00043 {
00044 class CParameterSew: public CParameter
00045 {
00046 public:
00051
00054 CParameterSew(int ANbRef = 0);
00055 CParameterSew(const CParameterSew &);
00056 CParameter * copy() const;
00057
00060 virtual ~CParameterSew();
00061
00063
00068
00073 virtual void save(std::ostream&);
00074
00079 virtual void load(std::istream&);
00080
00085 virtual void reinit();
00086
00088
00093
00094 int getLWSew(int ADimension) const;
00095 void setLWSew(int ADimension, int);
00096
00098
00103
00104 float getSewPosCoef(int ADimension) const;
00105 void setSewPosCoef(int ADimension, float AValue);
00106
00108
00113 float getCLSew(int ADimension, int AIndice) const;
00114 const float * getCLSew(int ADimension) const;
00115 void setCLSew(int ADimension, int AIndice, float AValue);
00116 void setCLSew(int ADimension,float AValue0,
00117 float AValue1, float AValue2);
00118 void setCLSew(int ADimension,const float ATab[3]);
00120
00128
00129 bool getDisplayAlpha(int AIndex) const;
00130 void setDisplayAlpha(int AIndex,bool AValue);
00131 void invDisplayAlpha(int AIndex);
00132
00134
00136 virtual int getType() const;
00137
00139 friend std::ostream& operator << (std::ostream&, const CParameterSew &);
00140 friend std::istream& operator >> (std::istream&, CParameterSew &);
00141
00142 private:
00144 int FLWSew[4];
00145
00147 float FSewPosCoef[4];
00148
00150 float FCLSew[4][3];
00151
00153 bool FDisplayAlpha[4];
00154 };
00155
00156 }
00157
00158 #endif // PARAMETER_SEW_HH
00159