AURobotServers  4
Public Member Functions | Public Attributes | List of all members
AU2DLineSeg Class Reference

#include <au2dlineseg.h>

Inheritance diagram for AU2DLineSeg:
Inheritance graph

Public Member Functions

 AU2DLineSeg ()
 
virtual const char * getDataType ()
 Get type of this structure. More...
 
void getOtherEnd (double *x2, double *y2)
 get x,y coordinates ot the other end of line More...
 
void setLine (double vx, double vy, double vth, double vlen, double vresSQ)
 set line from direct values More...
 
char * toXMLString (char *target, const int targetCnt, const char *extra=NULL)
 Code line as an XML tag to this target string. More...
 
virtual ~AU2DLineSeg ()
 
- Public Member Functions inherited from UDataBase
bool isA (const char *typeString)
 
virtual bool isAlsoA (const char *typeString)
 
virtual void snprint (const char *preString, char *buff, const int buffCnt)
 
 UDataBase ()
 
virtual ~UDataBase ()
 

Public Attributes

double length
 length of line in meters More...
 
double resSQ
 mean square error (square residual) when fitted More...
 
double th
 orientation of line in radians More...
 
double x
 start point of line x in meter More...
 
double y
 start point of line y in meter More...
 

Detailed Description

2D line segment - invented as result type for 'scan features', and is compatible with inter resource data transfer (as it has a UDataBase source type

    @author Christian <chrand@mail.dk>

Constructor & Destructor Documentation

AU2DLineSeg::AU2DLineSeg ( )

Constructor

AU2DLineSeg::~AU2DLineSeg ( )
virtual

Destructor

Member Function Documentation

virtual const char* AU2DLineSeg::getDataType ( )
inlinevirtual

Get type of this structure.

Reimplemented from UDataBase.

References getOtherEnd(), setLine(), and toXMLString().

void AU2DLineSeg::getOtherEnd ( double *  x2,
double *  y2 
)

get x,y coordinates ot the other end of line

References length, th, x, and y.

Referenced by getDataType().

void AU2DLineSeg::setLine ( double  vx,
double  vy,
double  vth,
double  vlen,
double  vresSQ 
)

set line from direct values

References length, resSQ, th, x, and y.

Referenced by UResAuEf::findFeatures(), getDataType(), and UResAuEf::updateWalls().

char * AU2DLineSeg::toXMLString ( char *  target,
const int  targetCnt,
const char *  extra = NULL 
)

Code line as an XML tag to this target string.

Parameters
targetchar buffer, where to put coded data.
targetCntis the length of the target buffer.
Returns
a pointer to to the target string.

References length, resSQ, th, x, and y.

Referenced by getDataType(), UFuncEfLine::sendAllLines(), and UFuncEfLine::sendBoxLines().

Member Data Documentation

double AU2DLineSeg::length
double AU2DLineSeg::resSQ

mean square error (square residual) when fitted

Referenced by UResAuEf::findFeatures(), setLine(), and toXMLString().

double AU2DLineSeg::th

orientation of line in radians

Referenced by UResAuEf::findFeatures(), getOtherEnd(), setLine(), and toXMLString().

double AU2DLineSeg::x
double AU2DLineSeg::y

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