oln::dpoint2d Class Reference

#include <dpoint2d.hh>

Inheritance diagram for oln::dpoint2d:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef abstract::dpoint<
dpoint2d
super_type

Public Member Functions

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

 dpoint2d (const point2d &p)
 The coordinates of the dpoint2d are set to the p coordinates.

coord row () const
 Return the value of the dpoint2d row coordinate.

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

coord col () const
 Return the value of the dpoint2d column coordinate.

coordcol ()
 Return a reference to the dpoint2d column coordinate.


Static Public Member Functions

std::string name ()

Protected Member Functions

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

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

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

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

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


Friends

class abstract::dpoint< dpoint2d >

Detailed Description

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

Definition at line 68 of file dpoint2d.hh.


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