From: Leonardo Flórez-Valencia Date: Wed, 8 Feb 2017 19:27:12 +0000 (-0500) Subject: ... X-Git-Tag: v0.1~16 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=cpPlugins.git;a=commitdiff_plain;h=e521a1ad224a3f392d87039a96cb2db5abaa0dd9 ... --- diff --git a/cmake/QtTools.cmake b/cmake/QtTools.cmake index 4f1e574..f4dd0cd 100644 --- a/cmake/QtTools.cmake +++ b/cmake/QtTools.cmake @@ -20,9 +20,7 @@ IF(BUILD_QT4_COMPONENTS) QVTKWidget CACHE STRING "Base Qt4-based vtkRenderWindow" ) - # ADD_DEFINITIONS(-DcpPlugins_QT4 -DcpExtensions_QT4) -ELSE(BUILD_QT4_COMPONENTS) - # ADD_DEFINITIONS(-UcpPlugins_QT4 -UcpExtensions_QT4) + MARK_AS_ADVANCED(CLEAR cpPlugins_Qt4_VTKWidget) ENDIF(BUILD_QT4_COMPONENTS) ## eof - $RCSfile$ diff --git a/cmake/cpPluginsConfig.cmake.in b/cmake/cpPluginsConfig.cmake.in index 2f2fdd2..2a2315e 100644 --- a/cmake/cpPluginsConfig.cmake.in +++ b/cmake/cpPluginsConfig.cmake.in @@ -5,7 +5,7 @@ SET(ITK_DIR "@ITK_DIR@") SET(VTK_DIR "@VTK_DIR@") IF("@Qt4_FOUND@" STREQUAL "TRUE") - SET(USE_QT4 ON) + SET(BUILD_QT4_COMPONENTS ON) SET(QT_QMAKE_EXECUTABLE "@QT_QMAKE_EXECUTABLE@") ENDIF("@Qt4_FOUND@" STREQUAL "TRUE") diff --git a/lib/cpInstances/DataObjects/Skeleton.cxx b/lib/cpInstances/DataObjects/Skeleton.cxx index fc4492b..1c30186 100644 --- a/lib/cpInstances/DataObjects/Skeleton.cxx +++ b/lib/cpInstances/DataObjects/Skeleton.cxx @@ -1,7 +1,7 @@ #include // ------------------------------------------------------------------------- -void cpInstances::Skeleton:: +void cpInstances::DataObjects::Skeleton:: SetITK( itk::LightObject* o ) { this->Superclass::SetITK( o ); @@ -18,20 +18,20 @@ SetITK( itk::LightObject* o ) } // ------------------------------------------------------------------------- -void cpInstances::Skeleton:: +void cpInstances::DataObjects::Skeleton:: SetVTK( vtkObjectBase* o ) { } // ------------------------------------------------------------------------- -cpInstances::Skeleton:: +cpInstances::DataObjects::Skeleton:: Skeleton( ) : Superclass( ) { } // ------------------------------------------------------------------------- -cpInstances::Skeleton:: +cpInstances::DataObjects::Skeleton:: ~Skeleton( ) { } diff --git a/lib/cpInstances/DataObjects/Skeleton.h b/lib/cpInstances/DataObjects/Skeleton.h index 060a8e5..16592a6 100644 --- a/lib/cpInstances/DataObjects/Skeleton.h +++ b/lib/cpInstances/DataObjects/Skeleton.h @@ -1,5 +1,5 @@ -#ifndef __cpInstances__Skeleton__h__ -#define __cpInstances__Skeleton__h__ +#ifndef __cpInstances__DataObjects__Skeleton__h__ +#define __cpInstances__DataObjects__Skeleton__h__ #include #include @@ -8,36 +8,40 @@ namespace cpInstances { - /** - */ - class cpPluginsDataObjects_EXPORT Skeleton - : public cpPlugins::Pipeline::DataObject + namespace DataObjects { - public: - typedef Skeleton Self; - typedef cpPlugins::Pipeline::DataObject Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - public: - itkNewMacro( Self ); - itkTypeMacro( Skeleton, cpPlugins::Pipeline::DataObject ); - cpPlugins_Id_Macro( Skeleton, Object ); - cpPlugins_Compatibility_Macro; - - public: - virtual void SetITK( itk::LightObject* o ) cpPlugins_OVERRIDE; - virtual void SetVTK( vtkObjectBase* o ) cpPlugins_OVERRIDE; - - protected: - Skeleton( ); - virtual ~Skeleton( ); - - private: - // Purposely not implemented - Skeleton( const Self& ); - Self& operator=( const Self& ); - }; + /** + */ + class cpPluginsDataObjects_EXPORT Skeleton + : public cpPlugins::Pipeline::DataObject + { + public: + typedef Skeleton Self; + typedef cpPlugins::Pipeline::DataObject Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + + public: + itkNewMacro( Self ); + itkTypeMacro( Skeleton, cpPlugins::Pipeline::DataObject ); + cpPlugins_Id_Macro( Skeleton, Object ); + cpPlugins_Compatibility_Macro; + + public: + virtual void SetITK( itk::LightObject* o ) cpPlugins_OVERRIDE; + virtual void SetVTK( vtkObjectBase* o ) cpPlugins_OVERRIDE; + + protected: + Skeleton( ); + virtual ~Skeleton( ); + + private: + // Purposely not implemented + Skeleton( const Self& ); + Self& operator=( const Self& ); + }; + + } // ecapseman } // ecapseman diff --git a/plugins/cpExtensions/SkeletonReader.cxx b/plugins/cpExtensions/SkeletonReader.cxx index f62ff69..20ac274 100644 --- a/plugins/cpExtensions/SkeletonReader.cxx +++ b/plugins/cpExtensions/SkeletonReader.cxx @@ -32,7 +32,7 @@ cpPluginscpExtensions::SkeletonReader:: SkeletonReader( ) : Superclass( ) { - this->_ConfigureOutput< cpInstances::Skeleton >( "Output" ); + this->_ConfigureOutput< cpInstances::DataObjects::Skeleton >( "Output" ); this->m_Parameters.ConfigureAsOpenFileName( "FileName", "" ); this->m_Parameters.SetAcceptedFileExtensions( "FileName", diff --git a/plugins/cpExtensions/SkeletonToImageFilter.cxx b/plugins/cpExtensions/SkeletonToImageFilter.cxx index 30bdddc..f3e83bf 100644 --- a/plugins/cpExtensions/SkeletonToImageFilter.cxx +++ b/plugins/cpExtensions/SkeletonToImageFilter.cxx @@ -10,7 +10,7 @@ cpPluginscpExtensions::SkeletonToImageFilter:: SkeletonToImageFilter( ) : Superclass( ) { - this->_ConfigureInput< cpInstances::Skeleton >( "Skeleton", true, false ); + this->_ConfigureInput< cpInstances::DataObjects::Skeleton >( "Skeleton", true, false ); this->_ConfigureInput< cpInstances::DataObjects::Image >( "TemplateImage", true, false ); this->_ConfigureOutput< cpInstances::DataObjects::Image >( "Output" ); this->m_Parameters.ConfigureAsUint( "InsideValue", 1 ); diff --git a/plugins/cpExtensions/SkeletonWriter.cxx b/plugins/cpExtensions/SkeletonWriter.cxx index f23f600..ab51404 100644 --- a/plugins/cpExtensions/SkeletonWriter.cxx +++ b/plugins/cpExtensions/SkeletonWriter.cxx @@ -32,7 +32,7 @@ cpPluginscpExtensions::SkeletonWriter:: SkeletonWriter( ) : Superclass( ) { - this->_ConfigureInput< cpInstances::Skeleton >( "Input", true, false ); + this->_ConfigureInput< cpInstances::DataObjects::Skeleton >( "Input", true, false ); this->m_Parameters.ConfigureAsSaveFileName( "FileName", "" ); this->m_Parameters.SetAcceptedFileExtensions( "FileName",