Ocean
Loading...
Searching...
No Matches
devices/pattern/Pattern.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_DEVICES_PATTERN_PATTERN_H
9#define META_OCEAN_DEVICES_PATTERN_PATTERN_H
10
12
13namespace Ocean
14{
15
16namespace Devices
17{
18
19namespace Pattern
20{
21
22/**
23 * @ingroup devices
24 * @defgroup devicespattern Ocean Devices Pattern Library
25 * @{
26 * The Ocean Devices Pattern Library provides a Pattern feature based tracking library.
27 * This device plugin provides a 6DOF feature tracker with unique name <strong>"Pattern 6DOF Tracker"</strong>.<br>
28 * Do not create a tracker object directly, but use the Devices::Manager object instead.<br>
29 * The library is platform independent.
30 * @}
31 */
32
33/**
34 * @namespace Ocean::Devices::Pattern Namespace of the Devices Pattern library.<p>
35 * The Namespace Ocean::Devices::Pattern is used in the entire Ocean Devices Pattern Library.
36 */
37
38// Defines OCEAN_DEVICES_PATTERN_EXPORT for dll export and import.
39#if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
40 #ifdef USE_OCEAN_DEVICES_PATTERN_EXPORT
41 #define OCEAN_DEVICES_PATTERN_EXPORT __declspec(dllexport)
42 #else
43 #define OCEAN_DEVICES_PATTERN_EXPORT __declspec(dllimport)
44 #endif
45#else
46 #define OCEAN_DEVICES_PATTERN_EXPORT
47#endif
48
49/**
50 * Returns the name of this devices library.
51 * @ingroup devicespattern
52 */
53OCEAN_DEVICES_PATTERN_EXPORT std::string namePatternLibrary();
54
55#if defined(OCEAN_RUNTIME_STATIC)
56
57/**
58 * Registers this Pattern device library at the global device manager.
59 * This function calls PatternFactory::registerFactory() only.
60 * @ingroup devicespattern
61 */
63
64/**
65 * Unregisters this Pattern device library at the global device manager.
66 * This function calls PatternFactory::unregisterFactory() only.
67 * @return True, if succeeded
68 * @ingroup devicespattern
69 */
71
72#endif // OCEAN_RUNTIME_STATIC
73
74}
75
76}
77
78}
79
80#endif // META_OCEAN_DEVICES_PATTERN_PATTERN_H
bool unregisterPatternLibrary()
Unregisters this Pattern device library at the global device manager.
OCEAN_DEVICES_PATTERN_EXPORT std::string namePatternLibrary()
Returns the name of this devices library.
void registerPatternLibrary()
Registers this Pattern device library at the global device manager.
The namespace covering the entire Ocean framework.
Definition Accessor.h:15