Main MRPT website
>
C++ reference for MRPT 1.9.9
registerAllClasses.cpp
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
10
#include "
img-precomp.h
"
11
12
#include <
mrpt/img/CImage.h
>
13
#include <
mrpt/img/TCamera.h
>
14
#include <
mrpt/img/TStereoCamera.h
>
15
#include <
mrpt/core/initializer.h
>
16
17
using namespace
mrpt::img
;
18
19
MRPT_INITIALIZER
(registerAllClasses_mrpt_imgs)
20
{
21
#if !defined(DISABLE_MRPT_AUTO_CLASS_REGISTRATION)
22
// Hack to enable compatibility with an older name of this class:
23
registerClassCustomName
(
"CMRPTImage"
,
CLASS_ID
(
CImage
));
24
registerClass
(
CLASS_ID
(
CImage
));
25
registerClass
(
CLASS_ID
(
TCamera
));
26
registerClass
(
CLASS_ID
(
TStereoCamera
));
27
#endif
28
}
mrpt::rtti::registerClass
void registerClass(const mrpt::rtti::TRuntimeClassId *pNewClass)
Register a class into the MRPT internal list of "CObject" descendents.
Definition:
internal_class_registry.cpp:155
MRPT_INITIALIZER
#define MRPT_INITIALIZER(f)
Definition:
initializer.h:47
initializer.h
TStereoCamera.h
TCamera.h
mrpt::img
Definition:
CCanvas.h:17
mrpt::img::TStereoCamera
Structure to hold the parameters of a pinhole stereo camera model.
Definition:
TStereoCamera.h:25
img-precomp.h
mrpt::img::TCamera
Structure to hold the parameters of a pinhole camera model.
Definition:
TCamera.h:29
mrpt::img::CImage
A class for storing images as grayscale or RGB bitmaps.
Definition:
img/CImage.h:130
mrpt::rtti::registerClassCustomName
void registerClassCustomName(const char *customName, const TRuntimeClassId *pNewClass)
Mostly for internal use within mrpt sources, to handle exceptional cases with multiple serialization ...
Definition:
internal_class_registry.cpp:168
CLASS_ID
#define CLASS_ID(T)
Access to runtime class ID for a defined class name.
Definition:
CObject.h:85
CImage.h
Page generated by
Doxygen 1.8.17
for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST