$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::dpoint3d Class Reference

#include <mln/core/alias/dpoint3d.hh>

Public Member Functions

 dpoint3d ()
template<typename C2 >
 dpoint3d (const algebra::vec< dim, C2 > &v)
 dpoint3d (def::coord sli, def::coord row, def::coord col)
 dpoint3d (const literal::zero_t &)
template<typename F >
 dpoint3d (const Function_v2v< F > &f)
 operator mln::algebra::vec< dpoint< mln::grid::cube, def::coord >::dim, Q > () const
def::coord operator[] (unsigned i) const
def::coordoperator[] (unsigned i)
void set_all (def::coordc)
vec to_vec () const

Protected Attributes

mln::algebra::vec
< mln::grid::cube::dim,
def::coord
coord_

Public Types

enum  
typedef Gdpoint< void > category
typedef def::coord coord
typedef E exact_t
typedef mln::grid::cube grid
typedef point< mln::grid::cube,
def::coord
psite
typedef point< mln::grid::cube,
def::coord
site
typedef algebra::vec
< mln::grid::cube::dim,
def::coord
vec

Detailed Description

Type alias for a delta-point defined on the 3D square grid with integer coordinates.

This class stored relative positions of a site. It is meant to be used with point1d to compute a new point3d.

point3d p(2,2,2);
dpoint3d up(0,-1,0);
dpoint3d p_up = p + up;
// p_up = point3d(2,1,2);

dpoint3d are also used in window3d to store the relative neighboors.

See Also
point3d, window3d

Definition at line 6 of file dpoint3d.dox.

Constructor & Destructor Documentation

mln::dpoint3d::dpoint3d ( )

Constructor without argument.

template<typename C2 >
mln::dpoint3d::dpoint3d ( const algebra::vec< dim, C2 > &  v)

Constructor from an algebra vector.

mln::dpoint3d::dpoint3d ( def::coord  sli,
def::coord  row,
def::coord  col 
)

Constructor from coordinates.

mln::dpoint3d::dpoint3d ( const literal::zero_t )

Construct a dpoint with coordinates (0,0,0).

template<typename F >
mln::dpoint3d::dpoint3d ( const Function_v2v< F > &  f)

Constructor; coordinates are set by function f.

Member Function Documentation

Conversion towards a algebra::vec.

def::coord mln::dpoint< mln::grid::cube , def::coord >::operator[] ( unsigned  i) const
inherited

Read-only access to the i-th coordinate value.

Parameters
[in]iThe coordinate index.
Precondition
i < dim
def::coord & mln::dpoint< mln::grid::cube , def::coord >::operator[] ( unsigned  i)
inherited

Read-write access to the i-th coordinate value.

Parameters
[in]iThe coordinate index.
Precondition
i < dim
void mln::dpoint< mln::grid::cube , def::coord >::set_all ( def::coord  c)
inherited

Set all coordinates to the value c.

vec mln::dpoint< mln::grid::cube , def::coord >::to_vec ( ) const
inherited

Explicit conversion.

Member Data Documentation

Definition at line 127 of file dpoint.hh.

Member Typedef Documentation

template<typename E>
typedef Gdpoint<void> mln::Gdpoint< E >::category
inherited

Definition at line 103 of file gdpoint.hh.

Coordinate associated type.

Definition at line 75 of file dpoint.hh.

template<typename E>
typedef E mln::Object< E >::exact_t
inherited

Definition at line 105 of file object.hh.

Grid associated type.

Definition at line 66 of file dpoint.hh.

Psite associated type.

Definition at line 69 of file dpoint.hh.

Site associated type.

Definition at line 72 of file dpoint.hh.

Algebra vector (vec) associated type.

Definition at line 78 of file dpoint.hh.

Member Enumeration Documentation

anonymous enum
inherited

Definition at line 63 of file dpoint.hh.