Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes

mrpt::detectors::CDetectable2D Class Reference

#include <mrpt/detectors/CDetectableObject.h>

Inheritance diagram for mrpt::detectors::CDetectable2D:
Inheritance graph
[legend]
Collaboration diagram for mrpt::detectors::CDetectable2D:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CDetectable2D (const int &x=0, const int &y=0, const int &height=0, const int &width=0)
 Extra constructor.
 CDetectable2D (const CDetectable2D *d)
 Copy pointer content constructor.
double distanceTo (const CDetectable2D &d2)
 Compute distance between centers of two detectable 2D objects.

Public Attributes

float m_x
float m_y
 2D Coordinates of detected object
float m_height
float m_width
 Size of detected object.

Detailed Description

Definition at line 66 of file CDetectableObject.h.


Constructor & Destructor Documentation

mrpt::detectors::CDetectable2D::CDetectable2D ( const int &  x = 0,
const int &  y = 0,
const int &  height = 0,
const int &  width = 0 
) [inline]

Extra constructor.

Definition at line 76 of file CDetectableObject.h.

mrpt::detectors::CDetectable2D::CDetectable2D ( const CDetectable2D *  d  )  [inline]

Copy pointer content constructor.

Definition at line 81 of file CDetectableObject.h.


Member Function Documentation

double mrpt::detectors::CDetectable2D::distanceTo ( const CDetectable2D &  d2  )  [inline]

Compute distance between centers of two detectable 2D objects.

Returns:
calculated distance.

Definition at line 89 of file CDetectableObject.h.

References m_height, m_width, m_x, and m_y.


Member Data Documentation

Definition at line 73 of file CDetectableObject.h.

Referenced by distanceTo().

Size of detected object.

Definition at line 73 of file CDetectableObject.h.

Referenced by distanceTo().

Definition at line 72 of file CDetectableObject.h.

Referenced by distanceTo().

2D Coordinates of detected object

Definition at line 72 of file CDetectableObject.h.

Referenced by distanceTo().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.7.1 for MRPT 0.9.1 SVN:exported at Fri Aug 6 10:31:35 UTC 2010