/******************************************************************** * Description: * Author: George-Catalin Serbanut * * Copyright (c) 2005 George-Catalin Serbanut All rights reserved. * ********************************************************************/ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef PLAN_HH #define PLAN_HH #include #include #include "point.hh" #include "line.hh" using namespace std; class Plan{ public: Plan(); ~Plan(); Plan(vector); Plan(vector); void SetPlan(vector); void SetPlan(vector); void AddPoints(vector); void AddLines(vector); int GetNumberPoints(); int GetNumberLines(); vector GetPoints(); vector GetLinesL(); vector GetLinesP(); vector GetPlanP(); vector GetPlanL(); Point GetPerp(); Point GetCenter(); Angles GetAngles(); void Precision(); bool CheckPoint(Point); private: int number_points; int number_lines; vector points; vector lines; vector planP; vector planL; vector angles; vector perps; Point perp; Point center; Angles angles_perp; int precision; bool CheckCoplanarity(); void compute_perps(); void SetCoplanarity(); }; #endif