SUBDIRS(
bash
examples
- PipelineEditor
+ # PipelineEditor
)
## eof - $RCSfile$
-SET(_pfx "cpPlugins_bash_")
-SET(_src_dir ${CMAKE_CURRENT_SOURCE_DIR})
-SET(_bin_dir ${CMAKE_CURRENT_BINARY_DIR})
-
-## ========================
-## == Build sources list ==
-## ========================
-
-FILE(GLOB _sources RELATIVE "${_src_dir}" "${_src_dir}/*.cxx")
-FILE(GLOB _sources_cfg RELATIVE "${_src_dir}" "${_src_dir}/*.cxx.in")
-FILE(GLOB _headers_cfg RELATIVE "${_src_dir}" "${_src_dir}/*.h.in")
-
-## =======================
-## == Configure sources ==
-## =======================
-
-FOREACH(_cfg ${_headers_cfg})
- GET_FILENAME_COMPONENT(_ext ${_cfg} EXT)
- STRING(LENGTH ${_ext} _ext_len)
- STRING(SUBSTRING ${_ext} 1 ${_ext_len} _ext_name)
- GET_FILENAME_COMPONENT(_real_ext ${_ext_name} NAME_WE)
- GET_FILENAME_COMPONENT(_name ${_cfg} NAME_WE)
- CONFIGURE_FILE(
- ${_src_dir}/${_cfg}
- ${_bin_dir}/${_name}.${_real_ext} @ONLY
- )
-ENDFOREACH(_cfg)
-
-FOREACH(_cfg ${_sources_cfg})
- GET_FILENAME_COMPONENT(_ext ${_cfg} EXT)
- STRING(LENGTH ${_ext} _ext_len)
- STRING(SUBSTRING ${_ext} 1 ${_ext_len} _ext_name)
- GET_FILENAME_COMPONENT(_real_ext ${_ext_name} NAME_WE)
- GET_FILENAME_COMPONENT(_name ${_cfg} NAME_WE)
- CONFIGURE_FILE(
- ${_src_dir}/${_cfg}
- ${_bin_dir}/${_name}.${_real_ext} @ONLY
- )
- LIST(APPEND _sources ${_bin_dir}/${_name}.${_real_ext})
-ENDFOREACH(_cfg)
-
-## ==========================
-## == Compile source files ==
-## ==========================
-
-FOREACH(_src ${_sources})
- GET_FILENAME_COMPONENT(_name ${_src} NAME_WE)
- SET(_prog ${_pfx}${_name})
- ADD_EXECUTABLE(${_prog} ${_src})
- INSTALL(
- TARGETS ${_prog}
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- ARCHIVE DESTINATION lib/static
+CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/Config.h.in
+ ${CMAKE_CURRENT_BINARY_DIR}/Config.h
+ @ONLY
+ )
+INCLUDE_DIRECTORIES(
+ ${PROJECT_SOURCE_DIR}/appli
+ ${PROJECT_BINARY_DIR}/appli
+ )
+
+SET(
+ _bash_APPS
+ CreateInstances
+ CreateDemanglers
+ CreatePlugins
+ HostCreator
+ )
+FOREACH(_app ${_bash_APPS})
+ ADD_EXECUTABLE(cpPlugins_bash_${_app} ${_app})
+ SET(
+ cpPlugins_bash_${_app}_APP cpPlugins_bash_${_app}
+ CACHE INTERNAL "bash program cpPlugins_bash_${_app}"
)
- SET(${_prog}_APP ${_prog} CACHE INTERNAL "bash program ${_prog}")
-ENDFOREACH(_src)
+ENDFOREACH(_app)
## eof - $RCSfile$
#include <sstream>
#include <utility>
#include <vector>
-#include <appli/bash/Utility.h>
+#include <bash/Config.h>
// -------------------------------------------------------------------------
typedef std::pair< std::string, std::string > TPair;
TARGET_LINK_LIBRARIES(cp_QCustomPlot ${QT_LIBRARIES})
ENDIF(USE_QT4)
CompileLibFromDir(cpExtensions SHARED cpExtensions)
-TARGET_LINK_LIBRARIES(cpExtensions ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES})
+TARGET_LINK_LIBRARIES(
+ cpExtensions ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES}
+ )
## ===============
## == Instances ==
${cpPlugins_Instances}
)
+## =========================
+## == Even more libraries ==
+## =========================
+
+CompileLibFromDir(cpBaseQtApplication SHARED cpBaseQtApplication)
+TARGET_LINK_LIBRARIES(cpBaseQtApplication cpPlugins)
+
## ===================================
## == Libraries to dynamically load ==
## ===================================
header #define ITK_MANUAL_INSTANTIATION
-define iter=ImageRegionConstIterator;ImageRegionIterator;ImageScanlineConstIterator;ImageScanlineIterator
+define iter=ImageRegionConstIterator;ImageRegionIterator;ImageScanlineConstIterator;ImageScanlineIterator;ImageConstIteratorWithIndex;ImageIteratorWithIndex;ImageRegionConstIteratorWithIndex;ImageRegionIteratorWithIndex
tinclude itk#iter#:h|hxx
this->Modified( );
}
-// -------------------------------------------------------------------------
-template< class _TPoint >
-void cpPlugins::DataObjects::BoundingBox::
-SetMinimum( const _TPoint& p )
-{
- this->_SetPoint( 0, p );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-void cpPlugins::DataObjects::BoundingBox::
-SetMaximum( const _TPoint& p )
-{
- this->_SetPoint( 1, p );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-_TPoint cpPlugins::DataObjects::BoundingBox::
-GetMinimum( ) const
-{
- return( this->_GetPoint< _TPoint >( 0 ) );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-_TPoint cpPlugins::DataObjects::BoundingBox::
-GetMaximum( ) const
-{
- return( this->_GetPoint< _TPoint >( 1 ) );
-}
-
// -------------------------------------------------------------------------
cpPlugins::DataObjects::BoundingBox::
BoundingBox( )
this->m_VTK = this->m_Outline->GetOutput( );
}
-// -------------------------------------------------------------------------
-template< class _TPoint >
-void cpPlugins::DataObjects::BoundingBox::
-_SetPoint( unsigned int m, const _TPoint& p )
-{
- this->m_Points[ m ].clear( );
- for( unsigned int d = 0; d < _TPoint::PointDimension; ++d )
- this->m_Points[ m ].push_back( double( p[ d ] ) );
- this->_UpdateVTK( );
- this->Modified( );
-}
-
-// -------------------------------------------------------------------------
-template< class _TPoint >
-_TPoint cpPlugins::DataObjects::BoundingBox::
-_GetPoint( unsigned int m ) const
-{
- unsigned int dim = this->m_Points[ m ].size( );
- dim = ( _TPoint::PointDimension < dim )? _TPoint::PointDimension: dim;
- _TPoint p;
- p.Fill( 0 );
- for( unsigned int d = 0; d < dim; ++d )
- p[ d ] = this->m_Points[ m ][ d ];
- return( p );
-}
-
// -------------------------------------------------------------------------
template< unsigned int _NDim >
bool cpPlugins::DataObjects::BoundingBox::
void Blend( Self* other );
template< class _TPoint >
- inline void SetMinimum( const _TPoint& p );
+ inline void SetMinimum( const _TPoint& p )
+ {
+ this->_SetPoint( 0, p );
+ }
template< class _TPoint >
- inline void SetMaximum( const _TPoint& p );
+ inline void SetMaximum( const _TPoint& p )
+ {
+ this->_SetPoint( 1, p );
+ }
template< class _TPoint >
- inline _TPoint GetMinimum( ) const;
+ inline _TPoint GetMinimum( ) const
+ {
+ return( this->_GetPoint< _TPoint >( 0 ) );
+ }
template< class _TPoint >
- inline _TPoint GetMaximum( ) const;
+ inline _TPoint GetMaximum( ) const
+ {
+ return( this->_GetPoint< _TPoint >( 1 ) );
+ }
protected:
BoundingBox( );
void _UpdateVTK( );
template< class _TPoint >
- inline void _SetPoint( unsigned int m, const _TPoint& p );
+ inline void _SetPoint( unsigned int m, const _TPoint& p )
+ {
+ this->m_Points[ m ].clear( );
+ for( unsigned int d = 0; d < _TPoint::PointDimension; ++d )
+ this->m_Points[ m ].push_back( double( p[ d ] ) );
+ this->_UpdateVTK( );
+ this->Modified( );
+ }
template< class _TPoint >
- inline _TPoint _GetPoint( unsigned int m ) const;
+ inline _TPoint _GetPoint( unsigned int m ) const
+ {
+ unsigned int dim = this->m_Points[ m ].size( );
+ dim =
+ ( _TPoint::PointDimension < dim )? _TPoint::PointDimension: dim;
+ _TPoint p;
+ p.Fill( 0 );
+ for( unsigned int d = 0; d < dim; ++d )
+ p[ d ] = this->m_Points[ m ][ d ];
+ return( p );
+ }
template< unsigned int _NDim >
- inline bool _ITKImage( itk::LightObject* o );
+ inline bool _ITKImage( itk::LightObject* o );
template< class _TScalar, unsigned int _NDim >
- inline bool _ITKPointSet( itk::LightObject* o );
+ inline bool _ITKPointSet( itk::LightObject* o );
private:
// Purposely not implemented
} // ecapseman
-#include <cpPlugins/BaseObjects/Demangle.h>
-
#endif // __cpPlugins__DataObjects__Image__h__
// eof - $RCSfile$
} // ecapseman
-#include <cpPlugins/BaseObjects/Demangle.h>
#include <cpPlugins/DataObjects/Mesh.hxx>
#endif // __cpPlugins__DataObjects__Mesh__h__
static const int TIXML2_MINOR_VERSION = 0;\r
static const int TIXML2_PATCH_VERSION = 0;\r
\r
-#include <cpPlugins_tinyxml2_Export.h>\r
+#include <cp_tinyxml2_Export.h>\r
#undef TINYXML2_LIB\r
-#define TINYXML2_LIB cpPlugins_tinyxml2_EXPORT\r
+#define TINYXML2_LIB cp_tinyxml2_EXPORT\r
\r
namespace tinyxml2\r
{\r
#ImageArithmeticFilters
#ImageBooleanFilters
#ImageDistanceMaps
- #ImageGenericFilters
+ ImageGenericFilters
#ImageGradientFilters
- #ImageMeshFilters
+ ImageMeshFilters
ImageSources
#ImageThresholdFilters
IO
-#include <plugins/IO/DicomSeriesReader.h>
-#include <plugins/IO/DicomSeriesReaderQDialog.h>
+#include <IO/DicomSeriesReader.h>
+#include <IO/DicomSeriesReaderQDialog.h>
#ifdef cpPlugins_QT4
#include <QApplication>
#include <QFileInfo>
-#include <plugins/IO/ui_DicomSeriesReaderQDialog.h>
+#include <IO/ui_DicomSeriesReaderQDialog.h>
// -------------------------------------------------------------------------
cpPluginsIO::DicomSeriesReaderQDialog::
#ifndef __CPPLUGINSIO__DICOMSERIESREADER__H__
#define __CPPLUGINSIO__DICOMSERIESREADER__H__
-#include "ImageReader.h"
+#include <IO/ImageReader.h>
namespace cpPluginsIO
{
-#include <plugins/IO/MeshWriter.h>
+#include <IO/MeshWriter.h>
#include <cpPlugins/DataObjects/Mesh.h>
#include <vtkPolyDataWriter.h>
#ifndef __CPPLUGINSIO__MESHWRITER__H__
#define __CPPLUGINSIO__MESHWRITER__H__
-#include <plugins/cpPluginsIO_Export.h>
+#include <cpPluginsIO_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsIO
-#include <plugins/ImageGenericFilters/MinimumMaximumCalculator.h>
+#include <ImageGenericFilters/MinimumMaximumCalculator.h>
#include <cpPlugins/DataObjects/Image.h>
#include <cpPlugins/DataObjects/Mesh.h>
#include <itkMinimumMaximumImageCalculator.h>
-#include <itkMinimumMaximumImageCalculator.hxx>
// -------------------------------------------------------------------------
cpPluginsImageGenericFilters::MinimumMaximumCalculator::
#ifndef __cpPluginsImageGenericFilters__MinimumMaximumCalculator__h__
#define __cpPluginsImageGenericFilters__MinimumMaximumCalculator__h__
-#include <plugins/cpPluginsImageGenericFilters_Export.h>
+#include <cpPluginsImageGenericFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageGenericFilters
-#include <plugins/ImageGenericFilters/RegionOfInterestImageFilter.h>
+#include <ImageGenericFilters/RegionOfInterestImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
#include <cpPlugins/DataObjects/BoundingBox.h>
#include <itkRegionOfInterestImageFilter.h>
-#include <itkRegionOfInterestImageFilter.hxx>
-#include <itkImageAlgorithm.hxx>
// -------------------------------------------------------------------------
cpPluginsImageGenericFilters::RegionOfInterestImageFilter::
#ifndef __cpPluginsImageGenericFilters__RegionOfInterestImageFilter__h__
#define __cpPluginsImageGenericFilters__RegionOfInterestImageFilter__h__
-#include <plugins/cpPluginsImageGenericFilters_Export.h>
+#include <cpPluginsImageGenericFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageGenericFilters
-#include <plugins/ImageGenericFilters/RescaleIntensityImageFilter.h>
+#include <ImageGenericFilters/RescaleIntensityImageFilter.h>
#include <cpPlugins/DataObjects/Image.h>
#include <itkRescaleIntensityImageFilter.h>
-#include <itkRescaleIntensityImageFilter.hxx>
-#include <itkUnaryFunctorImageFilter.hxx>
-#include <itkMinimumMaximumImageCalculator.hxx>
// -------------------------------------------------------------------------
cpPluginsImageGenericFilters::RescaleIntensityImageFilter::
#ifndef __cpPluginsImageGenericFilters__RescaleIntensityImageFilter__h__
#define __cpPluginsImageGenericFilters__RescaleIntensityImageFilter__h__
-#include <plugins/cpPluginsImageGenericFilters_Export.h>
+#include <cpPluginsImageGenericFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageGenericFilters
protected:
template< class _TImage >
- inline void _GD0( _TImage* input );
+ inline void _GD0( _TImage* input );
};
} // ecapseman
--- /dev/null
+header #define ITK_MANUAL_INSTANTIATION
+
+tinclude itkTriangleMeshToBinaryImageFilter:h|hxx
+tinclude cpExtensions/Algorithms/RasterContourFilter:h|hxx
+
+instances cpExtensions::Algorithms::RasterContourFilter< itk::Image< #scalar_pixels#, 2 > >
+instances itk::TriangleMeshToBinaryImageFilter< itk::Mesh< #real_types#, 3 >, itk::Image< #scalar_pixels#, 3 > >
+
+** eof - $RCSfile$
-#include <plugins/ImageMeshFilters/MarchingCubes.h>
+#include <ImageMeshFilters/MarchingCubes.h>
#include <cpPlugins/DataObjects/Image.h>
#include <cpPlugins/DataObjects/Mesh.h>
#ifndef __CPPLUGINSIMAGEMESH__MARCHINGCUBES__H__
#define __CPPLUGINSIMAGEMESH__MARCHINGCUBES__H__
-#include <plugins/cpPluginsImageMeshFilters_Export.h>
+#include <cpPluginsImageMeshFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
namespace cpPluginsImageMeshFilters
-#include <plugins/ImageMeshFilters/RasterMeshFilter.h>
+#include <ImageMeshFilters/RasterMeshFilter.h>
#include <cpPlugins/DataObjects/BoundingBox.h>
#include <cpPlugins/DataObjects/Mesh.h>
-#include <cpPlugins_ImageIterators.h>
#include <itkTriangleMeshToBinaryImageFilter.h>
#include <cpExtensions/Algorithms/RasterContourFilter.h>
-#include <itkTriangleMeshToBinaryImageFilter.hxx>
-#include <cpExtensions/Algorithms/RasterContourFilter.hxx>
// -------------------------------------------------------------------------
cpPluginsImageMeshFilters::RasterMeshFilter::
#ifndef __cpPluginsImageMesh__RasterMeshFilter__h__
#define __cpPluginsImageMesh__RasterMeshFilter__h__
-#include <plugins/cpPluginsImageMeshFilters_Export.h>
+#include <cpPluginsImageMeshFilters_Export.h>
#include <cpPlugins/BaseObjects/ProcessObject.h>
#include <cpPlugins/DataObjects/Image.h>
#include <vtkSmartPointer.h>