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

mrpt::detectors::CDetectable2D Class Reference


Detailed Description

Definition at line 66 of file CDetectableObject.h.

#include <mrpt/detectors/CDetectableObject.h>

Inheritance diagram for mrpt::detectors::CDetectable2D:
Inheritance 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.

RTTI stuff



typedef CDetectable2DPtr SmartPtr
static mrpt::utils::CLASSINIT _init_CDetectable2D
static mrpt::utils::TRuntimeClassId classCDetectable2D
static const
mrpt::utils::TRuntimeClassId
classinfo
static const
mrpt::utils::TRuntimeClassId
_GetBaseClass ()
virtual const
mrpt::utils::TRuntimeClassId
GetRuntimeClass () const
 Returns information about the class of an object in runtime.
virtual mrpt::utils::CObjectduplicate () const
 Returns a copy of the object, indepently of its class.
static mrpt::utils::CObjectCreateObject ()
static CDetectable2DPtr Create ()

Member Typedef Documentation

A typedef for the associated smart pointer

Reimplemented in mrpt::detectors::CDetectable3D.

Definition at line 68 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

static const mrpt::utils::TRuntimeClassId* mrpt::detectors::CDetectable2D::_GetBaseClass (  )  [static, protected]
static CDetectable2DPtr mrpt::detectors::CDetectable2D::Create (  )  [static]

Reimplemented in mrpt::detectors::CDetectable3D.

static mrpt::utils::CObject* mrpt::detectors::CDetectable2D::CreateObject (  )  [static]

Reimplemented in mrpt::detectors::CDetectable3D.

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, m_y, pow(), and sqrt().

virtual mrpt::utils::CObject* mrpt::detectors::CDetectable2D::duplicate (  )  const [virtual]

Returns a copy of the object, indepently of its class.

Implements mrpt::utils::CObject.

Reimplemented in mrpt::detectors::CDetectable3D.

virtual const mrpt::utils::TRuntimeClassId* mrpt::detectors::CDetectable2D::GetRuntimeClass (  )  const [virtual]

Returns information about the class of an object in runtime.

Reimplemented from mrpt::detectors::CDetectableObject.

Reimplemented in mrpt::detectors::CDetectable3D.


Member Data Documentation

Definition at line 68 of file CDetectableObject.h.

Definition at line 68 of file CDetectableObject.h.

Reimplemented in mrpt::detectors::CDetectable3D.

Definition at line 68 of file CDetectableObject.h.

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




Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011