Skip to content

Commit

Permalink
orbbec: initial implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 5, 2024
1 parent 1309df1 commit ea7089b
Show file tree
Hide file tree
Showing 17 changed files with 473 additions and 489 deletions.
105 changes: 0 additions & 105 deletions .clang-format

This file was deleted.

1 change: 1 addition & 0 deletions 3rdparty/OrbbecSDK_v2
Submodule OrbbecSDK_v2 added at a79866
27 changes: 18 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

if(NOT (WIN32 OR APPLE OR LINUX))
return()
endif()

if(NOT TARGET score_lib_base)
include("${SCORE_SOURCE_DIR}/cmake/ScoreExternalAddon.cmake")
endif()

project(score_addon_orbbec LANGUAGES CXX)

set(OB_BUILD_EXAMPLES 0)
set(OB_BUILD_TESTS 0)
set(OB_BUILD_DOCS 0)
set(OB_BUILD_TOOLS 0)
add_subdirectory(3rdparty/OrbbecSDK_v2 SYSTEM)

# General initialization
score_common_setup()

# Creation of the library
add_library(score_addon_orbbec
Orbbec/Device.cpp
Orbbec/Device.hpp
Orbbec/ProtocolFactory.cpp
Orbbec/ProtocolFactory.hpp
Orbbec/ProtocolSettingsWidget.cpp
Orbbec/ProtocolSettingsWidget.hpp
Orbbec/SpecificSettings.hpp
Orbbec/SpecificSettingsSerialization.cpp
Orbbec/OrbbecInputDevice.hpp
Orbbec/OrbbecInputDevice.cpp

score_addon_orbbec.hpp
score_addon_orbbec.cpp
)

# Link
target_link_libraries(score_addon_orbbec PUBLIC score_plugin_engine)
target_link_libraries(score_addon_orbbec PUBLIC
score_plugin_engine
score_plugin_media
score_plugin_gfx
ob::OrbbecSDK
)

# Target-specific options
setup_score_plugin(score_addon_orbbec)
Empty file added Orbbec/ApplicationPlugin.cpp
Empty file.
17 changes: 17 additions & 0 deletions Orbbec/ApplicationPlugin.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#pragma once
#include <score/plugins/application/GUIApplicationPlugin.hpp>

#include <libobsensor/ObSensor.hpp>

namespace Gfx::Orbbec
{
class ApplicationPlugin
: public QObject
, public score::GUIApplicationPlugin
{
public:
using GUIApplicationPlugin::GUIApplicationPlugin;

ob::Context orbbec;
};
}
73 changes: 0 additions & 73 deletions Orbbec/Device.cpp

This file was deleted.

27 changes: 0 additions & 27 deletions Orbbec/Device.hpp

This file was deleted.

Loading

0 comments on commit ea7089b

Please sign in to comment.