Public Member Functions | Private Attributes
mbl_chord Class Reference

Horizontal line used in images, with integer co-ordinates. More...

#include <mbl_chord.h>

List of all members.

Public Member Functions

 mbl_chord ()
 Constructor.
 mbl_chord (int start_x, int end_x, int y)
 Constructor.
int start_x () const
 X-ordinate of start.
int end_x () const
 X-ordinate of end.
int y () const
 y-ordinate.
int length () const
 Length.
void b_write (vsl_b_ostream &bfs) const
 Write to binary stream.
void b_read (vsl_b_istream &bfs)
 Read from binary stream.
bool operator== (const mbl_chord &c) const
 Comparison.

Private Attributes

int start_x_
int end_x_
int y_

Detailed Description

Horizontal line used in images, with integer co-ordinates.

Definition at line 14 of file mbl_chord.h.


Constructor & Destructor Documentation

mbl_chord::mbl_chord ( ) [inline]

Constructor.

Definition at line 22 of file mbl_chord.h.

mbl_chord::mbl_chord ( int  start_x,
int  end_x,
int  y 
) [inline]

Constructor.

Definition at line 25 of file mbl_chord.h.


Member Function Documentation

void mbl_chord::b_read ( vsl_b_istream bfs) [inline]

Read from binary stream.

Definition at line 59 of file mbl_chord.h.

void mbl_chord::b_write ( vsl_b_ostream bfs) const [inline]

Write to binary stream.

Definition at line 51 of file mbl_chord.h.

int mbl_chord::end_x ( ) const [inline]

X-ordinate of end.

Definition at line 32 of file mbl_chord.h.

int mbl_chord::length ( ) const [inline]

Length.

Definition at line 38 of file mbl_chord.h.

bool mbl_chord::operator== ( const mbl_chord c) const [inline]

Comparison.

Definition at line 66 of file mbl_chord.h.

int mbl_chord::start_x ( ) const [inline]

X-ordinate of start.

Definition at line 29 of file mbl_chord.h.

int mbl_chord::y ( ) const [inline]

y-ordinate.

Definition at line 35 of file mbl_chord.h.


Member Data Documentation

int mbl_chord::end_x_ [private]

Definition at line 18 of file mbl_chord.h.

int mbl_chord::start_x_ [private]

Definition at line 17 of file mbl_chord.h.

int mbl_chord::y_ [private]

Definition at line 19 of file mbl_chord.h.


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