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

Point2D.H File Reference


Detailed Description

A basic 2D point class

Definition in file Point2D.H.

#include "Image/Dims.H"
#include "Util/Promotions.H"
#include "Util/log.H"
#include <cmath>
#include <string>
#include <vector>

Include dependency graph for Point2D.H:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Point2D< T >
 This is a basic class to encode 2D integer coordinates. More...

Functions

template<class T, class U>
bool operator== (const Point2D< T > &p1, const Point2D< U > &p2)
 == operator
template<class T, class U>
bool operator!= (const Point2D< T > &p1, const Point2D< U > &p2)
 != operator
template<class T, class U>
bool operator> (const Point2D< T > &p1, const Point2D< U > &p2)
 > operator
template<class T, class U>
bool operator< (const Point2D< T > &p1, const Point2D< U > &p2)
 < operator
template<class T>
std::string convertToString (const Point2D< T > &val)
 Point2D<T> overload: format is "<i>,<j>".
template<class T>
void convertFromString (const std::string &str, Point2D< T > &val)
 Point2D<T> overload: format is "<i>,<j>".
bool pnpoly (const std::vector< Point2D< int > > &polygon, const Point2D< int > &p)
 Is a point inside a polygon?


Function Documentation

template<class T>
void convertFromString const std::string str,
Point2D< T > &  val
 

Point2D<T> overload: format is "<i>,<j>".

Definition at line 60 of file Point2D.C.

References Point2D< T >::i, Point2D< T >::j, and split().

template<class T>
std::string convertToString const Point2D< T > &  val  ) 
 

Point2D<T> overload: format is "<i>,<j>".

Definition at line 54 of file Point2D.C.

References convertToString(), Point2D< T >::i, and Point2D< T >::j.

template<class T, class U>
bool operator!= const Point2D< T > &  p1,
const Point2D< U > &  p2
[inline]
 

!= operator

Definition at line 296 of file Point2D.H.

References Point2D< T >::i, and Point2D< T >::j.

template<class T, class U>
bool operator< const Point2D< T > &  p1,
const Point2D< U > &  p2
[inline]
 

< operator

Definition at line 306 of file Point2D.H.

Referenced by rutz::fstring::operator<().

template<class T, class U>
bool operator== const Point2D< T > &  p1,
const Point2D< U > &  p2
[inline]
 

== operator

Definition at line 291 of file Point2D.H.

References Point2D< T >::i, and Point2D< T >::j.

template<class T, class U>
bool operator> const Point2D< T > &  p1,
const Point2D< U > &  p2
[inline]
 

> operator

Definition at line 301 of file Point2D.H.

References Point2D< T >::i, and Point2D< T >::j.

Referenced by rutz::fstring::operator>().

bool pnpoly const std::vector< Point2D< int > > &  polygon,
const Point2D< int > &  p
[inline]
 

Is a point inside a polygon?

Definition at line 344 of file Point2D.H.

References c, Point2D< T >::i, i, and Point2D< T >::j.

Referenced by drawFilledPolygon(), TestImages::getAllObjMask(), TestImages::getObjFromPos(), SimulationViewerRecStats::getObjNameAtLoc(), and InferoTemporalSalBayes::getObjNameAtLoc().


Generated on Mon Nov 23 15:48:31 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4