소스 검색

ENH: Added class ctkXIPAdaptor to Libs/Visualization/XIP.

As soon as some "real" code is added to the ctkXIP  library,
this class can be removed or renamed.
Jean-Christophe Fillion-Robin 15 년 전
부모
커밋
e6e1073e94

+ 64 - 0
Libs/Visualization/XIP/CMakeLists.txt

@@ -0,0 +1,64 @@
+PROJECT(CTKDICOMCore)
+
+#
+# 3rd party dependencies
+#
+
+# FIND_PACKAGE(XIP)
+# IF(NOT XIP_FOUND)
+#   MESSAGE(FATAL_ERROR "error: XIP package is required to build ${PROJECT_NAME}")
+# ENDIF()
+
+#
+# See CTK/CMake/ctkMacroBuildQtLib.cmake for details
+#
+
+SET(KIT_export_directive "CTK_XIP_CORE_EXPORT")
+
+# Additional directories to include
+SET(KIT_include_directories
+  #${DCMTK_INCLUDE_DIR}
+  )
+  
+# Source files
+SET(KIT_SRCS
+  ctkXIPAdaptor.cxx
+  ctkXIPAdaptor.h
+  )
+
+# Headers that should run through moc
+SET(KIT_MOC_SRCS
+  ctkXIPAdaptor.h
+  )
+
+# UI files
+SET(KIT_UI_FORMS
+)
+
+# Resources
+SET(KIT_resources
+)
+
+# Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
+# The following macro will read the target libraries from the file 'target_libraries.cmake'
+ctkMacroGetTargetLibraries(KIT_target_libraries)
+
+ctkMacroBuildQtLib(
+  NAME ${PROJECT_NAME}
+  EXPORT_DIRECTIVE ${KIT_export_directive}
+  INCLUDE_DIRECTORIES ${KIT_include_directories}
+  SRCS ${KIT_SRCS}
+  MOC_SRCS ${KIT_MOC_SRCS}
+  UI_FORMS ${KIT_UI_FORMS}
+  TARGET_LIBRARIES ${KIT_target_libraries}
+  RESOURCES ${KIT_resources}
+  LIBRARY_TYPE ${CTK_LIBRARY_MODE}
+  )
+
+# Plugins
+#ADD_SUBDIRECTORY(Plugins)
+
+# Testing
+IF(BUILD_TESTING)
+  #ADD_SUBDIRECTORY(Testing)
+ENDIF(BUILD_TESTING)

+ 35 - 0
Libs/Visualization/XIP/ctkXIPAdaptor.cxx

@@ -0,0 +1,35 @@
+
+// Qt includes
+#include <QDebug>
+
+// ctkXIPAdaptor includes
+#include "ctkXIPAdaptor.h"
+
+//----------------------------------------------------------------------------
+class ctkXIPAdaptorPrivate: public qCTKPrivate<ctkXIPAdaptor>
+{
+public:
+  ctkXIPAdaptorPrivate();
+};
+
+//----------------------------------------------------------------------------
+// ctkXIPAdaptorPrivate methods
+
+//------------------------------------------------------------------------------
+ctkXIPAdaptorPrivate::ctkXIPAdaptorPrivate()
+{
+}
+
+//----------------------------------------------------------------------------
+// ctkXIPAdaptorWidget methods
+
+//------------------------------------------------------------------------------
+ctkXIPAdaptor::ctkXIPAdaptor(QObject* _parent): Superclass(_parent)
+{
+  QCTK_INIT_PRIVATE(ctkXIPAdaptor);
+}
+
+//----------------------------------------------------------------------------
+ctkXIPAdaptor::~ctkXIPAdaptor()
+{
+}

+ 25 - 0
Libs/Visualization/XIP/ctkXIPAdaptor.h

@@ -0,0 +1,25 @@
+#ifndef __ctkXIPAdaptor_h
+#define __ctkXIPAdaptor_h
+
+// QT includes 
+#include <QObject>
+
+// CTK includes
+#include <ctkPimpl.h>
+
+#include "ctkXIPAdaptorCoreExport.h"
+
+class ctkXIPAdaptorPrivate;
+class CTK_XIP_EXPORT ctkXIPAdaptor : public QObject
+{
+  Q_OBJECT
+public:
+  typedef QObject Superclass;
+  explicit ctkXIPAdaptor(QObject* parent = 0);
+  virtual ~ctkXIPAdaptor();
+  
+private:
+  QCTK_DECLARE_PRIVATE(ctkXIPAdaptor);
+};
+
+#endif

+ 9 - 0
Libs/Visualization/XIP/target_libraries.cmake

@@ -0,0 +1,9 @@
+#
+# See CMake/ctkMacroGetTargetLibraries.cmake
+# 
+# This file should list the libraries required to build the current CTK libraries
+# 
+
+SET(target_libraries
+  CTKCore
+  )