Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

BBOXpix Class Reference

#include <bbox.H>

Collaboration diagram for BBOXpix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BBOXpix ()
 BBOXpix (mlib::CPIXEL &l, mlib::CPIXEL &h)
 BBOXpix (CBBOXpix &b)
void reset ()
bool valid () const
mlib::PIXEL min () const
mlib::PIXEL max () const
mlib::PIXEL center () const
mlib::VEXEL dim () const
double width () const
double height () const
void scale (double s)
bool overlaps (CBBOXpix &b) const
bool contains (mlib::CPIXEL &p) const
double dist (mlib::CPIXEL &p) const
BBOXpixoperator+= (CBBOXpix &b)
BBOXpixoperator+= (mlib::CPIXEL_list &pts)
BBOXpixupdate (mlib::CPIXEL &p)
void set (mlib::CPIXEL &l, mlib::CPIXEL &h)

Protected Attributes

bool _valid
mlib::PIXEL _max
mlib::PIXEL _min

Detailed Description

Definition at line 154 of file bbox.H.


Constructor & Destructor Documentation

BBOXpix::BBOXpix  )  [inline]
 

Definition at line 159 of file bbox.H.

BBOXpix::BBOXpix mlib::CPIXEL l,
mlib::CPIXEL h
[inline]
 

Definition at line 160 of file bbox.H.

BBOXpix::BBOXpix CBBOXpix &  b  )  [inline]
 

Definition at line 161 of file bbox.H.


Member Function Documentation

mlib::PIXEL BBOXpix::center  )  const [inline]
 

Definition at line 167 of file bbox.H.

References _max, and _min.

Referenced by scale().

bool BBOXpix::contains mlib::CPIXEL p  )  const
 

Definition at line 429 of file bbox.C.

References _max, _min, and _valid.

Referenced by dist().

mlib::VEXEL BBOXpix::dim  )  const [inline]
 

Definition at line 168 of file bbox.H.

References _max, and _min.

Referenced by height(), scale(), and width().

double BBOXpix::dist mlib::CPIXEL p  )  const
 

Definition at line 449 of file bbox.C.

References _max, _min, _valid, contains(), height(), min(), and width().

double BBOXpix::height  )  const [inline]
 

Definition at line 170 of file bbox.H.

References dim().

Referenced by dist().

mlib::PIXEL BBOXpix::max  )  const [inline]
 

Definition at line 166 of file bbox.H.

References _max.

Referenced by overlaps().

mlib::PIXEL BBOXpix::min  )  const [inline]
 

Definition at line 165 of file bbox.H.

References _min.

Referenced by dist(), and overlaps().

BBOXpix & BBOXpix::operator+= mlib::CPIXEL_list pts  ) 
 

Definition at line 491 of file bbox.C.

References update().

BBOXpix& BBOXpix::operator+= CBBOXpix &  b  )  [inline]
 

Definition at line 184 of file bbox.H.

References update().

bool BBOXpix::overlaps CBBOXpix &  b  )  const
 

Definition at line 439 of file bbox.C.

References _valid, max(), and min().

void BBOXpix::reset  )  [inline]
 

Definition at line 163 of file bbox.H.

References _valid.

void BBOXpix::scale double  s  )  [inline]
 

Definition at line 172 of file bbox.H.

References _max, _min, _valid, center(), and dim().

void BBOXpix::set mlib::CPIXEL l,
mlib::CPIXEL h
[inline]
 

Definition at line 188 of file bbox.H.

References _max, _min, and _valid.

Referenced by GESTURE::init().

BBOXpix & BBOXpix::update mlib::CPIXEL p  ) 
 

Definition at line 413 of file bbox.C.

References _max, _min, and _valid.

Referenced by GESTURE::add(), and operator+=().

bool BBOXpix::valid  )  const [inline]
 

Definition at line 164 of file bbox.H.

References _valid.

double BBOXpix::width  )  const [inline]
 

Definition at line 169 of file bbox.H.

References dim().

Referenced by dist().


Member Data Documentation

mlib::PIXEL BBOXpix::_max [protected]
 

Definition at line 157 of file bbox.H.

Referenced by center(), contains(), dim(), dist(), max(), scale(), set(), and update().

mlib::PIXEL BBOXpix::_min [protected]
 

Definition at line 157 of file bbox.H.

Referenced by center(), contains(), dim(), dist(), min(), scale(), set(), and update().

bool BBOXpix::_valid [protected]
 

Definition at line 156 of file bbox.H.

Referenced by contains(), dist(), overlaps(), reset(), scale(), set(), update(), and valid().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:44:26 2006 for jot by  doxygen 1.4.4