MRPT  2.0.4
registerAllClasses.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #include "img-precomp.h"
11 
12 #include <mrpt/core/initializer.h>
13 #include <mrpt/img/CImage.h>
14 #include <mrpt/img/TCamera.h>
15 #include <mrpt/img/TStereoCamera.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));
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:183
MRPT_INITIALIZER
#define MRPT_INITIALIZER(f)
Definition: initializer.h:45
initializer.h
TStereoCamera.h
TCamera.h
mrpt::img
Definition: CCanvas.h:16
mrpt::img::TStereoCamera
Structure to hold the parameters of a pinhole stereo camera model.
Definition: TStereoCamera.h:23
img-precomp.h
mrpt::img::TCamera
Parameters for the Brown-Conrady camera lens distortion model.
Definition: TCamera.h:26
mrpt::img::CImage
A class for storing images as grayscale or RGB bitmaps.
Definition: img/CImage.h:148
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:206
CLASS_ID
#define CLASS_ID(T)
Access to runtime class ID for a defined class name.
Definition: CObject.h:102
CImage.h



Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Fri Jul 17 08:43:33 UTC 2020