$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::topo::face< D > Class Template Reference

#include <mln/topo/face.hh>

Public Member Functions

 face ()
 face (complex< D > &complex, unsigned n, unsigned face_id)
template<unsigned N>
 face (const n_face< N, D > &f)
void invalidate ()
bool is_valid () const
complex< D > cplx () const
unsigned n () const
unsigned face_id () const
void set_cplx (const complex< D > &cplx)
void set_n (unsigned n)
void inc_n ()
void dec_n ()
void set_face_id (unsigned face_id)
void inc_face_id ()
void dec_face_id ()
template<unsigned N>
face_data< N, D > & data () const
std::vector< algebraic_face< D > > lower_dim_adj_faces () const
std::vector< algebraic_face< D > > higher_dim_adj_faces () const

Public Types

typedef complex< D > complex_type

Detailed Description

template<unsigned D>
class mln::topo::face< D >

Face handle in a complex; the face dimension is dynamic.

Contrary to an mln::topo::n_face, the dimension of an mln::topo::face is not fixed.

Definition at line 64 of file face.hh.

Constructor & Destructor Documentation

template<unsigned D>
mln::topo::face< D >::face ( )

Build a non-initialized face handle.

template<unsigned D>
mln::topo::face< D >::face ( complex< D > &  complex,
unsigned  n,
unsigned  face_id 
)

Build a face handle from complex and face_id.

template<unsigned D>
template<unsigned N>
mln::topo::face< D >::face ( const n_face< N, D > &  f)

Build a face handle from an mln::topo::n_face.

Member Function Documentation

template<unsigned D>
complex<D> mln::topo::face< D >::cplx ( ) const

Accessors.

Return the complex the face belongs to.

template<unsigned D>
template<unsigned N>
face_data<N, D>& mln::topo::face< D >::data ( ) const

Return the mln::topo::face_data pointed by this handle.

template<unsigned D>
void mln::topo::face< D >::dec_face_id ( )

Decrement the id of the face.

template<unsigned D>
void mln::topo::face< D >::dec_n ( )

Decrement the dimension of the face.

template<unsigned D>
unsigned mln::topo::face< D >::face_id ( ) const

Return the id of the face.

template<unsigned D>
std::vector< algebraic_face<D> > mln::topo::face< D >::higher_dim_adj_faces ( ) const

Return an array of face handles pointing to adjacent (n+1)-faces.

template<unsigned D>
void mln::topo::face< D >::inc_face_id ( )

Increment the id of the face.

template<unsigned D>
void mln::topo::face< D >::inc_n ( )

Increment the dimension of the face.

template<unsigned D>
void mln::topo::face< D >::invalidate ( )

Invalidate this handle.

template<unsigned D>
bool mln::topo::face< D >::is_valid ( ) const

Is this handle valid?

template<unsigned D>
std::vector< algebraic_face<D> > mln::topo::face< D >::lower_dim_adj_faces ( ) const

Return an array of face handles pointing to adjacent (n-1)-faces.

template<unsigned D>
unsigned mln::topo::face< D >::n ( ) const

Return the dimension of the face.

template<unsigned D>
void mln::topo::face< D >::set_cplx ( const complex< D > &  cplx)

Set the complex the face belongs to.

template<unsigned D>
void mln::topo::face< D >::set_face_id ( unsigned  face_id)

Set the id of the face.

template<unsigned D>
void mln::topo::face< D >::set_n ( unsigned  n)

Set the dimension of the face.

Member Typedef Documentation

template<unsigned D>
typedef complex<D> mln::topo::face< D >::complex_type

Definition at line 68 of file face.hh.