@CMAKE_INSTALL_PREFIX@/include
)
+FIND_PATH(
+ cpPlugins_INCLUDE_DIR4
+ Pluma/cpPlugins_Pluma_Export.h
+ PATHS
+ /usr/include
+ /usr/local/include
+ @PROJECT_SOURCE_DIR@/lib/third_party
+ @PROJECT_BINARY_DIR@/lib/third_party
+ @CMAKE_INSTALL_PREFIX@/include
+ )
+
INCLUDE_DIRECTORIES(
${cpPlugins_INCLUDE_DIR1}
${cpPlugins_INCLUDE_DIR2}
${cpPlugins_INCLUDE_DIR3}
+ ${cpPlugins_INCLUDE_DIR4}
)
FIND_LIBRARY(
// -------------------------------------------------------------------------
#define cpPlugins_Image_RGB( p, d, o, f ) \
- if( dynamic_cast< itk::Image< itk::RGBPixel< p >, d >* >( o ) != NULL ) \
+ if( \
+ dynamic_cast< itk::Image< itk::RGBPixel< p >, d >* >( o ) != NULL \
+ ) \
this->f< itk::RGBPixel< p >, d >( )
// -------------------------------------------------------------------------
Self& operator=( const Self& );
protected:
- /*
- itk::ProcessObject::Pointer m_Mesh2VTKMeshData;
- vtkMeshData* m_VTKMeshData;
- */
vtkMapper* m_Mapper;
};
}
// -------------------------------------------------------------------------
-PLUMA_PROVIDER_SOURCE( cpPlugins::Interface::Object, 1, 1 );
+CPPLUGINS_PROVIDER_SOURCE( cpPlugins::Interface::Object, 1, 1 );
// eof - $RCSfile$
#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
// -------------------------------------------------------------------------
-#define PLUMA_PROVIDER_HEADER_BEGIN_CPPLUGINS( TYPE ) \
+#define CPPLUGINS_PROVIDER_HEADER_BEGIN( TYPE ) \
class cpPlugins_Interface_EXPORT TYPE##Provider \
: public pluma::Provider \
{ \
{ return( PLUMA_INTERFACE_VERSION ); }
// -------------------------------------------------------------------------
-#define PLUMA_PROVIDER_HEADER_END_CPPLUGINS };
+#define CPPLUGINS_PROVIDER_HEADER_END };
// -------------------------------------------------------------------------
-#define PLUMA_PROVIDER_HEADER_CPPLUGINS( TYPE ) \
- PLUMA_PROVIDER_HEADER_BEGIN_CPPLUGINS( TYPE ) \
- virtual TYPE::Pointer create( ) const = 0; \
- PLUMA_PROVIDER_HEADER_END_CPPLUGINS
+#define CPPLUGINS_PROVIDER_HEADER( TYPE ) \
+ CPPLUGINS_PROVIDER_HEADER_BEGIN( TYPE ) \
+ virtual TYPE::Pointer create( ) const = 0; \
+ CPPLUGINS_PROVIDER_HEADER_END
// -------------------------------------------------------------------------
-#define PLUMA_INHERIT_PROVIDER_CPPLUGINS( TYPE, SUPER ) \
- class TYPE##Provider \
- : public SUPER##Provider \
- { \
- public: \
- SUPER::Pointer create( ) const \
- { \
- TYPE::Pointer a = TYPE::New( ); \
- SUPER::Pointer b = a.GetPointer( ); \
- return( b ); \
- } \
+#define CPPLUGINS_PROVIDER_SOURCE( TYPE, Version, LowestVersion ) \
+ PLUMA_PROVIDER_SOURCE( TYPE, Version, LowestVersion )
+
+// -------------------------------------------------------------------------
+#define CPPLUGINS_INHERIT_PROVIDER( TYPE ) \
+ class TYPE##Provider \
+ : public cpPlugins::Interface::ObjectProvider \
+ { \
+ public: \
+ cpPlugins::Interface::Object::Pointer create( ) const \
+ { \
+ TYPE::Pointer a = TYPE::New( ); \
+ cpPlugins::Interface::Object::Pointer b = a.GetPointer( ); \
+ return( b ); \
+ } \
};
namespace cpPlugins
Self& operator=( const Self& );
};
- // TODO: doc
- PLUMA_PROVIDER_HEADER_CPPLUGINS( Object );
+ /**
+ * Plugin provider
+ */
+ CPPLUGINS_PROVIDER_HEADER( Object );
} // ecapseman
image->TransformContinuousIndexToPhysicalPoint( idx, pnt );
x = double( pnt[ 0 ] );
y = double( pnt[ 1 ] );
- z = ( D == 3 )? double( pnt[ 2 ] ): double( 0 );
+ z = ( D >= 3 )? double( pnt[ 2 ] ): double( 0 );
}
else
{
x = double( idx[ 0 ] );
y = double( idx[ 1 ] );
- z = ( D == 3 )? double( idx[ 2 ] ): double( 0 );
+ z = ( D >= 3 )? double( idx[ 2 ] ): double( 0 );
} // fi
points->InsertNextPoint( x, y, z );
};
// ---------------------------------------------------------------------
- PLUMA_INHERIT_PROVIDER_CPPLUGINS(
- ImageReader,
- cpPlugins::Interface::Object
- );
+ CPPLUGINS_INHERIT_PROVIDER( ImageReader );
} // ecapseman
};
// ---------------------------------------------------------------------
- PLUMA_INHERIT_PROVIDER_CPPLUGINS(
- ImageSeriesReader,
- cpPlugins::Interface::Object
- );
+ CPPLUGINS_INHERIT_PROVIDER( ImageSeriesReader );
} // ecapseman
};
// ---------------------------------------------------------------------
- PLUMA_INHERIT_PROVIDER_CPPLUGINS(
- ImageWriter,
- cpPlugins::Interface::Object
- );
+ CPPLUGINS_INHERIT_PROVIDER( ImageWriter );
} // ecapseman
};
// ---------------------------------------------------------------------
- PLUMA_INHERIT_PROVIDER_CPPLUGINS(
- MarchingCubes,
- cpPlugins::Interface::Object
- );
+ CPPLUGINS_INHERIT_PROVIDER( MarchingCubes );
} // ecapseman
};
// ---------------------------------------------------------------------
- PLUMA_INHERIT_PROVIDER_CPPLUGINS(
- MeshReader,
- cpPlugins::Interface::Object
- );
+ CPPLUGINS_INHERIT_PROVIDER( MeshReader );
} // ecapseman
};
// ---------------------------------------------------------------------
- PLUMA_INHERIT_PROVIDER_CPPLUGINS(
- RGBImageToHSVChannelsFilter,
- cpPlugins::Interface::Object
- );
+ CPPLUGINS_INHERIT_PROVIDER( RGBImageToHSVChannelsFilter );
} // ecapseman