The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

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

Rectangle.h

Go to the documentation of this file.
00001 /* RECTANGLE.h
00002  *  
00003  *      Created by Bret Fortenberry on March 25, 2004
00004  *  Copyright (c) 2003 Machine Perception Laboratory
00005  *  University of California San Diego.
00006  *  Please read the disclaimer and notes about redistribution
00007  *  at the end of this file.
00008  *
00009  *  Authors: Bret Fortenbery
00010  */
00011 
00012 #ifndef _RECTANGLE_H_
00013 #define _RECTANGLE_H_
00014 
00015 class MPRectangle {
00016  public:
00017         
00018         int X1;
00019         int X2;
00020         int Y1;
00021         int Y2;
00022         bool face;
00023         
00024         MPRectangle();
00025         MPRectangle(int x1_in, int x2_in, int y1_in, int y2_in, bool face_in);
00026         ~MPRectangle();
00027         
00028 };
00029 
00030 MPRectangle::MPRectangle() {}
00031 
00032 MPRectangle::MPRectangle(int x1_in, int x2_in, int y1_in, int y2_in, bool face_in) 
00033 :X1(x1_in), X2(x2_in), Y1(y1_in), Y2(y2_in), face(face_in) {}
00034 
00035 MPRectangle::~MPRectangle() {}
00036 
00037 #endif 
00038 
00039 
00040 /*
00041  * 
00042  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
00043  * 
00044  *    1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
00045  *    2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
00046  *    3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.
00047  * 
00048  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00049  * 
00050  */

Generated on Mon Nov 8 17:07:47 2004 for MPT by  doxygen 1.3.9.1