TLIB documentation
 

tlLine.h

Go to the documentation of this file.
00001 /////////////////////////////////////////////////////////////////////////////////
00002 //
00003 //  This file is part of the TLIB computer vision library.
00004 //  Copyright (C) 2003-2008 Sebastien Grange
00005 //  Copyright (C) 2003-2007 VRAI Group, EPFL
00006 //  All rights reserved.
00007 // 
00008 //  This library is free software; you can redistribute it and/or modify
00009 //  it under the terms of the GNU General Public License("GPL") version 2
00010 //  as published by the Free Software Foundation.
00011 // 
00012 //  <http://www.tuyphon.com/tlib>
00013 //
00014 /////////////////////////////////////////////////////////////////////////////////
00015 
00016 
00017 #ifndef __TLLINE_H__
00018 #define __TLLINE_H__
00019 
00020 
00021 #include "tlVision.h"
00022 
00023 
00024 
00025 // class declaration
00026 class tlLine
00027 {
00028 public:
00029   float   theta, r;
00030   tlPoint *p1;
00031   tlPoint *p2;
00032 
00033 public:
00034   // *structors
00035   tlLine ();
00036   tlLine (tlLine *line);
00037   tlLine (float theta, float r);
00038   tlLine (int x1, int y1, int x2, int y2);
00039   tlLine (tlPoint *p1, tlPoint *p2);
00040   virtual ~tlLine ();
00041 
00042   // definition
00043   int set (tlLine *line);
00044   int set (float theta, float r);
00045   int set (int x1, int y1, int x2, int y2);
00046   int set (tlPoint *p1, tlPoint *p2);
00047 
00048   // transforms
00049   int fit (tlChain *chain);
00050 
00051   // scaling
00052   int clip (tlRect *rect);
00053   int clip (int width, int height);
00054 
00055   // copy
00056   int copy   (tlLine *line);
00057   int copyTo (tlLine *line);
00058 };
00059 
00060 
00061 
00062 #endif


TLIB documentation - generated on 7 May 2008
Please address any questions to seb@tuyphon.com
(C) 2001-2008 - S. Grange
(C) 2001-2007 - VRAI Group, EPFL
All Rights Reserved.