]> Creatis software - FrontAlgorithms.git/commitdiff
...
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Sat, 26 Sep 2015 11:13:22 +0000 (13:13 +0200)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Sat, 26 Sep 2015 11:13:22 +0000 (13:13 +0200)
lib/CMakeLists.txt
lib/fpaPlugins/CMakeLists.txt [new file with mode: 0644]
lib/fpaPlugins/Host.cxx [new file with mode: 0644]

index 8921bc635e2283219acbb9fbc400a32230756260..721d61fba076f82d94c3b01a3e54f7729ee92b2f 100644 (file)
@@ -101,4 +101,10 @@ INSTALL(
   DESTINATION include/fpa
   )
 
+IF(${USE_cpPlugins})
+  SUBDIRS(
+    fpaPlugins
+    )
+ENDIF(${USE_cpPlugins})
+
 ## eof - $RCSfile$
diff --git a/lib/fpaPlugins/CMakeLists.txt b/lib/fpaPlugins/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5b2d62f
--- /dev/null
@@ -0,0 +1,49 @@
+SET(LIBRARY_NAME fpaPlugins)
+
+## ===============
+## = Source code =
+## ===============
+
+FILE(GLOB LIB_HEADERS_H   "*.h")
+FILE(GLOB LIB_HEADERS_HPP "*.hpp")
+FILE(GLOB LIB_HEADERS_HXX "*.hxx")
+FILE(GLOB LIB_SOURCES_C   "*.c")
+FILE(GLOB LIB_SOURCES_CPP "*.cpp")
+FILE(GLOB LIB_SOURCES_CXX "*.cxx")
+
+## =====================
+## = Compilation rules =
+## =====================
+
+ADD_LIBRARY(
+  ${LIBRARY_NAME}
+  SHARED
+  ${LIB_SOURCES_C}
+  ${LIB_SOURCES_CPP}
+  ${LIB_SOURCES_CXX}
+  )
+GENERATE_EXPORT_HEADER(
+  ${LIBRARY_NAME}
+  BASE_NAME ${LIBRARY_NAME}
+  EXPORT_MACRO_NAME ${LIBRARY_NAME}_EXPORT
+  EXPORT_FILE_NAME ${PROJECT_BINARY_DIR}/lib/fpaPlugins/${LIBRARY_NAME}_Export.h
+  STATIC_DEFINE ${LIBRARY_NAME}_BUILT_AS_STATIC
+  )
+#TARGET_LINK_LIBRARIES(
+#  ${LIBRARY_NAME}
+#  cpExtensions
+#  cpPlugins_Interface
+#  )
+
+## ========================
+## -- Installation rules --
+## ========================
+
+#INSTALL(
+#  TARGETS ${LIBRARY_NAME}
+#  RUNTIME DESTINATION bin
+# LIBRARY DESTINATION lib
+#  ARCHIVE DESTINATION lib/static
+#  )
+
+## eof - $RCSfile$
diff --git a/lib/fpaPlugins/Host.cxx b/lib/fpaPlugins/Host.cxx
new file mode 100644 (file)
index 0000000..d264e45
--- /dev/null
@@ -0,0 +1,34 @@
+#include <Pluma/Connector.hpp>
+/*
+  #include <cpPlugins/Plugins/ImageReader.h>
+  #include <cpPlugins/Plugins/ImageWriter.h>
+  #include <cpPlugins/Plugins/MeshReader.h>
+  #include <cpPlugins/Plugins/MeshWriter.h>
+  #include <cpPlugins/Plugins/MarchingCubes.h>
+  #include <cpPlugins/Plugins/OtsuThresholdImageFilter.h>
+  #include <cpPlugins/Plugins/RGBImageToOtherChannelsFilter.h>
+  #include <cpPlugins/Plugins/SecondRankDiffusionTensorToPolyData.h>
+  #include <cpPlugins/Plugins/BinaryThresholdImageFilter.h>
+*/
+
+/// TODO: doc
+PLUMA_CONNECTOR
+bool connect( pluma::Host& host )
+{
+  /*
+    using namespace cpPlugins::Plugins;
+
+    host.add( new ImageReaderProvider( ) );
+    host.add( new ImageWriterProvider( ) );
+    host.add( new MeshReaderProvider( ) );
+    host.add( new MeshWriterProvider( ) );
+    host.add( new MarchingCubesProvider( ) );
+    host.add( new OtsuThresholdImageFilterProvider( ) );
+    host.add( new RGBImageToOtherChannelsFilterProvider( ) );
+    host.add( new SecondRankDiffusionTensorToPolyDataProvider( ) );
+    host.add( new BinaryThresholdImageFilterProvider( ) );
+  */
+  return( true );
+}
+
+// eof - $RCSfile$