Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

triangle.h

Go to the documentation of this file.
00001 00006 00007 // This software is distributed as part of the Improla library. 00008 // Improla is a library of classes for image processing. 00009 // 00010 // Copyright (c) 2004, B. R. Siva Chandra, India 00011 // 00012 // This program is free software; you can redistribute it and/or 00013 // modify it under the terms of the GNU General Public License 00014 // as published by the Free Software Foundation; either version 2 00015 // of the License, or (at your option) any later version. 00016 // 00017 // This program is distributed in the hope that it will be useful, 00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 // GNU General Public License for more details. 00021 // 00022 // You should have received a copy of the GNU General Public License 00023 // along with this program; if not, write to the Free Software 00024 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00025 // 00026 // In case you would like to contact the author, use the following e-mail 00027 // address: sivachandra_br@yahoo.com 00029 00031 // First Created : 21st September 2004 00032 // Author : Siva Chandra 00033 // Purpose : Declares a class which encapsulates a triangular geometric object. 00035 00036 #ifndef __IMAGE_UTILITY_TRIANGLE_H__ 00037 #define __IMAGE_UTILITY_TRIANGLE_H__ 00038 00039 #include <tnt/tnt_array1d.h> 00040 #include <point.h> 00041 #include <line.h> 00042 00043 namespace gutk 00044 { // Start of namespace tgut. 00045 00048 class Triangle 00049 { 00050 public: 00053 Triangle(void); 00054 00057 Triangle(const Triangle&); 00058 00061 Triangle(TNT::Array1D< gutk::Point >); 00062 00065 virtual ~Triangle(); 00066 00067 // Utilities... 00068 //virtual int getPixelArea(void); // To do... 00069 //virtual double getRealArea(void); // To do... 00070 00073 virtual TNT::Array1D< gutk::Point > getPixels(void); 00074 00077 TNT::Array1D< gutk::Point > vertices; 00078 }; 00079 00080 } // End of namespace tgut. 00081 00082 #endif // __IMAGE_UTILITY_TRIANGLE_H__ 00083

Generated on Mon Nov 22 11:12:41 2004 for ImprolaLib by doxygen 1.3.7