00001 /* 00002 * lib-controler : Un contrôleur générique de scène 3D. 00003 * Copyright (C) 2004, Moka Team, Université de Poitiers, Laboratoire SIC 00004 * http://www.sic.sp2mi.univ-poitiers.fr/ 00005 * Copyright (C) 2009, Guillaume Damiand, CNRS, LIRIS, 00006 * guillaume.damiand@liris.cnrs.fr, http://liris.cnrs.fr/ 00007 * 00008 * This file is part of lib-controler 00009 * 00010 * This program is free software: you can redistribute it and/or modify 00011 * it under the terms of the GNU Lesser General Public License as published by 00012 * the Free Software Foundation, either version 3 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public License 00021 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00022 */ 00023 00024 //****************************************************************************** 00025 #ifndef PARAMETER_AIMED_POINT_HH 00026 #define PARAMETER_AIMED_POINT_HH 00027 //****************************************************************************** 00028 #include "parameter.hh" 00029 //****************************************************************************** 00041 class CParameterAimedPoint : public CParameter 00042 { 00043 public: 00048 00051 CParameterAimedPoint(int ANbRef = 0); 00052 CParameterAimedPoint(const CParameterAimedPoint &); 00053 CParameter * copy() const; 00054 00057 virtual ~CParameterAimedPoint(); 00058 00060 00065 00070 virtual void save(std::ostream&); 00071 00076 virtual void load(std::istream&); 00077 00082 virtual void reinit(); 00083 00085 00090 int getLWAimedPoint() const; 00091 void setLWAimedPoint(int); 00093 00098 float getLGAimedPoint() const; 00099 void setLGAimedPoint(float); 00101 00106 float getCLAimedPoint(int AIndice) const; 00107 void setCLAimedPoint(int AIndice, float AValue); 00108 const float * getCLAimedPoint() const; 00109 void setCLAimedPoint(float AValue0, float AValue1, float AValue2); 00110 void setCLAimedPoint(const float ATab[3]); 00112 00114 virtual int getType() const; 00115 00117 friend std::ostream& 00118 operator<<(std::ostream&, const CParameterAimedPoint &); 00119 00120 friend std::istream& 00121 operator>>(std::istream&, CParameterAimedPoint &); 00122 00123 private: 00124 00126 int FLWAimedPoint; 00127 00129 float FLGAimedPoint; 00130 00132 float FCLAimedPoint[3]; 00133 }; 00134 00135 //****************************************************************************** 00136 #endif // PARAMETER_AIMED_POINT_HH 00137 //******************************************************************************