Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

EndPoint Class Reference

#include <EndPoint.h>

Inheritance diagram for EndPoint:

List of all members.


Detailed Description

Definition at line 10 of file EndPoint.h.


Public Member Functions

 EndPoint ()
 EndPoint (coordinate_t const &xp, coordinate_t const &yp)
 EndPoint (const Point &otherPt)
bool isValid () const
void setValid (bool _valid)
bool isActive () const
void setActive (bool _active)
bool isMatchFor (const EndPoint &other, float dist_thresh) const
bool operator== (const EndPoint &other) const
void checkValidity (int width, int height, int edge_thresh)
void updateParams (const EndPoint &other)
void updateParams (const EndPoint &other, unsigned int num_updates)
void incrementNumUpdates (void)
void decrementNumUpdates (void)
int numUpdates (void) const

Private Member Functions

void clearNumUpdates (void)
void setNumUpdates (long _nsamples)

Private Attributes

bool valid
 valid indicates whether or not this is known to be the final end-point of the line.
bool active
 active indicates whether or not the line is to terminate at this point.
bool rendering_valid
 rendering_valid is set when the line is rendered and cleared if an endpoint is modified
int nsamples
 How many measurements have gone into the estimate of this point.

Friends

class LineData
class BoundaryDetector
class PolygonData

Constructor & Destructor Documentation

EndPoint (  )  [inline]

Definition at line 31 of file EndPoint.h.

EndPoint ( coordinate_t const &  xp,
coordinate_t const &  yp 
) [inline]

Definition at line 34 of file EndPoint.h.

EndPoint ( const Point otherPt  )  [inline]

Definition at line 37 of file EndPoint.h.


Member Function Documentation

bool isActive (  )  const [inline]

void setActive ( bool  _active  )  [inline]

Definition at line 44 of file EndPoint.h.

Referenced by LineData::LineData(), LineData::setEndPts(), and LineData::setInfinite().

bool isMatchFor ( const EndPoint other,
float  dist_thresh 
) const [inline]

Definition at line 49 of file EndPoint.h.

Referenced by EndPoint::operator==().

bool operator== ( const EndPoint other  )  const [inline]

Definition at line 50 of file EndPoint.h.

void checkValidity ( int  width,
int  height,
int  edge_thresh 
)

Checks if endpoint comes to close to edge of camera frame and if so, marks it as invalid.

Definition at line 5 of file EndPoint.cc.

void updateParams ( const EndPoint other  ) 

void updateParams ( const EndPoint other,
unsigned int  num_updates 
)

Definition at line 23 of file EndPoint.cc.

void clearNumUpdates ( void   )  [inline, private]

Definition at line 61 of file EndPoint.h.

void setNumUpdates ( long  _nsamples  )  [inline, private]

Definition at line 62 of file EndPoint.h.

Referenced by LineData::setEndPts().

void incrementNumUpdates ( void   )  [inline]

Definition at line 65 of file EndPoint.h.

void decrementNumUpdates ( void   )  [inline]

Definition at line 66 of file EndPoint.h.

int numUpdates ( void   )  const [inline]

Definition at line 67 of file EndPoint.h.

Referenced by LineData::setEndPts().


Friends And Related Function Documentation

friend class LineData [friend]

Definition at line 27 of file EndPoint.h.

friend class BoundaryDetector [friend]

Definition at line 28 of file EndPoint.h.

friend class PolygonData [friend]

Definition at line 29 of file EndPoint.h.


Member Data Documentation

bool valid [private]

valid indicates whether or not this is known to be the final end-point of the line.

If false, this was the point at which the line went off-camera, not the true end point.

Definition at line 14 of file EndPoint.h.

Referenced by EndPoint::isValid(), and EndPoint::setValid().

bool active [private]

active indicates whether or not the line is to terminate at this point.

If false, the line will continue infinitely as a ray beyond this point.

Definition at line 18 of file EndPoint.h.

Referenced by EndPoint::isActive(), and EndPoint::setActive().

bool rendering_valid [private]

rendering_valid is set when the line is rendered and cleared if an endpoint is modified

Definition at line 21 of file EndPoint.h.

Referenced by LineData::render(), EndPoint::setActive(), and EndPoint::updateParams().

int nsamples [private]

How many measurements have gone into the estimate of this point.

Definition at line 24 of file EndPoint.h.

Referenced by EndPoint::clearNumUpdates(), EndPoint::decrementNumUpdates(), EndPoint::incrementNumUpdates(), EndPoint::numUpdates(), EndPoint::setNumUpdates(), and EndPoint::updateParams().


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

DualCoding 4.0
Generated Thu Nov 22 00:53:56 2007 by Doxygen 1.5.4