Desktop/sourceforge/geometria/src/kernel/point_algorithm.cpp

Go to the documentation of this file.
00001 /*
00002 This file is part of geometria.
00003 
00004 geometria is free software; you can redistribute it and/or modify 
00005 it under the terms of the GNU General Public License as published 
00006 by the Free Software Foundation; either version 2 of the License, 
00007 or (at your option) any later version.
00008 
00009 geometria is distributed in the hope that it will be useful, but 
00010 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
00011 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 
00012 License for more details.
00013 
00014 You should have received a copy of the GNU General Public 
00015 License along with geometria; if not, write to the Free Software 
00016 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
00017 
00018 (c) Philipp Moritz, 2006
00019 */
00020 
00021 #include "point_algorithm.hpp"
00022 
00023 point_algorithm::point_algorithm()
00024 {
00025 }
00026 
00027 point_algorithm::~point_algorithm()
00028 {
00029 }
00030 
00033 void point_algorithm::update()
00034 {
00035         m_calculated_point = boost::shared_ptr<point>(new point(calculate()));
00036         notice_all_observers();
00037 }
00038 
00039 point point_algorithm::get_point()
00040 {
00041         return *m_calculated_point;
00042 }
00043 
00044 bool point_algorithm::is_free()
00045 {
00046         return false;
00047 }

Generated on Fri May 19 19:30:28 2006 for geometria by  doxygen 1.4.6-NO