Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

EndPoint Class Reference

#include <EndPoint.h>

Inheritance diagram for EndPoint:

Detailed Description

Definition at line 10 of file EndPoint.h.

List of all members.

Public Member Functions

 EndPoint ()
 EndPoint (coordinate_t const &xp, coordinate_t const &yp, coordinate_t const &zp=0)
 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 (  ) 

Definition at line 31 of file EndPoint.h.

EndPoint ( coordinate_t const &  xp,
coordinate_t const &  yp,
coordinate_t const &  zp = 0 
)

Definition at line 34 of file EndPoint.h.

EndPoint ( const Point otherPt  ) 

Definition at line 37 of file EndPoint.h.


Member Function Documentation

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 clearNumUpdates ( void   )  [private]

Definition at line 61 of file EndPoint.h.

void decrementNumUpdates ( void   ) 

Definition at line 66 of file EndPoint.h.

void incrementNumUpdates ( void   ) 

Definition at line 65 of file EndPoint.h.

bool isActive (  )  const
bool isMatchFor ( const EndPoint other,
float  dist_thresh 
) const

Definition at line 49 of file EndPoint.h.

Referenced by EndPoint::operator==().

int numUpdates ( void   )  const

Definition at line 67 of file EndPoint.h.

Referenced by LineData::setEndPts().

bool operator== ( const EndPoint other  )  const

Definition at line 50 of file EndPoint.h.

void setActive ( bool  _active  ) 

Definition at line 44 of file EndPoint.h.

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

void setNumUpdates ( long  _nsamples  )  [private]

Definition at line 62 of file EndPoint.h.

Referenced by LineData::setEndPts().

void updateParams ( const EndPoint other,
unsigned int  num_updates 
)

Definition at line 23 of file EndPoint.cc.

void updateParams ( const EndPoint other  ) 

Friends And Related Function Documentation

friend class BoundaryDetector [friend]

Definition at line 28 of file EndPoint.h.

friend class LineData [friend]

Definition at line 27 of file EndPoint.h.

friend class PolygonData [friend]

Definition at line 29 of file EndPoint.h.


Member Data Documentation

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().

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().

bool rendering_valid [mutable, 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::renderOnTo(), EndPoint::setActive(), and EndPoint::updateParams().

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(), LineData::mergeWith(), and EndPoint::setValid().


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

DualCoding 5.1CVS
Generated Mon May 9 04:56:30 2016 by Doxygen 1.6.3