Public Member Functions | Private Attributes
LineSegSet Class Reference

#include <LineSegSet.h>

List of all members.

Public Member Functions

 LineSegSet ()
 LineSegSet (const HomgMetric &c, const vcl_vector< HomgLineSeg2D > &lines, bool is_conditioned=true)
 LineSegSet (const char *filename, const HomgMetric &c=0)
 Construct from ascii file.
 LineSegSet (const LineSegSet &that)
 ~LineSegSet ()
LineSegSetoperator= (const LineSegSet &that)
unsigned size () const
int pick_line_index (double x, double y)
 Return line selected by mouse click at (x,y) in image coordinates.
HomgLineSeg2Dpick_line (double x, double y)
 Return line selected by mouse click at (x,y) in image coordinates.
HomgLineSeg2Dget_homg (int i)
const HomgLineSeg2Dget_homg (int i) const
vcl_vector< HomgLineSeg2D > & get_homg ()
int FindNearestLineIndex (double x, double y)
bool load_ascii (vcl_istream &, HomgMetric const &c)
 Load lines from ASCII file.
bool save_ascii (vcl_ostream &) const
 Save lines to ASCII file.
bool set_iuline (int i, void *l)
void compute_homglines_from_rawlines (const HomgMetric &)

Private Attributes

vcl_vector< HomgLineSeg2Dhlines_
HomgMetric conditioner_

Detailed Description

Definition at line 20 of file LineSegSet.h.


Constructor & Destructor Documentation

LineSegSet::LineSegSet ( )

Definition at line 19 of file LineSegSet.cxx.

LineSegSet::LineSegSet ( const HomgMetric c,
const vcl_vector< HomgLineSeg2D > &  lines,
bool  is_conditioned = true 
)
LineSegSet::LineSegSet ( const char *  filename,
const HomgMetric c = 0 
)

Construct from ascii file.

Definition at line 46 of file LineSegSet.cxx.

LineSegSet::LineSegSet ( const LineSegSet that)

Definition at line 26 of file LineSegSet.cxx.

LineSegSet::~LineSegSet ( )

Definition at line 41 of file LineSegSet.cxx.


Member Function Documentation

void LineSegSet::compute_homglines_from_rawlines ( const HomgMetric )
int LineSegSet::FindNearestLineIndex ( double  x,
double  y 
)

Definition at line 92 of file LineSegSet.cxx.

HomgLineSeg2D& LineSegSet::get_homg ( int  i) [inline]

Definition at line 45 of file LineSegSet.h.

const HomgLineSeg2D& LineSegSet::get_homg ( int  i) const [inline]

Definition at line 46 of file LineSegSet.h.

vcl_vector<HomgLineSeg2D>& LineSegSet::get_homg ( ) [inline]

Definition at line 48 of file LineSegSet.h.

bool LineSegSet::load_ascii ( vcl_istream &  f,
HomgMetric const &  c 
)

Load lines from ASCII file.

Definition at line 53 of file LineSegSet.cxx.

LineSegSet & LineSegSet::operator= ( const LineSegSet that)

Definition at line 33 of file LineSegSet.cxx.

HomgLineSeg2D * LineSegSet::pick_line ( double  x,
double  y 
)

Return line selected by mouse click at (x,y) in image coordinates.

Definition at line 160 of file LineSegSet.cxx.

int LineSegSet::pick_line_index ( double  x,
double  y 
)

Return line selected by mouse click at (x,y) in image coordinates.

Definition at line 136 of file LineSegSet.cxx.

bool LineSegSet::save_ascii ( vcl_ostream &  f) const

Save lines to ASCII file.

Definition at line 120 of file LineSegSet.cxx.

bool LineSegSet::set_iuline ( int  i,
void *  l 
)
unsigned LineSegSet::size ( ) const [inline]

Definition at line 38 of file LineSegSet.h.


Member Data Documentation

Definition at line 24 of file LineSegSet.h.

vcl_vector<HomgLineSeg2D> LineSegSet::hlines_ [private]

Definition at line 23 of file LineSegSet.h.


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