oln::point2d Class Reference

#include <point2d.hh>

Inheritance diagram for oln::point2d:

Inheritance graph
[legend]
Collaboration diagram for oln::point2d:

Collaboration graph
[legend]
List of all members.

Public Types

typedef abstract::point< point2dsuper_type
typedef point_traits< point2d
>::dpoint_type 
dpoint_type

Public Member Functions

 point2d (coord row, coord col)
 The coordinates of the point2d are set to row and col.

 point2d (const point1d &p, coord col)
 The coordinates of the point2d are set to p and col.

coord row () const
 Return Give the value of the point2d row coordinate.

coordrow ()
 Return a reference to the point2d row coordinate.

coord col () const
 Return the value of the point2d col coordinate.

coordcol ()
 Return a reference to the point2d col coordinate.


Static Public Member Functions

std::string name ()

Protected Member Functions

point2d plus_dp (const dpoint2d &dp) const
 Return a point2d whose coordinates are equal to dp coordinates plus the current point2d coordinates.

point2d minus_dp (const dpoint2d &dp) const
 Return a point2d whose coordinates are equal to the current point2d coordinates minus dp coordinates.

point2dplus_assign_dp (const dpoint2d &dp)
 Return a reference to the current point2d plus dp.

point2dminus_assign_dp (const dpoint2d &dp)
 Return a reference to the current point2d minus dp.

dpoint2d minus_p (const point2d &p) const
 Return a dpoint2d whose coordinates are equal to the current point2d coordinates minus p coordinates.

point2d minus () const
 Return a point2d whose coordinates are equal to the opposite of the current point2d coordinates.


Friends

class abstract::point< point2d >

Detailed Description

Subclass of abstract::point, declaration of point for image2d. To instantiate a dpoint2d on an oln::image2d<ntg::rgb_8> for example, use the macro oln_point_type(I).
oln_point_type(oln::image2d<ntg::rgb_8>) p();
or
oln_point_type(oln::image2d<ntg::rgb_8>) p(1, 2);

Definition at line 63 of file point2d.hh.


The documentation for this class was generated from the following files:
Generated on Thu Apr 15 20:14:28 2004 for Olena by doxygen 1.3.6-20040222