DLPoint Class Reference

Representation of a point on a DLImage. More...

#include <DLPoint.h>

List of all members.

Public Member Functions

 DLPoint ()
 DLPoint (const DLPoint &orig)
const DLPointoperator= (const DLPoint &right)
bool operator== (const DLPoint &right)
virtual ~DLPoint ()
 DLPoint (int x1, int y1)

Public Attributes

int x
 x-coordinate, or column, of the point.
int y
 y-coordinate, or row, of the point.


Detailed Description

Representation of a point on a DLImage.

In a DLImage, the origin, (0,0), is located at the upper-left-hand corner of the image. The x-axis in the horizontal direction on the image, with values increasing as you go to the right. The y-axis is along the vertical direction on the image, with values increading as you head downwards.

Definition at line 21 of file DLPoint.h.


Constructor & Destructor Documentation

DLPoint::DLPoint (  )  [inline]

Default DLPoint Constructor; creates a point at the origin, (0,0).

Definition at line 29 of file DLPoint.h.

References x, and y.

DLPoint::DLPoint ( const DLPoint orig  )  [inline]

DLPoint Copy Constructor

Parameters:
orig DLPoint to copy

Definition at line 35 of file DLPoint.h.

virtual DLPoint::~DLPoint (  )  [inline, virtual]

DLPoint destructor

Definition at line 60 of file DLPoint.h.

DLPoint::DLPoint ( int  x1,
int  y1 
) [inline]

Constructor: creates a DLPoint at (x1 , y1).

Parameters:
x1 x-coordinate, or column, of the point
y1 y-coordinate, or row, of the point

Definition at line 73 of file DLPoint.h.

References x, and y.


Member Function Documentation

const DLPoint& DLPoint::operator= ( const DLPoint right  )  [inline]

Assignment operator

Parameters:
right DLPoint to copy

Definition at line 41 of file DLPoint.h.

References x, and y.

bool DLPoint::operator== ( const DLPoint right  )  [inline]

Equality operator (compare two points)

Parameters:
right DLPoint to compare to

Definition at line 52 of file DLPoint.h.

References x, and y.


Member Data Documentation

int DLPoint::x

x-coordinate, or column, of the point.

Definition at line 60 of file DLPoint.h.

Referenced by DLImage::dlAddImage(), DLImage::dlGetPixel(), DLImage::dlGetPixelValue(), DLImage::dlIsInside(), DLLineShape::DLLineShape(), DLImage::dlPasteImage(), DLImage::dlPasteInImage(), DLPoint(), DLRectShape::DLRectShape(), DLImage::dlSetPixel(), DLImage::dlSubtractImage(), operator=(), and operator==().

int DLPoint::y

y-coordinate, or row, of the point.

Definition at line 65 of file DLPoint.h.

Referenced by DLImage::dlAddImage(), DLImage::dlGetPixel(), DLImage::dlGetPixelValue(), DLImage::dlIsInside(), DLLineShape::DLLineShape(), DLImage::dlPasteImage(), DLImage::dlPasteInImage(), DLPoint(), DLRectShape::DLRectShape(), DLImage::dlSetPixel(), DLImage::dlSubtractImage(), operator=(), and operator==().


The documentation for this class was generated from the following file:

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007