Text archives Help
- From: abe@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1216 - trunk/SwigInterface
- Date: Tue, 10 Oct 2006 13:48:53 -0600 (MDT)
Author: abe
Date: Tue Oct 10 13:48:50 2006
New Revision: 1216
Added:
trunk/SwigInterface/manta.i
- copied, changed from r1214, trunk/SwigInterface/mantart.i
Removed:
trunk/SwigInterface/mantart.i
Modified:
trunk/SwigInterface/CMakeLists.txt
trunk/SwigInterface/mantainterface.i
trunk/SwigInterface/runmanta.py
Log:
Finished changes described in previous commit. (svn wouldn't let me
overwrite manta.i without committing in between)
A SwigInterface/manta.i
D SwigInterface/mantart.i
M SwigInterface/mantainterface.i
M SwigInterface/runmanta.py
M SwigInterface/CMakeLists.txt
Modified: trunk/SwigInterface/CMakeLists.txt
==============================================================================
--- trunk/SwigInterface/CMakeLists.txt (original)
+++ trunk/SwigInterface/CMakeLists.txt Tue Oct 10 13:48:50 2006
@@ -35,33 +35,33 @@
############################################################
# Manta Interface.
-SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES CPLUSPLUS ON)
-SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES SWIG_FLAGS
"-Wall;-DSCI_NOPERSISTENT")
-SWIG_ADD_MODULE(manta python manta.i manta.cc manta.h)
+SET_SOURCE_FILES_PROPERTIES(mantainterface.i PROPERTIES CPLUSPLUS ON)
+SET_SOURCE_FILES_PROPERTIES(mantainterface.i PROPERTIES SWIG_FLAGS
"-Wall;-DSCI_NOPERSISTENT")
+SWIG_ADD_MODULE(mantainterface python mantainterface.i manta.cc manta.h)
-SWIG_LINK_LIBRARIES(manta
+SWIG_LINK_LIBRARIES(mantainterface
${PYTHON_LIBRARIES}
${MANTA_TARGET_LINK_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${OPENGL_LIBRARIES}
${X11_LIBRARIES}
-lm)
-ADD_DEPENDENCIES(_manta ${MANTA_TARGET_LINK_LIBRARIES})
+ADD_DEPENDENCIES(_mantainterface ${MANTA_TARGET_LINK_LIBRARIES})
############################################################
# Manta Runtime.
-SET_SOURCE_FILES_PROPERTIES(mantart.i PROPERTIES CPLUSPLUS ON)
-SET_SOURCE_FILES_PROPERTIES(mantart.i PROPERTIES SWIG_FLAGS
"-Wall;-DSCI_NOPERSISTENT")
-SWIG_ADD_MODULE(mantart python mantart.i manta.cc manta.h)
+SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES CPLUSPLUS ON)
+SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES SWIG_FLAGS
"-Wall;-DSCI_NOPERSISTENT")
+SWIG_ADD_MODULE(manta python manta.i manta.cc manta.h)
-SWIG_LINK_LIBRARIES(mantart
+SWIG_LINK_LIBRARIES(manta
${PYTHON_LIBRARIES}
${MANTA_TARGET_LINK_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${OPENGL_LIBRARIES}
${X11_LIBRARIES}
-lm)
-ADD_DEPENDENCIES(_mantart ${MANTA_TARGET_LINK_LIBRARIES})
+ADD_DEPENDENCIES(_manta ${MANTA_TARGET_LINK_LIBRARIES})
# X11 Interface.
PYTHON_POST_BUILD_COPY(runmanta.py)
Copied: trunk/SwigInterface/manta.i (from r1214,
trunk/SwigInterface/mantart.i)
==============================================================================
--- trunk/SwigInterface/mantart.i (original)
+++ trunk/SwigInterface/manta.i Tue Oct 10 13:48:50 2006
@@ -27,13 +27,20 @@
DEALINGS IN THE SOFTWARE.
*/
-%module mantart
+%module manta
%include "std_string.i"
%include "std_vector.i"
%include "exception.i"
-%import manta.i
+///////////////////////////////////////////////////////
+// Import wrappers from mantainterface and import all objects in python.
+%import mantainterface.i
+
+%pythoncode
+%{
+ from mantainterface import *
+%}
///////////////////////////////////////////////////////
// Exceptions
Modified: trunk/SwigInterface/mantainterface.i
==============================================================================
--- trunk/SwigInterface/mantainterface.i (original)
+++ trunk/SwigInterface/mantainterface.i Tue Oct 10 13:48:50 2006
@@ -27,7 +27,7 @@
DEALINGS IN THE SOFTWARE.
*/
-%module manta
+%module mantainterface
%include "std_string.i"
%include "std_vector.i"
Modified: trunk/SwigInterface/runmanta.py
==============================================================================
--- trunk/SwigInterface/runmanta.py (original)
+++ trunk/SwigInterface/runmanta.py Tue Oct 10 13:48:50 2006
@@ -91,6 +91,7 @@
def setupDefaultEngine(numworkers):
+ print "Using " + str(numworkers) + " rendering threads."
engine = createManta()
engine.changeNumWorkers(numworkers)
engine.selectImageType("rgba8")
- [MANTA] r1216 - trunk/SwigInterface, abe, 10/10/2006
Archive powered by MHonArc 2.6.16.