Public Member Functions | Protected Member Functions | Protected Attributes
gevd_region_edge Class Reference

#include <gevd_region_edge.h>

Inheritance diagram for gevd_region_edge:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 gevd_region_edge (vtol_edge_2d_sptr e)
 gevd_region_edge (gevd_region_edge const &e)
 ~gevd_region_edge ()
void Prop (gevd_region_edge const *re, unsigned int label)
 Conditionally propagate the labels of a gevd_region_edge.
vtol_edge_2d_sptr get_edge () const
bool is_vertex () const
unsigned int NumLabels () const
unsigned int GetLabel (unsigned int i) const
void ref ()
void unref ()
int get_references () const
bool is_referenced () const

Protected Member Functions

bool SetNewLabel (unsigned int label)

Protected Attributes

vtol_edge_2d_sptr edge_
vcl_vector< unsigned int > labels_

Detailed Description

Definition at line 47 of file gevd_region_edge.h.


Constructor & Destructor Documentation

gevd_region_edge::gevd_region_edge ( vtol_edge_2d_sptr  e)

Definition at line 7 of file gevd_region_edge.cxx.

gevd_region_edge::gevd_region_edge ( gevd_region_edge const &  e) [inline]

Definition at line 52 of file gevd_region_edge.h.

gevd_region_edge::~gevd_region_edge ( )

Definition at line 12 of file gevd_region_edge.cxx.


Member Function Documentation

vtol_edge_2d_sptr gevd_region_edge::get_edge ( ) const [inline]

Definition at line 56 of file gevd_region_edge.h.

unsigned int gevd_region_edge::GetLabel ( unsigned int  i) const [inline]

Definition at line 59 of file gevd_region_edge.h.

bool gevd_region_edge::is_vertex ( ) const

Definition at line 16 of file gevd_region_edge.cxx.

unsigned int gevd_region_edge::NumLabels ( ) const [inline]

Definition at line 58 of file gevd_region_edge.h.

void gevd_region_edge::Prop ( gevd_region_edge const *  re,
unsigned int  label 
)

Conditionally propagate the labels of a gevd_region_edge.

In this approach we don't differentiate between Right and Left. Here we allow an unlimited number of labels to be assigned to an edge, which is necessary due to small regions which don't have proper closure but whose edges are on the boundary of larger legitimate regions.

Definition at line 36 of file gevd_region_edge.cxx.

bool gevd_region_edge::SetNewLabel ( unsigned int  label) [protected]

Definition at line 21 of file gevd_region_edge.cxx.


Member Data Documentation

Definition at line 65 of file gevd_region_edge.h.

vcl_vector<unsigned int> gevd_region_edge::labels_ [protected]

Definition at line 66 of file gevd_region_edge.h.


The documentation for this class was generated from the following files: