Commit 2f83d53f authored by saubatn's avatar saubatn

FEATURE 144 SDK actions on image components exposed to Python.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1216 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 93f37934
......@@ -109,7 +109,13 @@ if(NOT SDK_WRAPPED_CLASSES STREQUAL "") # only create camitk_sdk target if camit
# Qt libraries dependencies
set(QT_LIBRARIES "${QT_QTCORE_LIBRARY};${QT_QTGUI_LIBRARY}")
# message(WARNING "QT_LIBRARIES = ${QT_LIBRARIES}")
set(CAMITK_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/../sdk/libraries/core) #build directories required for ui wrapping includes !
set(CAMITK_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR}/../sdk/libraries/core
${CMAKE_CURRENT_BINARY_DIR}/../sdk/actions/mesh/basicmesh
${CMAKE_CURRENT_BINARY_DIR}/../sdk/actions/image/arbitraryslice ${CMAKE_CURRENT_BINARY_DIR}/../sdk/actions/image/cropvolume
${CMAKE_CURRENT_BINARY_DIR}/../sdk/actions/image/imagelut
${CMAKE_CURRENT_BINARY_DIR}/../sdk/actions/image/multipicking ${CMAKE_CURRENT_BINARY_DIR}/../sdk/actions/image/reconstruction
${CMAKE_CURRENT_BINARY_DIR}/../sdk/actions/image/volumerendering
) #build directories required for ui wrapping includes !
include_directories(${PROJECT_NAME} ${CAMITK_SDK_INCLUDE_DIR} ${PYSIDE_INCLUDE_ALL_DIR} ${SHIBOKEN_INCLUDE_DIR} ${PYTHON_INCLUDE_PATH} ${QT_INCLUDE_DIR} ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR} ${VTK_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} ${CAMITK_BUILD_DIR})
add_library(${PROJECT_NAME} SHARED ${SDK_WRAPPED_CLASSES})
......
......@@ -15,10 +15,10 @@ set(SHIBOKEN_TYPESYSTEM_PATH ${SHIBOKEN_TYPESYSTEM_PATH}:${CMAKE_CURRENT_SOURCE_
set(SHIBOKEN_GLOBAL_H_PATH ${SHIBOKEN_GLOBAL_H_PATH}:${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "")
# find components
get_subdirectories(ACTIONS_LIST)
get_subdirectories(ACTIONS_MESH_LIST)
# Add subdirectories in CMake project
foreach(ACTION_NAME ${ACTIONS_LIST})
foreach(ACTION_NAME ${ACTIONS_MESH_LIST})
add_subdirectory(${ACTION_NAME})
endforeach()
// local header files
#include <CleanPolyData.h>
#include <Decimation.h>
#include <ExtractEdges.h>
#include <FillWithPoints.h>
#include <ICPRegistration.h>
#include <InvertMesh.h>
#include <MeshProcessingExtension.h>
#include <SmoothFilter.h>
#include <WarpOut.h>
#include <AnglesSetterWidget.h>
#include <ArbitrarySliceExtension.h>
#include <SetAnglesAction.h>
<?xml version="1.0"?>
<typesystem>
<!-- CamiTK sdk classes exposition to Python -->
<object-type name="CleanPolyData" />
<object-type name="Decimation" />
<object-type name="ExtractEdges" />
<object-type name="FillWithPoints" />
<object-type name="ICPRegistration" />
<enum-type name="ICPRegistration::DistanceMeasureType" />
<object-type name="InvertMesh" />
<object-type name="MeshProcessingExtension" />
<object-type name="SmoothFilter" />
<object-type name="WarpOut" />
<object-type name="AnglesSetterWidget" />
<object-type name="ArbitrarySliceExtension" />
<object-type name="SetAnglesAction" />
</typesystem>
// local header files
#include <CleanPolyData.h>
#include <Decimation.h>
#include <ExtractEdges.h>
#include <FillWithPoints.h>
#include <ICPRegistration.h>
#include <InvertMesh.h>
#include <MeshProcessingExtension.h>
#include <SmoothFilter.h>
#include <WarpOut.h>
#include <BoxVOI.h>
#include <BoxVOIExtension.h>
#include <BoxVOIWidget.h>
<?xml version="1.0"?>
<typesystem>
<!-- CamiTK sdk classes exposition to Python -->
<object-type name="CleanPolyData" />
<object-type name="Decimation" />
<object-type name="ExtractEdges" />
<object-type name="FillWithPoints" />
<object-type name="ICPRegistration" />
<enum-type name="ICPRegistration::DistanceMeasureType" />
<object-type name="InvertMesh" />
<object-type name="MeshProcessingExtension" />
<object-type name="SmoothFilter" />
<object-type name="WarpOut" />
<object-type name="BoxVOI" />
<object-type name="BoxVOIExtension" />
<object-type name="BoxVOIWidget" />
</typesystem>
// local header files
#include <CleanPolyData.h>
#include <Decimation.h>
#include <ExtractEdges.h>
#include <FillWithPoints.h>
#include <ICPRegistration.h>
#include <InvertMesh.h>
#include <MeshProcessingExtension.h>
#include <SmoothFilter.h>
#include <WarpOut.h>
#include <ImageLutAction.h>
#include <ImageLutExtension.h>
#include <ImageLutWidget.h>
<?xml version="1.0"?>
<typesystem>
<!-- CamiTK sdk classes exposition to Python -->
<object-type name="CleanPolyData" />
<object-type name="Decimation" />
<object-type name="ExtractEdges" />
<object-type name="FillWithPoints" />
<object-type name="ICPRegistration" />
<enum-type name="ICPRegistration::DistanceMeasureType" />
<object-type name="InvertMesh" />
<object-type name="MeshProcessingExtension" />
<object-type name="SmoothFilter" />
<object-type name="WarpOut" />
<object-type name="ImageLutAction" />
<object-type name="ImageLutExtension" />
<object-type name="ImageLutWidget" />
</typesystem>
// local header files
#include <CleanPolyData.h>
#include <Decimation.h>
#include <ExtractEdges.h>
#include <FillWithPoints.h>
#include <ICPRegistration.h>
#include <InvertMesh.h>
#include <MeshProcessingExtension.h>
#include <SmoothFilter.h>
#include <WarpOut.h>
#include <MultiPicking.h>
#include <MultiPickingAPI.h>
#include <MultiPickingExtension.h>
#include <MultiPickingWidget.h>
#include <PickedPixelMap.h>
<?xml version="1.0"?>
<typesystem>
<!-- CamiTK sdk classes exposition to Python -->
<object-type name="CleanPolyData" />
<object-type name="Decimation" />
<object-type name="ExtractEdges" />
<object-type name="FillWithPoints" />
<object-type name="ICPRegistration" />
<enum-type name="ICPRegistration::DistanceMeasureType" />
<object-type name="InvertMesh" />
<object-type name="MeshProcessingExtension" />
<object-type name="SmoothFilter" />
<object-type name="WarpOut" />
<object-type name="MultiPicking" />
<object-type name="MultiPickingExtension" />
<object-type name="MultiPickingWidget" />
<object-type name="PickedPixelMap" />
</typesystem>
// local header files
#include <CleanPolyData.h>
#include <Decimation.h>
#include <ExtractEdges.h>
#include <FillWithPoints.h>
#include <ICPRegistration.h>
#include <InvertMesh.h>
#include <MeshProcessingExtension.h>
#include <SmoothFilter.h>
#include <WarpOut.h>
#include <ImageReconstructionAction.h>
#include <ReconstructionExtension.h>
<?xml version="1.0"?>
<typesystem>
<!-- CamiTK sdk classes exposition to Python -->
<object-type name="CleanPolyData" />
<object-type name="Decimation" />
<object-type name="ExtractEdges" />
<object-type name="FillWithPoints" />
<object-type name="ICPRegistration" />
<enum-type name="ICPRegistration::DistanceMeasureType" />
<object-type name="InvertMesh" />
<object-type name="MeshProcessingExtension" />
<object-type name="SmoothFilter" />
<object-type name="WarpOut" />
<object-type name="ImageReconstructionAction" />
<object-type name="ReconstructionExtension" />
</typesystem>
// local header files
#include <CleanPolyData.h>
#include <Decimation.h>
#include <ExtractEdges.h>
#include <FillWithPoints.h>
#include <ICPRegistration.h>
#include <InvertMesh.h>
#include <MeshProcessingExtension.h>
#include <SmoothFilter.h>
#include <WarpOut.h>
#include <ShowArbitrarySliceIn3D.h>
#include <ShowAxialSliceIn3D.h>
#include <ShowCoronalSliceIn3D.h>
#include <ShowImageIn3D.h>
#include <ShowIn3DExtension.h>
#include <ShowSagittalSliceIn3D.h>
<?xml version="1.0"?>
<typesystem>
<!-- CamiTK sdk classes exposition to Python -->
<object-type name="CleanPolyData" />
<object-type name="Decimation" />
<object-type name="ExtractEdges" />
<object-type name="FillWithPoints" />
<object-type name="ICPRegistration" />
<enum-type name="ICPRegistration::DistanceMeasureType" />
<object-type name="InvertMesh" />
<object-type name="MeshProcessingExtension" />
<object-type name="SmoothFilter" />
<object-type name="WarpOut" />
<object-type name="ShowArbitrarySliceIn3D" />
<object-type name="ShowAxialSliceIn3D" />
<object-type name="ShowCoronalSliceIn3D" />
<object-type name="ShowImageIn3D" />
<object-type name="ShowIn3DExtension" />
<object-type name="ShowSagittalSliceIn3D" />
</typesystem>
// local header files
#include <CleanPolyData.h>
#include <Decimation.h>
#include <ExtractEdges.h>
#include <FillWithPoints.h>
#include <ICPRegistration.h>
#include <InvertMesh.h>
#include <MeshProcessingExtension.h>
#include <SmoothFilter.h>
#include <WarpOut.h>
#include <ColorPointWidget.h>
#include <GradientOpacityWidget.h>
#include <TransparencyPointWidget.h>
#include <VolumeRenderingAction.h>
#include <VolumeRenderingExtension.h>
#include <VolumeRenderingWidget.h>
<?xml version="1.0"?>
<typesystem>
<!-- CamiTK sdk classes exposition to Python -->
<object-type name="CleanPolyData" />
<object-type name="Decimation" />
<object-type name="ExtractEdges" />
<object-type name="FillWithPoints" />
<object-type name="ICPRegistration" />
<enum-type name="ICPRegistration::DistanceMeasureType" />
<object-type name="InvertMesh" />
<object-type name="MeshProcessingExtension" />
<object-type name="SmoothFilter" />
<object-type name="WarpOut" />
<object-type name="ColorPointWidget" />
<object-type name="GradientOpacityWidget" />
<object-type name="TransparencyPointWidget" />
<object-type name="VolumeRenderingAction" />
<object-type name="VolumeRenderingExtension" />
<object-type name="VolumeRenderingWidget" />
</typesystem>
......@@ -13,4 +13,33 @@
<load-typesystem name="typesystem_sdk_components.xml" generate="yes" />
<load-typesystem name="typesystem_sdk_libraries.xml" generate="yes" />
<!-- TEST VTK classes declaration not generated -->
<!--<object-type name="vtkWindowLevelLookupTable" generate="no" />
<object-type name="vtkImageData" generate="no" />
<object-type name="vtkPointSet" generate="no" />
<object-type name="vtkSmartPointer" generate="no" />
<object-type name="vtkSmartPointerBase" generate="no" />
<object-type name="vtkAlgorithmOutput" generate="no" />
<object-type name="vtkActor" generate="no" />
<object-type name="vtkActor2D" generate="no" />
<object-type name="vtkImageActor" generate="no" />
<object-type name="vtkProp" generate="no" />-->
<!-- <object-type name="vtkTexture" generate="no" /> -->
<!-- <object-type name="vtkPointSet" generate="no" /> -->
<!-- <object-type name="vtkUnstructuredGridAlgorithm" generate="no" /> -->
<!-- <object-type name="vtkDataSetToUnstructuredGridFilter" generate="no" /> -->
<!--<object-type name="vtkWindowLevelLookupTable" generate="no" />
<object-type name="vtkProp3D" generate="no" />
<object-type name="vtkTransform" generate="no" />
<object-type name="vtkLinearTransform" generate="no" />
<object-type name="vtkLookupTable" generate="no" />
<object-type name="vtkTimeStamp" generate="no" />
<object-type name="vtkDataSet" generate="no" />
<object-type name="vtkObjectBase" generate="no" />
<object-type name="vtkProperty" generate="no" />
<object-type name="vtkTransform" generate="no" />
<object-type name="vtkCoordinate" generate="no" />-->
</typesystem>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment