-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Header configuration
# ====================
SALOME_XVERSION(${PROJECT_NAME})
-SALOME_CONFIGURE_FILE(XTPLUGIN_version.h.in XTPLUGIN_version.h)
+SALOME_CONFIGURE_FILE(XTPlugin_version.h.in XTPlugin_version.h INSTALL ${SALOME_INSTALL_HEADERS})
# Configuration export
# (here only the level 1 prerequisites are exposed)
Installation Instructions
*************************
-Copyright (C) 2014 Open CASCADE S.A.S.
+Copyright (C) 2014-2015 OPEN CASCADE
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
- for csh:
- % setenv XT_ROOT_DIR /path/to/the/XT-6.7.0
+ % setenv XT_ROOT_DIR /path/to/the/XT-6.9.0
% setenv LD_LIBRARY_PATH ${XT_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
- for bash:
- % export XT_ROOT_DIR=/path/to/the/XT-6.7.0
+ % export XT_ROOT_DIR=/path/to/the/XT-6.9.0
% export LD_LIBRARY_PATH=${XT_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
Note, that OCCT Parasolid XDE product requires OCCT license library.
README
******
-Copyright (C) 2014 Open CASCADE S.A.S.
+Copyright (C) 2014-2015 OPEN CASCADE
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
- for csh:
- % setenv XT_ROOT_DIR /path/to/the/XT-6.7.0
+ % setenv XT_ROOT_DIR /path/to/the/XT-6.9.0
% setenv LD_LIBRARY_PATH ${XT_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
- for bash:
- % export XT_ROOT_DIR=/path/to/the/XT-6.7.0
+ % export XT_ROOT_DIR=/path/to/the/XT-6.9.0
% export LD_LIBRARY_PATH=${XT_ROOT_DIR}/lib:${LD_LIBRARY_PATH}
* OCCT Parasolid XDE product requires also an OCCT license library.
#
###############################################################
-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
+++ /dev/null
-// Copyright (C) 2014 OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-#if !defined(__XTPLUGIN_VERSION_H)
-#define __XTPLUGIN_VERSION_H
-
-/*!
- Specify version of SALOME XTPLUGIN module, as follows
-
- XTPLUGIN_VERSION_MAJOR : (integer) number identifying major version
- XTPLUGIN_VERSION_MINOR : (integer) number identifying minor version
- XTPLUGIN_VERSION_MAINTENANCE : (integer) number identifying maintenance version
- XTPLUGIN_VERSION_STR : (string) complete version number "major.minor.maintenance"
- XTPLUGIN_VERSION : (hex) complete version number (major << 16) + (minor << 8) + maintenance
- XTPLUGIN_DEVELOPMENT : (integer) indicates development version when set to 1
-*/
-
-#define XTPLUGIN_VERSION_MAJOR @SALOMEXTPLUGIN_MAJOR_VERSION@
-#define XTPLUGIN_VERSION_MINOR @SALOMEXTPLUGIN_MINOR_VERSION@
-#define XTPLUGIN_VERSION_MAINTENANCE @SALOMEXTPLUGIN_PATCH_VERSION@
-#define XTPLUGIN_VERSION_STR "@SALOMEXTPLUGIN_VERSION@"
-#define XTPLUGIN_VERSION @SALOMEXTPLUGIN_XVERSION@
-#define XTPLUGIN_DEVELOPMENT @SALOMEXTPLUGIN_VERSION_DEV@
-
-#endif // __XTPLUGIN_VERSION_H
--- /dev/null
+// Copyright (C) 2014-2015 OPEN CASCADE
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+#if !defined(__XTPLUGIN_VERSION_H)
+#define __XTPLUGIN_VERSION_H
+
+/*!
+ Specify version of SALOME XTPLUGIN module, as follows
+
+ XTPLUGIN_VERSION_MAJOR : (integer) number identifying major version
+ XTPLUGIN_VERSION_MINOR : (integer) number identifying minor version
+ XTPLUGIN_VERSION_MAINTENANCE : (integer) number identifying maintenance version
+ XTPLUGIN_VERSION_STR : (string) complete version number "major.minor.maintenance"
+ XTPLUGIN_VERSION : (hex) complete version number (major << 16) + (minor << 8) + maintenance
+ XTPLUGIN_DEVELOPMENT : (integer) indicates development version when set to 1
+*/
+
+#define XTPLUGIN_VERSION_MAJOR @SALOMEXTPLUGIN_MAJOR_VERSION@
+#define XTPLUGIN_VERSION_MINOR @SALOMEXTPLUGIN_MINOR_VERSION@
+#define XTPLUGIN_VERSION_MAINTENANCE @SALOMEXTPLUGIN_PATCH_VERSION@
+#define XTPLUGIN_VERSION_STR "@SALOMEXTPLUGIN_VERSION@"
+#define XTPLUGIN_VERSION @SALOMEXTPLUGIN_XVERSION@
+#define XTPLUGIN_DEVELOPMENT @SALOMEXTPLUGIN_VERSION_DEV@
+
+#endif // __XTPLUGIN_VERSION_H
-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
#########################################################################
-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
ADD_SUBDIRECTORY(examples)
-ADD_SUBDIRECTORY(gui)
\ No newline at end of file
+ADD_SUBDIRECTORY(gui)
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
from salome.geom import geomBuilder
geompy = geomBuilder.New(salome.myStudy)
-# Example of import file in XT format
+# - path to the file
+xtFile = "/path/to/the/xt/file.x_t"
-print "Test Import XT ..."
+if os.path.exists(xtFile):
+ # - import shape
+ shape = geompy.ImportXT(xtFile)
+
+ # - publish in study
+ geompy.addToStudy(shape, "ImportXT")
-dir = "" # please define import directory here
-if dir != "":
- # File for Import testing
- fileImport = dir + "" # please define file name here
- if fileImport != dir:
- # import shape
- Shape1 = geompy.ImportXT(fileImport)
- geompy.addToStudy(Shape1, "ImportXT_1")
- # It is possible also to use next format of importing and publishing in study
- Shape2 = geompy.ImportXT(fileImport,"ImportXT_2")
- print "OK"
- else:
- print "please define file name in python file"
else:
- print "please define import directory in python file"
\ No newline at end of file
+ print "ERROR: File %s does not exist" % xtFile
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
SALOME_CONFIGURE_FILE(static/header.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header.html)
SALOME_CONFIGURE_FILE(static/header_py.html.in ${CMAKE_CURRENT_BINARY_DIR}/static/header_py.html)
+# Generate a temporary python file, needed for the generation of the documentation
+# of the plugin.
+SALOME_ACCUMULATE_ENVIRONMENT(GEOM_PluginsList NOCHECK XTPlugin)
+SET(_plugins_cmd_options ${GEOM_ROOT_DIR}/bin/salome/collect_geom_methods.py -d -o tmp/geomBuilder.py XTPlugin)
+SALOME_GENERATE_ENVIRONMENT_SCRIPT(_plugins_cmd env_script "${PYTHON_EXECUTABLE}" "${_plugins_cmd_options}")
+
SET(kernel_file "$ENV{KERNEL_ROOT_DIR}/bin/salome/prepare_generating_doc.py")
IF(WIN32)
STRING(REPLACE "/" "\\" kernel_file ${kernel_file})
ADD_CUSTOM_TARGET(usr_docs ${CMAKE_COMMAND} -E make_directory tmp
COMMAND ${PYTHON_EXECUTABLE} ${kernel_file} -o tmp/XTPluginBuilder.py ${CMAKE_SOURCE_DIR}/src/XTPluginBuilder.py
+ COMMAND ${_plugins_cmd}
COMMAND ${DOXYGEN_EXECUTABLE} doxyfile_py
COMMAND ${DOXYGEN_EXECUTABLE} doxyfile
COMMAND ${CMAKE_COMMAND} -E remove_directory tmp
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
\mainpage Introduction to XTPLUGIN
-\b Parasolid interface to be used as plugin for SALOME Geometry
-module.
-It is destined for:
-- Importing CAD models stored in Parasolid format ( *.x_t and *.xt files ) into
-SALOME study;
+The \b XTPLUGIN implements \b Parasolid interface as a plugin for SALOME Geometry module.
-To manage parameters of the XTPLUGIN use \subpage xtplugin_import_page.
+It can be used for importing CAD models stored in Parasolid format ( *.x_t and *.xt files ) into
+SALOME study.
-Also all XTPLUGIN functionalities are accessible via
+To use functionality of the XTPLUGIN refer to \subpage xtplugin_import_page.
+
+Also all functionalities of the XTPLUGIN are accessible via
\subpage xtplugin_python_interface_page "XTPLUGIN Python interface".
*/
\page xtplugin_import_page Import XT
-For using XTPLUGIN functionalities in SALOME:
+To use XTPLUGIN functionalities in SALOME:
- Run SALOME and activate Geometry module.
\image html import_xt.png
- Browse and select the file and click "Open" button. New object (shape)
- will appears in the SALOME object browser.
+ Browse and select the file and press "Open" button. New object (shape)
+ will appear in the SALOME object browser.
- \note It is possible to re-open from the initial file a previously imported shape if
- the file has been changed on disk. For this, select <b>Reload From Disk</b>
- in the context menu of the imported shape. The reloaded shape will have the same
- representation parameters as before this operation.
+ \note It is possible to re-load a previously imported shape from the initial file if
+ the file has been changed on disk. For this, select <b>Reload From Disk</b> item
+ in the Object browser's context menu of the imported shape. The reloaded shape will
+ have the same representation parameters as before this operation.
\image html reopen_xt.png
\page xtplugin_python_interface_page Python Interface
-Python package XTPluginBuilder defines several classes, destined for
-import CAD models in Parasolid format (*.x_t and *.xt files).
+Python package XTPluginBuilder defines a function that allows
+importing CAD models in Parasolid format (*.x_t and *.xt files).
XTPLUGIN dynamically adds several methods to the geomBuilder.
Below you can see an example of usage of the XTPluginBuilder package for
-import CAD models:
+importing CAD models:
\anchor example_XTPlugin
-<h2>Example of import CAD model stored in Parasolid format (*.x_t and *.xt files) with XTPLUGIN:</h2>
+<h2>Example of importing of CAD model stored in Parasolid format (*.x_t and *.xt files) with XTPLUGIN:</h2>
\tui_script{XTPlugindemo.py}
*/
<ul>
$navpath
<li class="footer">
- Copyright © 2014 CEA/DEN, EDF R&D, OPEN CASCADE<br>
+ Copyright © 2014-2015 OPEN CASCADE<br>
</li>
</ul>
</div>
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
<!--
- Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+ Copyright (C) 2014-2015 OPEN CASCADE
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
<?xml version='1.0' encoding='us-ascii'?>
<!DOCTYPE meshers PUBLIC "" "desktop.dtd">
<!--
- Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+ Copyright (C) 2014-2015 OPEN CASCADE
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Engine Library Name
__libraryName__ = "XTPluginEngine"
+## Get XT plugin operations interface
+# @return an instance of XT plugin operations interface
def GetXTPluginOperations(self):
+ """
+ Get XT plugin operations interface.
+
+ Returns:
+ An instance of XT plugin operations interface
+ """
anOp = self.GetPluginOperations(self.myStudyId, __libraryName__)
return anOp._narrow(IXTOperations)
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// internal includes
#include "XTPlugin_IOperations_i.hh"
#include "XTPlugin_IOperations.hxx"
-#include <XTPLUGIN_version.h>
+#include "XTPlugin_version.h"
// KERNEL includes
#include <utilities.h>
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
-// Copyright (C) 2014 OPEN CASCADE
+// Copyright (C) 2014-2015 OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2014 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2014-2015 OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public