Commit 30a27e77 authored by lassoan's avatar lassoan

ENH: Make vtkAddon classes available in Python as vtkITK

Similarly to vtkITK make vtkAddon classes (vtkOrientedGridTransform, vtkOrientedBSplineTransform) easily accessible in Python.
One can now write: import vtkAddon (instead of import vtkAddonPython) to make classes available.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24615 3bd1e089-480b-0410-8dfb-8563597acbee
parent a3359099
......@@ -15,6 +15,7 @@ set(Slicer_PYTHON_SCRIPTS
mrmlLogic
saferef
teem
vtkAddon
vtkITK
)
......
......@@ -12,7 +12,7 @@ def tcl(cmd):
import tpycl
_tpycl = tpycl.tpycl()
packages = ['freesurfer', 'mrml', 'mrmlLogic', 'teem', 'vtk', 'vtkITK']
packages = ['freesurfer', 'mrml', 'mrmlLogic', 'teem', 'vtk', 'vtkAddon', 'vtkITK']
for p in packages:
_tpycl.py_package(p)
......
""" This module loads all the classes from the vtkAddon library into its
namespace."""
from vtkAddonPython import *
......@@ -235,6 +235,9 @@ set(qMRMLWidgets_INCLUDE_DIRS "@qMRMLWidgets_INCLUDE_DIRS_CONFIG@"
set(RemoteIO_INCLUDE_DIRS "@RemoteIO_INCLUDE_DIRS_CONFIG@"
CACHE INTERNAL "RemoteIO includes" FORCE)
set(vtkAddon_INCLUDE_DIRS "@vtkAddon_INCLUDE_DIRS_CONFIG@"
CACHE INTERNAL "vtkAddon includes" FORCE)
set(vtkITK_INCLUDE_DIRS "@vtkITK_INCLUDE_DIRS_CONFIG@"
CACHE INTERNAL "vtkITK includes" FORCE)
......
......@@ -103,6 +103,7 @@ set(MRMLCLI_INCLUDE_DIRS_CONFIG ${MRMLCLI_INCLUDE_DIRS})
set(qMRMLWidgets_INCLUDE_DIRS_CONFIG ${qMRMLWidgets_INCLUDE_DIRS})
set(RemoteIO_INCLUDE_DIRS_CONFIG ${RemoteIO_INCLUDE_DIRS})
set(vtkTeem_INCLUDE_DIRS_CONFIG ${vtkTeem_INCLUDE_DIRS})
set(vtkAddon_INCLUDE_DIRS_CONFIG ${vtkAddon_INCLUDE_DIRS})
set(vtkITK_INCLUDE_DIRS_CONFIG ${vtkITK_INCLUDE_DIRS})
# Note: For sake of simplification, the macro 'slicer_config_set_ep' is not invoked conditionally, if
......
......@@ -53,6 +53,7 @@ set(Slicer_Libs_LIBRARY_DIRS
"${Slicer_HOME}/lib/ModuleDescriptionParser"
"${Slicer_HOME}/lib/Qdec"
"${Slicer_HOME}/lib/tclap"
"${Slicer_HOME}/lib/vtkAddon"
"${Slicer_HOME}/lib/vtkITK"
"${Slicer_HOME}/lib/vtkTeem"
"${Slicer_HOME}/lib/TclTk/lib"
......@@ -72,6 +73,7 @@ set(Slicer_Libs_INCLUDE_DIRS
"${Slicer_HOME}/include/ModuleDescriptionParser"
"${Slicer_HOME}/include/Qdec"
"${Slicer_HOME}/include/tclap"
"${Slicer_HOME}/include/vtkAddon"
"${Slicer_HOME}/include/vtkITK"
"${Slicer_HOME}/include/vtkTeem"
)
......
......@@ -880,6 +880,7 @@ set(SlicerExecutionModel_EXTRA_EXECUTABLE_TARGET_LIBRARIES "" CACHE INTERNAL "Sl
# Set Slicer buildin libraries *_DIR variables
#-----------------------------------------------------------------------------
set(GenerateLM_DIR ${Slicer_BINARY_DIR}/Libs/GenerateLM)
set(vtkAddon_DIR ${Slicer_BINARY_DIR}/Libs/vtkAddon)
set(vtkITK_DIR ${Slicer_BINARY_DIR}/Libs/vtkITK)
#-----------------------------------------------------------------------------
......
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