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 namespace Mercator { 00012 00017 class Plant { 00018 private: 00020 WFMath::Point<2> m_displacement; 00022 WFMath::Quaternion m_orientation; 00024 float m_height; 00025 public: 00027 Plant(); 00029 ~Plant(); 00030 00032 const WFMath::Point<2> & getDisplacement() const { 00033 return m_displacement; 00034 } 00035 00037 void setDisplacement(const WFMath::Point<2> & d) { 00038 m_displacement = d; 00039 } 00040 00042 const WFMath::Quaternion & getOrientation() const { 00043 return m_orientation; 00044 } 00045 00047 void setOrientation(const WFMath::Quaternion & o) { 00048 m_orientation = o; 00049 } 00050 00052 const float getHeight() const { 00053 return m_height; 00054 } 00055 00057 void setHeight(float h) { 00058 m_height = h; 00059 } 00060 00062 void setParameter(const std::string &, float) { } 00063 }; 00064 00065 } 00066 00067 #endif // MERCATOR_PLANT_H