Mercator
|
00001 // This file may be redistributed and modified only under the terms of 00002 // the GNU General Public License (See COPYING for details). 00003 // Copyright (C) 2004 Alistair Riddoch 00004 00005 #ifndef MERCATOR_PLANT_H 00006 #define MERCATOR_PLANT_H 00007 00008 #include <wfmath/point.h> 00009 #include <wfmath/quaternion.h> 00010 00011 #include <string> 00012 00013 namespace Mercator { 00014 00019 class Plant { 00020 private: 00022 WFMath::Point<2> m_displacement; 00024 WFMath::Quaternion m_orientation; 00026 float m_height; 00027 public: 00029 Plant(); 00031 ~Plant(); 00032 00034 const WFMath::Point<2> & getDisplacement() const { 00035 return m_displacement; 00036 } 00037 00039 void setDisplacement(const WFMath::Point<2> & d) { 00040 m_displacement = d; 00041 } 00042 00044 const WFMath::Quaternion & getOrientation() const { 00045 return m_orientation; 00046 } 00047 00049 void setOrientation(const WFMath::Quaternion & o) { 00050 m_orientation = o; 00051 } 00052 00054 const float getHeight() const { 00055 return m_height; 00056 } 00057 00059 void setHeight(float h) { 00060 m_height = h; 00061 } 00062 00064 void setParameter(const std::string &, float) { } 00065 }; 00066 00067 } 00068 00069 #endif // MERCATOR_PLANT_H