Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

AbstractMultiImage.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------*
00002  | Library QgarLib, graphics analysis and recognition                  |
00003  | Copyright (C) 2004  Qgar Project, LORIA                             |
00004  |                                                                     |
00005  | This library is free software; you can redistribute it and/or       |
00006  | modify it under the terms of the GNU Lesser General Public          |
00007  | License version 2.1, as published by the Free Software Foundation.  |
00008  |                                                                     |
00009  | This library is distributed in the hope that it will be useful,     |
00010  | but WITHOUT ANY WARRANTY; without even the implied warranty of      |
00011  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                |
00012  | See the GNU Lesser General Public License for more details.         |
00013  |                                                                     |
00014  | The GNU Lesser General Public License is included in the file       |
00015  | LICENSE.LGPL, in the root directory of the Qgar packaging. See      |
00016  | http://www.gnu.org/licenses/lgpl.html for the terms of the license. |
00017  | To receive a paper copy, write to the Free Software Foundation,     |
00018  | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.       |
00019  |                                                                     |
00020  | Contact Project Qgar for any information:                           |
00021  |   LORIA - équipe Qgar                                               |
00022  |   B.P. 239, 54506 Vandoeuvre-lès-Nancy Cedex, France                |
00023  |   email: qgar-contact@loria.fr                                      |
00024  |   http://www.qgar.org/                                              |
00025  *---------------------------------------------------------------------*/
00026 
00027 
00028 /**
00029  * @file  AbstractMultiImage.C
00030  * @brief Implementation of class qgar::AbstractMultiImage.
00031  *
00032  *        See file AbstractMultiImage.H for the interface.
00033  *
00034  * @author <a href="mailto:qgar-develop@loria.fr?subject=Qgar fwd Gérald Masini">Gérald Masini</a>
00035  * @date   December 15, 2004  15:52
00036  * @since  Qgar 2.2
00037  */
00038 
00039 
00040 // QGAR
00041 #include <qgarlib/AbstractMultiImage.H>
00042 
00043 
00044 
00045 namespace qgar
00046 {
00047 
00048 
00049 // -------------------------------------------------------------------
00050 // C O N S T R U C T O R S 
00051 // -------------------------------------------------------------------
00052 
00053 
00054 // DEFAULT CONSTRUCTOR
00055 
00056 AbstractMultiImage::AbstractMultiImage()
00057 
00058   : _width(0),
00059     _height(0)
00060 
00061 {
00062   // VOID
00063 }
00064 
00065 
00066 // COPY CONSTRUCTOR
00067 
00068 
00069 AbstractMultiImage::AbstractMultiImage(const AbstractMultiImage& anImg)
00070 
00071   : _width(anImg._width),
00072     _height(anImg._height)
00073 
00074 {
00075   // VOID
00076 }
00077 
00078 
00079 // INITIALIZE WITH GIVEN WIDTH AND HEIGHT
00080 
00081 AbstractMultiImage::AbstractMultiImage(unsigned int aWidth,
00082                                        unsigned int aHeight)
00083 
00084   : _width(aWidth),
00085     _height(aHeight)
00086 
00087 {
00088   // VOID
00089 }
00090 
00091 
00092 // ---------------------------------------------------------------------
00093 // D E S T R U C T O R
00094 // ---------------------------------------------------------------------
00095 
00096 
00097 // VIRTUAL DESTRUCTOR
00098 
00099 AbstractMultiImage::~AbstractMultiImage()
00100 {
00101   // VOID
00102 }
00103 
00104 
00105 // ---------------------------------------------------------------------
00106 // O P E R A T O R S
00107 // ----------------------------------------------------------------------
00108 
00109 
00110 // ASSIGNMENT OPERATOR
00111 
00112 AbstractMultiImage&
00113 AbstractMultiImage::operator=(const AbstractMultiImage& anImg)
00114 {
00115   // Are left hand side and right hand side different objects?
00116   if (this != &anImg)
00117     {
00118       _width  = anImg._width;
00119       _height = anImg._height;
00120     }
00121   return *this;
00122 }
00123 
00124 
00125 // ----------------------------------------------------------------------
00126 
00127 
00128 } // namespace qgar