## == Functions, packages and options ==
## =====================================
-INCLUDE(cmake/Restrictions.cmake)
-INCLUDE(cmake/KitwareTools.cmake)
OPTION(USE_cpPlugins "Build cpPlugins-based code" OFF)
IF(USE_cpPlugins)
FIND_PACKAGE(cpPlugins REQUIRED)
- IF(USE_QT4)
- INCLUDE(cmake/QtTools.cmake)
- SET(
- cpPlugins_Qt4_VTKWidget QVTKWidget
- CACHE STRING "Base Qt4-based vtkRenderWindow"
- )
- MARK_AS_ADVANCED(FORCE cpPlugins_Qt4_VTKWidget)
- ENDIF(USE_QT4)
ENDIF(USE_cpPlugins)
+INCLUDE(cmake/Restrictions.cmake)
+INCLUDE(cmake/KitwareTools.cmake)
+INCLUDE(cmake/QtTools.cmake)
INCLUDE(cmake/Functions.cmake)
## ===========================
## ===========================
## SUBDIRS(appli cmake lib plugins)
-SUBDIRS(lib)
+SUBDIRS(lib plugins)
## eof - $RCSfile$
## -- Infere source code filenames
MATH(EXPR _last_range "${cpPlugins_CONFIG_NUMBER_OF_FILES}-1")
- SET(_out_code "${_i_path}/${_out_name}.h")
- LIST(APPEND _hdrs ${_i_path}/${_out_name}.h)
+ SET(_out_code)
FOREACH(_n RANGE 0 ${_last_range})
LIST(APPEND _out_code ${_i_path}/${_out_name}_${_n}.cxx)
LIST(APPEND _srcs ${_i_path}/${_out_name}_${_n}.cxx)
## == Find Qt4 and check if it was well configured ==
## ==================================================
-OPTION(USE_QT4 "Build Qt4-based code" OFF)
IF(USE_QT4)
SET(QT4_FOUND "0")
FIND_PACKAGE(Qt4 REQUIRED)
QVTKWidget
CACHE STRING "Base Qt4-based vtkRenderWindow"
)
+ MARK_AS_ADVANCED(FORCE cpPlugins_Qt4_VTKWidget)
ENDIF(USE_QT4)
## eof - $RCSfile$
## ===========================
SET(
- _all_defs
+ _definitions
DataObjects
Filters
)
SET(_all_libs)
-FOREACH(_def ${_all_defs})
- CreateLib(
- fpaInstances${_def} SHARED ${CMAKE_CURRENT_SOURCE_DIR}/fpa_${_def}.i
+FOREACH(_d ${_definitions})
+ FILE(GLOB _files ${CMAKE_CURRENT_SOURCE_DIR}/${_d}.*)
+ CreateLib(fpaInstances${_d} SHARED ${_files})
+ TARGET_LINK_LIBRARIES(
+ fpaInstances${_d}
+ ${ITK_LIBRARIES} ${VTK_LIBRARIES}
)
- LIST(APPEND _all_libs fpaInstances_${_def})
-ENDFOREACH(_def)
+ LIST(APPEND _all_libs fpaInstances${_d})
+ENDFOREACH(_d)
TARGET_LINK_LIBRARIES(
fpaInstancesDataObjects
- ${ITK_LIBRARIES}
- ${VTK_LIBRARIES}
- ${cpPlugins_Instances}
+ ${cpPlugins_AllInstances}
)
TARGET_LINK_LIBRARIES(
fpaInstancesFilters
)
SET(
- fpa_Instances ${_all_libs}
+ fpa_AllInstances ${_all_libs}
CACHE INTERNAL "All valid instances." FORCE
)
${PROJECT_SOURCE_DIR}/lib
${PROJECT_BINARY_DIR}/lib
)
- CreatePlugin(fpaPlugins Plugins ${cpPlugins_CONFIG_NUMBER_OF_FILES})
+ CreatePlugin(fpaPlugins Plugins)
TARGET_LINK_LIBRARIES(
fpaPlugins
- cpPlugins cpExtensions
- ${cpPlugins_Instances}
- ${fpa_Instances}
+ cpPlugins
+ ${cpPlugins_AllInstances}
+ ${fpa_AllInstances}
)
+ MESSAGE(STATUS ${cpPlugins_AllInstances})
ENDIF(USE_cpPlugins)
## eof - $RCSfile$
\ No newline at end of file
#include <Plugins/BaseImageFilter.h>
-#include <cpPlugins/DataObjects/Image.h>
+#include <cpInstances/Image.h>
// -------------------------------------------------------------------------
fpaPlugins::BaseImageFilter::
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TImage;
+ typedef cpInstances::Image _TImage;
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureInput< _TData >( "Seeds", true, false );
#include <Plugins/ExtractPathFromMinimumSpanningTree.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <Extensions/PolyLineParametricPath.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/PolyLineParametricPath.h>
#include <vtkPolyData.h>
#include <fpa/Image/MinimumSpanningTree.h>
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TMST;
- typedef cpPlugins::DataObjects::PolyLineParametricPath _TPath;
+ typedef cpInstances::Image _TMST;
+ typedef cpInstances::PolyLineParametricPath _TPath;
this->_ConfigureInput< _TMST >( "MST", true, false );
this->_ConfigureInput< _TData >( "Seeds", true, false );
#include <Plugins/GaussianModelCost.h>
-#include <cpPlugins/DataObjects/Image.h>
+#include <cpInstances/Image.h>
#include <fpa/Base/Functors/GaussianModel.h>
#include <Plugins/ImageDijkstra.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
#include <fpa/Image/Dijkstra.h>
#include <vtkPolyData.h>
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TMST;
+ typedef cpInstances::Image _TMST;
this->_ConfigureInput< _TData >( "Cost", false, false );
this->_ConfigureInput< _TData >( "CostConversion", false, false );
#include <Plugins/ImageRegionGrow.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
#include <fpa/Image/RegionGrow.h>
#include <vtkPolyData.h>
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TMST;
+ typedef cpInstances::Image _TMST;
this->_ConfigureInput< _TData >( "GrowFunction", true, false );
void fpaPlugins::ImageRegionGrow::
_GD1( _TInputImage* image )
{
+ std::cout << "--------------> again <-----------------" << std::endl;
+
typedef
itk::Image< _TOutputPixel, _TInputImage::ImageDimension >
_TOutputImage;
#include <Plugins/InvertCost.h>
-#include <cpPlugins/DataObjects/Image.h>
+#include <cpInstances/Image.h>
#include <fpa/Base/Functors/Inverse.h>
#include <Plugins/RegionGrowBinaryThreshold.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
#include <itkImage.h>
#include <fpa/Image/Functors/RegionGrowBinaryThreshold.h>
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TImage;
+ typedef cpInstances::Image _TImage;
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureOutput< _TData >( "Output" );
#include <Plugins/RegionGrowBinaryThresholdWithSeeds.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
#include <fpa/Image/Functors/RegionGrowBinaryThreshold.h>
#include <itkConstNeighborhoodIterator.h>
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TImage;
+ typedef cpInstances::Image _TImage;
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureInput< _TData >( "Seeds", true, false );
#include <Plugins/SimpleImageDijkstraCost.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
#include <itkImage.h>
#include <fpa/Image/Functors/SimpleDijkstraCost.h>
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TImage;
+ typedef cpInstances::Image _TImage;
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureOutput< _TData >( "Output" );
#include <Plugins/SimpleImageNeighborhood.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
#include <itkImage.h>
#include <fpa/Image/Functors/SimpleNeighborhood.h>
: Superclass( )
{
typedef cpPlugins::BaseObjects::DataObject _TData;
- typedef cpPlugins::DataObjects::Image _TImage;
+ typedef cpInstances::Image _TImage;
this->_ConfigureInput< _TImage >( "Input", true, false );
this->_ConfigureOutput< _TData >( "Output" );
#include <Plugins/SkeletonFilter.h>
-#include <cpPlugins/DataObjects/Image.h>
-#include <cpPlugins/DataObjects/Image_Demanglers.h>
-#include <cpPlugins/DataObjects/Skeleton.h>
+#include <cpInstances/Image.h>
+#include <cpInstances/Image_Demanglers.h>
+#include <cpInstances/Skeleton.h>
#include <fpa/Image/SkeletonFilter.h>
#include <itkImage.h>
SkeletonFilter( )
: Superclass( )
{
- typedef cpPlugins::DataObjects::Image _TImage;
- typedef cpPlugins::DataObjects::Skeleton _TSkeleton;
+ typedef cpInstances::Image _TImage;
+ typedef cpInstances::Skeleton _TSkeleton;
typedef cpPlugins::BaseObjects::DataObject _TData;
this->_ConfigureInput< _TImage >( "Input", true, false );