diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3d85bee..a0c9217 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,7 @@ LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules)
set(OpenCV_DIR C:/Users/iscaLab_admin/Repos/opencv/build)
set(Boost_INCLUDE_DIR C:/Users/iscaLab_admin/Repos/boost_1_78_0)
include_directories(C:/Users/iscaLab_admin/Repos/boost_1_78_0)
-
+set(Pangolin_DIR C:/Users/iscaLab_admin/Repos/ORB_SLAM3-1.0-release/Thirdparty/Pangolin/build)
find_package(OpenCV 4.4)
if(NOT OpenCV_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/.clang-format b/Thirdparty/Pangolin-0.6/.clang-format
deleted file mode 100644
index 9d15924..0000000
--- a/Thirdparty/Pangolin-0.6/.clang-format
+++ /dev/null
@@ -1,2 +0,0 @@
-DisableFormat: true
-SortIncludes: false
diff --git a/Thirdparty/Pangolin-0.6/.gitignore b/Thirdparty/Pangolin-0.6/.gitignore
deleted file mode 100644
index ca02887..0000000
--- a/Thirdparty/Pangolin-0.6/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-.DS_Store
-CMakeLists.txt.user
-build*
diff --git a/Thirdparty/Pangolin-0.6/.gitmodules b/Thirdparty/Pangolin-0.6/.gitmodules
deleted file mode 100644
index 7676f39..0000000
--- a/Thirdparty/Pangolin-0.6/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "external/pybind11"]
- path = external/pybind11
- url = https://github.com/pybind/pybind11.git
diff --git a/Thirdparty/Pangolin-0.6/.travis.yml b/Thirdparty/Pangolin-0.6/.travis.yml
deleted file mode 100644
index d466bee..0000000
--- a/Thirdparty/Pangolin-0.6/.travis.yml
+++ /dev/null
@@ -1,30 +0,0 @@
-sudo: required
-dist: xenial
-
-before_install:
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt -qq update ; fi
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt install -qq --no-install-suggests --no-install-recommends libeigen3-dev libglew-dev libc++-dev libwayland-dev libxkbcommon-dev wayland-protocols libegl1-mesa-dev; fi
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pyenv versions && pyenv global system 3.7; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install eigen glew ; fi
-
-language: cpp
-
-matrix:
- include:
- - os: linux
- compiler: gcc
- env: PARALLEL_BUILD="-- -j 8"
- - os: linux
- compiler: clang
- env: PARALLEL_BUILD="-- -j 8"
- - os: osx
- env: PARALLEL_BUILD="-- -j 8"
- - os: windows
- env: PARALLEL_BUILD="--parallel 8"
-
-script:
- - mkdir build
- - cd build
- - cmake -D CMAKE_BUILD_TYPE=Release ..
- - cmake --build . $PARALLEL_BUILD
diff --git a/Thirdparty/Pangolin-0.6/CMakeLists.txt b/Thirdparty/Pangolin-0.6/CMakeLists.txt
deleted file mode 100644
index 0e13110..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeLists.txt
+++ /dev/null
@@ -1,109 +0,0 @@
-cmake_minimum_required(VERSION 2.8.12)
-project("Pangolin")
-set(PANGOLIN_VERSION_MAJOR 0)
-set(PANGOLIN_VERSION_MINOR 6)
-set(PANGOLIN_VERSION ${PANGOLIN_VERSION_MAJOR}.${PANGOLIN_VERSION_MINOR})
-
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/")
-
-# Platform configuration vars
-include(SetPlatformVars)
-
-SET(CPACK_GENERATOR "DEB")
-
-SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Steven Lovegrove")
-SET(CPACK_PACKAGE_VERSION_MAJOR ${PANGOLIN_VERSION_MAJOR})
-SET(CPACK_PACKAGE_VERSION_MINOR ${PANGOLIN_VERSION_MINOR})
-SET(CPACK_PACKAGE_VERSION_PATCH "0")
-include(CPack)
-
-option( BUILD_TESTS "Build Tests" ON )
-option( BUILD_TOOLS "Build Examples" ON )
-option( BUILD_EXAMPLES "Build Tools" ON )
-
-set (CMAKE_CXX_STANDARD 14)
-
-if(_WIN_)
- option( BUILD_SHARED_LIBS "Build Shared Library" OFF)
- option( BUILD_EXTERN_GLEW "Automatically download, build and compile GLEW" ON)
- option( BUILD_EXTERN_LIBPNG "Automatically download, build and compile libpng" ON)
- option( BUILD_EXTERN_LIBJPEG "Automatically download, build and compile libjpeg" ON)
- option( MSVC_USE_STATIC_CRT "Use static C Runtime with MSVC, /MT instead of /MD" ON)
-
- # Make sure there are no erroneous C Runtime flags
- list(APPEND FLAG_VARS
- CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
- CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
- )
- if(MSVC_USE_STATIC_CRT)
- foreach(FLAG_VAR ${FLAG_VARS})
- string(REGEX REPLACE "/MD" "/MT" NEW_FLAGS "${${FLAG_VAR}}")
- set(${FLAG_VAR} "${NEW_FLAGS}" CACHE STRING "" FORCE)
- endforeach()
- else()
- foreach(FLAG_VAR ${FLAG_VARS})
- string(REGEX REPLACE "/MT" "/MD" NEW_FLAGS "${${FLAG_VAR}}")
- set(${FLAG_VAR} "${NEW_FLAGS}" CACHE STRING "" FORCE)
- endforeach()
- endif()
-else()
- option( BUILD_SHARED_LIBS "Build Shared Library" ON)
-endif()
-
-if(NOT MSVC)
- set( CMAKE_CXX_FLAGS "-Wall -Wextra ${CMAKE_CXX_FLAGS}" )
-endif()
-
-if(ANDROID)
- set(ANDROID_PACKAGE_NAME "com.github.stevenlovegrove.pangolin")
- include(AndroidUtils)
-endif()
-
-if(ANDROID OR IOS)
- set(HAVE_GLES 1)
- option(BUILD_FOR_GLES_2 "Build for OpenGL ES 2 instead of ES 1" ON )
- if(BUILD_FOR_GLES_2)
- set(HAVE_GLES_2 1)
- endif()
-endif()
-
-if(_OSX_)
- set(CMAKE_MACOSX_RPATH ON)
-endif()
-
-# Overide with cmake -DCMAKE_BUILD_TYPE=Debug {dir}
-if( NOT CMAKE_BUILD_TYPE AND NOT _WIN_ )
- message("Build type not set (defaults to release)")
- message("-DCMAKE_BUILD_TYPE=Debug for debug")
- set( CMAKE_BUILD_TYPE Release )
-endif()
-
-string(TOLOWER ${PROJECT_NAME} LIBRARY_NAME)
-
-# make an uninstall target
-configure_file(
- "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
- "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
- IMMEDIATE @ONLY
-)
-
-add_custom_target(pangolin_uninstall
- "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
-
-add_subdirectory("external")
-add_subdirectory("src")
-
-if(BUILD_TESTS)
- set(Pangolin_DIR ${Pangolin_BINARY_DIR}/src)
- add_subdirectory("test")
-endif()
-
-if(BUILD_TOOLS)
- set(Pangolin_DIR ${Pangolin_BINARY_DIR}/src)
- add_subdirectory(tools)
-endif()
-
-if(BUILD_EXAMPLES)
- set(Pangolin_DIR ${Pangolin_BINARY_DIR}/src)
- add_subdirectory(examples)
-endif()
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/AndroidUtils.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/AndroidUtils.cmake
deleted file mode 100644
index cfb13dc..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/AndroidUtils.cmake
+++ /dev/null
@@ -1,245 +0,0 @@
-if(NOT ANDROID_PACKAGE_NAME)
- set(ANDROID_PACKAGE_NAME "com.github.stevenlovegrove.pangolin")
-endif()
-
-if(NOT ANDROID_DEFERRED_ENTRY_SO)
- set(ANDROID_DEFERRED_ENTRY_SO "libpangolin.so")
-endif()
-
-# Configure build environment to automatically generate APK's instead of executables.
-if(ANDROID AND NOT TARGET apk)
- # virtual targets which we'll add apks and push actions to.
- add_custom_target( apk )
- add_custom_target( push )
- add_custom_target( run )
-
- # Reset output directories to be in binary folder (rather than source)
- set(LIBRARY_OUTPUT_PATH_ROOT ${CMAKE_CURRENT_BINARY_DIR})
- set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH_ROOT}/libs/${ANDROID_NDK_ABI_NAME})
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH_ROOT}/libs/${ANDROID_NDK_ABI_NAME})
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LIBRARY_OUTPUT_PATH_ROOT}/bin/${ANDROID_NDK_ABI_NAME})
-
- macro( create_android_manifest_xml filename prog_name package_name activity_name)
- file( WRITE ${filename}
-"
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-" )
- endmacro()
-
- macro( create_bootstrap_library prog_name package_name)
- set(bootstrap_cpp "${CMAKE_CURRENT_BINARY_DIR}/${prog_name}_start.cpp" )
- file( WRITE ${bootstrap_cpp}
-"#include
-#include
-#include
-#include
-#include
-#include
-
-#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, \"AndroidUtils.cmake\", __VA_ARGS__))
-#define LIB_PATH \"/data/data/${package_name}.${prog_name}/lib/\"
-
-void * load_lib(const char * l) {
- void * handle = dlopen(l, RTLD_NOW | RTLD_GLOBAL);
- if (!handle) LOGE( \"dlopen('%s'): %s\", l, strerror(errno) );
- return handle;
-}
-
-void ANativeActivity_onCreate(ANativeActivity * app, void * ud, size_t udsize) {
- #include \"${prog_name}_shared_load.h\"
-
- // Look for standard entrypoint in user lib
- void (*stdentrypoint)(ANativeActivity*, void*, size_t);
- *(void **) (&stdentrypoint) = dlsym(load_lib( LIB_PATH \"lib${prog_name}.so\"), \"ANativeActivity_onCreate\");
- if (stdentrypoint) {
- (*stdentrypoint)(app, ud, udsize);
- }else{
- // Look for deferred load entry point
- void (*exdentrypoint)(ANativeActivity*, void*, size_t, const char*);
- *(void **) (&exdentrypoint) = dlsym(load_lib( LIB_PATH \"lib${prog_name}.so\"), \"DeferredNativeActivity_onCreate\");
- if (!exdentrypoint) {
- // Look in specific shared lib
- *(void **) (&exdentrypoint) = dlsym(load_lib( LIB_PATH \"${ANDROID_DEFERRED_ENTRY_SO}\"), \"DeferredNativeActivity_onCreate\");
- }
- if(exdentrypoint) {
- (*exdentrypoint)(app, ud, udsize, LIB_PATH \"lib${prog_name}.so\" );
- }else{
- LOGE( \"Unable to find compatible entry point\" );
- }
- }
-}" )
- add_library( "${prog_name}_start" SHARED ${bootstrap_cpp} )
- target_link_libraries( "${prog_name}_start" android log )
- add_dependencies( ${prog_name} "${prog_name}_start" )
- endmacro()
-
- macro( android_update android_project_name)
- # Find which android platforms are available.
- execute_process(
- COMMAND android list targets -c
- OUTPUT_VARIABLE android_target_list
- )
-
- # Pick first platform from this list.
- string(REGEX MATCH "^[^\n]+" android_target "${android_target_list}" )
- message(STATUS "Android Target: ${android_target}")
-
- if( NOT "${android_target}" STREQUAL "" )
- # Generate ant build scripts for making APK
- execute_process(
- COMMAND android update project --name ${android_project_name} --path . --target ${android_target} --subprojects
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- )
- else()
- message( FATAL_ERROR "No Android SDK platforms found. Please install an Android platform SDK. On Linux, run 'android'." )
- endif()
- endmacro()
-
- # Override add_executable to build android .so instead!
- macro( add_executable prog_name)
- set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/libs/${ANDROID_NDK_ABI_NAME})
- add_library( ${prog_name} SHARED ${ARGN} )
-
- # Add required link libs for android
- target_link_libraries(${prog_name} log android )
-
- # Create manifest required for APK
- create_android_manifest_xml(
- "${CMAKE_CURRENT_BINARY_DIR}/AndroidManifest.xml" "${prog_name}"
- "${ANDROID_PACKAGE_NAME}" "${prog_name}"
- )
-
- # Create library that will launch this program and load shared libs
- create_bootstrap_library( ${prog_name} ${ANDROID_PACKAGE_NAME} )
-
- # Generate ant build system for APK
- android_update( ${prog_name} )
-
- # Target to invoke ant build system for APK
- set( APK_FILE "${CMAKE_CURRENT_BINARY_DIR}/bin/${prog_name}-debug.apk" )
- add_custom_command(
- OUTPUT ${APK_FILE}
- COMMAND ant debug
- DEPENDS ${prog_name}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- )
-
- # Target to install on device
- add_custom_target( ${prog_name}-apk
- DEPENDS ${APK_FILE}
- )
- add_dependencies(apk ${prog_name}-apk)
-
- # Target to install on device
- add_custom_target( ${prog_name}-push
- COMMAND adb install -r ${APK_FILE}
- DEPENDS ${APK_FILE}
- )
- add_dependencies(push ${prog_name}-push)
-
- # install and run on device
- add_custom_target( ${prog_name}-run
- COMMAND adb shell am start -n ${ANDROID_PACKAGE_NAME}.${prog_name}/android.app.NativeActivity
- DEPENDS ${prog_name}-push
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- )
- add_dependencies(run ${prog_name}-run)
-
- # Flag to package dependent libs
- set_property(TARGET ${prog_name} APPEND PROPERTY MAKE_APK 1 )
-
- # Clear shared library loading header
- file( WRITE "${CMAKE_CURRENT_BINARY_DIR}/${prog_name}_shared_load.h" "")
- endmacro()
-
- macro( package_with_target prog_name lib_path )
- # Mark lib_path as dependent of prog_name
- set_property(TARGET ${prog_name} APPEND PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE ${lib_path} )
-
- # If prog_name is to be packaged, add file copy command to package .so's.
- get_target_property( package_dependent_libs ${prog_name} MAKE_APK )
- if( package_dependent_libs )
- get_filename_component(target_filename ${lib_path} NAME)
- file( APPEND ${depend_file} "load_lib(LIB_PATH \"${target_filename}\" );\n")
- add_custom_command(TARGET ${prog_name} POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_if_different
- ${lib_path} "${CMAKE_CURRENT_BINARY_DIR}/libs/${ANDROID_NDK_ABI_NAME}/"
- )
- endif()
- endmacro()
-
- macro( add_to_depend_libs prog_name depend_file lib_name )
- # Recursively Process dependents of lib_name
- get_target_property(TARGET_LIBS ${lib_name} IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE)
- if(NOT TARGET_LIBS)
- get_target_property(TARGET_LIBS ${lib_name} IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG)
- endif()
- if(NOT TARGET_LIBS)
- get_target_property(TARGET_LIBS ${lib_name} IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG)
- endif()
-
- foreach(SUBLIB ${TARGET_LIBS})
- if(SUBLIB)
- add_to_depend_libs( ${prog_name} ${depend_file} ${SUBLIB} )
- endif()
- endforeach()
-
- # Check if lib itself is an external shared library
- if("${lib_name}" MATCHES "\\.so$")
- package_with_target( ${prog_name} ${lib_name} )
- endif()
-
- # Check if lib itself is an internal shared library
- get_target_property(TARGET_LIB ${lib_name} LOCATION)
- if("${TARGET_LIB}" MATCHES "\\.so$")
- package_with_target( ${prog_name} ${TARGET_LIB} )
- endif()
- endmacro()
-
- macro( target_link_libraries prog_name)
- # _target_link_libraries corresponds to original
- _target_link_libraries( ${prog_name} ${ARGN} )
-
- # Recursively process dependencies
- set(depend_file "${CMAKE_CURRENT_BINARY_DIR}/${prog_name}_shared_load.h" )
- foreach( LIB ${ARGN} )
- add_to_depend_libs( ${prog_name} ${depend_file} ${LIB} )
- endforeach()
- endmacro()
-
-endif()
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/CreateMethodCallFile.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/CreateMethodCallFile.cmake
deleted file mode 100644
index c1ae95b..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/CreateMethodCallFile.cmake
+++ /dev/null
@@ -1,11 +0,0 @@
-macro( CreateMethodCallFile filename namespace function symbols)
- file(WRITE ${filename} "// CMake generated file. Do Not Edit.\n\n#pragma once\n\nnamespace ${namespace} {\n\n")
- foreach( symbol ${symbols} )
- file(APPEND ${filename} "void ${symbol}();\n")
- endforeach()
- file(APPEND ${filename} "\ninline bool ${function}()\n{\n")
- foreach( symbol ${symbols} )
- file(APPEND ${filename} " ${symbol}();\n")
- endforeach()
- file(APPEND ${filename} " return true;\n}\n\n} // ${namespace}\n")
-endmacro()
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/EmbedBinaryFiles.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/EmbedBinaryFiles.cmake
deleted file mode 100644
index a579e27..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/EmbedBinaryFiles.cmake
+++ /dev/null
@@ -1,32 +0,0 @@
-# Creates C resources file from files in given directory
-# Based on http://stackoverflow.com/a/27206982
-function(embed_binary_files file_glob output)
- # Collect input files
- file(GLOB bins ${file_glob})
- # Stop when output file is newer than all binary files
- set(output_newer_than_bins 1)
- foreach(bin ${bins})
- if(bin IS_NEWER_THAN output)
- set(output_newer_than_bins 0)
- break()
- endif()
- endforeach()
- if(output_newer_than_bins)
- return()
- endif()
- # Create empty output file
- file(WRITE ${output} "")
- # Iterate through input files
- foreach(bin ${bins})
- # Get short filename
- string(REGEX MATCH "([^/]+)$" filename ${bin})
- # Replace filename spaces & extension separator for C compatibility
- string(REGEX REPLACE "\\.| " "_" filename ${filename})
- # Read hex data from file
- file(READ ${bin} filedata HEX)
- # Convert hex data for C compatibility
- string(REGEX REPLACE "([0-9a-f][0-9a-f])" "0x\\1," filedata ${filedata})
- # Append data to output file
- file(APPEND ${output} "extern const unsigned char ${filename}[] = {${filedata}};\nextern const unsigned ${filename}_size = sizeof(${filename});\n")
- endforeach()
-endfunction()
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindDC1394.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindDC1394.cmake
deleted file mode 100644
index 1dbce01..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindDC1394.cmake
+++ /dev/null
@@ -1,32 +0,0 @@
-# Try to find the dc1394 v2 lib and include files
-#
-# DC1394_INCLUDE_DIR
-# DC1394_LIBRARIES
-# DC1394_FOUND
-
-FIND_PATH( DC1394_INCLUDE_DIR dc1394/control.h
- /usr/include
- /usr/local/include
-)
-
-FIND_LIBRARY( DC1394_LIBRARY dc1394
- /usr/lib64
- /usr/lib
- /usr/local/lib
-)
-
-IF(DC1394_INCLUDE_DIR AND DC1394_LIBRARY)
- SET( DC1394_FOUND TRUE )
- SET( DC1394_LIBRARIES ${DC1394_LIBRARY} )
-ENDIF(DC1394_INCLUDE_DIR AND DC1394_LIBRARY)
-
-IF(DC1394_FOUND)
- IF(NOT DC1394_FIND_QUIETLY)
- MESSAGE(STATUS "Found DC1394: ${DC1394_LIBRARY}")
- ENDIF(NOT DC1394_FIND_QUIETLY)
-ELSE(DC1394_FOUND)
- IF(DC1394_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find libdc1394")
- ENDIF(DC1394_FIND_REQUIRED)
-ENDIF(DC1394_FOUND)
-
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindDepthSense.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindDepthSense.cmake
deleted file mode 100644
index 83dfb23..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindDepthSense.cmake
+++ /dev/null
@@ -1,43 +0,0 @@
-# Try to find the DepthSense SDK For SoftKinetic Cameras
-#
-# DepthSense_INCLUDE_DIRS
-# DepthSense_LIBRARIES
-# DepthSense_FOUND
-
-FIND_PATH( DepthSense_INCLUDE_DIR DepthSense.hxx
- PATHS
- "${PROGRAM_FILES}/SoftKinetic/DepthSenseSDK/include"
- "${PROGRAM_FILES}/Meta/DepthSenseSDK/include"
- /usr/include
- /usr/local/include
- /opt/local/include
- /opt/softkinetic/DepthSenseSDK/include
-)
-
-FIND_LIBRARY( DepthSense_LIBRARY DepthSense
- PATHS
- "${PROGRAM_FILES}/SoftKinetic/DepthSenseSDK/lib"
- "${PROGRAM_FILES}/Meta/DepthSenseSDK/lib"
- /usr/lib64
- /usr/lib
- /usr/local/lib
- /opt/local/lib
- /opt/softkinetic/DepthSenseSDK/lib
-)
-
-IF(DepthSense_INCLUDE_DIR AND DepthSense_LIBRARY)
- SET( DepthSense_FOUND TRUE )
- SET( DepthSense_LIBRARIES ${DepthSense_LIBRARY} )
- SET( DepthSense_INCLUDE_DIRS ${DepthSense_INCLUDE_DIR} )
-ENDIF()
-
-IF(DepthSense_FOUND)
- IF(NOT DepthSense_FIND_QUIETLY)
- MESSAGE(STATUS "Found DepthSense: ${DepthSense_LIBRARY}")
- ENDIF()
-ELSE()
- IF(DepthSense_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find DepthSense")
- ENDIF()
-ENDIF()
-
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindEigen.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindEigen.cmake
deleted file mode 100644
index 1df56fd..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindEigen.cmake
+++ /dev/null
@@ -1,83 +0,0 @@
-# - Try to find Eigen lib
-#
-# This module supports requiring a minimum version, e.g. you can do
-# find_package(Eigen 3.1.2)
-# to require version 3.1.2 or newer of Eigen.
-#
-# Once done this will define
-#
-# EIGEN_FOUND - system has eigen lib with correct version
-# EIGEN_INCLUDE_DIR - the eigen include directory
-# EIGEN_VERSION - eigen version
-
-# Copyright (c) 2006, 2007 Montel Laurent,
-# Copyright (c) 2008, 2009 Gael Guennebaud,
-# Copyright (c) 2009 Benoit Jacob
-# Redistribution and use is allowed according to the terms of the 2-clause BSD license.
-
-if(NOT Eigen_FIND_VERSION)
- if(NOT Eigen_FIND_VERSION_MAJOR)
- set(Eigen_FIND_VERSION_MAJOR 2)
- endif(NOT Eigen_FIND_VERSION_MAJOR)
- if(NOT Eigen_FIND_VERSION_MINOR)
- set(Eigen_FIND_VERSION_MINOR 91)
- endif(NOT Eigen_FIND_VERSION_MINOR)
- if(NOT Eigen_FIND_VERSION_PATCH)
- set(Eigen_FIND_VERSION_PATCH 0)
- endif(NOT Eigen_FIND_VERSION_PATCH)
-
- set(Eigen_FIND_VERSION "${Eigen_FIND_VERSION_MAJOR}.${Eigen_FIND_VERSION_MINOR}.${Eigen_FIND_VERSION_PATCH}")
-endif(NOT Eigen_FIND_VERSION)
-
-macro(_eigen3_check_version)
- file(READ "${EIGEN_INCLUDE_DIR}/Eigen/src/Core/util/Macros.h" _eigen3_version_header)
-
- string(REGEX MATCH "define[ \t]+EIGEN_WORLD_VERSION[ \t]+([0-9]+)" _eigen3_world_version_match "${_eigen3_version_header}")
- set(Eigen_WORLD_VERSION "${CMAKE_MATCH_1}")
- string(REGEX MATCH "define[ \t]+EIGEN_MAJOR_VERSION[ \t]+([0-9]+)" _eigen3_major_version_match "${_eigen3_version_header}")
- set(Eigen_MAJOR_VERSION "${CMAKE_MATCH_1}")
- string(REGEX MATCH "define[ \t]+EIGEN_MINOR_VERSION[ \t]+([0-9]+)" _eigen3_minor_version_match "${_eigen3_version_header}")
- set(Eigen_MINOR_VERSION "${CMAKE_MATCH_1}")
-
- set(EIGEN_VERSION ${Eigen_WORLD_VERSION}.${Eigen_MAJOR_VERSION}.${Eigen_MINOR_VERSION})
- if(${EIGEN_VERSION} VERSION_LESS ${Eigen_FIND_VERSION})
- set(EIGEN_VERSION_OK FALSE)
- else(${EIGEN_VERSION} VERSION_LESS ${Eigen_FIND_VERSION})
- set(EIGEN_VERSION_OK TRUE)
- endif(${EIGEN_VERSION} VERSION_LESS ${Eigen_FIND_VERSION})
-
- if(NOT EIGEN_VERSION_OK)
- message(STATUS "Eigen version ${EIGEN_VERSION} found in ${EIGEN_INCLUDE_DIR}, "
- "but at least version ${Eigen_FIND_VERSION} is required")
- endif(NOT EIGEN_VERSION_OK)
-endmacro(_eigen3_check_version)
-
-if (EIGEN_INCLUDE_DIR)
- # in cache already
- _eigen3_check_version()
- set(EIGEN_FOUND ${EIGEN_VERSION_OK})
-else()
- find_path(EIGEN_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
- PATHS
- third_party/eigen
- ../eigen
- ../../eigen
- /usr/local/include
- /opt/local/include
- ${CMAKE_INSTALL_PREFIX}/include
- ${KDE4_INCLUDE_DIR}
- PATH_SUFFIXES eigen3 eigen
- )
-
- if(EIGEN_INCLUDE_DIR)
- _eigen3_check_version()
- endif(EIGEN_INCLUDE_DIR)
-
- include(FindPackageHandleStandardArgs)
- find_package_handle_standard_args(Eigen DEFAULT_MSG EIGEN_INCLUDE_DIR EIGEN_VERSION_OK)
-
- mark_as_advanced(EIGEN_INCLUDE_DIR)
-endif()
-
-# In case anyone relies on the plural form.
-set(EIGEN_INCLUDE_DIRS "${EIGEN_INCLUDE_DIR}")
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindFFMPEG.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindFFMPEG.cmake
deleted file mode 100644
index 6a67ef5..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindFFMPEG.cmake
+++ /dev/null
@@ -1,97 +0,0 @@
-# Try to find the ffmpeg libraries and headers for avcodec avformat swscale
-#
-# FFMPEG_INCLUDE_DIRS
-# FFMPEG_LIBRARIES
-# FFMPEG_FOUND
-
-# Find header files
-FIND_PATH(
- AVCODEC_INCLUDE_DIR libavcodec/avcodec.h
- /usr/include /usr/local/include /opt/local/include /usr/include/x86_64-linux-gnu
-)
-FIND_PATH(
- AVFORMAT_INCLUDE_DIR libavformat/avformat.h
- /usr/include /usr/local/include /opt/local/include /usr/include/x86_64-linux-gnu
-)
-FIND_PATH(
- AVDEVICE_INCLUDE_DIR libavdevice/avdevice.h
- /usr/include /usr/local/include /opt/local/include /usr/include/x86_64-linux-gnu
-)
-FIND_PATH(
- AVUTIL_INCLUDE_DIR libavutil/avutil.h
- /usr/include /usr/local/include /opt/local/include /usr/include/x86_64-linux-gnu
-)
-FIND_PATH(
- SWSCALE_INCLUDE_DIR libswscale/swscale.h
- /usr/include /usr/local/include /opt/local/include /usr/include/x86_64-linux-gnu
-)
-
-# Find Library files
-FIND_LIBRARY(
- AVCODEC_LIBRARY
- NAMES avcodec
- PATH /usr/lib /usr/local/lib /opt/local/lib /usr/lib/x86_64-linux-gnu
-)
-FIND_LIBRARY(
- AVFORMAT_LIBRARY
- NAMES avformat
- PATH /usr/lib /usr/local/lib /opt/local/lib /usr/lib/x86_64-linux-gnu
-)
-FIND_LIBRARY(
- AVDEVICE_LIBRARY
- NAMES avdevice
- PATH /usr/lib /usr/local/lib /opt/local/lib /usr/lib/x86_64-linux-gnu
-)
-FIND_LIBRARY(
- AVUTIL_LIBRARY
- NAMES avutil
- PATH /usr/lib /usr/local/lib /opt/local/lib /usr/lib/x86_64-linux-gnu
-)
-FIND_LIBRARY(
- SWSCALE_LIBRARY
- NAMES swscale
- PATH /usr/lib /usr/local/lib /opt/local/lib /usr/lib/x86_64-linux-gnu
-)
-
-IF( EXISTS "${AVUTIL_INCLUDE_DIR}/libavutil/pixdesc.h" )
- SET( AVUTIL_HAVE_PIXDESC TRUE)
-endif()
-
-IF(AVCODEC_INCLUDE_DIR AND AVFORMAT_INCLUDE_DIR AND AVUTIL_INCLUDE_DIR AND AVDEVICE_INCLUDE_DIR AND SWSCALE_INCLUDE_DIR AND AVCODEC_LIBRARY AND AVFORMAT_LIBRARY AND AVUTIL_LIBRARY AND SWSCALE_LIBRARY AND AVDEVICE_LIBRARY AND AVUTIL_HAVE_PIXDESC)
- SET(FFMPEG_FOUND TRUE)
- SET(FFMPEG_LIBRARIES ${AVCODEC_LIBRARY} ${AVFORMAT_LIBRARY} ${AVUTIL_LIBRARY} ${SWSCALE_LIBRARY} ${AVDEVICE_LIBRARY})
- SET(FFMPEG_INCLUDE_DIRS ${AVCODEC_INCLUDE_DIR} ${AVFORMAT_INCLUDE_DIR} ${AVUTIL_INCLUDE_DIR} ${SWSCALE_INCLUDE_DIR} ${AVDEVICE_INCLUDE_DIR})
-
- include(CheckCXXSourceCompiles)
-
- SET(CMAKE_REQUIRED_INCLUDES ${FFMPEG_INCLUDE_DIRS})
-
- CHECK_CXX_SOURCE_COMPILES(
- "#include \"${AVCODEC_INCLUDE_DIR}/libavformat/avformat.h\"
- int main() {
- sizeof(AVFormatContext::max_analyze_duration);
- }" HAVE_FFMPEG_MAX_ANALYZE_DURATION
- )
- CHECK_CXX_SOURCE_COMPILES(
- "#include \"${AVCODEC_INCLUDE_DIR}/libavformat/avformat.h\"
- int main() {
- &avformat_alloc_output_context2;
- }" HAVE_FFMPEG_AVFORMAT_ALLOC_OUTPUT_CONTEXT2
- )
- CHECK_CXX_SOURCE_COMPILES(
- "#include \"${AVCODEC_INCLUDE_DIR}/libavutil/pixdesc.h\"
- int main() {
- AVPixelFormat test = AV_PIX_FMT_GRAY8;
- }" HAVE_FFMPEG_AVPIXELFORMAT
- )
-ENDIF()
-
-IF (FFMPEG_FOUND)
- IF (NOT FFMPEG_FIND_QUIETLY)
- MESSAGE(STATUS "Found FFMPEG: ${FFMPEG_LIBRARIES}")
- ENDIF (NOT FFMPEG_FIND_QUIETLY)
-ELSE (FFMPEG_FOUND)
- IF (FFMPEG_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find FFMPEG")
- ENDIF (FFMPEG_FIND_REQUIRED)
-ENDIF (FFMPEG_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindFREEGLUT.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindFREEGLUT.cmake
deleted file mode 100644
index b3e32b0..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindFREEGLUT.cmake
+++ /dev/null
@@ -1,44 +0,0 @@
-# Try to find the FREEGLUT library
-#
-# FREEGLUT_INCLUDE_DIR
-# FREEGLUT_LIBRARY
-# FREEGLUT_FOUND
-
-FIND_PATH(
- FREEGLUT_INCLUDE_DIR GL/freeglut.h
- ${CMAKE_INCLUDE_PATH}
- $ENV{include}
- ${OPENGL_INCLUDE_DIR}
- /usr/include
- /usr/local/include
-)
-
-SET(STORE_CMAKE_FIND_FRAMEWORK ${CMAKE_FIND_FRAMEWORK})
-SET(CMAKE_FIND_FRAMEWORK NEVER)
-
-FIND_LIBRARY(
- FREEGLUT_LIBRARY
- NAMES freeglut_static freeglut glut
- PATH
- /opt/local/lib
- ${CMAKE_LIBRARY_PATH}
- $ENV{lib}
- /usr/lib
- /usr/local/lib
-)
-
-SET(CMAKE_FIND_FRAMEWORK ${STORE_CMAKE_FIND_FRAMEWORK})
-
-IF (FREEGLUT_INCLUDE_DIR AND FREEGLUT_LIBRARY)
- SET(FREEGLUT_FOUND TRUE)
-ENDIF (FREEGLUT_INCLUDE_DIR AND FREEGLUT_LIBRARY)
-
-IF (FREEGLUT_FOUND)
- IF (NOT FREEGLUT_FIND_QUIETLY)
- MESSAGE(STATUS "Found FREEGLUT: ${FREEGLUT_LIBRARY}")
- ENDIF (NOT FREEGLUT_FIND_QUIETLY)
-ELSE (FREEGLUT_FOUND)
- IF (FREEGLUT_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find FREEGLUT")
- ENDIF (FREEGLUT_FIND_REQUIRED)
-ENDIF (FREEGLUT_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindGLEW.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindGLEW.cmake
deleted file mode 100644
index 65ef6f9..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindGLEW.cmake
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# Try to find GLEW library and include path.
-# Once done this will define
-#
-# GLEW_FOUND
-# GLEW_INCLUDE_DIR
-# GLEW_LIBRARY
-#
-
-IF (WIN32)
- FIND_PATH( GLEW_INCLUDE_DIR GL/glew.h
- $ENV{PROGRAMFILES}/GLEW/include
- ${PROJECT_SOURCE_DIR}/src/nvgl/glew/include
- DOC "The directory where GL/glew.h resides")
- FIND_LIBRARY( GLEW_LIBRARY
- NAMES glew GLEW glew32 glew32s
- PATHS
- $ENV{PROGRAMFILES}/GLEW/lib
- ${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
- ${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
- DOC "The GLEW library")
-ELSE (WIN32)
- FIND_PATH( GLEW_INCLUDE_DIR GL/glew.h
- /usr/include
- /usr/local/include
- /sw/include
- /opt/local/include
- DOC "The directory where GL/glew.h resides")
- FIND_LIBRARY( GLEW_LIBRARY
- NAMES GLEW glew
- PATHS
- /usr/lib64
- /usr/lib
- /usr/local/lib64
- /usr/local/lib
- /sw/lib
- /opt/local/lib
- DOC "The GLEW library")
-ENDIF (WIN32)
-
-IF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
- SET( GLEW_FOUND TRUE )
-ENDIF (GLEW_INCLUDE_DIR AND GLEW_LIBRARY)
-
-IF (GLEW_FOUND)
- IF (NOT GLEW_FIND_QUIETLY)
- MESSAGE(STATUS "Found GLEW: ${GLEW_LIBRARY}")
- ENDIF (NOT GLEW_FIND_QUIETLY)
-ELSE (GLEW_FOUND)
- IF (GLEW_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find GLEW")
- ENDIF (GLEW_FIND_REQUIRED)
-ENDIF (GLEW_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindGLUES.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindGLUES.cmake
deleted file mode 100644
index 2c64fe8..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindGLUES.cmake
+++ /dev/null
@@ -1,38 +0,0 @@
-# Try to find the GLUES lib and include files
-#
-# GLUES_INCLUDE_DIR
-# GLUES_LIBRARIES
-# GLUES_FOUND
-
-FIND_PATH( GLUES_INCLUDE_DIR glues/glues.h
- /usr/include
- /usr/local/include
- /opt/include
- /opt/local/include
- ${CMAKE_INSTALL_PREFIX}/include
-)
-
-FIND_LIBRARY( GLUES_LIBRARY glues
- /usr/lib64
- /usr/lib
- /usr/local/lib
- /opt/local/lib
- /opt/local/lib64
- ${CMAKE_INSTALL_PREFIX}/lib
-)
-
-IF(GLUES_INCLUDE_DIR AND GLUES_LIBRARY)
- SET( GLUES_FOUND TRUE )
- SET( GLUES_LIBRARIES ${GLUES_LIBRARY} )
-ENDIF(GLUES_INCLUDE_DIR AND GLUES_LIBRARY)
-
-IF(GLUES_FOUND)
- IF(NOT GLUES_FIND_QUIETLY)
- MESSAGE(STATUS "Found GLUES: ${GLUES_LIBRARY}")
- ENDIF(NOT GLUES_FIND_QUIETLY)
-ELSE(GLUES_FOUND)
- IF(GLUES_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find GLUES")
- ENDIF(GLUES_FIND_REQUIRED)
-ENDIF(GLUES_FOUND)
-
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindLibRealSense.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindLibRealSense.cmake
deleted file mode 100644
index a8d7a82..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindLibRealSense.cmake
+++ /dev/null
@@ -1,33 +0,0 @@
-# -*- mode: cmake; -*-
-###############################################################################
-# Find librealsense https://github.com/IntelRealSense/librealsense
-#
-# This sets the following variables:
-# LIBREALSENSE_FOUND - True if OPENNI was found.
-# LIBREALSENSE_INCLUDE_DIRS - Directories containing the OPENNI include files.
-# LIBREALSENSE_LIBRARIES - Libraries needed to use OPENNI.
-# LIBREALSENSE_DEFINITIONS - Compiler flags for OPENNI.
-#
-# File forked from augmented_dev, project of alantrrs
-# (https://github.com/alantrrs/augmented_dev).
-
-find_package(PkgConfig)
-if(${CMAKE_VERSION} VERSION_LESS 2.8.2)
-endif()
-
-#add a hint so that it can find it without the pkg-config
-find_path(LIBREALSENSE_INCLUDE_DIR librealsense/rs.h
- HINTS /usr/include/ /usr/local/include)
-#add a hint so that it can find it without the pkg-config
-find_library(LIBREALSENSE_LIBRARY
- NAMES librealsense.so
- HINTS /usr/lib /usr/local/lib )
-
- set(LIBREALSENSE_INCLUDE_DIRS ${LIBREALSENSE_INCLUDE_DIR})
- set(LIBREALSENSE_LIBRARIES ${LIBREALSENSE_LIBRARY})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(LibRealSense DEFAULT_MSG
- LIBREALSENSE_LIBRARY LIBREALSENSE_INCLUDE_DIR)
-
-mark_as_advanced(LIBREALSENSE_LIBRARY LIBREALSENSE_INCLUDE_DIR)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindLibRealSense2.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindLibRealSense2.cmake
deleted file mode 100644
index 12ae95d..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindLibRealSense2.cmake
+++ /dev/null
@@ -1,33 +0,0 @@
-# -*- mode: cmake; -*-
-###############################################################################
-# Find librealsense2 https://github.com/IntelRealSense/librealsense
-#
-# This sets the following variables:
-# LIBREALSENSE2_FOUND - True if LIBREALSENSE2 was found.
-# LIBREALSENSE2_INCLUDE_DIRS - Directories containing the LIBREALSENSE2 include files.
-# LIBREALSENSE2_LIBRARIES - Libraries needed to use LIBREALSENSE2.
-# LIBREALSENSE2_DEFINITIONS - Compiler flags for LIBREALSENSE2.
-#
-# File forked from augmented_dev, project of alantrrs
-# (https://github.com/alantrrs/augmented_dev).
-
-find_package(PkgConfig)
-if(${CMAKE_VERSION} VERSION_LESS 2.8.2)
-endif()
-
-#add a hint so that it can find it without the pkg-config
-find_path(LIBREALSENSE2_INCLUDE_DIR librealsense2/rs.h
- HINTS /usr/include/ /usr/local/include)
-#add a hint so that it can find it without the pkg-config
-find_library(LIBREALSENSE2_LIBRARY
- NAMES librealsense2.so
- HINTS /usr/lib /usr/local/lib )
-
- set(LIBREALSENSE2_INCLUDE_DIRS ${LIBREALSENSE2_INCLUDE_DIR})
- set(LIBREALSENSE2_LIBRARIES ${LIBREALSENSE2_LIBRARY})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(LibRealSense2 DEFAULT_MSG
- LIBREALSENSE2_LIBRARY LIBREALSENSE2_INCLUDE_DIR)
-
-mark_as_advanced(LIBREALSENSE2_LIBRARY LIBREALSENSE2_INCLUDE_DIR)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindLz4.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindLz4.cmake
deleted file mode 100644
index 14bbf9e..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindLz4.cmake
+++ /dev/null
@@ -1,26 +0,0 @@
-
-find_path(Lz4_INCLUDE_DIRS
- NAMES lz4frame.h
- PATHS
- /opt/local/include
- /usr/local/include
- /usr/include
- )
-
-find_library(Lz4_LIBRARIES
- NAMES lz4
- PATHS
- /usr/local/lib
- /opt/local/lib
- /user/local/lib
- /usr/lib
- )
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(Lz4 REQUIRED_VARS Lz4_LIBRARIES Lz4_INCLUDE_DIRS)
-
-mark_as_advanced(
- Lz4_INCLUDE_DIRS
- Lz4_LIBRARIES
- Lz4_FOUND
-)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindMediaFoundation.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindMediaFoundation.cmake
deleted file mode 100644
index 0d8f47a..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindMediaFoundation.cmake
+++ /dev/null
@@ -1,20 +0,0 @@
-# - Find MediaFoundation
-# Find the Windows SDK MediaFoundation libraries
-#
-# MediaFoundation_LIBRARIES - List of libraries when using MediaFoundation
-# MediaFoundation_FOUND - True if MediaFoundation found
-
-IF (MSVC)
- SET( MediaFoundation_LIBRARIES mf.lib mfplat.lib mfreadwrite.lib mfuuid.lib strmiids.lib )
- SET( MediaFoundation_FOUND true )
-ENDIF (MSVC)
-
-IF (MediaFoundation_FOUND)
- IF (NOT MediaFoundation_FIND_QUIETLY)
- MESSAGE(STATUS "Found MediaFoundation: ${MediaFoundation_LIBRARIES}")
- ENDIF (NOT MediaFoundation_FIND_QUIETLY)
-ELSE (MediaFoundation_FOUND)
- IF (MediaFoundation_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find MediaFoundation")
- ENDIF (MediaFoundation_FIND_REQUIRED)
-ENDIF (MediaFoundation_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindOculus.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindOculus.cmake
deleted file mode 100644
index 0408162..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindOculus.cmake
+++ /dev/null
@@ -1,63 +0,0 @@
-# - Try to find Oculus Rift SDK
-#
-# Oculus_FOUND - system has libuvc
-# Oculus_INCLUDE_DIRS - the libuvc include directories
-# Oculus_LIBRARIES - link these to use libuvc
-
-FIND_PATH(
- Oculus_INCLUDE_DIRS
- NAMES OVR.h
- PATHS
- ${CMAKE_SOURCE_DIR}/../LibOVR/Include
- ${CMAKE_SOURCE_DIR}/../OculusSDK/LibOVR/Include
- /usr/include/LibOVR/Include
- /usr/local/include/LibOVR/Include
- /opt/local/include/LibOVR/Include
- /usr/include/
- /usr/local/include
- /opt/local/include
-)
-
-FIND_LIBRARY(
- Oculus_LIBRARIES
- NAMES ovr
- PATHS
- ${CMAKE_SOURCE_DIR}/../LibOVR/Lib/MacOS/Release
- ${CMAKE_SOURCE_DIR}/../OculusSDK/LibOVR/Lib/Linux/Release/x86_64
- /usr/include/LibOVR/Lib
- /usr/local/include/LibOVR/Lib
- /opt/local/include/LibOVR/Lib
- /usr/lib
- /usr/local/lib
- /opt/local/lib
-)
-
-IF(Oculus_INCLUDE_DIRS AND Oculus_LIBRARIES)
- IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- find_library(CARBON_LIBRARIES NAMES Carbon)
- find_library(IOKIT_LIBRARIES NAMES IOKit)
- list(APPEND Oculus_LIBRARIES ${CARBON_LIBRARIES})
- list(APPEND Oculus_LIBRARIES ${IOKIT_LIBRARIES})
- SET(Oculus_FOUND TRUE)
- ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- FIND_PACKAGE(Xrandr QUIET)
- IF( Xrandr_FOUND )
- list(APPEND Oculus_LIBRARIES ${Xrandr_LIBRARIES} -ludev -lXrandr -lXinerama )
- SET(Oculus_FOUND TRUE)
- ENDIF()
- ENDIF()
-ENDIF(Oculus_INCLUDE_DIRS AND Oculus_LIBRARIES)
-
-
-
-IF(Oculus_FOUND)
- IF(NOT Oculus_FIND_QUIETLY)
- MESSAGE(STATUS "Found Oculus: ${Oculus_LIBRARIES}")
- MESSAGE(STATUS "Found Oculus: ${Oculus_INCLUDE_DIRS}")
- ENDIF(NOT Oculus_FIND_QUIETLY)
-ELSE(Oculus_FOUND)
-message(STATUS "Oculus NOT found")
- IF(Oculus_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find Oculus")
- ENDIF(Oculus_FIND_REQUIRED)
-ENDIF(Oculus_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenEXR.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenEXR.cmake
deleted file mode 100644
index f4f5d8a..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenEXR.cmake
+++ /dev/null
@@ -1,33 +0,0 @@
-# Try to find the OpenEXR v2 lib and include files
-#
-# OpenEXR_INCLUDE_DIR
-# OpenEXR_LIBRARIES
-# OpenEXR_FOUND
-
-FIND_PATH( OpenEXR_INCLUDE_DIR ImfHeader.h
- /usr/include
- /usr/local/include
- PATH_SUFFIXES OpenEXR
-)
-
-FIND_LIBRARY( OpenEXR_LIBRARY IlmImf
- /usr/lib64
- /usr/lib
- /usr/local/lib
-)
-
-IF(OpenEXR_INCLUDE_DIR AND OpenEXR_LIBRARY)
- SET( OpenEXR_FOUND TRUE )
- SET( OpenEXR_LIBRARIES ${OpenEXR_LIBRARY} )
-ENDIF()
-
-IF(OpenEXR_FOUND)
- IF(NOT OpenEXR_FIND_QUIETLY)
- MESSAGE(STATUS "Found OpenEXR: ${OpenEXR_LIBRARY}")
- ENDIF(NOT OpenEXR_FIND_QUIETLY)
-ELSE(OpenEXR_FOUND)
- IF(OpenEXR_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find libOpenEXR")
- ENDIF(OpenEXR_FIND_REQUIRED)
-ENDIF(OpenEXR_FOUND)
-
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenNI.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenNI.cmake
deleted file mode 100644
index b5e9d9c..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenNI.cmake
+++ /dev/null
@@ -1,49 +0,0 @@
-# -*- mode: cmake; -*-
-###############################################################################
-# Find OpenNI
-#
-# This sets the following variables:
-# OPENNI_FOUND - True if OPENNI was found.
-# OPENNI_INCLUDE_DIRS - Directories containing the OPENNI include files.
-# OPENNI_LIBRARIES - Libraries needed to use OPENNI.
-# OPENNI_DEFINITIONS - Compiler flags for OPENNI.
-#
-# File forked from augmented_dev, project of alantrrs
-# (https://github.com/alantrrs/augmented_dev).
-
-find_package(PkgConfig)
-if(${CMAKE_VERSION} VERSION_LESS 2.8.2)
- pkg_check_modules(PC_OPENNI openni-dev)
-else()
- pkg_check_modules(PC_OPENNI QUIET openni-dev)
-endif()
-
-set(OPENNI_DEFINITIONS ${PC_OPENNI_CFLAGS_OTHER})
-
-#using the 64bit version of OpenNi if generating for 64bit
-if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(PROGRAMFILES_ "$ENV{PROGRAMW6432}")
- set(OPENNI_SUFFIX "64")
-else(CMAKE_SIZEOF_VOID_P EQUAL 8)
- set(PROGRAMFILES_ "$ENV{PROGRAMFILES}")
- set(OPENNI_SUFFIX "")
-endif(CMAKE_SIZEOF_VOID_P EQUAL 8)
-
-#add a hint so that it can find it without the pkg-config
-find_path(OPENNI_INCLUDE_DIR XnStatus.h
- HINTS ${PC_OPENNI_INCLUDEDIR} ${PC_OPENNI_INCLUDE_DIRS} /usr/include/ni /usr/include/openni
- "${PROGRAMFILES_}/OpenNI/Include"
- PATH_SUFFIXES openni)
-#add a hint so that it can find it without the pkg-config
-find_library(OPENNI_LIBRARY
- NAMES OpenNI64 OpenNI
- HINTS ${PC_OPENNI_LIBDIR} ${PC_OPENNI_LIBRARY_DIRS} /usr/lib "${PROGRAMFILES_}/OpenNI/Lib${OPENNI_SUFFIX}")
-
-set(OPENNI_INCLUDE_DIRS ${OPENNI_INCLUDE_DIR})
-set(OPENNI_LIBRARIES ${OPENNI_LIBRARY})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(OpenNI DEFAULT_MSG
- OPENNI_LIBRARY OPENNI_INCLUDE_DIR)
-
-mark_as_advanced(OPENNI_LIBRARY OPENNI_INCLUDE_DIR)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenNI2.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenNI2.cmake
deleted file mode 100644
index 2beb7aa..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindOpenNI2.cmake
+++ /dev/null
@@ -1,59 +0,0 @@
-###############################################################################
-# Find OpenNI2
-#
-# This sets the following variables:
-# OPENNI2_FOUND - True if OPENNI was found.
-# OPENNI2_INCLUDE_DIRS - Directories containing the OPENNI include files.
-# OPENNI2_LIBRARIES - Libraries needed to use OPENNI.
-
-find_package(PkgConfig)
-if(${CMAKE_VERSION} VERSION_LESS 2.8.2)
- pkg_check_modules(PC_OPENNI openni2-dev)
-else()
- pkg_check_modules(PC_OPENNI QUIET openni2-dev)
-endif()
-
-set(OPENNI2_DEFINITIONS ${PC_OPENNI_CFLAGS_OTHER})
-
-#add a hint so that it can find it without the pkg-config
-find_path(OPENNI2_INCLUDE_DIR OpenNI.h
- HINTS
- ${PC_OPENNI_INCLUDEDIR}
- ${PC_OPENNI_INCLUDE_DIRS}
- PATHS
- "${PROGRAM_FILES}/OpenNI2/Include"
- "${CMAKE_SOURCE_DIR}/../OpenNI2/Include"
- /usr/include
- /user/include
- PATH_SUFFIXES openni2 ni2
-)
-
-if(${CMAKE_CL_64})
- set(OPENNI_PATH_SUFFIXES lib64 lib)
-else()
- set(OPENNI_PATH_SUFFIXES lib)
-endif()
-
-#add a hint so that it can find it without the pkg-config
-find_library(OPENNI2_LIBRARY
- NAMES OpenNI2
- HINTS
- ${PC_OPENNI_LIBDIR}
- ${PC_OPENNI_LIBRARY_DIRS}
- PATHS
- "${PROGRAM_FILES}/OpenNI2/Redist"
- "${PROGRAM_FILES}/OpenNI2"
- "${CMAKE_SOURCE_DIR}/../OpenNI2/Bin/x64-Release"
- /usr/lib
- /user/lib
- PATH_SUFFIXES ${OPENNI_PATH_SUFFIXES}
-)
-
-set(OPENNI2_INCLUDE_DIRS ${OPENNI2_INCLUDE_DIR})
-set(OPENNI2_LIBRARIES ${OPENNI2_LIBRARY})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(OpenNI2 DEFAULT_MSG
- OPENNI2_LIBRARY OPENNI2_INCLUDE_DIR)
-
-mark_as_advanced(OPENNI2_LIBRARY OPENNI2_INCLUDE_DIR)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindPleora.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindPleora.cmake
deleted file mode 100644
index 6a4a94d..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindPleora.cmake
+++ /dev/null
@@ -1,143 +0,0 @@
-# - Try to find Pleora SDK
-#
-# Pleora_FOUND - system has pleora eUSB SDK
-# Pleora_INCLUDE_DIRS - the pleora eUSB SDK include directories
-# Pleora_LIBRARIES - link these to use pleora eUSB SDK
-# Pleora_BASE_DIR - set env varivales to this to use pleora eUSB SDK
-
-set( INCLUDE_SEARCH_PATHS
- "/opt/pleora/ebus_sdk/Ubuntu-12.04-x86_64/include"
- "/opt/pleora/ebus_sdk/Ubuntu-14.04-x86_64/include"
- "$ENV{ProgramFiles}/Pleora Technologies Inc/eBUS SDK/Includes"
-)
-
-set( LIBRARIES_SEARCH_PATHS
- "/opt/pleora/ebus_sdk/Ubuntu-12.04-x86_64/lib"
- "/opt/pleora/ebus_sdk/Ubuntu-14.04-x86_64/lib"
- "$ENV{ProgramFiles}/Pleora Technologies Inc/eBUS SDK/Libraries"
-)
-
-set( GENAPI_SEARCH_PATHS
- "/opt/pleora/ebus_sdk/Ubuntu-12.04-x86_64/lib/genicam/bin/Linux64_x64"
- "/opt/pleora/ebus_sdk/Ubuntu-12.04-x86_64/lib/genicam/bin/Linux32_ARM"
- "/opt/pleora/ebus_sdk/Ubuntu-14.04-x86_64/lib/genicam/bin/Linux64_x64"
- "/opt/pleora/ebus_sdk/Ubuntu-14.04-x86_64/lib/genicam/bin/Linux32_ARM"
- "$ENV{ProgramW6432}/GenICam_v2_4/library/CPP/lib/Win64_x64"
-)
-
-IF (${CMAKE_CL_64})
- set (LIB_NAME_SUFFIX "64")
-ELSE()
- set (LIB_NAME_SUFFIX "")
-ENDIF()
-
-# Find header files
-FIND_PATH(
- PVBASE_INCLUDE_DIR PvBase.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-FIND_PATH(
- PVDEVICE_INCLUDE_DIR PvDevice.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-FIND_PATH(
- PVBUFFER_INCLUDE_DIR PvBuffer.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-FIND_PATH(
- PVGENICAM_INCLUDE_DIR PvGenICamLib.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-FIND_PATH(
- PVSTREAM_INCLUDE_DIR PvStream.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-FIND_PATH(
- PVTRANSMITTER_INCLUDE_DIR PvTransmitterLib.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-FIND_PATH(
- PVVIRTUALDEVICE_INCLUDE_DIR PvVirtualDeviceLib.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-FIND_PATH(
- PVSAMPLEUTILS_INCLUDE_DIR PvSampleUtils.h
- HINTS ${PC_PLEORA_DIR}/include
- PATHS ${INCLUDE_SEARCH_PATHS}
-)
-
-# Find Library files
-FIND_LIBRARY(
- PVBASE_LIBRARY
- NAMES "PvBase${LIB_NAME_SUFFIX}"
- HINTS ${PC_PLEORA_DIR}/lib
- PATH ${LIBRARIES_SEARCH_PATHS}
-)
-FIND_LIBRARY(
- PVDEVICE_LIBRARY
- NAMES "PvDevice${LIB_NAME_SUFFIX}"
- HINTS ${PC_PLEORA_DIR}/lib
- PATH ${LIBRARIES_SEARCH_PATHS}
-)
-
-FIND_LIBRARY(
- PVBUFFER_LIBRARY
- NAMES "PvBuffer${LIB_NAME_SUFFIX}"
- HINTS ${PC_PLEORA_DIR}/lib
- PATH ${LIBRARIES_SEARCH_PATHS}
-)
-FIND_LIBRARY(
- PVGENICAM_LIBRARY
- NAMES "PvGenICam${LIB_NAME_SUFFIX}"
- HINTS ${PC_PLEORA_DIR}/lib
- PATH ${LIBRARIES_SEARCH_PATHS}
-)
-FIND_LIBRARY(
- PVSTREAM_LIBRARY
- NAMES "PvStream${LIB_NAME_SUFFIX}"
- HINTS ${PC_PLEORA_DIR}/lib
- PATH ${LIBRARIES_SEARCH_PATHS}
-)
-FIND_LIBRARY(
- PVTRANSMITTER_LIBRARY
- NAMES "PvTransmitter${LIB_NAME_SUFFIX}"
- HINTS ${PC_PLEORA_DIR}/lib
- PATH ${LIBRARIES_SEARCH_PATHS}
-)
-FIND_LIBRARY(
- PVVIRTUALDEVICE_LIBRARY
- NAMES "PvVirtualDevice${LIB_NAME_SUFFIX}"
- HINTS ${PC_PLEORA_DIR}/lib
- PATH ${LIBRARIES_SEARCH_PATHS}
-)
-FIND_LIBRARY(
- GENAPI_LIBRARY
- NAMES GenApi_gcc40_v2_4 GenApi_gcc43_v2_4 GenApi_MD_VC80_v2_4
- HINTS ${PC_GENAPI_LIBRARY_DIR}
- PATH ${GENAPI_SEARCH_PATHS}
-)
-
-IF(PVBASE_INCLUDE_DIR AND PVDEVICE_INCLUDE_DIR AND PVBUFFER_INCLUDE_DIR AND PVGENICAM_INCLUDE_DIR AND PVSTREAM_INCLUDE_DIR AND PVTRANSMITTER_INCLUDE_DIR AND PVVIRTUALDEVICE_INCLUDE_DIR AND PVSAMPLEUTILS_INCLUDE_DIR AND PVBASE_LIBRARY AND PVDEVICE_LIBRARY AND PVBUFFER_LIBRARY AND PVGENICAM_LIBRARY AND PVSTREAM_LIBRARY AND PVTRANSMITTER_LIBRARY AND PVVIRTUALDEVICE_LIBRARY AND GENAPI_LIBRARY)
- SET(Pleora_FOUND TRUE)
- string(REGEX REPLACE "include$" "" Pleora_BASE_DIR ${PVBASE_INCLUDE_DIR})
- SET(Pleora_LIBRARIES ${PVBASE_LIBRARY} ${PVDEVICE_LIBRARY} ${PVBUFFER_LIBRARY} ${PVGENICAM_LIBRARY} ${PVSTREAM_LIBRARY} ${PVTRANSMITTER_LIBRARY} ${PVVIRTUALDEVICE_LIBRARY} ${GENAPI_LIBRARY})
- SET(Pleora_INCLUDE_DIRS ${PVBASE_INCLUDE_DIR} ${PVDEVICE_INCLUDE_DIR} ${PVBUFFER_INCLUDE_DIR} ${PVGENICAM_INCLUDE_DIR} ${PVSTREAM_INCLUDE_DIR} ${PVTRANSMITTER_INCLUDE_DIR} ${PVVIRTUALDEVICE_INCLUDE_DIR} ${PVSAMPLEUTILS_INCLUDE_DIR})
-ENDIF()
-
-
-IF (Pleora_FOUND)
- IF (NOT Pleora_FIND_QUIETLY)
- message(STATUS "Found Pleora: ${Pleora_LIBRARIES}")
- ENDIF (NOT Pleora_FIND_QUIETLY)
-ELSE (Pleora_FOUND)
- IF (Pleora_FIND_REQUIRED)
- message(FATAL_ERROR "Could not find Pleora")
- ENDIF (Pleora_FIND_REQUIRED)
-ENDIF (Pleora_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindROBOTVISION.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindROBOTVISION.cmake
deleted file mode 100644
index ea600d1..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindROBOTVISION.cmake
+++ /dev/null
@@ -1,31 +0,0 @@
-# - Try to find librobotvision
-#
-# ROBOTVISION_FOUND - system has librobotvision
-# ROBOTVISION_INCLUDE_DIR - the librobotvision include directories
-# ROBOTVISION_LIBRARY - link these to use librobotvision
-
-FIND_PATH(
- ROBOTVISION_INCLUDE_DIR
- NAMES robotvision/bundle_adjuster.h
- PATHS ${CMAKE_SOURCE_DIR}/.. /usr/include/robotvision /usr/local/include/robotvision
-)
-
-FIND_LIBRARY(
- ROBOTVISION_LIBRARY
- NAMES robotvision
- PATHS ${CMAKE_SOURCE_DIR}/../robotvision/release /usr/lib /usr/local/lib
-)
-
-IF (ROBOTVISION_INCLUDE_DIR AND ROBOTVISION_LIBRARY)
- SET(ROBOTVISION_FOUND TRUE)
-ENDIF (ROBOTVISION_INCLUDE_DIR AND ROBOTVISION_LIBRARY)
-
-IF (ROBOTVISION_FOUND)
- IF (NOT ROBOTVISION_FIND_QUIETLY)
- MESSAGE(STATUS "Found ROBOTVISION: ${ROBOTVISION_LIBRARY}")
- ENDIF (NOT ROBOTVISION_FIND_QUIETLY)
-ELSE (ROBOTVISION_FOUND)
- IF (ROBOTVISION_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find ROBOTVISION")
- ENDIF (ROBOTVISION_FIND_REQUIRED)
-ENDIF (ROBOTVISION_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindTeliCam.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindTeliCam.cmake
deleted file mode 100644
index d2f7032..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindTeliCam.cmake
+++ /dev/null
@@ -1,58 +0,0 @@
-###############################################################################
-# Find Toshiba TeliCam
-#
-# This sets the following variables:
-# TeliCam_FOUND - True if TeliCam was found.
-# TeliCam_INCLUDE_DIRS - Directories containing the TeliCam include files.
-# TeliCam_LIBRARIES - Libraries needed to use TeliCam.
-
-find_path(
- TeliCam_INCLUDE_DIR TeliCamApi.h
- PATHS
- "${PROGRAM_FILES}/Toshiba Teli/TeliCamSDK/TeliCamApi/Include"
- "${CMAKE_SOURCE_DIR}/../TeliCamSDK/TeliCamApi/Include"
- /usr/include
- /user/include
- /opt/TeliCamSDK/include
- PATH_SUFFIXES TeliCam
-)
-
-if(${CMAKE_CL_64})
- set(TELI_PATH_SUFFIXES x64)
-else()
- set(TELI_PATH_SUFFIXES x86)
-endif()
-
-find_library(
- TeliCamApi_LIBRARY
- NAMES TeliCamApi TeliCamApi64 TeliCamApi_64
- PATHS
- "${PROGRAM_FILES}/Toshiba Teli/TeliCamSDK/TeliCamApi/lib"
- "${CMAKE_SOURCE_DIR}/../TeliCamSDK/TeliCamApi/lib"
- /usr/lib
- /user/lib
- /opt/TeliCamSDK/lib
- PATH_SUFFIXES ${TELI_PATH_SUFFIXES}
-)
-
-find_library(
- TeliCamUtl_LIBRARY
- NAMES TeliCamUtl TeliCamUtl64 TeliCamUtl_64
- PATHS
- "${PROGRAM_FILES}/Toshiba Teli/TeliCamSDK/TeliCamApi/lib"
- "${CMAKE_SOURCE_DIR}/../TeliCamSDK/TeliCamApi/lib"
- /usr/lib
- /user/lib
- /opt/TeliCamSDK/lib
- PATH_SUFFIXES ${TELI_PATH_SUFFIXES}
-)
-
-set(TeliCam_INCLUDE_DIRS ${TeliCam_INCLUDE_DIR})
-set(TeliCam_LIBRARY "${TeliCamApi_LIBRARY}" "${TeliCamUtl_LIBRARY}")
-set(TeliCam_LIBRARIES ${TeliCam_LIBRARY})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args( TeliCam
- FOUND_VAR TeliCam_FOUND
- REQUIRED_VARS TeliCamApi_LIBRARY TeliCamUtl_LIBRARY TeliCam_INCLUDE_DIR
-)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindTooN.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindTooN.cmake
deleted file mode 100644
index 13ce3d5..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindTooN.cmake
+++ /dev/null
@@ -1,28 +0,0 @@
-# - Try to find libTooN
-#
-# TooN_FOUND - system has libTooN
-# TooN_INCLUDE_DIR - the libTooN include directories
-
-FIND_PATH(
- TooN_INCLUDE_DIR
- NAMES TooN/TooN.h
- PATHS
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}/..
- /usr/include
- /usr/local/include
-)
-
-IF(TooN_INCLUDE_DIR)
- SET(TooN_FOUND TRUE)
-ENDIF()
-
-IF(TooN_FOUND)
- IF(NOT TooN_FIND_QUIETLY)
- MESSAGE(STATUS "Found TooN: ${TooN_INCLUDE_DIR}")
- ENDIF()
-ELSE()
- IF(TooN_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find TooN")
- ENDIF()
-ENDIF()
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindWayland.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindWayland.cmake
deleted file mode 100644
index f93218b..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindWayland.cmake
+++ /dev/null
@@ -1,66 +0,0 @@
-# Try to find Wayland on a Unix system
-#
-# This will define:
-#
-# WAYLAND_FOUND - True if Wayland is found
-# WAYLAND_LIBRARIES - Link these to use Wayland
-# WAYLAND_INCLUDE_DIR - Include directory for Wayland
-# WAYLAND_DEFINITIONS - Compiler flags for using Wayland
-#
-# In addition the following more fine grained variables will be defined:
-#
-# WAYLAND_CLIENT_FOUND WAYLAND_CLIENT_INCLUDE_DIR WAYLAND_CLIENT_LIBRARIES
-# WAYLAND_SERVER_FOUND WAYLAND_SERVER_INCLUDE_DIR WAYLAND_SERVER_LIBRARIES
-# WAYLAND_EGL_FOUND WAYLAND_EGL_INCLUDE_DIR WAYLAND_EGL_LIBRARIES
-#
-# Copyright (c) 2013 Martin Gräßlin
-#
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-
-IF (NOT WIN32)
- IF (WAYLAND_INCLUDE_DIR AND WAYLAND_LIBRARIES)
- # In the cache already
- SET(WAYLAND_FIND_QUIETLY TRUE)
- ENDIF ()
-
- # Use pkg-config to get the directories and then use these values
- # in the FIND_PATH() and FIND_LIBRARY() calls
- FIND_PACKAGE(PkgConfig)
- PKG_CHECK_MODULES(PKG_WAYLAND QUIET wayland-client wayland-server wayland-egl wayland-cursor)
-
- SET(WAYLAND_DEFINITIONS ${PKG_WAYLAND_CFLAGS})
-
- FIND_PATH(WAYLAND_CLIENT_INCLUDE_DIR NAMES wayland-client.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS})
- FIND_PATH(WAYLAND_SERVER_INCLUDE_DIR NAMES wayland-server.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS})
- FIND_PATH(WAYLAND_EGL_INCLUDE_DIR NAMES wayland-egl.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS})
- FIND_PATH(WAYLAND_CURSOR_INCLUDE_DIR NAMES wayland-cursor.h HINTS ${PKG_WAYLAND_INCLUDE_DIRS})
-
- FIND_LIBRARY(WAYLAND_CLIENT_LIBRARIES NAMES wayland-client HINTS ${PKG_WAYLAND_LIBRARY_DIRS})
- FIND_LIBRARY(WAYLAND_SERVER_LIBRARIES NAMES wayland-server HINTS ${PKG_WAYLAND_LIBRARY_DIRS})
- FIND_LIBRARY(WAYLAND_EGL_LIBRARIES NAMES wayland-egl HINTS ${PKG_WAYLAND_LIBRARY_DIRS})
- FIND_LIBRARY(WAYLAND_CURSOR_LIBRARIES NAMES wayland-cursor HINTS ${PKG_WAYLAND_LIBRARY_DIRS})
-
- set(WAYLAND_INCLUDE_DIR ${WAYLAND_CLIENT_INCLUDE_DIR} ${WAYLAND_SERVER_INCLUDE_DIR} ${WAYLAND_EGL_INCLUDE_DIR} ${WAYLAND_CURSOR_INCLUDE_DIR})
-
- set(WAYLAND_LIBRARIES ${WAYLAND_CLIENT_LIBRARIES} ${WAYLAND_SERVER_LIBRARIES} ${WAYLAND_EGL_LIBRARIES} ${WAYLAND_CURSOR_LIBRARIES})
-
- list(REMOVE_DUPLICATES WAYLAND_INCLUDE_DIR)
-
- include(FindPackageHandleStandardArgs)
-
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_CLIENT DEFAULT_MSG WAYLAND_CLIENT_LIBRARIES WAYLAND_CLIENT_INCLUDE_DIR)
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_SERVER DEFAULT_MSG WAYLAND_SERVER_LIBRARIES WAYLAND_SERVER_INCLUDE_DIR)
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_EGL DEFAULT_MSG WAYLAND_EGL_LIBRARIES WAYLAND_EGL_INCLUDE_DIR)
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND_CURSOR DEFAULT_MSG WAYLAND_CURSOR_LIBRARIES WAYLAND_CURSOR_INCLUDE_DIR)
- FIND_PACKAGE_HANDLE_STANDARD_ARGS(WAYLAND DEFAULT_MSG WAYLAND_LIBRARIES WAYLAND_INCLUDE_DIR)
-
- MARK_AS_ADVANCED(
- WAYLAND_INCLUDE_DIR WAYLAND_LIBRARIES
- WAYLAND_CLIENT_INCLUDE_DIR WAYLAND_CLIENT_LIBRARIES
- WAYLAND_SERVER_INCLUDE_DIR WAYLAND_SERVER_LIBRARIES
- WAYLAND_EGL_INCLUDE_DIR WAYLAND_EGL_LIBRARIES
- WAYLAND_CURSOR_INCLUDE_DIR WAYLAND_CURSOR_LIBRARIES
- )
-
-ENDIF ()
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/FindXrandr.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/FindXrandr.cmake
deleted file mode 100644
index 0ec8440..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/FindXrandr.cmake
+++ /dev/null
@@ -1,32 +0,0 @@
-# - Try to find Xrandr
-#
-# Xrandr_FOUND - system has libXrandr
-# Xrandr_INCLUDE_DIRS - the libXrandr include directories
-# Xrandr_LIBRARIES - link these to use libXrandr
-
-FIND_PATH(
- Xrandr_INCLUDE_DIRS
- NAMES X11/extensions/Xrandr.h
- PATH_SUFFIXES X11/extensions
- DOC "The Xrandr include directory"
-)
-
-FIND_LIBRARY(
- Xrandr_LIBRARIES
- NAMES Xrandr
- DOC "The Xrandr library"
-)
-
-IF (Xrandr_INCLUDE_DIRS AND Xrandr_LIBRARIES)
- SET(Xrandr_FOUND TRUE)
-ENDIF (Xrandr_INCLUDE_DIRS AND Xrandr_LIBRARIES)
-
-IF (Xrandr_FOUND)
- IF (NOT Xrandr_FIND_QUIETLY)
- MESSAGE(STATUS "Found Xrandr: ${Xrandr_LIBRARIES}")
- ENDIF (NOT Xrandr_FIND_QUIETLY)
-ELSE (Xrandr_FOUND)
- IF (Xrandr_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find Xrandr")
- ENDIF (Xrandr_FIND_REQUIRED)
-ENDIF (Xrandr_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/Findlibusb1.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/Findlibusb1.cmake
deleted file mode 100644
index a208728..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/Findlibusb1.cmake
+++ /dev/null
@@ -1,42 +0,0 @@
-# - Try to find libusb1
-#
-# libusb1_FOUND - system has libusb1
-# libusb1_INCLUDE_DIRS - the libusb1 include directories
-# libusb1_LIBRARIES - link these to use libusb1
-
-FIND_PATH(
- libusb1_INCLUDE_DIRS
- NAMES libusb-1.0/libusb.h
- PATHS
- c:/dev/sysroot32/usr/include
- ${CMAKE_SOURCE_DIR}/../libusb1/include
- /usr/include/
- /usr/local/include
- /opt/local/include
-)
-
-FIND_LIBRARY(
- libusb1_LIBRARIES
- NAMES libusb-1.0
- PATHS
- c:/dev/sysroot32/usr/lib
- ${CMAKE_SOURCE_DIR}/../libusb1/lib
- /usr/lib
- /usr/local/lib
- /opt/local/lib
-)
-
-IF(libusb1_INCLUDE_DIRS AND libusb1_LIBRARIES)
- SET(libusb1_FOUND TRUE)
-ENDIF(libusb1_INCLUDE_DIRS AND libusb1_LIBRARIES)
-
-IF(libusb1_FOUND)
- IF(NOT libusb1_FIND_QUIETLY)
- MESSAGE(STATUS "Found libusb1: ${libusb1_LIBRARIES}")
- ENDIF(NOT libusb1_FIND_QUIETLY)
-ELSE(libusb1_FOUND)
-message(STATUS "libusb1 NOT found")
- IF(libusb1_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find libusb1")
- ENDIF(libusb1_FIND_REQUIRED)
-ENDIF(libusb1_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/Findpthread.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/Findpthread.cmake
deleted file mode 100644
index a1362ab..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/Findpthread.cmake
+++ /dev/null
@@ -1,42 +0,0 @@
-# - Try to find pthread
-#
-# pthread_FOUND - system has pthread
-# pthread_INCLUDE_DIRS - the pthread include directories
-# pthread_LIBRARIES - link these to use pthread
-
-FIND_PATH(
- pthread_INCLUDE_DIRS
- NAMES pthread.h
- PATHS
- c:/dev/sysroot32/usr/include
- ${CMAKE_SOURCE_DIR}/../pthread/include
- /usr/include/
- /usr/local/include
- /opt/local/include
-)
-
-FIND_LIBRARY(
- pthread_LIBRARIES
- NAMES pthreadVSE2 pthread
- PATHS
- c:/dev/sysroot32/usr/lib
- ${CMAKE_SOURCE_DIR}/../pthread/lib
- /usr/lib
- /usr/local/lib
- /opt/local/lib
-)
-
-IF(pthread_INCLUDE_DIRS AND pthread_LIBRARIES)
- SET(pthread_FOUND TRUE)
-ENDIF(pthread_INCLUDE_DIRS AND pthread_LIBRARIES)
-
-IF(pthread_FOUND)
- IF(NOT pthread_FIND_QUIETLY)
- MESSAGE(STATUS "Found pthread: ${pthread_LIBRARIES}")
- ENDIF(NOT pthread_FIND_QUIETLY)
-ELSE(pthread_FOUND)
-message(STATUS "pthread NOT found")
- IF(pthread_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find pthread")
- ENDIF(pthread_FIND_REQUIRED)
-ENDIF(pthread_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/Finduvc.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/Finduvc.cmake
deleted file mode 100644
index fefe72f..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/Finduvc.cmake
+++ /dev/null
@@ -1,39 +0,0 @@
-# - Try to find uvc
-#
-# uvc_FOUND - system has libuvc
-# uvc_INCLUDE_DIRS - the libuvc include directories
-# uvc_LIBRARIES - link these to use libuvc
-
-FIND_PATH(
- uvc_INCLUDE_DIRS
- NAMES libuvc/libuvc.h
- PATHS
- ${CMAKE_SOURCE_DIR}/..
- /usr/include/
- /usr/local/include
- /opt/local/include
-)
-
-FIND_LIBRARY(
- uvc_LIBRARIES
- NAMES uvc
- PATHS
- ${CMAKE_SOURCE_DIR}/../uvc/build
- /usr/lib
- /usr/local/lib
- /opt/local/lib
-)
-
-IF (uvc_INCLUDE_DIRS AND uvc_LIBRARIES)
- SET(uvc_FOUND TRUE)
-ENDIF (uvc_INCLUDE_DIRS AND uvc_LIBRARIES)
-
-IF (uvc_FOUND)
- IF (NOT uvc_FIND_QUIETLY)
- MESSAGE(STATUS "Found uvc: ${uvc_LIBRARIES}")
- ENDIF (NOT uvc_FIND_QUIETLY)
-ELSE (uvc_FOUND)
- IF (uvc_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find uvc")
- ENDIF (uvc_FIND_REQUIRED)
-ENDIF (uvc_FOUND)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/Findzstd.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/Findzstd.cmake
deleted file mode 100644
index f4faabb..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/Findzstd.cmake
+++ /dev/null
@@ -1,35 +0,0 @@
-###############################################################################
-# Find Toshiba TeliCam
-#
-# This sets the following variables:
-# TeliCam_FOUND - True if TeliCam was found.
-# TeliCam_INCLUDE_DIRS - Directories containing the TeliCam include files.
-# TeliCam_LIBRARIES - Libraries needed to use TeliCam.
-
-find_path(
- zstd_INCLUDE_DIR zstd.h
- PATHS
- /opt/local/include
- /usr/local/include
- /usr/include
- PATH_SUFFIXES TeliCam
-)
-
-find_library(
- zstd_LIBRARY
- NAMES zstd
- PATHS
- /opt/local/lib
- /user/local/lib
- /usr/lib
-)
-
-# Plural forms
-set(zstd_INCLUDE_DIRS ${zstd_INCLUDE_DIR})
-set(zstd_LIBRARIES ${zstd_LIBRARY})
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args( zstd
- FOUND_VAR zstd_FOUND
- REQUIRED_VARS zstd_INCLUDE_DIR zstd_LIBRARY
-)
diff --git a/Thirdparty/Pangolin-0.6/CMakeModules/SetPlatformVars.cmake b/Thirdparty/Pangolin-0.6/CMakeModules/SetPlatformVars.cmake
deleted file mode 100644
index a07b35a..0000000
--- a/Thirdparty/Pangolin-0.6/CMakeModules/SetPlatformVars.cmake
+++ /dev/null
@@ -1,56 +0,0 @@
-## Compiler configuration
-IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
- SET(_GCC_ 1)
-ENDIF()
-
-IF(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
- SET(_CLANG_ 1)
-ENDIF()
-
-IF(MSVC)
- SET(_MSVC_ 1)
-ENDIF()
-
-## Platform configuration
-
-IF(WIN32 OR WIN64)
- SET(_WIN_ 1)
-ENDIF()
-
-IF(UNIX)
- SET(_UNIX_ 1)
-ENDIF()
-
-IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- SET(_OSX_ 1)
-ENDIF()
-
-IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
- SET(_LINUX_ 1)
-ENDIF()
-
-IF(ANDROID)
- SET(_ANDROID_ 1)
-ENDIF()
-
-IF(IOS)
- SET(_APPLE_IOS_ 1)
-ENDIF()
-
-
-
-## Default search paths
-
-IF(_WIN_)
- IF(${CMAKE_CL_64})
- LIST(APPEND CMAKE_INCLUDE_PATH "c:/dev/sysroot64/usr/include")
- LIST(APPEND CMAKE_LIBRARY_PATH "c:/dev/sysroot64/usr/lib")
- LIST(APPEND CMAKE_LIBRARY_PATH "c:/dev/sysroot64/usr/bin")
- set(PROGRAM_FILES "$ENV{PROGRAMW6432}" )
- ELSE()
- LIST(APPEND CMAKE_INCLUDE_PATH "c:/dev/sysroot32/usr/include")
- LIST(APPEND CMAKE_LIBRARY_PATH "c:/dev/sysroot32/usr/lib")
- LIST(APPEND CMAKE_LIBRARY_PATH "c:/dev/sysroot32/usr/bin")
- set(PROGRAM_FILES "$ENV{PROGRAMFILES}" )
- ENDIF()
-ENDIF()
diff --git a/Thirdparty/Pangolin-0.6/README.md b/Thirdparty/Pangolin-0.6/README.md
deleted file mode 100644
index 5ef465b..0000000
--- a/Thirdparty/Pangolin-0.6/README.md
+++ /dev/null
@@ -1,176 +0,0 @@
-What is Pangolin
-====================================
-
-Pangolin is a lightweight portable rapid development library for managing OpenGL
-display / interaction and abstracting video input. At its heart is a simple
-OpenGl viewport manager which can help to modularise 3D visualisation without
-adding to its complexity, and offers an advanced but intuitive 3D navigation
-handler. Pangolin also provides a mechanism for manipulating program variables
-through config files and ui integration, and has a flexible real-time plotter
-for visualising graphical data.
-
-The ethos of Pangolin is to reduce the boilerplate code that normally
-gets written to visualise and interact with (typically image and 3D
-based) systems, without compromising performance. It also enables write-once
-code for a number of platforms, currently including Windows, Linux, OSX, Android
-and IOS.
-
-## Code ##
-
-Find the latest version on [Github](http://github.com/stevenlovegrove/Pangolin):
-
-```
-git clone https://github.com/stevenlovegrove/Pangolin.git
-```
-
-## Dependencies ##
-
-Optional dependencies are enabled when found, otherwise they are silently disabled.
-Check the CMake configure output for details.
-
-### Required Dependencies ###
-
-* C++11
-
-* OpenGL (Desktop / ES / ES2)
- * (lin) `sudo apt install libgl1-mesa-dev`
-
-* Glew
- * (win) built automatically (assuming git is on your path)
- * (deb) `sudo apt install libglew-dev`
- * (mac) `sudo port install glew`
-
-* CMake (for build environment)
- * (win) http://www.cmake.org/cmake/resources/software.html
- * (deb) `sudo apt install cmake`
- * (mac) `sudo port install cmake`
-
-### Recommended Dependencies ###
-
-* Python2 / Python3, for drop-down interactive console
- * (win) http://www.python.org/downloads/windows
- * (deb) `sudo apt install libpython2.7-dev`
- * (mac) preinstalled with osx
- * (for pybind11) `git submodule init && git submodule update`
- * (useful modules) `sudo python -mpip install numpy pyopengl Pillow pybind11`
-
-* Wayland
- * pkg-config: `sudo apt install pkg-config`
- * Wayland and EGL:`sudo apt install libegl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols`
-
-### Optional Dependencies for video input ###
-
-* FFMPEG (For video decoding and image rescaling)
- * (deb) `sudo apt install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavdevice-dev`
-
-* DC1394 (For firewire input)
- * (deb) `sudo apt install libdc1394-22-dev libraw1394-dev`
-
-* libuvc (For cross-platform webcam video input via libusb)
- * git://github.com/ktossell/libuvc.git
-
-* libjpeg, libpng, libtiff, libopenexr (For reading still-image sequences)
- * (deb) `sudo apt install libjpeg-dev libpng12-dev libtiff5-dev libopenexr-dev`
-
-* OpenNI / OpenNI2 (For Kinect / Xtrion / Primesense capture)
-
-* DepthSense SDK
-
-### Very Optional Dependencies ###
-
-* Eigen / TooN (These matrix types supported in the Pangolin API.)
-
-* CUDA Toolkit >= 3.2 (Some CUDA header-only interop utilities included)
- * http://developer.nvidia.com/cuda-downloads
-
-* Doxygen for generating html / pdf documentation.
-
-## Building ##
-
-Pangolin uses the CMake portable pre-build tool. To checkout and build pangolin in the
-directory 'build', execute the following at a shell (or the equivelent using a GUI):
-
-```
-git clone https://github.com/stevenlovegrove/Pangolin.git
-cd Pangolin
-mkdir build
-cd build
-cmake ..
-cmake --build .
-```
-
-If you would like to build the documentation and you have Doxygen installed, you
-can execute:
-
-```
-cmake --build . --target pangolin_doc
-```
-
-**On Windows**, Pangolin will attempt to download and build *glew*, *libjpeg*, *libpng* and *zlib* automatically. It does so assuming that git is available on the path - this assumption may be wrong for windows users who have downloaded Pangolin via a zip file on github. You will instead need to download and compile the dependencies manually, and set the BUILD_EXTERN_(lib) options to false for these libraries. The alternate and recommended approach is to install [gitbash](https://git-scm.com/downloads) and work from within their provided console.
-
-## Issues ##
-
-Please visit [Github Issues](https://github.com/stevenlovegrove/Pangolin/issues) to view and report problems with Pangolin. Issues and pull requests should be raised against the master branch which contains the current development version.
-
-Please note; most Pangolin dependencies are optional - to disable a dependency which may be causing trouble on your machine, set the BUILD_PANGOLIN_(option) variable to false with a cmake configuration tool (e.g. ccmake or cmake-gui).
-
-## Contributions and Continuous Integration ##
-
-For CI, Pangolin uses [travis-ci.org](https://travis-ci.org/stevenlovegrove/Pangolin) for Ubuntu, OSX and [ci.appveyor.com](https://ci.appveyor.com/project/stevenlovegrove/pangolin) for Windows.
-
-To contribute to Pangolin, I would appreciate pull requests against the master branch. This will trigger CI builds for your changes automatically, and help me to merge with confidence.
-
-## Binaries ##
-
-Binaries are available for Windows x64, as output by the Windows CI server: [Appveyor Artifacts](https://ci.appveyor.com/project/stevenlovegrove/pangolin/build/artifacts).
-
-## Bindings ##
-
-### Python ###
-
-Pangolin python bindings are enabled via [pybind11](www.pybind11.com). These bindings can be used both standalone and from within Pangolin's drop-down console (press the back-tick key, `).
-
-To enable the bindings, you must checkout the pybind submodule. To use pangolin in python, it's recommend to install a few other python packages too:
-
-```
-sudo python -mpip install numpy pyopengl Pillow pybind11
-git submodule init && git submodule update
-```
-
-The python module pypangolin must be on your python path, either through installation, or by setting it explicitly:
-
-```
-import sys
-sys.path.append('path/of/pypangolin.so')
-```
-
-## Scheme syntax for windowing and video
-
-Pangolin uses 'URI' syntax for modularising video drivers and windowing backends. The syntax follows along the lines of `module_name:[option1=value1,option2=value2,...]//module_resource_to_open`. Some examples for using this URI syntax with the VideoViewer tool is as follows:
-
-```
-VideoViewer test://
-VideoViewer uvc:[size=640x480]///dev/video0
-VideoViewer flip://debayer:[tile=rggb,method=downsample]//file://~/somefile.pango
-```
-
-Notice that for video, some modules support chaining to construct a simple filter graph. See include/pangolin/video/video.h for more examples.
-
-For windowing, you can also customize default arguments for Pangolin applications by setting the `PANGOLIN_WINDOW_URI` environment variable. For instance, on high-DPI screens (in this example on OSX), you could set:
-
-
-```
-setenv PANGOLIN_WINDOW_URI "cocoa:[HIGHRES=true]//"
-```
-
-Some window parameters that may be interesting to override are `DISPLAYNAME`, `DOUBLEBUFFER`, `SAMPLE_BUFFERS`, `SAMPLES`, `HIGHRES`. Window modules currently include `x11`, `winapi`, `cocoa`.
-
-## Acknowledgements ##
-
-I'd like to thank the growing number of kind contributors to Pangolin for helping to make it more stable and feature rich. Many features of Pangolin have been influenced by other projects such as GFlags, GLConsole, and libcvd in particular. I'd also like to thank the FOSS projects on which Pangolin depends.
-
-For a summary of those who have made code contributions, execute:
-
-```
-git shortlog -sne
-```
diff --git a/Thirdparty/Pangolin-0.6/appveyor.yml b/Thirdparty/Pangolin-0.6/appveyor.yml
deleted file mode 100644
index 313a193..0000000
--- a/Thirdparty/Pangolin-0.6/appveyor.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-os: Visual Studio 2015
-
-clone_folder: c:/projects/Pangolin
-
-platform: x64
-configuration: Release
-
-build:
- verbosity: minimal
- project: c:/projects/Pangolin/build/Pangolin.sln
-
-install:
- - ps: wget http://bitbucket.org/eigen/eigen/get/3.2.10.zip -outfile eigen3.zip
- - cmd: 7z x eigen3.zip -o"C:/projects" -y > nul
-
-before_build:
- - cd c:/projects/Pangolin
- - mkdir bin
- - mkdir build
- - cd build
- - cmake -G "Visual Studio 14 2015 Win64" -D EIGEN3_INCLUDE_DIR=C:/projects/eigen-eigen-b9cd8366d4e8 -D CMAKE_INSTALL_PREFIX=../bin ..
-
-on_success:
- - 7z a pangolin_build.zip "c:/projects/Pangolin/build/src/include" "c:/projects/Pangolin/build/src/Release/pangolin.lib" "c:/projects/Pangolin/build/tools/*/Release/*.exe" "c:/projects/Pangolin/build/examples/*/Release/*.exe"
- - appveyor PushArtifact pangolin_build.zip
diff --git a/Thirdparty/Pangolin-0.6/cmake_uninstall.cmake.in b/Thirdparty/Pangolin-0.6/cmake_uninstall.cmake.in
deleted file mode 100644
index 6dc0777..0000000
--- a/Thirdparty/Pangolin-0.6/cmake_uninstall.cmake.in
+++ /dev/null
@@ -1,25 +0,0 @@
-# -----------------------------------------------
-# File that provides "make uninstall" target
-# We use the file 'install_manifest.txt'
-# -----------------------------------------------
-IF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
- MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_BINARY_DIR@/install_manifest.txt\"")
-ENDIF(NOT EXISTS "@CMAKE_BINARY_DIR@/install_manifest.txt")
-
-FILE(READ "@CMAKE_BINARY_DIR@/install_manifest.txt" files)
-STRING(REGEX REPLACE "\n" ";" files "${files}")
-FOREACH(file ${files})
- MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
- IF(EXISTS "$ENV{DESTDIR}${file}")
- EXEC_PROGRAM(
- "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
- OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval
- )
- IF(NOT "${rm_retval}" STREQUAL 0)
- MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
- ENDIF(NOT "${rm_retval}" STREQUAL 0)
- ELSE(EXISTS "$ENV{DESTDIR}${file}")
- MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
- ENDIF(EXISTS "$ENV{DESTDIR}${file}")
-ENDFOREACH(file)
diff --git a/Thirdparty/Pangolin-0.6/examples/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/CMakeLists.txt
deleted file mode 100644
index e2caa61..0000000
--- a/Thirdparty/Pangolin-0.6/examples/CMakeLists.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-# All examples depend on Pangolin GUI
-if(BUILD_PANGOLIN_GUI)
- add_subdirectory(HelloPangolin)
- add_subdirectory(HelloPangolinOffscreen)
- add_subdirectory(HelloPangolinThreads)
- add_subdirectory(SimpleMultiDisplay)
- add_subdirectory(SimpleDisplayImage)
- add_subdirectory(SimpleScene)
-
- if(NOT HAVE_GLES OR HAVE_GLES_2)
- add_subdirectory(SimplePlot)
- endif()
-
- ## These samples require Pangolin Var support
- if(BUILD_PANGOLIN_VARS)
- add_subdirectory(SimpleDisplay)
-
- ## Video Samples require Pangolin Video support
- if(BUILD_PANGOLIN_VIDEO)
- add_subdirectory(SimpleVideo)
- add_subdirectory(SimpleRecord)
- add_subdirectory(SharedMemoryCamera)
- endif()
-
-# # This sample fails on many platforms, so exclude it for now,
-# # until we can create a better cmake test for support.
-# find_package(CUDA QUIET)
-# if( CUDA_FOUND )
-# add_subdirectory(VBODisplay)
-# endif()
-
- endif()
-endif()
diff --git a/Thirdparty/Pangolin-0.6/examples/HelloPangolin/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/HelloPangolin/CMakeLists.txt
deleted file mode 100644
index f37389a..0000000
--- a/Thirdparty/Pangolin-0.6/examples/HelloPangolin/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(HelloPangolin main.cpp)
-target_link_libraries(HelloPangolin ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/HelloPangolin/main.cpp b/Thirdparty/Pangolin-0.6/examples/HelloPangolin/main.cpp
deleted file mode 100644
index cc6de19..0000000
--- a/Thirdparty/Pangolin-0.6/examples/HelloPangolin/main.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include
-
-int main( int /*argc*/, char** /*argv*/ )
-{
- pangolin::CreateWindowAndBind("Main",640,480);
- glEnable(GL_DEPTH_TEST);
-
- // Define Projection and initial ModelView matrix
- pangolin::OpenGlRenderState s_cam(
- pangolin::ProjectionMatrix(640,480,420,420,320,240,0.2,100),
- pangolin::ModelViewLookAt(-2,2,-2, 0,0,0, pangolin::AxisY)
- );
-
- // Create Interactive View in window
- pangolin::Handler3D handler(s_cam);
- pangolin::View& d_cam = pangolin::CreateDisplay()
- .SetBounds(0.0, 1.0, 0.0, 1.0, -640.0f/480.0f)
- .SetHandler(&handler);
-
- while( !pangolin::ShouldQuit() )
- {
- // Clear screen and activate view to render into
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- d_cam.Activate(s_cam);
-
- // Render OpenGL Cube
- pangolin::glDrawColouredCube();
-
- // Swap frames and Process Events
- pangolin::FinishFrame();
- }
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/HelloPangolinOffscreen/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/HelloPangolinOffscreen/CMakeLists.txt
deleted file mode 100644
index 8653de3..0000000
--- a/Thirdparty/Pangolin-0.6/examples/HelloPangolinOffscreen/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.5 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(HelloPangolinOffscreen main.cpp)
-target_link_libraries(HelloPangolinOffscreen ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/HelloPangolinOffscreen/main.cpp b/Thirdparty/Pangolin-0.6/examples/HelloPangolinOffscreen/main.cpp
deleted file mode 100644
index e26df9a..0000000
--- a/Thirdparty/Pangolin-0.6/examples/HelloPangolinOffscreen/main.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-#include
-
-int main( int /*argc*/, char** /*argv*/ )
-{
- static const int w = 640;
- static const int h = 480;
-
- pangolin::CreateWindowAndBind("Main",w,h,pangolin::Params({{"scheme", "headless"}}));
- glEnable(GL_DEPTH_TEST);
-
- // Define Projection and initial ModelView matrix
- pangolin::OpenGlRenderState s_cam(
- pangolin::ProjectionMatrix(w,h,420,420,320,240,0.2,100),
- pangolin::ModelViewLookAt(-2,2,-2, 0,0,0, pangolin::AxisY)
- );
-
- // Create Interactive View in window
- pangolin::Handler3D handler(s_cam);
- pangolin::View& d_cam = pangolin::CreateDisplay()
- .SetBounds(0.0, 1.0, 0.0, 1.0, -float(w)/float(h))
- .SetHandler(&handler);
-
- pangolin::SaveWindowOnRender("window");
-
- // create a frame buffer object with colour and depth buffer
- pangolin::GlTexture color_buffer(w,h);
- pangolin::GlRenderBuffer depth_buffer(w,h);
- pangolin::GlFramebuffer fbo_buffer(color_buffer, depth_buffer);
- fbo_buffer.Bind();
-
- // Clear screen and activate view to render into
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- d_cam.Activate(s_cam);
-
- // Render OpenGL Cube
- pangolin::glDrawColouredCube();
-
- // Swap frames and Process Events
- pangolin::FinishFrame();
-
- fbo_buffer.Unbind();
- // download and save the colour buffer
- color_buffer.Save("fbo.png", false);
-
- pangolin::QuitAll();
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/HelloPangolinThreads/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/HelloPangolinThreads/CMakeLists.txt
deleted file mode 100644
index 78f02a3..0000000
--- a/Thirdparty/Pangolin-0.6/examples/HelloPangolinThreads/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.5 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(HelloPangolinThreads main.cpp)
-target_link_libraries(HelloPangolinThreads ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/HelloPangolinThreads/main.cpp b/Thirdparty/Pangolin-0.6/examples/HelloPangolinThreads/main.cpp
deleted file mode 100644
index 0480332..0000000
--- a/Thirdparty/Pangolin-0.6/examples/HelloPangolinThreads/main.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-#include
-#include
-
-static const std::string window_name = "HelloPangolinThreads";
-
-void setup() {
- // create a window and bind its context to the main thread
- pangolin::CreateWindowAndBind(window_name, 640, 480);
-
- // enable depth
- glEnable(GL_DEPTH_TEST);
-
- // unset the current context from the main thread
- pangolin::GetBoundWindow()->RemoveCurrent();
-}
-
-void run() {
- // fetch the context and bind it to this thread
- pangolin::BindToContext(window_name);
-
- // we manually need to restore the properties of the context
- glEnable(GL_DEPTH_TEST);
-
- // Define Projection and initial ModelView matrix
- pangolin::OpenGlRenderState s_cam(
- pangolin::ProjectionMatrix(640,480,420,420,320,240,0.2,100),
- pangolin::ModelViewLookAt(-2,2,-2, 0,0,0, pangolin::AxisY)
- );
-
- // Create Interactive View in window
- pangolin::Handler3D handler(s_cam);
- pangolin::View& d_cam = pangolin::CreateDisplay()
- .SetBounds(0.0, 1.0, 0.0, 1.0, -640.0f/480.0f)
- .SetHandler(&handler);
-
- while( !pangolin::ShouldQuit() )
- {
- // Clear screen and activate view to render into
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- d_cam.Activate(s_cam);
-
- // Render OpenGL Cube
- pangolin::glDrawColouredCube();
-
- // Swap frames and Process Events
- pangolin::FinishFrame();
- }
-
- // unset the current context from the main thread
- pangolin::GetBoundWindow()->RemoveCurrent();
-}
-
-int main( int /*argc*/, char** /*argv*/ )
-{
- // create window and context in the main thread
- setup();
-
- // use the context in a separate rendering thread
- std::thread render_loop;
- render_loop = std::thread(run);
- render_loop.join();
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SharedMemoryCamera/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SharedMemoryCamera/CMakeLists.txt
deleted file mode 100644
index 567aeed..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SharedMemoryCamera/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-if(UNIX)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SharedMemoryCamera main.cpp)
-target_link_libraries(SharedMemoryCamera ${Pangolin_LIBRARIES})
-endif()
diff --git a/Thirdparty/Pangolin-0.6/examples/SharedMemoryCamera/main.cpp b/Thirdparty/Pangolin-0.6/examples/SharedMemoryCamera/main.cpp
deleted file mode 100644
index 29ba6ae..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SharedMemoryCamera/main.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-#include
-
-#include
-#include
-#include
-
-#include
-#include
-
-// This sample acts as a soft camera. It writes a pattern of GRAY8 pixels to the
-// shared memory space. It can be seen in Pangolin's SimpleVideo sample using
-// the shmem:[size=640x480]//example video URI.
-
-using namespace pangolin;
-
-unsigned char generate_value(double t)
-{
- // 10s sinusoid
- const double d = std::sin(t * 10.0 / M_PI) * 128.0 + 128.0;
- return static_cast(d);
-}
-
-int main(/*int argc, char *argv[]*/)
-{
- std::string shmem_name = "/example";
-
- std::shared_ptr shmem_buffer =
- create_named_shared_memory_buffer(shmem_name, 640 * 480);
- if (!shmem_buffer) {
- perror("Unable to create shared memory buffer");
- exit(1);
- }
-
- std::string cond_name = shmem_name + "_cond";
- std::shared_ptr buffer_full =
- create_named_condition_variable(cond_name);
-
- // Sit in a loop and write gray values based on some timing pattern.
- while (true) {
- shmem_buffer->lock();
- unsigned char *ptr = shmem_buffer->ptr();
- unsigned char value = generate_value(std::chrono::system_clock::now().time_since_epoch().count());
-
- for (int i = 0; i < 640*480; ++i) {
- ptr[i] = value;
- }
-
- shmem_buffer->unlock();
- buffer_full->signal();
-
- std::this_thread::sleep_for(std::chrono::milliseconds(10));
- }
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/CMakeLists.txt
deleted file mode 100644
index fe85858..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SimpleDisplay main.cpp)
-target_link_libraries(SimpleDisplay ${Pangolin_LIBRARIES} )
-
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/app.cfg b/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/app.cfg
deleted file mode 100644
index cf3661b..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/app.cfg
+++ /dev/null
@@ -1,26 +0,0 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Pangolin Sample configuration file
-% Comments start with '%' or '#'
-%
-% Declarations are name value pairs,
-% seperated with '=' and terminated with ';'
-
-% We can set any variable referenced in code directly
-ui.A Double = 3.2;
-ui.A Checkbox = false;
-
-% We can set unreferenced variables too
-a.b = 1;
-a.c = 2;
-z.b = 3;
-z.c = 4;
-start = z;
-
-% Which we might refer to by reference
-ui.An Int = ${${start}.c};
-
-% Declarations can span multiple lines
-M =
-[1, 0, 0
- 0, 1, 0
- 0, 0, 1];
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/main.cpp b/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/main.cpp
deleted file mode 100644
index 850bde4..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleDisplay/main.cpp
+++ /dev/null
@@ -1,129 +0,0 @@
-#include
-#include
-
-struct CustomType
-{
- CustomType()
- : x(0), y(0.0f) {}
-
- CustomType(int x, float y, std::string z)
- : x(x), y(y), z(z) {}
-
- int x;
- float y;
- std::string z;
-};
-
-std::ostream& operator<< (std::ostream& os, const CustomType& o){
- os << o.x << " " << o.y << " " << o.z;
- return os;
-}
-
-std::istream& operator>> (std::istream& is, CustomType& o){
- is >> o.x;
- is >> o.y;
- is >> o.z;
- return is;
-}
-
-void SampleMethod()
-{
- std::cout << "You typed ctrl-r or pushed reset" << std::endl;
-}
-
-
-int main(/*int argc, char* argv[]*/)
-{
- // Load configuration data
- pangolin::ParseVarsFile("app.cfg");
-
- // Create OpenGL window in single line
- pangolin::CreateWindowAndBind("Main",640,480);
-
- // 3D Mouse handler requires depth testing to be enabled
- glEnable(GL_DEPTH_TEST);
-
- // Define Camera Render Object (for view / scene browsing)
- pangolin::OpenGlRenderState s_cam(
- pangolin::ProjectionMatrix(640,480,420,420,320,240,0.1,1000),
- pangolin::ModelViewLookAt(-0,0.5,-3, 0,0,0, pangolin::AxisY)
- );
-
- const int UI_WIDTH = 180;
-
- // Add named OpenGL viewport to window and provide 3D Handler
- pangolin::View& d_cam = pangolin::CreateDisplay()
- .SetBounds(0.0, 1.0, pangolin::Attach::Pix(UI_WIDTH), 1.0, -640.0f/480.0f)
- .SetHandler(new pangolin::Handler3D(s_cam));
-
- // Add named Panel and bind to variables beginning 'ui'
- // A Panel is just a View with a default layout and input handling
- pangolin::CreatePanel("ui")
- .SetBounds(0.0, 1.0, 0.0, pangolin::Attach::Pix(UI_WIDTH));
-
- // Safe and efficient binding of named variables.
- // Specialisations mean no conversions take place for exact types
- // and conversions between scalar types are cheap.
- pangolin::Var a_button("ui.A_Button",false,false);
- pangolin::Var a_double("ui.A_Double",3,0,5);
- pangolin::Var an_int("ui.An_Int",2,0,5);
- pangolin::Var a_double_log("ui.Log_scale var",3,1,1E4, true);
- pangolin::Var a_checkbox("ui.A_Checkbox",false,true);
- pangolin::Var an_int_no_input("ui.An_Int_No_Input",2);
- pangolin::Var any_type("ui.Some_Type", CustomType(0,1.2f,"Hello") );
-
- pangolin::Var save_window("ui.Save_Window",false,false);
- pangolin::Var save_cube("ui.Save_Cube",false,false);
-
- pangolin::Var record_cube("ui.Record_Cube",false,false);
-
- // std::function objects can be used for Var's too. These work great with C++11 closures.
- pangolin::Var > reset("ui.Reset", SampleMethod);
-
- // Demonstration of how we can register a keyboard hook to alter a Var
- pangolin::RegisterKeyPressCallback(pangolin::PANGO_CTRL + 'b', pangolin::SetVarFunctor("ui.A_Double", 3.5));
-
- // Demonstration of how we can register a keyboard hook to trigger a method
- pangolin::RegisterKeyPressCallback(pangolin::PANGO_CTRL + 'r', SampleMethod);
-
- // Default hooks for exiting (Esc) and fullscreen (tab).
- while( !pangolin::ShouldQuit() )
- {
- // Clear entire screen
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
- if( pangolin::Pushed(a_button) )
- std::cout << "You Pushed a button!" << std::endl;
-
- // Overloading of Var operators allows us to treat them like
- // their wrapped types, eg:
- if( a_checkbox )
- an_int = (int)a_double;
-
- if( !any_type->z.compare("robot"))
- any_type = CustomType(1,2.3f,"Boogie");
-
- an_int_no_input = an_int;
-
- if( pangolin::Pushed(save_window) )
- pangolin::SaveWindowOnRender("window");
-
- if( pangolin::Pushed(save_cube) )
- d_cam.SaveOnRender("cube");
-
- if( pangolin::Pushed(record_cube) )
- pangolin::DisplayBase().RecordOnRender("ffmpeg:[fps=50,bps=8388608,unique_filename]//screencap.avi");
-
- // Activate efficiently by object
- d_cam.Activate(s_cam);
-
- // Render some stuff
- glColor3f(1.0,1.0,1.0);
- pangolin::glDrawColouredCube();
-
- // Swap frames and Process Events
- pangolin::FinishFrame();
- }
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleDisplayImage/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SimpleDisplayImage/CMakeLists.txt
deleted file mode 100644
index 57f37b0..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleDisplayImage/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SimpleDisplayImage main.cpp)
-target_link_libraries(SimpleDisplayImage ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleDisplayImage/main.cpp b/Thirdparty/Pangolin-0.6/examples/SimpleDisplayImage/main.cpp
deleted file mode 100644
index 5dd87b4..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleDisplayImage/main.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-#include
-#include
-#include
-
-void setImageData(unsigned char * imageArray, int size){
- for(int i = 0 ; i < size;i++) {
- imageArray[i] = (unsigned char)(rand()/(RAND_MAX/255.0));
- }
-}
-
-int main(/*int argc, char* argv[]*/)
-{
- // Create OpenGL window in single line
- pangolin::CreateWindowAndBind("Main",640,480);
-
- // 3D Mouse handler requires depth testing to be enabled
- glEnable(GL_DEPTH_TEST);
-
- pangolin::OpenGlRenderState s_cam(
- pangolin::ProjectionMatrix(640,480,420,420,320,240,0.1,1000),
- pangolin::ModelViewLookAt(-1,1,-1, 0,0,0, pangolin::AxisY)
- );
-
- // Aspect ratio allows us to constrain width and height whilst fitting within specified
- // bounds. A positive aspect ratio makes a view 'shrink to fit' (introducing empty bars),
- // whilst a negative ratio makes the view 'grow to fit' (cropping the view).
- pangolin::View& d_cam = pangolin::Display("cam")
- .SetBounds(0,1.0f,0,1.0f,-640/480.0)
- .SetHandler(new pangolin::Handler3D(s_cam));
-
- // This view will take up no more than a third of the windows width or height, and it
- // will have a fixed aspect ratio to match the image that it will display. When fitting
- // within the specified bounds, push to the top-left (as specified by SetLock).
- pangolin::View& d_image = pangolin::Display("image")
- .SetBounds(2/3.0f,1.0f,0,1/3.0f,640.0/480)
- .SetLock(pangolin::LockLeft, pangolin::LockTop);
-
- std::cout << "Resize the window to experiment with SetBounds, SetLock and SetAspect." << std::endl;
- std::cout << "Notice that the cubes aspect is maintained even though it covers the whole screen." << std::endl;
-
- const int width = 64;
- const int height = 48;
-
- unsigned char* imageArray = new unsigned char[3*width*height];
- pangolin::GlTexture imageTexture(width,height,GL_RGB,false,0,GL_RGB,GL_UNSIGNED_BYTE);
-
- // Default hooks for exiting (Esc) and fullscreen (tab).
- while(!pangolin::ShouldQuit())
- {
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
- d_cam.Activate(s_cam);
-
- glColor3f(1.0,1.0,1.0);
- pangolin::glDrawColouredCube();
-
- //Set some random image data and upload to GPU
- setImageData(imageArray,3*width*height);
- imageTexture.Upload(imageArray,GL_RGB,GL_UNSIGNED_BYTE);
-
- //display the image
- d_image.Activate();
- glColor3f(1.0,1.0,1.0);
- imageTexture.RenderToViewport();
-
- pangolin::FinishFrame();
- }
-
- delete[] imageArray;
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/CMakeLists.txt
deleted file mode 100644
index 3d91937..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SimpleMultiDisplay main.cpp)
-target_link_libraries(SimpleMultiDisplay ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/app.cfg b/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/app.cfg
deleted file mode 100644
index 08c9c8c..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/app.cfg
+++ /dev/null
@@ -1,28 +0,0 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% Pangolin Sample configuration file
-% Comments start with '%' or '#'
-%
-% Declarations are name value pairs,
-% seperated with '=' and terminated with ';'
-
-% We can set any variable referenced in code directly
-ui.A Double = 3.2;
-
-% We can set unreferenced variables too
-a.b = 1;
-a.c = 2;
-z.b = 3;
-z.c = 4;
-start = z;
-
-% Which we might refer to by reference
-ui.An Int = ${${start}.c};
-
-% Declarations can span multiple lines
-M =
-[1, 0, 0
- 0, 1, 0
- 0, 0, 1];
-
-ui.Aliased Double = @ui.A Double;
-ui.Aliased Double = 2.0;
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/main.cpp b/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/main.cpp
deleted file mode 100644
index 79bb22b..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleMultiDisplay/main.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-#include
-#include
-
-void setImageData(unsigned char * imageArray, int size){
- for(int i = 0 ; i < size;i++) {
- imageArray[i] = (unsigned char)(rand()/(RAND_MAX/255.0));
- }
-}
-
-int main(/*int argc, char* argv[]*/)
-{
- // Create OpenGL window in single line
- pangolin::CreateWindowAndBind("Main",640,480);
-
- // 3D Mouse handler requires depth testing to be enabled
- glEnable(GL_DEPTH_TEST);
-
- // Issue specific OpenGl we might need
- glEnable (GL_BLEND);
- glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
-
- // Define Camera Render Object (for view / scene browsing)
- pangolin::OpenGlMatrix proj = pangolin::ProjectionMatrix(640,480,420,420,320,240,0.1,1000);
- pangolin::OpenGlRenderState s_cam(proj, pangolin::ModelViewLookAt(1,0.5,-2,0,0,0, pangolin::AxisY) );
- pangolin::OpenGlRenderState s_cam2(proj, pangolin::ModelViewLookAt(0,0,-2,0,0,0, pangolin::AxisY) );
-
- // Add named OpenGL viewport to window and provide 3D Handler
- pangolin::View& d_cam1 = pangolin::Display("cam1")
- .SetAspect(640.0f/480.0f)
- .SetHandler(new pangolin::Handler3D(s_cam));
-
- pangolin::View& d_cam2 = pangolin::Display("cam2")
- .SetAspect(640.0f/480.0f)
- .SetHandler(new pangolin::Handler3D(s_cam2));
-
- pangolin::View& d_cam3 = pangolin::Display("cam3")
- .SetAspect(640.0f/480.0f)
- .SetHandler(new pangolin::Handler3D(s_cam));
-
- pangolin::View& d_cam4 = pangolin::Display("cam4")
- .SetAspect(640.0f/480.0f)
- .SetHandler(new pangolin::Handler3D(s_cam2));
-
- pangolin::View& d_img1 = pangolin::Display("img1")
- .SetAspect(640.0f/480.0f);
-
- pangolin::View& d_img2 = pangolin::Display("img2")
- .SetAspect(640.0f/480.0f);
-
- // LayoutEqual is an EXPERIMENTAL feature - it requires that all sub-displays
- // share the same aspect ratio, placing them in a raster fasion in the
- // viewport so as to maximise display size.
- pangolin::Display("multi")
- .SetBounds(0.0, 1.0, 0.0, 1.0)
- .SetLayout(pangolin::LayoutEqual)
- .AddDisplay(d_cam1)
- .AddDisplay(d_img1)
- .AddDisplay(d_cam2)
- .AddDisplay(d_img2)
- .AddDisplay(d_cam3)
- .AddDisplay(d_cam4);
-
- const int width = 64;
- const int height = 48;
- unsigned char* imageArray = new unsigned char[3*width*height];
- pangolin::GlTexture imageTexture(width,height,GL_RGB,false,0,GL_RGB,GL_UNSIGNED_BYTE);
-
- // Default hooks for exiting (Esc) and fullscreen (tab).
- while( !pangolin::ShouldQuit() )
- {
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
- // Generate random image and place in texture memory for display
- setImageData(imageArray,3*width*height);
- imageTexture.Upload(imageArray,GL_RGB,GL_UNSIGNED_BYTE);
-
- glColor3f(1.0,1.0,1.0);
-
- d_cam1.Activate(s_cam);
- pangolin::glDrawColouredCube();
-
- d_cam2.Activate(s_cam2);
- pangolin::glDrawColouredCube();
-
- d_cam3.Activate(s_cam);
- pangolin::glDrawColouredCube();
-
- d_cam4.Activate(s_cam2);
- pangolin::glDrawColouredCube();
-
- d_img1.Activate();
- glColor4f(1.0f,1.0f,1.0f,1.0f);
- imageTexture.RenderToViewport();
-
- d_img2.Activate();
- glColor4f(1.0f,1.0f,1.0f,1.0f);
- imageTexture.RenderToViewport();
-
- // Swap frames and Process Events
- pangolin::FinishFrame();
- }
-
- delete[] imageArray;
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SimplePlot/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SimplePlot/CMakeLists.txt
deleted file mode 100644
index 62a6de7..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimplePlot/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SimplePlot main.cpp)
-target_link_libraries(SimplePlot ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/SimplePlot/main.cpp b/Thirdparty/Pangolin-0.6/examples/SimplePlot/main.cpp
deleted file mode 100644
index a931e4e..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimplePlot/main.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-#include
-
-#include
-
-int main(/*int argc, char* argv[]*/)
-{
- // Create OpenGL window in single line
- pangolin::CreateWindowAndBind("Main",640,480);
-
- // Data logger object
- pangolin::DataLog log;
-
- // Optionally add named labels
- std::vector labels;
- labels.push_back(std::string("sin(t)"));
- labels.push_back(std::string("cos(t)"));
- labels.push_back(std::string("sin(t)+cos(t)"));
- log.SetLabels(labels);
-
- const float tinc = 0.01f;
-
- // OpenGL 'view' of data. We might have many views of the same data.
- pangolin::Plotter plotter(&log,0.0f,4.0f*(float)M_PI/tinc,-2.0f,2.0f,(float)M_PI/(4.0f*tinc),0.5f);
- plotter.SetBounds(0.0, 1.0, 0.0, 1.0);
- plotter.Track("$i");
-
- // Add some sample annotations to the plot
- plotter.AddMarker(pangolin::Marker::Vertical, -1000, pangolin::Marker::LessThan, pangolin::Colour::Blue().WithAlpha(0.2f) );
- plotter.AddMarker(pangolin::Marker::Horizontal, 100, pangolin::Marker::GreaterThan, pangolin::Colour::Red().WithAlpha(0.2f) );
- plotter.AddMarker(pangolin::Marker::Horizontal, 10, pangolin::Marker::Equal, pangolin::Colour::Green().WithAlpha(0.2f) );
-
- pangolin::DisplayBase().AddDisplay(plotter);
-
- float t = 0;
-
- // Default hooks for exiting (Esc) and fullscreen (tab).
- while( !pangolin::ShouldQuit() )
- {
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
- log.Log(sin(t),cos(t),sin(t)+cos(t));
- t += tinc;
-
- // Render graph, Swap frames and Process Events
- pangolin::FinishFrame();
- }
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleRecord/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SimpleRecord/CMakeLists.txt
deleted file mode 100644
index 8977c0e..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleRecord/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SimpleRecord main.cpp)
-target_link_libraries(SimpleRecord ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleRecord/main.cpp b/Thirdparty/Pangolin-0.6/examples/SimpleRecord/main.cpp
deleted file mode 100644
index 9999adf..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleRecord/main.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-#include
-
-void RecordSample(const std::string input_uri, const std::string record_uri)
-{
- // Setup Video Source
- pangolin::VideoInput video(input_uri);
- const pangolin::PixelFormat vid_fmt = video.PixFormat();
- const unsigned w = video.Width();
- const unsigned h = video.Height();
-
- pangolin::VideoOutput recorder( record_uri );
- recorder.SetStreams(video.Streams());
-
- // Create OpenGL window
- pangolin::CreateWindowAndBind("Main",w,h);
-
- // Create viewport for video with fixed aspect
- pangolin::View vVideo((float)w/h);
-
- // OpenGl Texture for video frame
- pangolin::GlTexture texVideo(w,h,GL_RGBA);
-
- // Allocate image buffer. The +1 is to give ffmpeg some alignment slack
- // swscale seems to have a bug which goes over the array by 1...
- unsigned char* img = new unsigned char[video.SizeBytes() + 1];
-
- while( !pangolin::ShouldQuit() )
- {
- glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
-
- if( video.GrabNext(img,true) )
- {
- // Upload to GPU as texture for display
- texVideo.Upload(img, vid_fmt.channels==1 ? GL_LUMINANCE:GL_RGB, GL_UNSIGNED_BYTE);
-
- // Record video frame
- recorder.WriteStreams(img);
- }
-
- // Activate video viewport and render texture
- vVideo.Activate();
- texVideo.RenderToViewportFlipY();
-
- // Swap back buffer with front and process window events
- pangolin::FinishFrame();
- }
-
- delete[] img;
-}
-
-int main( int argc, char* argv[] )
-{
- std::string record_uri = "ffmpeg:[fps=30,bps=8388608]//video.avi";
-
- std::string input_uris[] = {
- "dc1394:[fps=30,dma=10,size=640x480,iso=400]//0",
- "convert:[fmt=RGB24]//v4l:///dev/video0",
- "convert:[fmt=RGB24]//v4l:///dev/video1",
- ""
- };
-
- if( argc >= 2 ) {
- const std::string uri = std::string(argv[1]);
- if( argc == 3 ) {
- record_uri = std::string(argv[2]);
- }
- RecordSample(uri, record_uri);
- }else{
- std::cout << "Usage : SimpleRecord [video-uri] [output-uri]" << std::endl << std::endl;
- std::cout << "Where video-uri describes a stream or file resource, e.g." << std::endl;
- std::cout << "\tfile:[realtime=1]///home/user/video/movie.pvn" << std::endl;
- std::cout << "\tfile:///home/user/video/movie.avi" << std::endl;
- std::cout << "\tfiles:///home/user/seqiemce/foo%03d.jpeg" << std::endl;
- std::cout << "\tdc1394:[fmt=RGB24,size=640x480,fps=30,iso=400,dma=10]//0" << std::endl;
- std::cout << "\tdc1394:[fmt=FORMAT7_1,size=640x480,pos=2+2,iso=400,dma=10]//0" << std::endl;
- std::cout << "\tv4l:///dev/video0" << std::endl;
- std::cout << "\tconvert:[fmt=RGB24]//v4l:///dev/video0" << std::endl;
- std::cout << "\tmjpeg://http://127.0.0.1/?action=stream" << std::endl;
- std::cout << std::endl;
-
- // Try to open some video device
- for(int i=0; !input_uris[i].empty(); ++i )
- {
- try{
- std::cout << "Trying: " << input_uris[i] << std::endl;
- RecordSample(input_uris[i], record_uri);
- return 0;
- }catch(const pangolin::VideoException&) {}
- }
- }
-
- return 0;
-
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleScene/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SimpleScene/CMakeLists.txt
deleted file mode 100644
index 2ad2549..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleScene/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SimpleScene main.cpp)
-target_link_libraries(SimpleScene ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleScene/main.cpp b/Thirdparty/Pangolin-0.6/examples/SimpleScene/main.cpp
deleted file mode 100644
index 2423dc6..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleScene/main.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#include
-#include
-#include
-
-int main( int /*argc*/, char** /*argv*/ )
-{
- pangolin::CreateWindowAndBind("Main",640,480);
- glEnable(GL_DEPTH_TEST);
-
- // Define Projection and initial ModelView matrix
- pangolin::OpenGlRenderState s_cam(
- pangolin::ProjectionMatrix(640,480,420,420,320,240,0.2,100),
- pangolin::ModelViewLookAt(-2,2,-2, 0,0,0, pangolin::AxisY)
- );
-
- pangolin::Renderable tree;
- tree.Add( std::make_shared() );
-
- // Create Interactive View in window
- pangolin::SceneHandler handler(tree, s_cam);
- pangolin::View& d_cam = pangolin::CreateDisplay()
- .SetBounds(0.0, 1.0, 0.0, 1.0, -640.0f/480.0f)
- .SetHandler(&handler);
-
- d_cam.SetDrawFunction([&](pangolin::View& view){
- view.Activate(s_cam);
- tree.Render();
- });
-
- while( !pangolin::ShouldQuit() )
- {
- // Clear screen and activate view to render into
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
- // Swap frames and Process Events
- pangolin::FinishFrame();
- }
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleVideo/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/SimpleVideo/CMakeLists.txt
deleted file mode 100644
index 0be7165..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleVideo/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-
-add_executable(SimpleVideo main.cpp)
-target_link_libraries(SimpleVideo ${Pangolin_LIBRARIES})
diff --git a/Thirdparty/Pangolin-0.6/examples/SimpleVideo/main.cpp b/Thirdparty/Pangolin-0.6/examples/SimpleVideo/main.cpp
deleted file mode 100644
index 81c0344..0000000
--- a/Thirdparty/Pangolin-0.6/examples/SimpleVideo/main.cpp
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * @author Steven Lovegrove
- * Copyright (C) 2010 Steven Lovegrove
- * Imperial College London
- **/
-
-#include
-
-void SetGlFormat(GLint& glformat, GLenum& gltype, const pangolin::PixelFormat& fmt)
-{
- switch( fmt.channels) {
- case 1: glformat = GL_LUMINANCE; break;
- case 3: glformat = GL_RGB; break;
- case 4: glformat = GL_RGBA; break;
- default: throw std::runtime_error("Unable to display video format");
- }
-
- switch (fmt.channel_bits[0]) {
- case 8: gltype = GL_UNSIGNED_BYTE; break;
- case 16: gltype = GL_UNSIGNED_SHORT; break;
- case 32: gltype = GL_FLOAT; break;
- default: throw std::runtime_error("Unknown channel format");
- }
-}
-
-void VideoSample(const std::string uri)
-{
- // Setup Video Source
- pangolin::VideoInput video(uri);
- const pangolin::PixelFormat vid_fmt = video.PixFormat();
- const unsigned w = video.Width();
- const unsigned h = video.Height();
-
- // Work out appropriate GL channel and format options
- GLint glformat;
- GLenum gltype;
- SetGlFormat(glformat, gltype, vid_fmt);
-
- // Create OpenGL window
- pangolin::CreateWindowAndBind("Main",w,h);
-
- // Create viewport for video with fixed aspect
- pangolin::View& vVideo = pangolin::Display("Video").SetAspect((float)w/h);
-
- // OpenGl Texture for video frame.
- pangolin::GlTexture texVideo(w,h,glformat,false,0,glformat,gltype);
-
- unsigned char* img = new unsigned char[video.SizeBytes()];
-
- for(int frame=0; !pangolin::ShouldQuit(); ++frame)
- {
- glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
-
- if( video.GrabNext(img,true) ) {
- texVideo.Upload( img, glformat, gltype );
- }
-
- // Activate video viewport and render texture
- vVideo.Activate();
- texVideo.RenderToViewportFlipY();
-
- // Swap back buffer with front and process window events
- pangolin::FinishFrame();
- }
-
- delete[] img;
-}
-
-
-int main( int argc, char* argv[] )
-{
- std::string uris[] = {
- "dc1394:[fps=30,dma=10,size=640x480,iso=400]//0",
- "convert:[fmt=RGB24]//v4l:///dev/video0",
- "convert:[fmt=RGB24]//v4l:///dev/video1",
- "openni:[img1=rgb]//",
- "pleora:[sn=00000215,size=640x480,pos=64x64]//",
- "test:[size=160x120,n=1,fmt=RGB24]//"
- ""
- };
-
- if( argc > 1 ) {
- const std::string uri = std::string(argv[1]);
- VideoSample(uri);
- }else{
- std::cout << "Usage : SimpleRecord [video-uri]" << std::endl << std::endl;
- std::cout << "Where video-uri describes a stream or file resource, e.g." << std::endl;
- std::cout << "\tfile:[realtime=1]///home/user/video/movie.pvn" << std::endl;
- std::cout << "\tfile:///home/user/video/movie.avi" << std::endl;
- std::cout << "\tfiles:///home/user/seqiemce/foo%03d.jpeg" << std::endl;
- std::cout << "\tdc1394:[fmt=RGB24,size=640x480,fps=30,iso=400,dma=10]//0" << std::endl;
- std::cout << "\tdc1394:[fmt=FORMAT7_1,size=640x480,pos=2+2,iso=400,dma=10]//0" << std::endl;
- std::cout << "\tv4l:///dev/video0" << std::endl;
- std::cout << "\tconvert:[fmt=RGB24]//v4l:///dev/video0" << std::endl;
- std::cout << "\tmjpeg://http://127.0.0.1/?action=stream" << std::endl;
- std::cout << "\topenni:[img1=rgb]//" << std::endl;
- std::cout << std::endl;
-
- // Try to open some video device
- for(int i=0; !uris[i].empty(); ++i )
- {
- try{
- std::cout << "Trying: " << uris[i] << std::endl;
- VideoSample(uris[i]);
- return 0;
- }catch(const pangolin::VideoException&) { }
- }
- }
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/VBODisplay/CMakeLists.txt b/Thirdparty/Pangolin-0.6/examples/VBODisplay/CMakeLists.txt
deleted file mode 100644
index 28a5b7e..0000000
--- a/Thirdparty/Pangolin-0.6/examples/VBODisplay/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-# Find Pangolin (https://github.com/stevenlovegrove/Pangolin)
-find_package(Pangolin 0.4 REQUIRED)
-include_directories(${Pangolin_INCLUDE_DIRS})
-link_directories(${Pangolin_LIBRARY_DIRS})
-link_libraries(${Pangolin_LIBRARIES})
-
-find_package(CUDA QUIET)
-
-# This example could be made to work with C++11, but the kernel code must be
-# compiled without it.
-if(CUDA_FOUND)
- cuda_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
-
- cuda_add_executable(
- VBODisplay
- main.cpp kernal.cu
- )
-
-endif()
diff --git a/Thirdparty/Pangolin-0.6/examples/VBODisplay/kernal.cu b/Thirdparty/Pangolin-0.6/examples/VBODisplay/kernal.cu
deleted file mode 100644
index 07d06ba..0000000
--- a/Thirdparty/Pangolin-0.6/examples/VBODisplay/kernal.cu
+++ /dev/null
@@ -1,30 +0,0 @@
-// Colour Sine wave Kernal
-// Based on kernal_colour in kernelVBO.cpp by Rob Farber
-__global__ void kernel(float4* dVertexArray, uchar4 *dColorArray,
- unsigned int width, unsigned int height, float time)
-{
- unsigned int x = blockIdx.x*blockDim.x + threadIdx.x;
- unsigned int y = blockIdx.y*blockDim.y + threadIdx.y;
-
- // Each thread is unique point (u,v) in interval [-1,1],[-1,1]
- const float u = 2.0f* (x/(float)width) - 1.0f;
- const float v = 2.0f* (y/(float)height) - 1.0f;
- const float w = 0.5f * sinf(4.0f*u + time) * cosf(4.0f*v + time);
-
- // Update vertex array for point
- dVertexArray[y*width+x] = make_float4(u, w, v, 1.0f);
-
- // Update colour array for point
- dColorArray[y*width+x].w = 0.0f;
- dColorArray[y*width+x].x = 255.0f *0.5f*(1.f+sinf(w+x));
- dColorArray[y*width+x].y = 255.0f *0.5f*(1.f+sinf(x)*cosf(y));
- dColorArray[y*width+x].z = 255.0f *0.5f*(1.f+sinf(w+time/10.0f));
-}
-
-extern "C" void launch_kernel(float4* dVertexArray, uchar4* dColourArray,
- unsigned int width, unsigned int height, float time)
-{
- dim3 block(8, 8, 1);
- dim3 grid(width / block.x, height / block.y, 1);
- kernel<<< grid, block>>>(dVertexArray, dColourArray, width, height, time);
-}
diff --git a/Thirdparty/Pangolin-0.6/examples/VBODisplay/main.cpp b/Thirdparty/Pangolin-0.6/examples/VBODisplay/main.cpp
deleted file mode 100644
index 6b7f778..0000000
--- a/Thirdparty/Pangolin-0.6/examples/VBODisplay/main.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-#include
-
-#include
-
-#include
-#include
-#include
-
-#include
-#include
-#include
-
-using namespace pangolin;
-using namespace std;
-
-// Mesh size
-const int mesh_width=256;
-const int mesh_height=256;
-
-extern "C" void launch_kernel(float4* dVertexArray, uchar4* dColourArray, unsigned int width, unsigned int height, float time);
-
-int main( int /*argc*/, char* argv[] )
-{
-// cudaGLSetGLDevice(0);
-
- pangolin::CreateWindowAndBind("Main",640,480);
- glewInit();
-
- // 3D Mouse handler requires depth testing to be enabled
- glEnable(GL_DEPTH_TEST);
-
- // Create vertex and colour buffer objects and register them with CUDA
- GlBufferCudaPtr vertex_array(
- GlArrayBuffer, mesh_width*mesh_height, GL_FLOAT, 4,
- cudaGraphicsMapFlagsWriteDiscard, GL_STREAM_DRAW
- );
- GlBufferCudaPtr colour_array(
- GlArrayBuffer, mesh_width*mesh_height, GL_UNSIGNED_BYTE, 4,
- cudaGraphicsMapFlagsWriteDiscard, GL_STREAM_DRAW
- );
-
- // Define Camera Render Object (for view / scene browsing)
- pangolin::OpenGlRenderState s_cam(
- ProjectionMatrix(640,480,420,420,320,240,0.1,1000),
- ModelViewLookAt(-0,2,-2, 0,0,0, AxisY)
- );
- const int UI_WIDTH = 180;
-
- // Add named OpenGL viewport to window and provide 3D Handler
- View& d_cam = pangolin::Display("cam")
- .SetBounds(0.0, 1.0, Attach::Pix(UI_WIDTH), 1.0, -640.0f/480.0f)
- .SetHandler(new Handler3D(s_cam));
-
- // Add named Panel and bind to variables beginning 'ui'
- // A Panel is just a View with a default layout and input handling
- View& d_panel = pangolin::CreatePanel("ui")
- .SetBounds(0.0, 1.0, 0.0, Attach::Pix(UI_WIDTH));
-
- // Default hooks for exiting (Esc) and fullscreen (tab).
- for(int frame=0; !pangolin::ShouldQuit(); ++frame)
- {
- static double time = 0;
- static Var delta("ui.time delta", 0.001, 0, 0.005);
-
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
- d_cam.Activate(s_cam);
- glColor3f(1.0,1.0,1.0);
-
- {
- CudaScopedMappedPtr var(vertex_array);
- CudaScopedMappedPtr car(colour_array);
- launch_kernel((float4*)*var,(uchar4*)*car,mesh_width,mesh_height,time);
- time += delta;
- }
-
- pangolin::RenderVboCbo(vertex_array, colour_array);
-
- // Swap frames and Process Events
- pangolin::FinishFrame();
- }
-
- return 0;
-}
diff --git a/Thirdparty/Pangolin-0.6/external/CMakeLists.txt b/Thirdparty/Pangolin-0.6/external/CMakeLists.txt
deleted file mode 100644
index c247f4c..0000000
--- a/Thirdparty/Pangolin-0.6/external/CMakeLists.txt
+++ /dev/null
@@ -1,153 +0,0 @@
-include(ExternalProject)
-
-set(ExternConfig "")
-
-if( BUILD_EXTERN_GLEW )
-
-#########################################################
-# GLEW
-#########################################################
-ExternalProject_Add( __glew
- PREFIX "${CMAKE_CURRENT_BINARY_DIR}/glew"
- GIT_REPOSITORY https://github.com/Perlmint/glew-cmake.git
- GIT_TAG 7574ab4d00b683e56adbfdec7da636529dfe65d8
- INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
- -DCMAKE_C_FLAGS_RELEASE=${CMAKE_C_FLAGS_RELEASE}
- -DCMAKE_C_FLAGS_DEBUG=${CMAKE_C_FLAGS_DEBUG}
- -DCMAKE_C_FLAGS_MINSIZEREL=${CMAKE_C_FLAGS_MINSIZEREL}
- -DCMAKE_C_FLAGS_RELWITHDEBINFO=${CMAKE_C_FLAGS_RELWITHDEBINFO}
-)
-
-add_library(_glew STATIC IMPORTED GLOBAL)
-add_dependencies(_glew __glew)
-set_target_properties(_glew PROPERTIES
- IMPORTED_LOCATION_RELWITHDEBINFO ${CMAKE_INSTALL_PREFIX}/lib/glew.lib
- IMPORTED_LOCATION_RELEASE ${CMAKE_INSTALL_PREFIX}/lib/glew.lib
- IMPORTED_LOCATION_DEBUG ${CMAKE_INSTALL_PREFIX}/lib/glewd.lib
-)
-
-set(GLEW_FOUND true PARENT_SCOPE)
-set(GLEW_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" PARENT_SCOPE)
-set(GLEW_LIBRARY _glew PARENT_SCOPE)
-set(GLEW_STATIC 1 PARENT_SCOPE)
-set(ExternConfig "${ExternConfig}
- add_library(_glew STATIC IMPORTED)
- set_target_properties(_glew PROPERTIES
- IMPORTED_LOCATION_RELWITHDEBINFO \"${CMAKE_INSTALL_PREFIX}/lib/glew.lib\"
- IMPORTED_LOCATION_RELEASE \"${CMAKE_INSTALL_PREFIX}/lib/glew.lib\"
- IMPORTED_LOCATION_DEBUG \"${CMAKE_INSTALL_PREFIX}/lib/glewd.lib\"
- )")
-endif()
-
-if( BUILD_EXTERN_LIBPNG )
-
-#########################################################
-# zlib
-#########################################################
-
-ExternalProject_Add( __zlib
- PREFIX "${CMAKE_CURRENT_BINARY_DIR}/zlib"
- GIT_REPOSITORY https://github.com/madler/zlib.git
- GIT_TAG v1.2.8
- INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
- -DCMAKE_C_FLAGS_RELEASE=${CMAKE_C_FLAGS_RELEASE}
- -DCMAKE_C_FLAGS_DEBUG=${CMAKE_C_FLAGS_DEBUG}
- -DCMAKE_C_FLAGS_MINSIZEREL=${CMAKE_C_FLAGS_MINSIZEREL}
- -DCMAKE_C_FLAGS_RELWITHDEBINFO=${CMAKE_C_FLAGS_RELWITHDEBINFO}
-)
-add_library(_zlib STATIC IMPORTED GLOBAL)
-add_dependencies(_zlib __zlib)
-set_target_properties(_zlib PROPERTIES
- IMPORTED_LOCATION_RELEASE ${CMAKE_INSTALL_PREFIX}/lib/zlibstatic.lib
- IMPORTED_LOCATION_RELWITHDEBINFO ${CMAKE_INSTALL_PREFIX}/lib/zlibstatic.lib
- IMPORTED_LOCATION_DEBUG ${CMAKE_INSTALL_PREFIX}/lib/zlibstaticd.lib
-)
-
-#########################################################
-# libpng
-#########################################################
-
-ExternalProject_Add( __libpng
- PREFIX "${CMAKE_CURRENT_BINARY_DIR}/libpng"
- GIT_REPOSITORY https://github.com/glennrp/libpng.git
- GIT_TAG v1.6.18
- INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
- -DZLIB_INCLUDE_DIR=${CMAKE_INSTALL_PREFIX}/include
- -DZLIB_LIBRARY=${CMAKE_INSTALL_PREFIX}/lib/zlibstatic*.lib
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
- -DCMAKE_C_FLAGS_RELEASE=${CMAKE_C_FLAGS_RELEASE}
- -DCMAKE_C_FLAGS_DEBUG=${CMAKE_C_FLAGS_DEBUG}
- -DCMAKE_C_FLAGS_MINSIZEREL=${CMAKE_C_FLAGS_MINSIZEREL}
- -DCMAKE_C_FLAGS_RELWITHDEBINFO=${CMAKE_C_FLAGS_RELWITHDEBINFO}
- DEPENDS __zlib
-)
-
-add_library(_libpng STATIC IMPORTED GLOBAL)
-add_dependencies(_libpng __libpng)
-set_target_properties(_libpng PROPERTIES
- IMPORTED_LOCATION_RELWITHDEBINFO ${CMAKE_INSTALL_PREFIX}/lib/libpng16_static.lib
- IMPORTED_LOCATION_RELEASE ${CMAKE_INSTALL_PREFIX}/lib/libpng16_static.lib
- IMPORTED_LOCATION_DEBUG ${CMAKE_INSTALL_PREFIX}/lib/libpng16_staticd.lib
-)
-
-set(PNG_FOUND true PARENT_SCOPE)
-set(PNG_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" PARENT_SCOPE)
-set(PNG_LIBRARY _libpng PARENT_SCOPE)
-set(ZLIB_LIBRARY _zlib PARENT_SCOPE)
-set(ExternConfig "${ExternConfig}
- add_library(_zlib STATIC IMPORTED)
- set_target_properties(_zlib PROPERTIES
- IMPORTED_LOCATION_RELEASE \"${CMAKE_INSTALL_PREFIX}/lib/zlibstatic.lib\"
- IMPORTED_LOCATION_RELWITHDEBINFO \"${CMAKE_INSTALL_PREFIX}/lib/zlibstatic.lib\"
- IMPORTED_LOCATION_DEBUG \"${CMAKE_INSTALL_PREFIX}/lib/zlibstaticd.lib\"
- )
- add_library(_libpng STATIC IMPORTED)
- set_target_properties(_libpng PROPERTIES
- IMPORTED_LOCATION_RELEASE \"${CMAKE_INSTALL_PREFIX}/lib/libpng16_static.lib\"
- IMPORTED_LOCATION_RELWITHDEBINFO \"${CMAKE_INSTALL_PREFIX}/lib/libpng16_static.lib\"
- IMPORTED_LOCATION_DEBUG \"${CMAKE_INSTALL_PREFIX}/lib/libpng16_staticd.lib\"
- )")
-endif()
-
-if( BUILD_EXTERN_LIBJPEG )
-
-#########################################################
-# libjpg
-#########################################################
-
-ExternalProject_Add( __libjpeg
- PREFIX "${CMAKE_CURRENT_BINARY_DIR}/libjpeg"
- GIT_REPOSITORY https://github.com/LuaDist/libjpeg.git
- GIT_TAG bc8f8be222287fec977ec3f47a5cb065cceb2ee9
- INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
- CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
- -DBUILD_SHARED_LIBS=false
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
- -DCMAKE_C_FLAGS_RELEASE=${CMAKE_C_FLAGS_RELEASE}
- -DCMAKE_C_FLAGS_DEBUG=${CMAKE_C_FLAGS_DEBUG}
- -DCMAKE_C_FLAGS_MINSIZEREL=${CMAKE_C_FLAGS_MINSIZEREL}
- -DCMAKE_C_FLAGS_RELWITHDEBINFO=${CMAKE_C_FLAGS_RELWITHDEBINFO}
-)
-
-add_library(_libjpeg STATIC IMPORTED GLOBAL)
-add_dependencies(_libjpeg __libjpeg)
-set_target_properties(_libjpeg PROPERTIES
- IMPORTED_LOCATION ${CMAKE_INSTALL_PREFIX}/lib/jpeg.lib
-)
-
-set(JPEG_FOUND true PARENT_SCOPE)
-set(JPEG_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include" PARENT_SCOPE)
-set(JPEG_LIBRARY _libjpeg PARENT_SCOPE)
-set(ExternConfig "${ExternConfig}
- add_library(_libjpeg STATIC IMPORTED)
- set_target_properties(_libjpeg PROPERTIES
- IMPORTED_LOCATION \"${CMAKE_INSTALL_PREFIX}/lib/jpeg.lib\"
- )")
-endif()
-
-set(ExternConfig "${ExternConfig}" PARENT_SCOPE)
diff --git a/Thirdparty/Pangolin-0.6/include/experimental/optional.hpp b/Thirdparty/Pangolin-0.6/include/experimental/optional.hpp
deleted file mode 100644
index e3722b0..0000000
--- a/Thirdparty/Pangolin-0.6/include/experimental/optional.hpp
+++ /dev/null
@@ -1,1067 +0,0 @@
-// Copyright (C) 2011 - 2012 Andrzej Krzemienski.
-//
-// Use, modification, and distribution is subject to the Boost Software
-// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// The idea and interface is based on Boost.Optional library
-// authored by Fernando Luis Cacciola Carballal
-
-# ifndef ___OPTIONAL_HPP___
-# define ___OPTIONAL_HPP___
-
-# include
-# include
-# include
-# include
-# include
-# include
-# include
-
-# define TR2_OPTIONAL_REQUIRES(...) typename enable_if<__VA_ARGS__::value, bool>::type = false
-
-# if defined __GNUC__ // NOTE: GNUC is also defined for Clang
-# if (__GNUC__ == 4) && (__GNUC_MINOR__ >= 8)
-# define TR2_OPTIONAL_GCC_4_8_AND_HIGHER___
-# elif (__GNUC__ > 4)
-# define TR2_OPTIONAL_GCC_4_8_AND_HIGHER___
-# endif
-#
-# if (__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)
-# define TR2_OPTIONAL_GCC_4_7_AND_HIGHER___
-# elif (__GNUC__ > 4)
-# define TR2_OPTIONAL_GCC_4_7_AND_HIGHER___
-# endif
-#
-# if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && (__GNUC_PATCHLEVEL__ >= 1)
-# define TR2_OPTIONAL_GCC_4_8_1_AND_HIGHER___
-# elif (__GNUC__ == 4) && (__GNUC_MINOR__ >= 9)
-# define TR2_OPTIONAL_GCC_4_8_1_AND_HIGHER___
-# elif (__GNUC__ > 4)
-# define TR2_OPTIONAL_GCC_4_8_1_AND_HIGHER___
-# endif
-# endif
-#
-# if defined __clang_major__
-# if (__clang_major__ == 3 && __clang_minor__ >= 5)
-# define TR2_OPTIONAL_CLANG_3_5_AND_HIGHTER_
-# elif (__clang_major__ > 3)
-# define TR2_OPTIONAL_CLANG_3_5_AND_HIGHTER_
-# endif
-# if defined TR2_OPTIONAL_CLANG_3_5_AND_HIGHTER_
-# define TR2_OPTIONAL_CLANG_3_4_2_AND_HIGHER_
-# elif (__clang_major__ == 3 && __clang_minor__ == 4 && __clang_patchlevel__ >= 2)
-# define TR2_OPTIONAL_CLANG_3_4_2_AND_HIGHER_
-# endif
-# endif
-#
-# if defined _MSC_VER
-# if (_MSC_VER >= 1900)
-# define TR2_OPTIONAL_MSVC_2015_AND_HIGHER___
-# endif
-# endif
-
-# if defined __clang__
-# if (__clang_major__ > 2) || (__clang_major__ == 2) && (__clang_minor__ >= 9)
-# define OPTIONAL_HAS_THIS_RVALUE_REFS 1
-# else
-# define OPTIONAL_HAS_THIS_RVALUE_REFS 0
-# endif
-# elif defined TR2_OPTIONAL_GCC_4_8_1_AND_HIGHER___
-# define OPTIONAL_HAS_THIS_RVALUE_REFS 1
-# elif defined TR2_OPTIONAL_MSVC_2015_AND_HIGHER___
-# define OPTIONAL_HAS_THIS_RVALUE_REFS 1
-# else
-# define OPTIONAL_HAS_THIS_RVALUE_REFS 0
-# endif
-
-
-# if defined TR2_OPTIONAL_GCC_4_8_1_AND_HIGHER___
-# define OPTIONAL_HAS_CONSTEXPR_INIT_LIST 1
-# define OPTIONAL_CONSTEXPR_INIT_LIST constexpr
-# else
-# define OPTIONAL_HAS_CONSTEXPR_INIT_LIST 0
-# define OPTIONAL_CONSTEXPR_INIT_LIST
-# endif
-
-# if defined TR2_OPTIONAL_CLANG_3_5_AND_HIGHTER_ && (defined __cplusplus) && (__cplusplus != 201103L)
-# define OPTIONAL_HAS_MOVE_ACCESSORS 1
-# else
-# define OPTIONAL_HAS_MOVE_ACCESSORS 0
-# endif
-
-# // In C++11 constexpr implies const, so we need to make non-const members also non-constexpr
-# if (defined __cplusplus) && (__cplusplus == 201103L)
-# define OPTIONAL_MUTABLE_CONSTEXPR
-# else
-# define OPTIONAL_MUTABLE_CONSTEXPR constexpr
-# endif
-
-namespace std{
-
-namespace experimental{
-
-// BEGIN workaround for missing is_trivially_destructible
-# if defined TR2_OPTIONAL_GCC_4_8_AND_HIGHER___
- // leave it: it is already there
-# elif defined TR2_OPTIONAL_CLANG_3_4_2_AND_HIGHER_
- // leave it: it is already there
-# elif defined TR2_OPTIONAL_MSVC_2015_AND_HIGHER___
- // leave it: it is already there
-# elif defined TR2_OPTIONAL_DISABLE_EMULATION_OF_TYPE_TRAITS
- // leave it: the user doesn't want it
-# else
- template
- using is_trivially_destructible = std::has_trivial_destructor;
-# endif
-// END workaround for missing is_trivially_destructible
-
-# if (defined TR2_OPTIONAL_GCC_4_7_AND_HIGHER___)
- // leave it; our metafunctions are already defined.
-# elif defined TR2_OPTIONAL_CLANG_3_4_2_AND_HIGHER_
- // leave it; our metafunctions are already defined.
-# elif defined TR2_OPTIONAL_MSVC_2015_AND_HIGHER___
- // leave it: it is already there
-# elif defined TR2_OPTIONAL_DISABLE_EMULATION_OF_TYPE_TRAITS
- // leave it: the user doesn't want it
-# else
-
-
-// workaround for missing traits in GCC and CLANG
-template
-struct is_nothrow_move_constructible
-{
- constexpr static bool value = std::is_nothrow_constructible::value;
-};
-
-
-template
-struct is_assignable
-{
- template
- constexpr static bool has_assign(...) { return false; }
-
- template () = std::declval(), true)) >
- // the comma operator is necessary for the cases where operator= returns void
- constexpr static bool has_assign(bool) { return true; }
-
- constexpr static bool value = has_assign(true);
-};
-
-
-template
-struct is_nothrow_move_assignable
-{
- template
- struct has_nothrow_move_assign {
- constexpr static bool value = false;
- };
-
- template
- struct has_nothrow_move_assign {
- constexpr static bool value = noexcept( std::declval() = std::declval() );
- };
-
- constexpr static bool value = has_nothrow_move_assign::value>::value;
-};
-// end workaround
-
-
-# endif
-
-
-
-// 20.5.4, optional for object types
-template class optional;
-
-// 20.5.5, optional for lvalue reference types
-template class optional;
-
-
-// workaround: std utility functions aren't constexpr yet
-template inline constexpr T&& constexpr_forward(typename std::remove_reference::type& t) noexcept
-{
- return static_cast(t);
-}
-
-template inline constexpr T&& constexpr_forward(typename std::remove_reference::type&& t) noexcept
-{
- static_assert(!std::is_lvalue_reference::value, "!!");
- return static_cast(t);
-}
-
-template inline constexpr typename std::remove_reference::type&& constexpr_move(T&& t) noexcept
-{
- return static_cast::type&&>(t);
-}
-
-
-#if defined NDEBUG
-# define TR2_OPTIONAL_ASSERTED_EXPRESSION(CHECK, EXPR) (EXPR)
-#else
-# define TR2_OPTIONAL_ASSERTED_EXPRESSION(CHECK, EXPR) ((CHECK) ? (EXPR) : ([]{assert(!#CHECK);}(), (EXPR)))
-#endif
-
-
-namespace detail_
-{
-
-// static_addressof: a constexpr version of addressof
-template
-struct has_overloaded_addressof
-{
- template
- constexpr static bool has_overload(...) { return false; }
-
- template ().operator&()) >
- constexpr static bool has_overload(bool) { return true; }
-
- constexpr static bool value = has_overload(true);
-};
-
-template )>
-constexpr T* static_addressof(T& ref)
-{
- return &ref;
-}
-
-template )>
-T* static_addressof(T& ref)
-{
- return std::addressof(ref);
-}
-
-
-// the call to convert(b) has return type A and converts b to type A iff b decltype(b) is implicitly convertible to A
-template
-constexpr U convert(U v) { return v; }
-
-
-namespace swap_ns
-{
- using std::swap;
-
- template
- void adl_swap(T& t, T& u) noexcept(noexcept(swap(t, u)))
- {
- swap(t, u);
- }
-
-} // namespace swap_ns
-
-} // namespace detail
-
-
-constexpr struct trivial_init_t{} trivial_init{};
-
-
-// 20.5.6, In-place construction
-constexpr struct in_place_t{} in_place{};
-
-
-// 20.5.7, Disengaged state indicator
-struct nullopt_t
-{
- struct init{};
- constexpr explicit nullopt_t(init){}
-};
-constexpr nullopt_t nullopt{nullopt_t::init()};
-
-
-// 20.5.8, class bad_optional_access
-class bad_optional_access : public logic_error {
-public:
- explicit bad_optional_access(const string& what_arg) : logic_error{what_arg} {}
- explicit bad_optional_access(const char* what_arg) : logic_error{what_arg} {}
-};
-
-
-template
-union storage_t
-{
- unsigned char dummy_;
- T value_;
-
- constexpr storage_t( trivial_init_t ) noexcept : dummy_() {};
-
- template
- constexpr storage_t( Args&&... args ) : value_(constexpr_forward(args)...) {}
-
- ~storage_t(){}
-};
-
-
-template
-union constexpr_storage_t
-{
- unsigned char dummy_;
- T value_;
-
- constexpr constexpr_storage_t( trivial_init_t ) noexcept : dummy_() {};
-
- template
- constexpr constexpr_storage_t( Args&&... args ) : value_(constexpr_forward(args)...) {}
-
- ~constexpr_storage_t() = default;
-};
-
-
-template
-struct optional_base
-{
- bool init_;
- storage_t storage_;
-
- constexpr optional_base() noexcept : init_(false), storage_(trivial_init) {};
-
- explicit constexpr optional_base(const T& v) : init_(true), storage_(v) {}
-
- explicit constexpr optional_base(T&& v) : init_(true), storage_(constexpr_move(v)) {}
-
- template explicit optional_base(in_place_t, Args&&... args)
- : init_(true), storage_(constexpr_forward(args)...) {}
-
- template >)>
- explicit optional_base(in_place_t, std::initializer_list il, Args&&... args)
- : init_(true), storage_(il, std::forward(args)...) {}
-
- ~optional_base() { if (init_) storage_.value_.T::~T(); }
-};
-
-
-template
-struct constexpr_optional_base
-{
- bool init_;
- constexpr_storage_t storage_;
-
- constexpr constexpr_optional_base() noexcept : init_(false), storage_(trivial_init) {};
-
- explicit constexpr constexpr_optional_base(const T& v) : init_(true), storage_(v) {}
-
- explicit constexpr constexpr_optional_base(T&& v) : init_(true), storage_(constexpr_move(v)) {}
-
- template explicit constexpr constexpr_optional_base(in_place_t, Args&&... args)
- : init_(true), storage_(constexpr_forward(args)...) {}
-
- template >)>
- OPTIONAL_CONSTEXPR_INIT_LIST explicit constexpr_optional_base(in_place_t, std::initializer_list il, Args&&... args)
- : init_(true), storage_(il, std::forward(args)...) {}
-
- ~constexpr_optional_base() = default;
-};
-
-template
-using OptionalBase = typename std::conditional<
- is_trivially_destructible::value, // if possible
- constexpr_optional_base::type>, // use base with trivial destructor
- optional_base::type>
->::type;
-
-
-
-template
-class optional : private OptionalBase
-{
- static_assert( !std::is_same::type, nullopt_t>::value, "bad T" );
- static_assert( !std::is_same::type, in_place_t>::value, "bad T" );
-
-
- constexpr bool initialized() const noexcept { return OptionalBase::init_; }
- typename std::remove_const::type* dataptr() { return std::addressof(OptionalBase::storage_.value_); }
- constexpr const T* dataptr() const { return detail_::static_addressof(OptionalBase::storage_.value_); }
-
-# if OPTIONAL_HAS_THIS_RVALUE_REFS == 1
- constexpr const T& contained_val() const& { return OptionalBase::storage_.value_; }
-# if OPTIONAL_HAS_MOVE_ACCESSORS == 1
- OPTIONAL_MUTABLE_CONSTEXPR T&& contained_val() && { return std::move(OptionalBase::storage_.value_); }
- OPTIONAL_MUTABLE_CONSTEXPR T& contained_val() & { return OptionalBase::storage_.value_; }
-# else
- T& contained_val() & { return OptionalBase::storage_.value_; }
- T&& contained_val() && { return std::move(OptionalBase::storage_.value_); }
-# endif
-# else
- constexpr const T& contained_val() const { return OptionalBase::storage_.value_; }
- T& contained_val() { return OptionalBase::storage_.value_; }
-# endif
-
- void clear() noexcept {
- if (initialized()) dataptr()->T::~T();
- OptionalBase::init_ = false;
- }
-
- template
- void initialize(Args&&... args) noexcept(noexcept(T(std::forward(args)...)))
- {
- assert(!OptionalBase::init_);
- ::new (static_cast(dataptr())) T(std::forward(args)...);
- OptionalBase::init_ = true;
- }
-
- template
- void initialize(std::initializer_list il, Args&&... args) noexcept(noexcept(T(il, std::forward(args)...)))
- {
- assert(!OptionalBase::init_);
- ::new (static_cast(dataptr())) T(il, std::forward(args)...);
- OptionalBase::init_ = true;
- }
-
-public:
- typedef T value_type;
-
- // 20.5.5.1, constructors
- constexpr optional() noexcept : OptionalBase() {};
- constexpr optional(nullopt_t) noexcept : OptionalBase() {};
-
- optional(const optional& rhs)
- : OptionalBase()
- {
- if (rhs.initialized()) {
- ::new (static_cast(dataptr())) T(*rhs);
- OptionalBase::init_ = true;
- }
- }
-
- optional(optional&& rhs) noexcept(is_nothrow_move_constructible::value)
- : OptionalBase()
- {
- if (rhs.initialized()) {
- ::new (static_cast(dataptr())) T(std::move(*rhs));
- OptionalBase::init_ = true;
- }
- }
-
- constexpr optional(const T& v) : OptionalBase(v) {}
-
- constexpr optional(T&& v) : OptionalBase(constexpr_move(v)) {}
-
- template
- explicit constexpr optional(in_place_t, Args&&... args)
- : OptionalBase(in_place_t{}, constexpr_forward(args)...) {}
-
- template >)>
- OPTIONAL_CONSTEXPR_INIT_LIST explicit optional(in_place_t, std::initializer_list il, Args&&... args)
- : OptionalBase(in_place_t{}, il, constexpr_forward(args)...) {}
-
- // 20.5.4.2, Destructor
- ~optional() = default;
-
- // 20.5.4.3, assignment
- optional& operator=(nullopt_t) noexcept
- {
- clear();
- return *this;
- }
-
- optional& operator=(const optional& rhs)
- {
- if (initialized() == true && rhs.initialized() == false) clear();
- else if (initialized() == false && rhs.initialized() == true) initialize(*rhs);
- else if (initialized() == true && rhs.initialized() == true) contained_val() = *rhs;
- return *this;
- }
-
- optional& operator=(optional&& rhs)
- noexcept(is_nothrow_move_assignable::value && is_nothrow_move_constructible::value)
- {
- if (initialized() == true && rhs.initialized() == false) clear();
- else if (initialized() == false && rhs.initialized() == true) initialize(std::move(*rhs));
- else if (initialized() == true && rhs.initialized() == true) contained_val() = std::move(*rhs);
- return *this;
- }
-
- template
- auto operator=(U&& v)
- -> typename enable_if
- <
- is_same::type, T>::value,
- optional&
- >::type
- {
- if (initialized()) { contained_val() = std::forward(v); }
- else { initialize(std::forward(v)); }
- return *this;
- }
-
-
- template
- void emplace(Args&&... args)
- {
- clear();
- initialize(std::forward(args)...);
- }
-
- template
- void emplace(initializer_list il, Args&&... args)
- {
- clear();
- initialize(il, std::forward(args)...);
- }
-
- // 20.5.4.4, Swap
- void swap(optional& rhs) noexcept(is_nothrow_move_constructible::value
- && noexcept(detail_::swap_ns::adl_swap(declval(), declval())))
- {
- if (initialized() == true && rhs.initialized() == false) { rhs.initialize(std::move(**this)); clear(); }
- else if (initialized() == false && rhs.initialized() == true) { initialize(std::move(*rhs)); rhs.clear(); }
- else if (initialized() == true && rhs.initialized() == true) { using std::swap; swap(**this, *rhs); }
- }
-
- // 20.5.4.5, Observers
-
- explicit constexpr operator bool() const noexcept { return initialized(); }
- constexpr bool has_value() const noexcept { return initialized(); }
-
- constexpr T const* operator ->() const {
- return TR2_OPTIONAL_ASSERTED_EXPRESSION(initialized(), dataptr());
- }
-
-# if OPTIONAL_HAS_MOVE_ACCESSORS == 1
-
- OPTIONAL_MUTABLE_CONSTEXPR T* operator ->() {
- assert (initialized());
- return dataptr();
- }
-
- constexpr T const& operator *() const& {
- return TR2_OPTIONAL_ASSERTED_EXPRESSION(initialized(), contained_val());
- }
-
- OPTIONAL_MUTABLE_CONSTEXPR T& operator *() & {
- assert (initialized());
- return contained_val();
- }
-
- OPTIONAL_MUTABLE_CONSTEXPR T&& operator *() && {
- assert (initialized());
- return constexpr_move(contained_val());
- }
-
- constexpr T const& value() const& {
- return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contained_val());
- }
-
- OPTIONAL_MUTABLE_CONSTEXPR T& value() & {
- return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contained_val());
- }
-
- OPTIONAL_MUTABLE_CONSTEXPR T&& value() && {
- if (!initialized()) throw bad_optional_access("bad optional access");
- return std::move(contained_val());
- }
-
-# else
-
- T* operator ->() {
- assert (initialized());
- return dataptr();
- }
-
- constexpr T const& operator *() const {
- return TR2_OPTIONAL_ASSERTED_EXPRESSION(initialized(), contained_val());
- }
-
- T& operator *() {
- assert (initialized());
- return contained_val();
- }
-
- constexpr T const& value() const {
- return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contained_val());
- }
-
- T& value() {
- return initialized() ? contained_val() : (throw bad_optional_access("bad optional access"), contained_val());
- }
-
-# endif
-
-# if OPTIONAL_HAS_THIS_RVALUE_REFS == 1
-
- template
- constexpr T value_or(V&& v) const&
- {
- return *this ? **this : detail_::convert(constexpr_forward(v));
- }
-
-# if OPTIONAL_HAS_MOVE_ACCESSORS == 1
-
- template
- OPTIONAL_MUTABLE_CONSTEXPR T value_or(V&& v) &&
- {
- return *this ? constexpr_move(const_cast&>(*this).contained_val()) : detail_::convert(constexpr_forward(v));
- }
-
-# else
-
- template
- T value_or(V&& v) &&
- {
- return *this ? constexpr_move(const_cast&>(*this).contained_val()) : detail_::convert(constexpr_forward(v));
- }
-
-# endif
-
-# else
-
- template
- constexpr T value_or(V&& v) const
- {
- return *this ? **this : detail_::convert(constexpr_forward(v));
- }
-
-# endif
-
- // 20.6.3.6, modifiers
- void reset() noexcept { clear(); }
-};
-
-
-template
-class optional
-{
- static_assert( !std::is_same::value, "bad T" );
- static_assert( !std::is_same::value, "bad T" );
- T* ref;
-
-public:
-
- // 20.5.5.1, construction/destruction
- constexpr optional() noexcept : ref(nullptr) {}
-
- constexpr optional(nullopt_t) noexcept : ref(nullptr) {}
-
- constexpr optional(T& v) noexcept : ref(detail_::static_addressof(v)) {}
-
- optional(T&&) = delete;
-
- constexpr optional(const optional& rhs) noexcept : ref(rhs.ref) {}
-
- explicit constexpr optional(in_place_t, T& v) noexcept : ref(detail_::static_addressof(v)) {}
-
- explicit optional(in_place_t, T&&) = delete;
-
- ~optional() = default;
-
- // 20.5.5.2, mutation
- optional& operator=(nullopt_t) noexcept {
- ref = nullptr;
- return *this;
- }
-
- // optional& operator=(const optional& rhs) noexcept {
- // ref = rhs.ref;
- // return *this;
- // }
-
- // optional& operator=(optional&& rhs) noexcept {
- // ref = rhs.ref;
- // return *this;
- // }
-
- template
- auto operator=(U&& rhs) noexcept
- -> typename enable_if
- <
- is_same::type, optional>::value,
- optional&
- >::type
- {
- ref = rhs.ref;
- return *this;
- }
-
- template
- auto operator=(U&& rhs) noexcept
- -> typename enable_if
- <
- !is_same::type, optional>::value,
- optional&
- >::type
- = delete;
-
- void emplace(T& v) noexcept {
- ref = detail_::static_addressof(v);
- }
-
- void emplace(T&&) = delete;
-
-
- void swap(optional& rhs) noexcept
- {
- std::swap(ref, rhs.ref);
- }
-
- // 20.5.5.3, observers
- constexpr T* operator->() const {
- return TR2_OPTIONAL_ASSERTED_EXPRESSION(ref, ref);
- }
-
- constexpr T& operator*() const {
- return TR2_OPTIONAL_ASSERTED_EXPRESSION(ref, *ref);
- }
-
- constexpr T& value() const {
- return ref ? *ref : (throw bad_optional_access("bad optional access"), *ref);
- }
-
- explicit constexpr operator bool() const noexcept {
- return ref != nullptr;
- }
-
- constexpr bool has_value() const noexcept {
- return ref != nullptr;
- }
-
- template
- constexpr typename decay::type value_or(V&& v) const
- {
- return *this ? **this : detail_::convert::type>(constexpr_forward(v));
- }
-
- // x.x.x.x, modifiers
- void reset() noexcept { ref = nullptr; }
-};
-
-
-template
-class optional
-{
- static_assert( sizeof(T) == 0, "optional rvalue references disallowed" );
-};
-
-
-// 20.5.8, Relational operators
-template constexpr bool operator==(const optional& x, const optional& y)
-{
- return bool(x) != bool(y) ? false : bool(x) == false ? true : *x == *y;
-}
-
-template constexpr bool operator!=(const optional& x, const optional& y)
-{
- return !(x == y);
-}
-
-template constexpr bool operator<(const optional& x, const optional& y)
-{
- return (!y) ? false : (!x) ? true : *x < *y;
-}
-
-template constexpr bool operator>(const optional& x, const optional& y)
-{
- return (y < x);
-}
-
-template constexpr bool operator<=(const optional& x, const optional& y)
-{
- return !(y < x);
-}
-
-template constexpr bool operator>=(const optional& x, const optional& y)
-{
- return !(x < y);
-}
-
-
-// 20.5.9, Comparison with nullopt
-template constexpr bool operator==(const optional& x, nullopt_t) noexcept
-{
- return (!x);
-}
-
-template constexpr bool operator==(nullopt_t, const optional& x) noexcept
-{
- return (!x);
-}
-
-template constexpr bool operator!=(const optional& x, nullopt_t) noexcept
-{
- return bool(x);
-}
-
-template constexpr bool operator!=(nullopt_t, const optional& x) noexcept
-{
- return bool(x);
-}
-
-template constexpr bool operator<(const optional&, nullopt_t) noexcept
-{
- return false;
-}
-
-template constexpr bool operator<(nullopt_t, const optional& x) noexcept
-{
- return bool(x);
-}
-
-template