oln::point1d Class Reference

#include <point1d.hh>

Inheritance diagram for oln::point1d:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef abstract::point< point1dsuper_type
typedef point_traits< point1d
>::dpoint_type 
dpoint_type

Public Member Functions

 point1d ()
 point1d (coord col)
 The coordinate of the point1d is set to col.
coord col () const
 Return the value of the point1d coordinate.
coordcol ()
 Return a reference to the point1d coordinate.

Static Public Member Functions

static std::string name ()

Protected Member Functions

point1d plus_dp (const dpoint1d &dp) const
 Return a point1d whose coordinate is equal to dp coordinate plus the current point1d coordinate.
point1d minus_dp (const dpoint1d &dp) const
 Return a point1d whose coordinate is equal to the current point1d coordinate minus dp coordinate.
point1dplus_assign_dp (const dpoint1d &dp)
 Return a reference to the current point1d plus dp.
point1dminus_assign_dp (const dpoint1d &dp)
 Return a reference to the current point1d minus dp.
dpoint1d minus_p (const point1d &p) const
 Return a dpoint1d whose coordinate is equal to the current point1d coordinate minus p coordinate.
point1d minus () const
 Return a point1d whose coordinate is equal to the opposite of the current point1d coordinate.

Friends

class abstract::point< point1d >

Detailed Description

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

Definition at line 68 of file point1d.hh.


The documentation for this class was generated from the following files:
Generated on Tue Feb 20 20:24:18 2007 for Olena by  doxygen 1.5.1