oln::point3d Class Reference

#include <point3d.hh>

Inheritance diagram for oln::point3d:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef abstract::point< point3dsuper_type
typedef point_traits< point3d
>::dpoint_type 
dpoint_type

Public Member Functions

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

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

coord slice () const
 Return the value of the point3d slice coordinate.

coordslice ()
 Return a reference to the value of the point3d slice coordinate.

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

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

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

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


Static Public Member Functions

std::string name ()

Protected Member Functions

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

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

point3dplus_assign_dp (const dpoint3d &dp)
 Return a reference to the current point3d plus dp.

point3dminus_assign_dp (const dpoint3d &dp)
 Return a reference to the current point3d minus dp.

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

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


Friends

class abstract::point< point3d >

Detailed Description

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

Definition at line 67 of file point3d.hh.


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