Commit 9c6bd1fb authored by Emmanuel Promayon's avatar Emmanuel Promayon

NEW Frame class accessible in Python

parent 8522077a
......@@ -259,6 +259,7 @@ set(CAMITK_PYTHON_CLASS_NAMES Core
InterfaceFrame
ComponentExtension
Component
Frame
ImageComponent
# RendererWidget
# InteractiveViewer
......@@ -416,8 +417,8 @@ set(PYCAMITK_LIB_PREFIXED_FILENAME lib${PYCAMITK_LIB_FILENAME})
if(CMAKE_HOST_UNIX)
if(NOT IS_SYMLINK ${CMAKE_INSTALL_PREFIX}/lib/${PYCAMITK_LIB_PREFIXED_FILENAME})
install(CODE "execute_process(COMMAND ln -s ${PYCAMITK_LIB_FILENAME} ${PYCAMITK_LIB_PREFIXED_FILENAME}
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib
COMMENT \"Creating install-time symlink to ${PYCAMITK_LIB_PREFIXED_FILENAME}\")"
WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/lib)"
CODE "message(STATUS \"Creating install-time symlink to ${PYCAMITK_LIB_PREFIXED_FILENAME}\")"
)
endif()
endif()
......
......@@ -87,7 +87,7 @@
#include <InterfaceGeometry.h>
#include <InterfaceFrame.h>
#include <Component.h>
// Frame.h
#include <Frame.h>
// SimplisticComponent.h
// Geometry.h
#include <ComponentExtension.h>
......
......@@ -651,7 +651,8 @@ if(vtk_object->IsA(class_name)) {
<!-- <enum-type name="MeshComponent::SpecificRepresentation"/> -->
<!-- <enum-type name="MeshComponent::VectorRepresentation"/> -->
<!-- <enum-type name="MeshSelectionModel::InsertionPolicy"/> -->
<object-type name="Frame"/>
</namespace-type>
</typesystem>
......@@ -12,7 +12,7 @@ import sys
## Add the python subdir in order to be able to load PyCamiTK
sys.path.append('.')
sys.path.append('./lib')
sys.path.append('/tmp/camitk/build/camitk/lib')
sys.path.append('/usr/local/lib')
## list CamiTK python bindings exported classes
from PyCamiTK import camitk
......@@ -20,7 +20,6 @@ from PyCamiTK import camitk
from PySide2.QtCore import Qt, QTimer # for Qt.LeftDockWidgetArea
from PySide2.QtWidgets import QApplication, QAction, QMenu, QMainWindow
#if __name__ == '__main__':
print("Setting log...")
camitk.Log.getLogger().setTimeStampInformation(True)
......
This diff is collapsed.
#!/usr/bin/python
#############################################################################
##
## Copyright (C) 2016 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing/
##
## This file is part of the Qt for Python examples of the Qt Toolkit.
##
## $QT_BEGIN_LICENSE:BSD$
## You may use this file under the terms of the BSD license as follows:
##
## "Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are
## met:
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in
## the documentation and/or other materials provided with the
## distribution.
## * Neither the name of The Qt Company Ltd nor the names of its
## contributors may be used to endorse or promote products derived
## from this software without specific prior written permission.
##
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
##
## $QT_END_LICENSE$
##
#############################################################################
import sys
isPY3 = sys.version_info[0] == 3
if isPY3:
text_type = str
else:
text_type = unicode
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