--- /dev/null
+
+ CMAKE_MINIMUM_REQUIRED(VERSION 2.4.7 FATAL_ERROR)
+ IF(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 NEW)
+ ENDIF(COMMAND cmake_policy)
+
+
+ SET(WITH_BOOST $ENV{BOOSTDIR})
+ SET(KERNEL_ROOT_DIR $ENV{KERNEL_ROOT_DIR})
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindPLATFORM.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindPYTHON.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindOMNIORB.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindPTHREADS.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindHDF5.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindBOOST.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindLIBXML2.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindSWIG.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindCPPUNIT.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindDOXYGEN.cmake)
+ INCLUDE(${KERNEL_ROOT_DIR}/salome_adm/cmake_files/FindKERNEL.cmake)
+
+
+ INCLUDE(${CMAKE_SOURCE_DIR}/adm_local/cmake_files/FindPARAVIEW.cmake)
+ IF(EXISTS ${PARAVIEW_VTK_DIR}/VTKConfig.cmake)
+ SET(VTK_DIR ${PARAVIEW_VTK_DIR})
+ ENDIF(EXISTS ${PARAVIEW_VTK_DIR}/VTKConfig.cmake)
+ SET(GUI_ROOT_DIR $ENV{GUI_ROOT_DIR})
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindCAS.cmake)
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindQT4.cmake)
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindOPENGL.cmake)
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindVTK.cmake)
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindQWT.cmake)
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindSIPPYQT.cmake)
+ INCLUDE(${GUI_ROOT_DIR}/adm_local/cmake_files/FindGUI.cmake)
+
+
+ SET(BUILD_PLUGINS 1)
+ SET(MED_ROOT_DIR $ENV{MED_ROOT_DIR})
+ SET(VISU_ROOT_DIR $ENV{VISU_ROOT_DIR})
+ INCLUDE(${MED_ROOT_DIR}/adm_local/cmake_files/FindMED.cmake)
+ IF(EXISTS ${VISU_ROOT_DIR}/adm_local/cmake_files/FindVISU.cmake)
+ INCLUDE(${VISU_ROOT_DIR}/adm_local/cmake_files/FindVISU.cmake)
+ SET(WITH_VISU 1)
+ ENDIF(EXISTS ${VISU_ROOT_DIR}/adm_local/cmake_files/FindVISU.cmake)
+ EXECUTE_PROCESS(COMMAND pvpython ${CMAKE_SOURCE_DIR}/getwrapclasses.py ${PARAVIEW_INCLUDE_DIRS})
+
+
+ SET(DOXYGEN_IS_OK 0)
+
+
+ IF(WINDOWS)
+ SET(CPPUNIT_IS_OK 0)
+ ENDIF(WINDOWS)
+
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
+#
+# 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.
+#
+# 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
+#
+# -* Makefile *-
+#
+# Author :
+# Modified by : Alexander BORODIN (OCN) - autotools usage
+#
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(ACLOCAL_AMFLAGS
+ -I
+ adm_local/unix/config_files
+ -I
+ ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
+ -I
+ ${GUI_ROOT_DIR}/adm_local/unix/config_files
+)
+
+SET(SUBDIRS
+ idl
+ adm_local
+ resources
+ src
+ doc
+ bin
+)
+
+SET(DISTCLEANFILES
+ a.out
+ aclocal.m4
+ configure
+ wrapfiles.txt
+)
+
+SET(salomeinclude_DATA
+ PARAVIS_version.h
+)
+
+SET(EXTRA_DIST
+ ${EXTRA_DIST}
+ build_configure
+ clean_configure
+)
+
+# include $(top_srcdir)/wrapfiles.am
+INCLUDE(wrapfiles.cmake)
+
+# dist-hook:
+# rm -rf `find $(distdir) -name CVS`
+
+# dev_docs:
+# (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
+
+# docs: dev_docs
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/PARAVIS_version.h.in)
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/PARAVIS_version.h)
+
+
+ MESSAGE(STATUS "Creation of ${output}")
+ CONFIGURE_FILE(${input} ${output})
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+FOREACH(f ${salomeinclude_DATA})
+
+ SET(DEST include/salome)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${salomeinclude_DATA})
+++ /dev/null
-# Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
-#
-# 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.
-#
-# 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
-#
-# -* Makefile *-
-#
-# Author :
-# Modified by : Alexander BORODIN (OCN) - autotools usage
-#
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-ACLOCAL_AMFLAGS = -I adm_local/unix/config_files \
- -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
- -I ${GUI_ROOT_DIR}/adm_local/unix/config_files
-
-SUBDIRS = idl adm_local resources src doc bin
-
-DISTCLEANFILES = a.out aclocal.m4 configure
-
-salomeinclude_DATA = PARAVIS_version.h
-
-EXTRA_DIST += \
- build_configure \
- clean_configure
-
-dist-hook:
- rm -rf `find $(distdir) -name CVS`
-
-dev_docs:
- (cd doc && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
-
-docs: dev_docs
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
+# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
+# 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.
+#
+# 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
+#
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(SUBDIRS
+ unix
+ cmake_files
+)
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+++ /dev/null
-# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
-# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
-# 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.
-#
-# 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
-#
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-SUBDIRS = unix
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(dist_admlocal_cmake_DATA
+ FindPARAVIEW.cmake
+)
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+FOREACH(f ${dist_admlocal_cmake_DATA})
+
+ SET(DEST adm_local/cmake_files)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${dist_admlocal_cmake_DATA})
--- /dev/null
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+
+FIND_PACKAGE(ParaView REQUIRED)
+
+SET(PARAVIS_ROOT_DIR $ENV{PARAVIS_ROOT_DIR})
+
+SET(PARAVIEW_INCLUDES -I${PARAVIEW_INCLUDE_DIRS})
+SET(PARAVIEW_LIBS -L${PARAVIEW_LIBRARY_DIRS} -lvtkPVServerManager -lpqApplicationComponents)
+
+FIND_LIBRARY(vtkPVServerManager vtkPVServerManager ${PARAVIEW_LIBRARY_DIRS})
+FIND_LIBRARY(pqApplicationComponents pqApplicationComponents ${PARAVIEW_LIBRARY_DIRS})
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
+# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
+# 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.
+#
+# 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
+#
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(SUBDIRS
+ config_files
+)
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+++ /dev/null
-# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
-# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
-# 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.
-#
-# 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
-#
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-SUBDIRS = config_files
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
+# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
+# 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.
+#
+# 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
+#
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(dist_admlocalm4_DATA
+ check_ParaView.m4
+)
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+FOREACH(f ${dist_admlocalm4_DATA})
+
+ SET(DEST adm_local/unix/config_files)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${dist_admlocalm4_DATA})
+++ /dev/null
-# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
-# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
-# 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.
-#
-# 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
-#
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-dist_admlocalm4_DATA = \
- check_ParaView.m4 \
- check_VISU.m4 \
- check_Med.m4 \
- check_Med2.m4 \
- med_check_sizeof_medint.m4
fi
LOCAL_INCLUDES="$OGL_INCLUDES"
-LOCAL_LIBS="-lvtksys -lvtkzlib -lvtkpng -lvtkjpeg -lvtktiff -lvtkexpat -lvtksqlite -lvtkmetaio -lvtkverdict -lvtkNetCDF -lvtkDICOMParser -lvtkfreetype -lvtkftgl -lvtkexoIIc -lvtklibxml2 -lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid -lvtkParallel -lvtkWidgets -lvtkClientServer -lvtkCommonCS -lvtkFilteringCS -lvtkIOCS -lvtkImagingCS -lvtkGraphicsCS -lvtkGenericFiltering -lvtkGenericFilteringCS -lvtkRenderingCS -lvtkHybridCS -lvtkParallelCS -lvtkPVCommandOptions -lKWCommon -lvtkInfovis -lvtkInfovisCS -lvtkPVServerCommon -lvtkPVServerCommonCS -lvtkCommonPythonD -lvtkFilteringPythonD -lvtkIOPythonD -lXdmf -lvtkXdmf -lvtkXdmfCS -lvtkWidgetsCS -lvtkVolumeRendering -lvtkVolumeRenderingCS -lvtkPVFilters -lvtkPVFiltersCS -lvtkViews -lvtkPVServerManagerPythonD -lvtkPVServerCommonPythonD -lvtkPVPythonInterpretor -lvtkPVServerManager -lQVTK -lpqWidgets -lQtTesting -lvtkQtChart -lpqCore -lQtPython -lpqComponents -lvtkPVPython -lvtkalglib $LXLIB -lX11 -lXt"
+LOCAL_LIBS="-lvtksys -lvtkzlib -lvtkpng -lvtkjpeg -lvtktiff -lvtkexpat -lvtksqlite -lvtkmetaio -lvtkverdict -lvtkNetCDF -lvtkDICOMParser -lvtkfreetype -lvtkftgl -lvtkexoIIc -lvtklibxml2 -lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid -lvtkParallel -lvtkWidgets -lvtkClientServer -lvtkCommonCS -lvtkFilteringCS -lvtkIOCS -lvtkImagingCS -lvtkGraphicsCS -lvtkGenericFiltering -lvtkGenericFilteringCS -lvtkRenderingCS -lvtkHybridCS -lvtkParallelCS -lvtkPVCommandOptions -lKWCommon -lvtkInfovis -lvtkInfovisCS -lvtkPVServerCommon -lvtkPVServerCommonCS -lvtkCommonPythonD -lvtkFilteringPythonD -lvtkIOPythonD -lXdmf -lvtkXdmf -lvtkXdmfCS -lvtkWidgetsCS -lvtkVolumeRendering -lvtkVolumeRenderingCS -lvtkPVFilters -lvtkPVFiltersCS -lvtkViews -lvtkPVServerManagerPythonD -lvtkPVServerCommonPythonD -lvtkPVPythonInterpretor -lvtkPVServerManager -lQVTK -lpqWidgets -lQtTesting -lvtkQtChart -lpqCore -lQtPython -lpqApplicationComponents -lpqComponents -lvtkalglib $LXLIB -lX11 -lXt"
dnl VTK install dir
if test -z $with_paraview ; then
+++ /dev/null
-#
-# ============================================================
-# This file defines the common definitions used in several
-# Makefile. This file must be included, if needed, by the file
-# Makefile.am.
-# ============================================================
-#
-
-# Standard directory for installation
-salomeincludedir = $(includedir)/salome
-libdir = $(prefix)/lib@LIB_LOCATION_SUFFIX@/salome
-bindir = $(prefix)/bin/salome
-salomescriptdir = $(bindir)
-salomepythondir = $(pythondir)/salome
-salomepyexecdir = $(pyexecdir)/salome
-
-# Directory for installing idl files
-salomeidldir = $(prefix)/idl/salome
-
-# Directory for installing resource files
-salomeresdir = $(prefix)/share/salome/resources/@MODULE_NAME@
-
-# Directories for installing admin files
-admlocaldir = $(prefix)/adm_local
-admlocalunixdir = $(admlocaldir)/unix
-admlocalm4dir = $(admlocaldir)/unix/config_files
-
-# Shared modules installation directory
-sharedpkgpythondir = $(salomepythondir)/shared_modules
-
-# Documentation directory
-docdir = $(datadir)/doc/salome
-
-# common rules
-
-# meta object implementation files generation (moc)
-%_moc.cxx: %.h
- $(MOC) $< -o $@
-
-# translation (*.qm) files generation (lrelease)
-%.qm: resources/%.ts
- $(LRELEASE) $< -qm $@
-
-# resource files generation (qrcc)
-qrc_%.cxx: %.qrc
- $(QRCC) $< -o $@ -name $(*F)
-
-# qt forms files generation (uic)
-ui_%.h: %.ui
- $(UIC) -o $@ $<
-
-# extra distributed files
-EXTRA_DIST = $(MOC_FILES:%_moc.cxx=%.h) $(QRC_FILES:qrc_%.cxx=%.qrc) \
- $(UIC_FILES:ui_%.h=%.ui) $(nodist_salomeres_DATA:%.qm=resources/%.ts)
-
-# customize clean operation
-mostlyclean-local:
- rm -f @builddir@/*_moc.cxx
- rm -f @builddir@/*.qm
- rm -f @builddir@/ui_*.h
- rm -f @builddir@/qrc_*.cxx
-
-# tests
-tests: unittest
-
-unittest: $(UNIT_TEST_PROG)
- @if test "x$(UNIT_TEST_PROG)" != "x"; then \
- $(UNIT_TEST_PROG); \
- fi;
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
+# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
+# 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.
+#
+# 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
+# -* Makefile *-
+#
+# Author :
+# Module : PARAVIS
+#
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+# non-distributed files
+SET(nodist_salomescript_DATA
+ VERSION
+)
+
+# distributed files
+SET(dist_salomescript_SCRIPTS
+)
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/VERSION.in)
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/VERSION)
+
+
+ MESSAGE(STATUS "Creation of ${output}")
+ CONFIGURE_FILE(${input} ${output})
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+FOREACH(f ${nodist_salomescript_DATA})
+
+ SET(DEST bin/salome)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${nodist_salomescript_DATA})
+FOREACH(f ${dist_salomescript_SCRIPTS})
+
+ SET(DEST bin/salome)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${dist_salomescript_SCRIPTS})
+++ /dev/null
-# Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
-# PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
-# 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.
-#
-# 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
-# -* Makefile *-
-#
-# Author :
-# Module : PARAVIS
-#
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-# non-distributed files
-nodist_salomescript_DATA = VERSION
-
-# distributed files
-dist_salomescript_SCRIPTS =
+++ /dev/null
-#!/bin/bash
-
-#
-# Tool for updating list of .in file for the SALOME project
-# and regenerating configure script
-#
-# Author :
-# Modified by : Alexander BORODIN (OCN) - autotools usage
-# Date : 10/10/2002
-
-
-ORIG_DIR=`pwd`
-CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
-
-########################################################################
-# Test if the KERNEL_ROOT_DIR is set correctly
-
-if test ! -d "${KERNEL_ROOT_DIR}"; then
- echo "failed : KERNEL_ROOT_DIR variable is not correct !"
- exit
-fi
-
-
-########################################################################
-# Test if the GUI_ROOT_DIR is set correctly
-
-if test ! -d "${GUI_ROOT_DIR}"; then
- echo "failed : GUI_ROOT_DIR variable is not correct !"
- exit
-fi
-
-cd ${CONF_DIR}
-ABS_CONF_DIR=`pwd`
-
-mkdir -p salome_adm/unix/config_files
-#cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/* salome_adm/unix/config_files
-#cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/pythonbe.py salome_adm/unix
-
-cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/SALOMEconfig.h.in salome_adm/unix
-
-#cp -f ${GUI_ROOT_DIR}/adm_local/unix/config_files/* salome_adm/unix/config_files
-
-# remove KERNEL deprecated configure files
-#for deprecated in ac_cc_warnings.m4 ac_cxx_partial_specialization.m4 \
-# check_mico.m4 config.guess ltmain.sh ac_cxx_bool.m4 ltconfig ac_cxx_typename.m4 \
-# check_pthreads.m4 config.sub libtool.m4 ac_cxx_mutable.m4 missing
-# do
-# rm -f salome_adm/unix/config_files/${deprecated}
-# done
-
-if test ! -f "${PVHOME}/include/paraview-${PVVERSION}/vtkSMProxyManager.h"; then
- echo "failed : PVHOME variable is not correct !"
- exit
-fi
-
-`pvpython getwrapclasses.py`
-
-#file hints contain the size of returned arrays
-cp -f ${PVHOME}/lib/paraview-${PVVERSION}/hints idl/hints
-if [ -f idl/hints_paravis ]; then
- cat idl/hints_paravis >> idl/hints
-fi
-
-# ____________________________________________________________________
-# aclocal creates the aclocal.m4 file from the standard macro and the
-# custom macro embedded in the directory salome_adm/unix/config_files
-# and KERNEL config_files directory.
-# output:
-# aclocal.m4
-# autom4te.cache (directory)
-echo "====================================================== aclocal"
-
-aclocal -I adm_local/unix/config_files \
- -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
- -I ${GUI_ROOT_DIR}/adm_local/unix/config_files || exit 1
-
-# ____________________________________________________________________
-# libtoolize creates some configuration files (ltmain.sh,
-# config.guess and config.sub). It only depends on the libtool
-# version. The files are created in the directory specified with the
-# AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac).
-# output:
-# salome_adm/unix/config_files/config.guess
-# salome_adm/unix/config_files/config.sub
-# salome_adm/unix/config_files/ltmain.sh
-#echo "====================================================== libtoolize"
-
-libtoolize --force --copy --automake || exit 1
-
-# ____________________________________________________________________
-# autoconf creates the configure script from the file configure.ac (or
-# configure.in if configure.ac doesn't exist)
-# output:
-# configure
-echo "====================================================== autoconf"
-
-autoconf
-
-# ____________________________________________________________________
-# automake creates some scripts used in building process
-# (install-sh, missing, ...). It only depends on the automake
-# version. The files are created in the directory specified with the
-# AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac). This step also
-# creates the Makefile.in files from the Makefile.am files.
-# output:
-# salome_adm/unix/config_files/compile
-# salome_adm/unix/config_files/depcomp
-# salome_adm/unix/config_files/install-sh
-# salome_adm/unix/config_files/missing
-# salome_adm/unix/config_files/py-compile
-# Makefile.in (from Makefile.am)
-echo "====================================================== automake"
-
-automake --copy --gnu --add-missing
+++ /dev/null
-#!/bin/sh
-
-rm -rf autom4te.cache aclocal.m4 configure make_config
-find . -name "*~" -print -exec rm {} \;
-find . -name "*.pyc" -print -exec rm {} \;
-#exit
-# ==================== ON SORT AVANT
-
-find bin -name Makefile.in | xargs rm -f
-find doc -name Makefile.in | xargs rm -f
-find idl -name Makefile.in | xargs rm -f
-find resources -name Makefile.in | xargs rm -f
-find salome_adm -name Makefile.in | xargs rm -f
-find src -name Makefile.in | xargs rm -f
-rm -f Makefile.in
+++ /dev/null
-#
-# PLEASE DO NOT MODIFY configure.in FILE
-#
-# ALL CHANGES WILL BE DISCARDED BY THE NEXT
-# build_configure COMMAND
-#
-# CHANGES MUST BE MADE IN configure.in.base FILE
-#
-#
-# Author : Marc Tajchman (CEA)
-# Date : 28/06/2001
-# Modified by : Patrick GOLDBRONN (CEA)
-# Modified by : Marc Tajchman (CEA)
-#
-# Created from configure.in.base
-#
-
-AC_INIT([PARAVIS - SALOME GUI for ParaView], [0.1.0], [webmaster.salome@opencascade.com], [PARAVIS])
-AC_CONFIG_AUX_DIR(salome_adm/unix/config_files)
-AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE([-Wno-portability])
-
-XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
-AC_SUBST(XVERSION)
-
-# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
-MODULE_NAME=paravis
-AC_SUBST(MODULE_NAME)
-
-dnl
-dnl Initialize source and build root directories
-dnl
-
-ROOT_BUILDDIR=`pwd`
-ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
-cd $ROOT_SRCDIR
-ROOT_SRCDIR=`pwd`
-cd $ROOT_BUILDDIR
-
-AC_SUBST(ROOT_SRCDIR)
-AC_SUBST(ROOT_BUILDDIR)
-
-echo
-echo Source root directory : $ROOT_SRCDIR
-echo Build root directory : $ROOT_BUILDDIR
-echo
-echo
-
-AC_CHECK_PROG(SHELL,sh)
-AC_SUBST(SHELL)
-
-if test -z "$AR"; then
- AC_CHECK_PROGS(AR,ar xar,:,$PATH)
-fi
-AC_SUBST(AR)
-
-dnl Export the AR macro so that it will be placed in the libtool file
-dnl correctly.
-export AR
-
-echo
-echo ---------------------------------------------
-echo testing make
-echo ---------------------------------------------
-echo
-
-AC_PROG_MAKE_SET
-AC_PROG_INSTALL
-dnl
-dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + pour les librairies dynamiques !
-
-AC_ENABLE_DEBUG(yes)
-AC_DISABLE_PRODUCTION
-
-echo ---------------------------------------------
-echo testing libtool
-echo ---------------------------------------------
-
-dnl first, we set static to no!
-dnl if we want it, use --enable-static
-AC_ENABLE_STATIC(no)
-
-AC_LIBTOOL_DLOPEN
-AC_PROG_LIBTOOL
-
-dnl Fix up the INSTALL macro if it s a relative path. We want the
-dnl full-path to the binary instead.
-case "$INSTALL" in
- *install-sh*)
- INSTALL="\${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/install-sh -c"
- ;;
-esac
-
-echo
-echo ---------------------------------------------
-echo Testing CMake
-echo ---------------------------------------------
-echo
-
-AC_CHECK_PROG(HAS_CMAKE,cmake,"yes")
-AM_CONDITIONAL(BUILD_PLUGINS, test "$HAS_CMAKE" = "yes")
-if test "$HAS_CMAKE" != "yes"; then
- AC_MSG_WARN(CMake not found so ParaView plugins will not be built)
-fi
-
-echo
-echo ---------------------------------------------
-echo testing C/C++
-echo ---------------------------------------------
-echo
-
-cc_ok=no
-dnl inutil car libtool
-dnl AC_PROG_CC
-AC_PROG_CXX
-AC_CXX_WARNINGS
-AC_CXX_TEMPLATE_OPTIONS
-AC_DEPEND_FLAG
-# AC_CC_WARNINGS([ansi])
-cc_ok=yes
-
-dnl Library libdl :
-AC_CHECK_LIB(dl,dlopen)
-
-dnl add library libm :
-AC_CHECK_LIB(m,ceil)
-
-dnl Library librt : for alpha/osf
-AC_CHECK_LIB(rt,nanosleep)
-
-dnl
-dnl Check if we use std iostream by default or if we must add
-dnl a compiler directive for that
-dnl
-
-AC_CXX_USE_STD_IOSTREAM
-
-dnl
-dnl Well we use sstream which is not in gcc pre-2.95.3
-dnl We must test if it exists. If not, add it in include !
-dnl
-
-AC_CXX_HAVE_SSTREAM
-
-dnl
-dnl ---------------------------------------------
-dnl testing linker
-dnl ---------------------------------------------
-dnl
-
-AC_LINKER_OPTIONS
-
-dnl
-dnl ---------------------------------------------
-dnl testing MPICH
-dnl ---------------------------------------------
-dnl
-
-CHECK_MPI
-CHECK_MPICH
-
-dnl
-dnl ---------------------------------------------
-dnl testing WITHIHM
-dnl ---------------------------------------------
-dnl
-
-CHECK_WITHIHM
-
-echo
-echo ---------------------------------------------
-echo testing LEX \& YACC
-echo ---------------------------------------------
-echo
-
-lex_yacc_ok=no
-AC_PROG_YACC
-AC_PROG_LEX
-lex_yacc_ok=yes
-
-echo
-echo ---------------------------------------------
-echo testing python
-echo ---------------------------------------------
-echo
-
-CHECK_PYTHON
-
-AM_PATH_PYTHON(2.3)
-
-dnl echo
-dnl echo ---------------------------------------------
-dnl echo testing java
-dnl echo ---------------------------------------------
-dnl echo
-
-dnl CHECK_JAVA
-
-echo
-echo ---------------------------------------------
-echo testing swig
-echo ---------------------------------------------
-echo
-
-CHECK_SWIG
-
-echo
-echo ---------------------------------------------
-echo testing threads
-echo ---------------------------------------------
-echo
-
-ENABLE_PTHREADS
-
-echo
-echo ---------------------------------------------
-echo testing omniORB
-echo ---------------------------------------------
-echo
-
-CHECK_OMNIORB
-
-dnl echo
-dnl echo ---------------------------------------------
-dnl echo testing mico
-dnl echo ---------------------------------------------
-dnl echo
-
-dnl CHECK_MICO
-
-echo
-echo ---------------------------------------------
-echo default ORB : omniORB
-echo ---------------------------------------------
-echo
-
-DEFAULT_ORB=omniORB
-CHECK_CORBA
-
-AC_SUBST_FILE(CORBA)
-corba=make_$ORB
-CORBA=adm_local/unix/$corba
-
-echo
-echo ---------------------------------------------
-echo testing openGL
-echo ---------------------------------------------
-echo
-
-CHECK_OPENGL
-
-echo
-echo ---------------------------------------------
-echo testing QT
-echo ---------------------------------------------
-echo
-
-CHECK_QT
-
-echo
-echo ---------------------------------------------
-echo testing HDF5
-echo ---------------------------------------------
-echo
-
-CHECK_HDF5
-
-echo
-echo ---------------------------------------------
-echo testing ParaView
-echo ---------------------------------------------
-echo
-
-CHECK_PARAVIEW
-
-echo
-echo ---------------------------------------------
-echo Testing OpenCascade
-echo ---------------------------------------------
-echo
-
-CHECK_CAS
-
-echo
-echo ---------------------------------------------
-echo Testing html generators
-echo ---------------------------------------------
-echo
-
-CHECK_HTML_GENERATORS
-
-echo
-echo ---------------------------------------------
-echo Testing Kernel
-echo ---------------------------------------------
-echo
-
-CHECK_KERNEL
-
-echo
-echo ---------------------------------------------
-echo Testing GUI
-echo ---------------------------------------------
-echo
-
-CHECK_SALOME_GUI
-
-echo
-echo ---------------------------------------------
-echo testing VISU
-echo ---------------------------------------------
-echo
-
-CHECK_VISU
-
-echo
-echo ---------------------------------------------
-echo testing MED
-echo ---------------------------------------------
-echo
-
-CHECK_MED
-
-AM_CONDITIONAL(MED_ENABLE_MULTIPR, [test "$ENABLE_MULTIPR" = yes])
-
-echo
-echo ---------------------------------------------
-echo Summary
-echo ---------------------------------------------
-echo
-
-echo Configure
-variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok hdf5_ok paraview_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok SalomeGUI_ok Visu_ok Med_ok"
-
-for var in $variables
-do
- printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
- eval echo \$$var
-done
-
-# Generating makefiles for ParaView plugins using CMake
-# cmake executable must be available in PATH
-if test "$HAS_CMAKE" = "yes"; then
-
- echo
- echo ---------------------------------------------
- echo Invoking CMake to generate Makefiles for ParaView plugins
- echo ---------------------------------------------
- echo
-
- curdir=`pwd`
- if ! test -d ${ROOT_BUILDDIR}/src/Plugins; then
- mkdir -p ${ROOT_BUILDDIR}/src/Plugins
- fi
- cd ${ROOT_BUILDDIR}/src/Plugins
- cmake -D ParaView_DIR=${PVHOME}/lib/paraview-${PVVERSION} -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=${prefix}/lib/paraview ${ROOT_SRCDIR}/src/Plugins
- cd $curdir
-fi
-
-
-dnl We don t need to say when we re entering directories if we re using
-dnl GNU make becuase make does it for us.
-if test "X$GMAKE" = "Xyes"; then
- AC_SUBST(SETX) SETX=":"
-else
- AC_SUBST(SETX) SETX="set -x"
-fi
-echo
-echo ---------------------------------------------
-echo generating Makefiles and configure files
-echo ---------------------------------------------
-echo
-
-AC_OUTPUT_COMMANDS([ \
- chmod +x ./bin/*; \
-])
-
-# This list is initiated using autoscan and must be updated manually
-# when adding a new file <filename>.in to manage. When you execute
-# autoscan, the Makefile list is generated in the output file configure.scan.
-# This could be helpfull to update de configuration.
-AC_OUTPUT([ \
- ./salome_adm/unix/SALOMEconfig.h \
- ./adm_local/Makefile \
- ./adm_local/unix/Makefile \
- ./adm_local/unix/config_files/Makefile \
- ./bin/VERSION \
- ./bin/Makefile \
- ./doc/Makefile \
- ./doc/salome/Makefile \
- ./doc/salome/gui/Makefile \
- ./doc/salome/gui/doxyfile \
- ./idl/Makefile \
- ./src/Makefile \
- ./src/PVGUI/Makefile \
- ./src/PV_SWIG/Makefile \
- ./src/ENGINE/Makefile \
- ./resources/Makefile \
- ./resources/PARAVISCatalog.xml \
- ./PARAVIS_version.h \
- Makefile \
-])
-
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# PARAVIS : ParaView wrapper SALOME module
+#
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# -* Makefile *-
+#
+# Author : Margarita KARPUNINA (OCN)
+# Date : 05/12/2008
+# $Header$
+#
+
+SET(SUBDIRS
+ salome
+)
+
+# dev_docs:
+# (cd salome && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
+
+# docs: dev_docs
+
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="OpenOffice.org 2.2 (Linux)">
+ <META NAME="CREATED" CONTENT="20100112;18335600">
+ <META NAME="CHANGED" CONTENT="20100126;17235200">
+ <STYLE TYPE="text/css">
+ <!--
+ H2 { margin-top: 0.33in; margin-bottom: 0.08in; color: #ff0000; text-align: left }
+ H2.western { font-family: "Liberation Serif", serif; font-size: 14pt }
+ H2.cjk { font-family: "DejaVu Sans"; font-size: 14pt }
+ H2.ctl { font-family: "DejaVu Sans"; font-size: 14pt }
+ -->
+ </STYLE>
+</HEAD>
+<BODY LANG="en-US" DIR="LTR">
+<P ALIGN=CENTER><FONT SIZE=6><B>PARAVIS development</B></FONT></P>
+<P ALIGN=CENTER><FONT SIZE=6><B>General architecture of PARAVIEW
+extractor</B></FONT></P>
+<H1 STYLE="page-break-before: always"><A NAME="1.Introduction|outline"></A>
+<A HREF="#1.Introduction|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>1.Introduction</B></FONT></FONT></A></H1>
+<P><A HREF="#2.General architecture|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>2.General
+architecture</B></FONT></FONT></A></P>
+<P><A HREF="#3.Automatic generation of container classes|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.Automatic
+generation of container classes</B></FONT></FONT></A></P>
+<H1><A NAME="3.1. Source files related to PARAVIS server definition|outline"></A>
+<A HREF="#3.1. Source files related to PARAVIS server definition|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.1.
+Source files related to PARAVIS server definition</B></FONT></FONT></A></H1>
+<P><A HREF="#3.2. Process of generation|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.2.
+Process of generation</B></FONT></FONT></A></P>
+<P><A HREF="#3.3. Definition of IDL interfaces|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.3.
+Definition of IDL interfaces</B></FONT></FONT></A></P>
+<P><A HREF="#3.4. Base interface and its implementation|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.4.
+Base interface and its implementation</B></FONT></FONT></A></P>
+<H1><A NAME="3.5. GUI events queue|outline"></A><A HREF="#3.5. GUI events queue|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.5.
+GUI events queue</B></FONT></FONT></A></H1>
+<P><A HREF="#3.6. Overloaded methods definition|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.6.
+Overloaded methods definition</B></FONT></FONT></A></P>
+<P><A HREF="#3.7. Creation of objects in Python|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.7.
+Creation of objects in Python</B></FONT></FONT></A></P>
+<P><A HREF="#3.8. servermanager.py and simple.py|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>3.8.
+servermanager.py and simple.py</B></FONT></FONT></A></P>
+<P><A HREF="#4.Trace functionality|outline"><FONT FACE="Liberation Serif, serif"><FONT SIZE=4 STYLE="font-size: 15pt"><B>4.Trace
+functionality</B></FONT></FONT></A></P>
+<P><BR><BR>
+</P>
+<P><BR><BR>
+</P>
+<H1>Introduction</H1>
+<P>This document describes development of ParaView server manager API
+for PARAVIS module. The new API must provide following features:</P>
+<OL>
+ <LI><P>Define interaction between two different processes: Python
+ console and PARAVIS GUI defined in SALOME desktop.</P>
+ <LI><P>Make possible to manage PARAVIS GUI and ParaView server data
+ from Python scripts in synchronized mode.</P>
+ <LI><P>The new API must be similar as much as possible to the API
+ provided by servermanager.py module from ParaView in order to make
+ possible launching the same scripts as in ParaView as in PARAVIS
+ without modifications.</P>
+</OL>
+<P>General architecture and development features of this task are
+described below.</P>
+<H1><A NAME="2.General architecture|outline"></A>General architecture</H1>
+<P>Main components of PARAVIS architecture and their relations can be
+represented as on the following picture:</P>
+<P><IMG SRC="GeneralArchitecture_html_m4ed0a034.gif" NAME="graphics1" ALIGN=LEFT WIDTH=100% BORDER=0><BR CLEAR=LEFT><BR><BR>
+</P>
+<P>The usual way to implement SALOME module is to develop a
+Data/Algorithms engine unit as a CORBA server and module GUI as a
+CORBA client. But in case if we need to use GUI and Algorithms from
+Python console (what usually is an external process) in synchronized
+mode then we have to implement them together as a CORBA server within
+a one process.</P>
+<P>On the diagram above following component are shown:
+</P>
+<UL>
+ <LI><P>PARAVIS module GUI which is responsible for creation of
+ necessary widgets within SALOME Desktop, initialization of ParaView
+ client objects, connection of ParaView GUI objects to created
+ widgets.</P>
+ <LI><P>ParaView client code is a set of ParaView objects what
+ provides ParaView GUI.</P>
+ <LI><P>ParaView server for PARAVIS module can be used as built-in
+ (by default) as remote. For connection to remote server it is
+ necessary to use corresponded menu commands connect/disconnect as it
+ is used in standard ParaView GUI client.</P>
+ <LI><P>ParaView server manager API is a set of classes provided by
+ ParaView for definition of API for Python interpreter.</P>
+ <LI><P>Container objects - implementation of CORBA servants for
+ wrapping server manager object instances and redirection of CORBA
+ interface calls to corresponded server manager object.</P>
+</UL>
+<H1><A NAME="3.Automatic generation of container classes|outline"></A>
+Automatic generation of container classes</H1>
+<H2 CLASS="western">Source files related to PARAVIS server definition</H2>
+<P STYLE="margin-bottom: 0in">In PARAVIS_SRC/idl/ directory:</P>
+<OL>
+ <LI><P><B>PARAVIS_Gen.idl</B> – defines main interfaces to PARAVIS
+ module.</P>
+ <LI><P><B>PARAVIS_Gen_Types.idl</B> – defines data collection
+ types.</P>
+ <LI><P><B>hints_paravis</B> – defines sizes of arrays missed in
+ standard VTK hints file. If some functions of VTK classes which
+ return array data are not extracted then it is necessary to edit
+ this file in order to describe missed functions.</P>
+ <LI><P><B>pythonIDL.py</B> – command file which is used for
+ extraction of IDL interfaces to Python files. This is modification
+ of similar file from omniidl product what takes into account
+ overloading of methods in class.</P>
+ <LI><P><B>vtkWrapIDL.c</B> – source file for building extraction
+ executables: <SPAN STYLE="font-weight: medium">vtkWrapIDL,
+ vtkWrapIDL_CC, vtkWrapIDL_HH.</SPAN></P>
+</OL>
+<P STYLE="font-weight: medium">In PARAVIS_SRC/src/PVGUI directory:</P>
+<OL>
+ <LI><P><B>PARAVIS_Gen_i.cc</B> <SPAN STYLE="font-weight: medium">and
+ </SPAN><B>PARAVIS_Gen_i.hh</B> – <SPAN STYLE="font-weight: medium">implementation
+ of PARAVIS_Gen interface.</SPAN></P>
+ <LI><P><B>PV_Events.h</B> – <SPAN STYLE="font-weight: medium">defines
+ events for synchronization of CORBA client calls with main GUI
+ events queue.</SPAN></P>
+ <LI><P STYLE="font-weight: medium">Other files are related to GUI
+ definition and auxiliary tools.</P>
+</OL>
+<P STYLE="font-weight: medium">In <SPAN STYLE="font-weight: medium">PARAVIS_SRC/src/PV_SWIG
+directory:</SPAN></P>
+<OL>
+ <LI><P STYLE="font-weight: medium"><B>paravis.py</B> – <SPAN STYLE="font-weight: medium">general
+ Python module for PARAVIS. It installs connection to PARAVIS CORBA
+ server, defines a variable </SPAN><B>myParavis</B> <SPAN STYLE="font-weight: medium">in
+ order to provide acces to </SPAN><B>PARAVIS_Gen</B> <SPAN STYLE="font-weight: medium">functions,
+ creates a set of empty constructors for all extracted ParaView
+ classes.</SPAN></P>
+ <LI><P STYLE="font-weight: medium"><B>paravisSM.py</B> – <SPAN STYLE="font-weight: medium">modified
+ copy of servermanager.py module from ParaView. Modification done
+ according to conventions defined by paravis.py module and features
+ of working with CORBA server.</SPAN></P>
+ <LI><P STYLE="font-weight: medium"><B>pvsimple.py</B> – <SPAN STYLE="font-weight: medium">modified
+ copy of simple.py module from ParaView. Modifications done because
+ of the same reasons.</SPAN></P>
+</OL>
+<H2 CLASS="western">Process of generation</H2>
+<P>CORBA servant classes for wrapping of server manager API classes
+is generated automatically. The process of building PARAVIS module
+with generation of wrappers is performed in the following way:</P>
+<OL>
+ <LI><P>Call <B>build_configure</B> script. During performing of this
+ script it performs some standard steps of SALOME module building and
+ calls a Python command file <B>getwrapclasses.py</B> is called. This
+ procedure creates a list of ParaView and VTK class names what has to
+ be extracted. This list includes all <B>vtkSM*</B> classes and <B>vtk*
+ </B>classes what are referred by previous group of classes. Results
+ of build_configure step are:</P>
+ <OL TYPE=a>
+ <LI><P>idl/wrap.am – defines variables what lists all interfaces
+ (*.idl and *.cc files) what will be generated.</P>
+ <LI><P>idl/vtkWrapIDL.h – defines a list of extracted classes in
+ form of char* array.</P>
+ <LI><P>src/PVGUI/wrap.am - defines variables what lists all servant
+ classes (*.hh and *.cc files) what will be generated.</P>
+ <LI><P>src/PVGUI/PARAVIS_CreateClass.cxx is a C++ file what
+ contains a one function CreateInstance. This function creates a
+ servant class which corresponds to a given name of original
+ ParaView/VTK class.</P>
+ </OL>
+ <LI><P>Launch <B>configure</B> script from a build directory. This
+ step is similar to the same steps in other SALOME modules and does
+ not have any special related to automatic generation of CORBA
+ interfaces.</P>
+ <LI><P>Call <B>make</B> command in build directory. This command
+ does following steps related to automatic generation:</P>
+ <OL TYPE=a>
+ <LI><P>Builds <B>vtkWrapIDL</B> executable in <B>idl</B> directory
+ what is responsible for generation of IDL files using names of
+ classes to wrap. This executable analyzes related header files for
+ classes from vtkWrapIDL.h and defines corresponded IDL file.</P>
+ <LI><P>Defines all IDL files with help of this executable and
+ launches standard SALOME compilation for <B>idl</B> directory.</P>
+ <LI><P>Compiles <B>vtkWrapIDL_CC </B><SPAN STYLE="font-weight: medium">and
+ </SPAN><B>vtkWrapIDL_HH</B> <SPAN STYLE="font-weight: medium">executables
+ in src/PVGUI directory what are responsible for generation of
+ header files (*.hh) and implementation files (*.cc) for servants
+ classes.</SPAN></P>
+ <LI><P STYLE="font-weight: medium">Generation of servant classes
+ with help of these executables and building the library.</P>
+ </OL>
+ <LI><P><SPAN STYLE="font-weight: medium">Call </SPAN><B>make install</B>
+ <SPAN STYLE="font-weight: medium">command in build directory. This
+ will finalize building of libraries and generate Python files for
+ IDL interfaces.</SPAN></P>
+</OL>
+<P STYLE="font-weight: medium"><SPAN STYLE="background: transparent">Note:</SPAN></P>
+<P STYLE="font-weight: medium"><SPAN STYLE="background: transparent">make
+command can not be used with -j key because extraction of parent
+classes should be done before extraction of child classes.</SPAN></P>
+<H2 CLASS="western">Definition of IDL interfaces</H2>
+<P>Process of IDL interfaces generation has to respect following
+restrictions of IDL format:</P>
+<OL>
+ <LI><P>IDL does not support several functions with the same name
+ within a one interface definition. Even they have different
+ parameters (overloading of methods as in C++). Also this is not
+ supported between parent and its ancestors.</P>
+ <LI><P>In context of PARAVIS it is difficult to extract methods what
+ accept or return “void*” data type. In IDL it can be described
+ as “ANY” data type, but in context of ParaView it is not clear
+ to what type it has to be casted.</P>
+</OL>
+<P>IDL interfaces extracted following to the next principals:</P>
+<OL>
+ <LI><P>All interfaces are inherited from a common parent interface
+ Base.
+ </P>
+ <LI><P>Each interface includes all extracted methods of its
+ prototype class including all its parents.</P>
+ <LI><P>If the prototype class contains overloaded methods (methods
+ with the same name) then each appearance of this method name is
+ supplied with index.</P>
+ <LI><P>If prototype class contains methods which return or accept
+ void* then these methods are ignored.</P>
+ <LI><P>If prototype class contains methods which return array (int*,
+ double*, ...) which size is not defined in “hints” or
+ “hints_paravis” files then these methods are ignored.</P>
+ <LI><P><SPAN STYLE="background: transparent">If prototype class
+ contains methods which get a pointer to function then these methods
+ are ignored.</SPAN></P>
+ <LI><P>If a method of prototype class returns/accepts a pointer on
+ ParaView/VTK class instance then interface will return/accept Base
+ interface.</P>
+</OL>
+<H2 CLASS="western">Base interface and its implementation</H2>
+<P>Base interface is defined in order to satisfy following points:</P>
+<OL>
+ <LI><P>Sometimes we need to have a possibility to use a servant as a
+ pointer on a common interface.</P>
+ <LI><P>We need to have possibility to define a common auxiliary
+ methods for all generated interfaces which out of ParaView/VTK
+ definitions.</P>
+ <LI><P>We need to have a base implementation for all servant
+ classes.</P>
+</OL>
+<P>Currently Base class implements smart pointer on a vtkObjectBase
+instance and several methods to Get/Set this pointer. By default each
+ancestor class initializes this pointer with help of New() method.
+This useful for classes what contain static methods. But after this
+pointer can be reinitialized from outside what is used when we need
+to have access to certain instance.</P>
+<P>Also Base interface introduces a method IsSame(Base theOther). We
+need this method when it is necessary to compare two ParaView objects
+in Python process. In fact if we will apply standard operation “==”
+then we will compare two wrapper instances instead of ParaView
+objects instances. So, method IsSame(Base theOther) checks if two
+wrappers refer to the same ParaView instance or not.</P>
+<H2 CLASS="western">GUI events queue</H2>
+<P>Some calls of server manager API functions cause a modification of
+GUI state: creation of new widgets, update of widgets state,
+visualization of presentable objects in viewers. In our case we have
+two different processes: Python console and PARAVIS GUI. At the same
+moment the Python console “manages” PARAVIS GUI with help of
+server manager API functions calls. So, for correct performance of
+Python scripts the calls of Python commands have to be synchronized
+with PARAVIS GUI events queue.</P>
+<P>For this purposes all calls to server manager API from servant are
+additionally wrapped by event classes. Therefore implementation of
+servants methods accords to following general template:</P>
+<OL>
+ <LI><P>Get an encapsulated pointer on VTK object instance.</P>
+ <LI><P>Create a special event instance for target function call.</P>
+ <LI><P>Launch event and wait while it returns.</P>
+ <LI><P>Get result from event (if result is supposed).</P>
+ <LI><P>Return this result as result of servant method.</P>
+</OL>
+<P>For example:</P>
+<P>Class vtkSMProxyManager has a method GetProxy. This method
+implemented in corresponded servant class as following:</P>
+<TABLE WIDTH=100% BORDER=1 BORDERCOLOR="#000000" CELLPADDING=3 CELLSPACING=0>
+ <COL WIDTH=12*>
+ <COL WIDTH=164*>
+ <COL WIDTH=80*>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#000080">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>#</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#000080">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Code</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#000080">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Remarks</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>1</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>//C++:
+ vtkSMProxy *GetProxy (const char *groupname, const char *name);</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>2</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>struct
+ CreateEventName(GetProxy_0): public SALOME_Event</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Generation
+ of unique event class name with help of a special macros</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>3</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>{</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>4</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>typedef
+ ::vtkSMProxy* TResult;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>5</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>TResult
+ myResult;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Definition
+ of the return type</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>6</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>typedef
+ ::vtkSMProxyManager* TObj;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>7</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>TObj
+ myObj;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Definition
+ of parameters</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>8</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>typedef
+ char* TParam0;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>9</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>TParam0
+ myParam0;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>10</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>typedef
+ char* TParam1;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>11</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>TParam1
+ myParam1;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>12</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>13</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>CreateEventName(GetProxy_0)(TObj
+ theObj, TParam0 theParam0, TParam1 theParam1):</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Constructor
+ of event. Defines object instance and necessary parameters</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>14</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>myObj(theObj),
+ myParam0(theParam0), myParam1(theParam1)</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>15</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>{
+ }</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>16</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>17</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>virtual
+ void Execute()</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Execution
+ method.</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>18</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>{</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>19</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>myResult
+ = myObj->GetProxy(myParam0, myParam1);</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Call
+ of target method</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>20</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>}</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>21</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>};</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>22</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>//</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>23</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>PARAVIS_Base_ptr
+ vtkSMProxyManager_i::GetProxy_0 (const char *temp0, const char
+ *temp1) {</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Implementation
+ of servant method</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>24</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>try
+ {</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>25</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>char
+ *c_temp0 = CORBA::string_dup(temp0);</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Getting
+ parameters</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>26</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>char
+ *c_temp1 = CORBA::string_dup(temp1);</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>27</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>::vtkSMProxy*
+ avtkSMProxy = (getVTKObject() != NULL) ? ProcessEvent(new
+ CreateEventName(GetProxy_0)((::vtkSMProxyManager*)getVTKObject(),
+ c_temp0 , c_temp1)):NULL;</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>If
+ wrapped object is defined then create event and launch it. Finally
+ it will return result.</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>28</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>29</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>if(avtkSMProxy
+ == NULL) {</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>30</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>return
+ PARAVIS::vtkSMProxy::_nil();</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>31</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>}</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>32</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>PARAVIS_Base_i*
+ aPtr = ::CreateInstance(<FONT COLOR="#000000"><SPAN STYLE="text-decoration: none"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><SPAN STYLE="font-weight: medium">avtkSMProxy</SPAN></FONT></FONT></SPAN></FONT>,
+ avtkSMProxy->GetClassName());</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Create
+ a wrapper (servant) class according to class name of result object</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>33</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>aPtr->Init(avtkSMProxy);</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Initialize
+ the internal pointer of wrapper class by result</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>34</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>return
+ aPtr->_this();</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>Return
+ wrapper instance as result</I></FONT></FONT></FONT></P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>35</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>}
+ catch(...) {</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>36</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>MESSAGE("GetProxy
+ - Unknown exception was occurred!!!");</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>37</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>return
+ PARAVIS::vtkSMProxy::_nil();</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>38</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#ffffff">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>}</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+ <TR VALIGN=TOP>
+ <TD WIDTH=5% BGCOLOR="#4d4d4d">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#ffffff"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>39</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=64% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT STYLE="font-weight: medium; text-decoration: none"><FONT COLOR="#000000"><FONT FACE="Liberation Serif, serif"><FONT SIZE=2><I>}</I></FONT></FONT></FONT></P>
+ </TD>
+ <TD WIDTH=31% BGCOLOR="#cccccc">
+ <P ALIGN=LEFT><BR>
+ </P>
+ </TD>
+ </TR>
+</TABLE>
+<P STYLE="margin-bottom: 0in"><BR>
+</P>
+<H2 CLASS="western">Overloaded methods definition</H2>
+<P>Classes of ParaView server manager API have overloaded methods. As
+it is mentioned above description of IDL interface prohibits using of
+the same name for various methods even they have different
+parameters. To avoid this limitation we have to add index to name in
+each appearance of overloaded method. But at Python script level it
+is necessary to avoid using of function names with indexes. It is
+necessary to provide possibility to use methods as they was defined
+in API of corresponded class.</P>
+<P>For tis purposes we redefined standard IDL to Python wrapping in
+order to add a function which has a name of overloaded method and
+accepts any parameters. This function analyzes input parameters and
+selects what function (with which index) it has to be called.</P>
+<P>For example:</P>
+<P>vtkObject class contains definition of overloaded functions:</P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>void RemoveObservers
+(unsigned long event);</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>void RemoveObservers
+(const char *event);</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><BR>
+</P>
+<P STYLE="margin-bottom: 0in">In IDL interface these function will be
+defined as:</P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>void _RemoveObservers_0
+(in long temp0);</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>void _RemoveObservers_1
+(in string temp0);</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><BR>
+</P>
+<P STYLE="margin-bottom: 0in; font-style: normal">These functions
+will be wrapped by standard IDL to Python wrapper as it is (with
+indexes). But we need to call this function in Python as they were
+defined in vtkObject definition – by name “RemoveObservers”.
+For this purposes we modify IDL to Python wrapper in order to add the
+following function:</P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>def
+RemoveObservers(self, *args):</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>if len(args) == 1 and
+(type(args[0]) in [IntType, LongType]):</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>return
+self.RemoveObservers_0(*args)</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>if len(args) == 1 and
+(type(args[0]) in [StringType]):</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>return
+self.RemoveObservers_1(*args)</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><FONT SIZE=2><I>print 'Warning: The
+corresponding method of RemoveObservers group is not found for ' +
+str(args)</I></FONT></P>
+<P STYLE="margin-bottom: 0in"><BR>
+</P>
+<P STYLE="margin-bottom: 0in">After this we can use function
+RemoveObserves in Python as it was defined without indexes.</P>
+<H2 CLASS="western">Creation of objects in Python</H2>
+<P>Creation of CORBA object on client side is not so trivial as
+usually. When client requests a creation of object then it has to be
+created:
+</P>
+<UL>
+ <LI><P>CORBA client object instance on client side,
+ </P>
+ <LI><P>CORBA servant instance on server side
+ </P>
+ <LI><P>and both of them are connected to each other across CORBA
+ interface.
+ </P>
+</UL>
+<P STYLE="margin-bottom: 0.08in">More simplest way is to request an
+object from PARAVIS server interface <B>PARAVIS_Gen</B>. For this
+purposes a method <B>CreateClass</B> function in <B>PARAVIS_Gen
+</B>interface is defined. Also there is a function <B>GetClassesList</B>
+which returns list of names of extracted classes. Both these methods
+let to define a set of functions which looks like an object
+constructor for all extracted classes.
+</P>
+<P STYLE="margin-bottom: 0.08in">These definitions done in paravis.py
+module with help of createConstructors function. Result of this
+function is a set of functions which looks like vtkClassName(). These
+functions return an object instance which wraps a pointer on
+requested class vtkClassName instance with corresponded API.</P>
+<P STYLE="margin-bottom: 0.08in">For example call in Python console</P>
+<P STYLE="margin-bottom: 0.08in"><FONT SIZE=2><I>> a =
+vtkSMProxyManager()</I></FONT></P>
+<P STYLE="margin-bottom: 0.08in">returns an instance of
+PARAVIS_Gen_vtkSMProxyManager object on client side which implements
+all methods of vtkSMProxyManager class readdressing them to
+incapsulated vtkSMProxyManager instance on server side.</P>
+<H2 CLASS="western">servermanager.py and simple.py</H2>
+<P STYLE="margin-bottom: 0.08in">In ParaView Python API is defined
+with help of two modules servermanager.py and simple.py. PARAVIS has
+corresponded modules paravisSM.py and pvsimple.py. Because of actions
+described above we got a set of Python interfaces which is very close
+to original Python API of ParaView. So, PARAVIS Python modules have
+fiew modifications in comparison to original ones. These
+modifications mainly related to:</P>
+<OL>
+ <LI><P STYLE="margin-bottom: 0.08in">Already mentioned problem with
+ “==” operation to wrapper classes.</P>
+ <LI><P STYLE="margin-bottom: 0.08in">Impossibility to use observers.</P>
+ <LI><P STYLE="margin-bottom: 0.08in">Reimplementation of hidden code
+ existing in ParaView which is called in Python console on its
+ creation.</P>
+ <LI><P STYLE="margin-bottom: 0.08in">Providing access to Trace
+ functionality.</P>
+</OL>
+<H1><A NAME="4.Trace functionality|outline"></A>Trace functionality</H1>
+<P>Trace functionality in PARAVIS module is defined in GUI of module
+using already existing Python functions in ParaView.</P>
+<P>Because this trace functionality is used for “Dump Study”
+functionality defined in SALOME then tracing is started automatically
+on loading of PARAVIS module and registers all actions during whole
+session. In case if there are no necessity tracing can be switched
+off in preferences dialog box. But it is necessary to take into
+account that dumping of study can't be done for PARAVIS module in
+this case.</P>
+<P>To check the trace content there are two functions defined in
+pvsimple.py module and accessible in SALOME Python console:</P>
+<UL>
+ <LI><P>PrintTrace() - this function prints trace directly to Python
+ console</P>
+ <LI><P>SaveTrace(fileName) – this function outputs trace into disk
+ file according to given name.</P>
+</UL>
+<H1>Connection with other SALOME modules</H1>
+<P>According to SALOME general architecture each module independs
+from other modules by default. In general case adding of module to
+module dependency can be caused by necessity to transfer some data
+from one module to another. In this case a module consumer has to
+“know” about API of module supplier what is going to be used. If
+this API is not defined on a general module level then we have to use
+direct connection to module object instance what implements a
+necessary API.</P>
+<P>In general algorithm of connected to a module-supplier API on a
+module-consumer side looks like following:</P>
+<OL>
+ <LI><P>Find and load a module-supplier component CORBA object from
+ active study.</P>
+ <LI><P>Get a module-supplier engine from the component.</P>
+ <LI><P>Using of the engine to get necessary data.</P>
+</OL>
+</BODY>
+</HTML>
\ No newline at end of file
+++ /dev/null
-# PARAVIS : ParaView wrapper SALOME module
-#
-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# -* Makefile *-
-#
-# Author : Margarita KARPUNINA (OCN)
-# Date : 05/12/2008
-# $Header$
-#
-
-SUBDIRS = salome
-
-dev_docs:
- (cd salome && $(MAKE) $(AM_MAKEFLAGS) dev_docs)
-
-docs: dev_docs
-
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+ <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
+ <TITLE></TITLE>
+ <META NAME="GENERATOR" CONTENT="OpenOffice.org 2.2 (Linux)">
+ <META NAME="CREATED" CONTENT="20100112;19261000">
+ <META NAME="CHANGED" CONTENT="20100129;12431800">
+</HEAD>
+<BODY LANG="en-US" DIR="LTR">
+<P ALIGN=CENTER><FONT SIZE=6><B>PARAVIS development</B></FONT></P>
+<P ALIGN=CENTER><FONT SIZE=6><B>PARAVIS user documentation</B></FONT></P>
+<P STYLE="page-break-before: always"><A HREF="#1.Introduction|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>1.Introduction</B></SPAN></FONT></A></P>
+<P><A HREF="#2.Building environment|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>2.Building
+environment</B></SPAN></FONT></A></P>
+<P><A HREF="#3.VTK library|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>3.VTK
+library</B></SPAN></FONT></A></P>
+<P><A HREF="#4.Building of PARAVIS|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>4.Building
+of PARAVIS</B></SPAN></FONT></A></P>
+<P><A HREF="#5.Starting SALOME with PARAVIS|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>5.Starting
+SALOME with PARAVIS</B></SPAN></FONT></A></P>
+<P><A HREF="#6.Commands accessible in Python console|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>6.Commands
+accessible in Python console</B></SPAN></FONT></A></P>
+<P><A HREF="#7.Trace management|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>7.Trace
+management</B></SPAN></FONT></A></P>
+<P><A HREF="#8.PARAVIS GUI specific|outline"><FONT SIZE=4 STYLE="font-size: 15pt"><SPAN LANG="fr-FR"><B>8.PARAVIS
+GUI specific</B></SPAN></FONT></A></P>
+<H1><A NAME="1.Introduction|outline"></A>Introduction</H1>
+<P STYLE="margin-bottom: 0in">This document describes features of
+ParaView Python extractor using in PARAVIS module of SALOME platform.
+In general building of PARAVIEW module is not too much differ from
+usual process of any other SALOME module building, and result Python
+API extracted for using in SALOME Python console is similar to the
+server manager API of ParaView. But there are some features what is
+desirable to understand for effective using of extractor.</P>
+<H1><A NAME="2.Building environment|outline"></A>Building environment</H1>
+<P STYLE="margin-bottom: 0in; page-break-inside: auto">In addition to
+standard SALOME environment following environment variables has to be
+defined for PARAVIS building and testing:</P>
+<OL>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">PVHOME –
+ points to installation directory of ParaView.</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">PVVERSION
+ – defines a number of installed ParaView version.</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">PATH="${PVHOME}/bin:${PATH}"</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">LD_LIBRARY_PATH=”${PVHOME}/bin:${PVHOME}/lib/paraview-${PVVERSION}:${LD_LIBRARY_PATH}"</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">PYTHONPATH="${PVHOME}/bin:${PVHOME}/lib/paraview-${PVVERSION}:${PYTHONPATH}"</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">TESTDIR –
+ points to a directory which contains test script files. Usually it
+ is PARAVIS_SRC/test.</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">PVDATA –
+ points to ParaViewData directory.</P>
+</OL>
+<P STYLE="margin-bottom: 0in; page-break-inside: auto">Also it is
+necessary to check that PARAVIS_SRC directory contains following
+files and they are up-to-date:</P>
+<OL>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">src/Paraview/lex.yy.c</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">src/Paraview/vtkParse.tab.c</P>
+ <LI><P STYLE="margin-bottom: 0in; page-break-inside: auto">src/Paraview/vtkParse.h</P>
+</OL>
+<H1><A NAME="3.VTK library|outline"></A>VTK library</H1>
+<P STYLE="margin-bottom: 0in; page-break-inside: auto">SALOME already
+uses VTK library for visualization and post-processing purposes.
+PARAVIS also uses VTK library supplied with ParaView. In order to
+avoid problem with using of different versions of VTK library in
+different components of SALOME platform it is necessary to use the
+same version supplied with ParaView for all components and modules of
+SALOME.
+</P>
+<P STYLE="margin-bottom: 0in; page-break-inside: auto">For this
+purposes a new option “--with-paraview” has been defined for
+configure script. This option configures building procedure to use
+VTK from ParaView. It means that GUI package and all modules has to
+be configured with this option.</P>
+<H1><A NAME="4.Building of PARAVIS|outline"></A>Building of PARAVIS</H1>
+<P STYLE="margin-bottom: 0in; page-break-inside: auto"><BR>
+</P>
+<OL>
+ <LI><P ALIGN=JUSTIFY STYLE="margin-bottom: 0.08in; page-break-inside: auto; widows: 2; orphans: 2">
+ Call <FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><SPAN LANG="en-US"><B>build_</B></SPAN></FONT></FONT></FONT><B>configure</B>
+ script in sources directory:
+ </P>
+ <P ALIGN=JUSTIFY STYLE="margin-bottom: 0.08in; page-break-inside: auto; widows: 2; orphans: 2">
+ <I><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><SPAN LANG="en-US">>
+ </SPAN></FONT></FONT></FONT>build configure</I></P>
+ <LI><P>Launch <B>configure</B> script from a build directory.
+ </P>
+ <P><I>> ../PARAVIS_SRC/configure --prefix=$PARAVIS_ROOT_DIR</I></P>
+ <LI><P>Call <B>make</B> command in build directory.
+ </P>
+ <P><I>> make</I></P>
+ <LI><P ALIGN=JUSTIFY STYLE="margin-bottom: 0.08in; page-break-inside: auto; widows: 2; orphans: 2">
+ <FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><SPAN LANG="en-US"><B>Call
+ </B></SPAN></FONT></FONT></FONT><B>make install</B> <SPAN STYLE="font-weight: medium">command
+ in build directory. </SPAN>
+ </P>
+ <P ALIGN=JUSTIFY STYLE="margin-bottom: 0.08in; page-break-inside: auto; widows: 2; orphans: 2">
+ <I><SPAN STYLE="font-weight: medium">> </SPAN><FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=2><SPAN LANG="en-US"><SPAN STYLE="font-weight: medium">make
+ </SPAN></SPAN></FONT></FONT></FONT><SPAN STYLE="font-weight: medium">install</SPAN></I></P>
+</OL>
+<H1 ALIGN=LEFT STYLE="margin-top: 0.42in; margin-bottom: 0.08in; page-break-inside: avoid; widows: 2; orphans: 2; page-break-after: avoid"><A NAME="5.Starting SALOME with PARAVIS|outline"></A>
+<FONT COLOR="#000000"><FONT FACE="Arial, sans-serif"><FONT SIZE=4 STYLE="font-size: 16pt"><B>Starting
+SALOME with PARAVIS</B></FONT></FONT></FONT></H1>
+<P>> runSalome –modules="PARAVIS"</P>
+<P>If it is necessary then other SALOME modules can be added to
+“modules” list separated by comma.</P>
+<H1><A NAME="6.Commands accessible in Python console|outline"></A>Commands
+accessible in Python console</H1>
+<P>Loading ParaView Python API for PARAVIS can be done with help of
+command:</P>
+<P><I>> from pvsimple import *</I></P>
+<P>This command makes accessible the same Python API what provided by
+simple.py module in ParaView (see ParaView documentation).
+</P>
+<H1><A NAME="7.Trace management|outline"></A>Trace management</H1>
+<P>Last version of ParaView is supplied with trace functionality.
+PARAVIS also supports this feature. But in contrary to ParaView,
+which can start/stop trace in any moment, in PARAVIS trace is
+activating or deactivating for whole session.</P>
+<P>Trace functionality can be switched on/off in SALOME preferences
+dialog box in PARAVIS tab (main menu | Preferences...). It contains
+check box “Deactivate Trace”. By default the trace is activated.
+Change of check box state makes effect only for next session.</P>
+<P>User can get the trace with help of two commands (after pvsimple
+import):</P>
+<OL>
+ <LI><P>PrintTrace() - prints the trace content directly into Python
+ console window.</P>
+ <LI><P>SaveTrace(fileName) - saves the trace into a given disk file.</P>
+</OL>
+<P>Also trace is using for “Dump Study” functionality. But if the
+tracing is switched off then “Dump Study” doesn't saves PARAVIS
+module state.</P>
+<H1>SALOME study save</H1>
+<P>On SALOME study saving PARAVIS module data is also saved in the
+study. This data is saved in form of ParaView state file. ParaView
+state file could have references on external files imported during
+PARAVIS working session. These referenced files can be saved with the
+current study depending on preference “Paraview state saving type”
+defined in PARAVIS preferences dialog box. This preference can have
+three possible state:</P>
+<OL>
+ <LI><P>“Save referenced files only for built-in server”. In case
+ if this option is active then referenced files will be saved in
+ study together with ParaView state only if in PARAVIS was used
+ built-in ParaView server. In case of remote ParaView server the
+ state will be saved as it is without referenced files.</P>
+ <LI><P>“Always save referenced files if they are accessible”. In
+ this case referenced files will be saved with ParaView state for any
+ type of ParaView server but only in case if they are accessible
+ across local file system.</P>
+ <LI><P>“Never save referenced files”. In this case referenced
+ files will be never saved with ParaView state.</P>
+</OL>
+<P>It is necessary to be aware that if referenced files are not saved
+in study then there is no guarantee that the saved study will be
+opened correctly on other station or if the referenced files will be
+moved or deleted.</P>
+<H1><A NAME="8.PARAVIS GUI specific|outline"></A>PARAVIS GUI specific</H1>
+<P STYLE="margin-bottom: 0in; page-break-inside: auto">In fact
+PARAVIS is a ParaView GUI integrated into SALOME environment. General
+architecture of ParaView is very different from general architecture
+of SALOME. If SALOME is an application which is able to open several
+documents (studies) within one application session because it has
+multi-document architecture, then ParaView has a single document
+architecture what means that it can have only one document (data
+structure) opened within one session.</P>
+<P STYLE="margin-bottom: 0in; page-break-inside: auto">This leads to
+the fact that PARAVIS module can be opened only once within SALOME
+application session. It can be opened only in a first desktop
+appeared after SALOME launch. Other desktops, even they opened with
+study containing PARAVIS data, can not load PARAVIS module.</P>
+<P ALIGN=LEFT><BR><BR>
+</P>
+</BODY>
+</HTML>
\ No newline at end of file
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# PARAVIS : ParaView wrapper SALOME module
+#
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# -* Makefile *-
+#
+# Author : Margarita KARPUNINA (OCN)
+# Date : 05/12/2008
+# $Header$
+#
+
+SET(SUBDIRS
+ gui
+)
+SET(SUBDIRSGUI
+ gui
+)
+
+# dev_docs:
+# @@SETX@; for d in $(SUBDIRSGUI); do (cd $$d && $(MAKE) $@) || exit 1; done;
+
+# docs: dev_docs
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+++ /dev/null
-# PARAVIS : ParaView wrapper SALOME module
-#
-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# -* Makefile *-
-#
-# Author : Margarita KARPUNINA (OCN)
-# Date : 05/12/2008
-# $Header$
-#
-
-SUBDIRS = gui
-SUBDIRSGUI = gui
-
-dev_docs:
- @@SETX@; for d in $(SUBDIRSGUI); do \
- (cd $$d && $(MAKE) $@) || exit 1; \
- done;
-
-docs: dev_docs
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# PARAVIS : ParaView wrapper SALOME module
+#
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# -* Makefile *-
+#
+# Author : Margarita KARPUNINA (OCN)
+# Date : 05/12/2008
+# $Header$
+#
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(EXTRA_DIST
+ ${EXTRA_DIST}
+ images
+ static
+)
+
+# dev_docs: doxyfile
+# echo "Running doxygen in directory: "`pwd`; $(DOXYGEN) $<;
+
+# clean-local:
+# -rm -fr PARAVIS doxygen.bak
+
+# install-data-local:
+# if test -d PARAVIS; then $(INSTALL) -d $(DESTDIR)$(docdir)/gui ; cp -rp PARAVIS $(DESTDIR)$(docdir)/gui ; fi;
+
+# uninstall-local:
+# rm -rf $(DESTDIR)$(docdir)/gui/PARAVIS
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/doxyfile.in)
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/doxyfile)
+
+
+ MESSAGE(STATUS "Creation of ${output}")
+ CONFIGURE_FILE(${input} ${output})
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+++ /dev/null
-# PARAVIS : ParaView wrapper SALOME module
-#
-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# -* Makefile *-
-#
-# Author : Margarita KARPUNINA (OCN)
-# Date : 05/12/2008
-# $Header$
-#
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-EXTRA_DIST += images static
-
-dev_docs: doxyfile
- echo "Running doxygen in directory: "`pwd`; \
- $(DOXYGEN) $<;
-
-clean-local:
- -rm -fr PARAVIS doxygen.bak
-
-install-data-local:
- if test -d PARAVIS; then \
- $(INSTALL) -d $(DESTDIR)$(docdir)/gui ; \
- cp -rp PARAVIS $(DESTDIR)$(docdir)/gui ; \
- fi;
-
-uninstall-local:
- rm -rf $(DESTDIR)$(docdir)/gui/PARAVIS
-import paraview, os
+import paraview, os, sys
import string
import re
if (a not in l1) and a.startswith("vtk"):
classeslistvtk.append(a)
-pvhome = os.environ.get('PVHOME')
-pvversion = os.environ.get('PVVERSION')
-wrap_dir="include/paraview-"+pvversion
-
dic=dict();
pv_classes_new=classeslistsm
while len(pv_classes_new):
pv_classes_cur=pv_classes_new
pv_classes_new=[]
for c in pv_classes_cur:
- filename=pvhome+"/"+wrap_dir+"/"+c+".h"
+ filename=sys.argv[1]+"/"+c+".h"
if os.path.isfile(filename):
c_new=[]
f=open(filename)
pv_classes_sort=collect_dic(dic.keys())
-awidl='WRAP_IDL = '
-awsk='WRAP_SK_FILES = '
-awhh='WRAP_IDL_I_HH = '
-awcc='WRAP_IDL_I_CC = '
-
-fprefix='PARAVIS_Gen_'
-fidl='.idl'
-fsk='SK.cc'
-fhh='_i.hh'
-fcc='_i.cc'
-
-idl_am=open('idl/wrap.am','w')
-idl_i_am=open('src/PVGUI/wrap.am','w')
-
-wrap_h=open('idl/vtkWrapIDL.h','w')
-wrap_h.write('const char* wrapped_classes[] = {\n')
-
-wrap_cxx=open('src/PVGUI/PARAVIS_CreateClass.cxx','w')
-wrap_cxx.write('#include <iostream>\n')
-wrap_cxx.write('#include <QString>\n')
-wrap_cxx.write('#include "PARAVIS_Gen_i.hh"\n')
+wf_str=""
+if(os.path.exists('wrapfiles.txt')):
+ wf_txt=open('wrapfiles.txt','r')
+ strs=wf_txt.readlines()
+ wf_txt.close()
+ for s in strs:
+ wf_str+=s
+str=""
for c in pv_classes_sort:
- widl=fprefix+c+fidl
- wsk=fprefix+c+fsk
- whh=fprefix+c+fhh
- wcc=fprefix+c+fcc
- awidl+=' ' + widl
- awsk+=' ' + wsk
- awhh+=' ' + whh
- awcc+=' ' + wcc
-
- idl_am.write(widl+': vtkWrapIDL')
- for cc in dic[c][1]:
- idl_am.write(' '+fprefix+cc+fidl)
- idl_am.write('\n')
- idl_am.write('\t@./vtkWrapIDL '+pvhome+'/'+wrap_dir+'/'+c+'.h $(top_srcdir)/idl/hints 0 $@\n')
- idl_am.write('\n')
-
-
- idl_i_am.write(whh+': vtkWrapIDL_HH')
+ str+=c
for cc in dic[c][1]:
- idl_i_am.write(' '+fprefix+cc+fhh)
- idl_i_am.write('\n')
- idl_i_am.write('\t@./vtkWrapIDL_HH '+pvhome+'/'+wrap_dir+'/'+c+'.h $(top_srcdir)/idl/hints 0 $@\n')
- idl_i_am.write('\n')
-
- idl_i_am.write(wcc+': vtkWrapIDL_CC $(WRAP_IDL_I_HH)')
- for cc in dic[c][1]:
- idl_i_am.write(' '+fprefix+cc+fcc)
- idl_i_am.write('\n')
- idl_i_am.write('\t@./vtkWrapIDL_CC '+pvhome+'/'+wrap_dir+'/'+c+'.h $(top_srcdir)/idl/hints 0 $@\n')
- idl_i_am.write('\n')
-
- wrap_h.write('"'+c+'",\n')
-
- wrap_cxx.write('#include "'+fprefix+c+fhh+'"\n')
-
-idl_am.write(awidl+'\n')
-idl_am.write('\n')
-idl_am.write(awsk+'\n')
-
-idl_i_am.write(awhh+'\n')
-idl_i_am.write('\n')
-idl_i_am.write(awcc+'\n')
-idl_i_am.write('\n')
-idl_i_am.write('BUILT_SOURCES = $(WRAP_IDL_I_HH) $(WRAP_IDL_I_CC)\n')
-
-wrap_h.write('""\n};\n')
-
-wrap_cxx.write('\n')
-wrap_cxx.write('PARAVIS::PARAVIS_Base_i* CreateInstance(::vtkObjectBase* Inst, const QString& theClassName)\n')
-wrap_cxx.write('{\n')
-for i in range(len(pv_classes_sort)-1,-1,-1):
- c=pv_classes_sort[i]
- wrap_cxx.write(' if(theClassName == "'+c+'" || (Inst != NULL && Inst->IsA("'+c+'")))\n')
- wrap_cxx.write(' return new PARAVIS::'+c+'_i();\n')
-wrap_cxx.write('\n')
-wrap_cxx.write(' cerr << "The class " << theClassName.toStdString() << " is not created!" << endl;\n')
-wrap_cxx.write(' return new PARAVIS::PARAVIS_Base_i();\n')
-wrap_cxx.write('}\n')
-
-idl_am.close()
-idl_i_am.close()
-wrap_h.close()
-wrap_cxx.close()
+ str+=' '+cc
+ str+='\n'
+if(str!=wf_str):
+ wf_txt=open('wrapfiles.txt','w')
+ wf_txt.write(str)
+ wf_txt.close()
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# This Makefile is responsible of generating the client and server
+# implementation of IDL interfaces for both C++ and python usage.
+# The building process of the C++ files is in charge of each source
+# package and then is not manage here.
+#
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+#Executable
+SET(bin_PROGRAMS
+ vtkWrapIDL
+)
+
+# vtkWrapIDL.h:
+# @$(srcdir)/create_header.sh $(top_srcdir)
+
+# $(srcdir)/vtkWrapIDL.c: vtkWrapIDL.h;
+
+SET(dist_vtkWrapIDL_SOURCES
+ ${CMAKE_SOURCE_DIR}/src/ParaView/vtkParse.tab.c
+ ${CMAKE_CURRENT_SOURCE_DIR}/vtkWrapIDL.c
+)
+
+SET(vtkWrapIDL_CPPFLAGS
+ -I${CMAKE_SOURCE_DIR}/src/ParaView
+ -I${CMAKE_BINARY_DIR}/idl
+ ${PARAVIEW_INCLUDES}
+ ${VTK_INCLUDES}
+)
+
+# hints: $(PVHOME)/lib/paraview-$(PVVERSION)/hints $(srcdir)/hints_paravis
+# @$(srcdir)/create_hints.sh $(PVHOME)/lib/paraview-$(PVVERSION)
+
+# $(srcdir)/wrap.am: $(top_srcdir)/wrapfiles.txt
+# @cd $(srcdir) && $(srcdir)/create_wrap.sh
+
+# include $(srcdir)/wrap.am
+INCLUDE(wrap.cmake)
+
+SET(BASEIDL_FILES
+ PARAVIS_Gen_Types.idl
+ PARAVIS_Gen.idl
+)
+SET(BASEIDL_SK_FILES
+ PARAVIS_Gen_TypesSK.cc
+ PARAVIS_GenSK.cc
+)
+
+SET(IDL_FILES
+ ${BASEIDL_FILES}
+ ${WRAP_IDL}
+)
+
+# This variable defines the files to be installed
+SET(dist_salomeidl_DATA
+ ${IDL_FILES}
+)
+
+# PARAVIS idl common library
+SET(lib_LTLIBRARIES
+ libSalomeIDLPARAVIS.la
+)
+
+# Sources built from idl files
+SET(nodist_libSalomeIDLPARAVIS_la_SOURCES
+ ${BASEIDL_SK_FILES}
+ ${WRAP_SK_FILES}
+)
+
+# header files must be exported: other modules have to use this library
+SET(nodist_salomeinclude_HEADERS
+# ${BASEIDL_FILES:%.idl=%.hh}
+# ${WRAP_IDL:%.idl=%.hh}
+)
+
+SET(libSalomeIDLPARAVIS_la_CPPFLAGS
+ -I${CMAKE_BINARY_DIR}/salome_adm/unix
+ -I${CMAKE_BINARY_DIR}/idl
+ ${CORBA_CXXFLAGS}
+ ${CORBA_INCLUDES}
+ ${KERNEL_CXXFLAGS}
+)
+SET(VERSION_INFO 0.0.0)
+SET(SOVERSION_INFO 0)
+SET(libSalomeIDLPARAVIS_la_LDFLAGS
+ -no-undefined
+)
+SET(libSalomeIDLPARAVIS_la_LIBADD
+ ${CORBA_LIBS}
+)
+
+# These variables defines the building process of CORBA files
+SET(OMNIORB_IDL
+ ${OMNIORB_IDL}
+)
+SET(OMNIORB_IDLCXXFLAGS
+ ${OMNIORB_IDLCXXFLAGS}
+)
+SET(OMNIORB_IDLPYFLAGS
+ ${OMNIORB_IDLPYFLAGS}
+ -I${KERNEL_ROOT_DIR}/idl/salome
+)
+SET(IDLCXXFLAGS
+ -bcxx
+ ${IDLCXXFLAGS}
+ -I${CMAKE_CURRENT_SOURCE_DIR}
+ -I${KERNEL_ROOT_DIR}/idl/salome
+ -I${CMAKE_BINARY_DIR}/salome_adm/unix
+)
+SET(IDLPYFLAGS
+ -bpythonIDL
+ -nf
+ -p${CMAKE_CURRENT_SOURCE_DIR}
+ -I${CMAKE_CURRENT_SOURCE_DIR}
+ -I${KERNEL_ROOT_DIR}/idl/salome
+)
+
+# potential problem on parallel make on the following - multiple outputs
+SET(SUFFIXES
+ .idl
+ .hh
+ SK.cc
+)
+# .idlSK.cc:
+# $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
+# .idl.hh:
+# $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
+
+# install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%) $(WRAP_IDL)
+# $(INSTALL) -d $(DESTDIR)$(salomepythondir)
+# ls $^ | while read file; do $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; done
+
+# uninstall-local removes too much, but it works in distcheck
+# uninstall-local:
+# rm -rf $(DESTDIR)$(salomepythondir)/*
+
+# mostlyclean-local: clean-idls
+
+# clean-idls:
+# @find . \( -name "*.hh" -or -name "*.cc" -or -name ".depidl" -or -name "*.idl" \) -exec rm -f {} \;
+# -rm -f hints vtkWrapIDL.h
+
+# we use cpp to generate dependencies between idl files.
+# option x c tells the preprocessor to consider idl as a c file.
+# if an idl is modified, all idl dependencies are rebuilt
+
+# .depidl: $(BASEIDL_FILES)
+# @echo "" > $@
+# @for dep in $^ dummy; do if [ $$dep != "dummy" ]; then echo Building dependencies for $$dep; $(CPP) $(C_DEPEND_FLAG) $(C_WRAP_IDL_FLAG) -x c -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome $$dep 2>/dev/null | sed 's/\.o/\SK.cc/' >>$@; fi; done ;
+
+# -include .depidl
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+
+ FOREACH(amname ${lib_LTLIBRARIES})
+
+
+ STRING(REPLACE .la _la amname ${amname})
+
+
+ STRING(LENGTH ${amname} len)
+ MATH(EXPR newlen "${len}-3")
+ STRING(SUBSTRING ${amname} 0 ${newlen} name)
+
+
+ STRING(REGEX MATCH "^lib" BEGIN_WITH_lib ${name})
+ IF(BEGIN_WITH_lib)
+ STRING(LENGTH ${name} len)
+ MATH(EXPR newlen "${len}-3")
+ STRING(SUBSTRING ${name} 3 ${newlen} name)
+ ENDIF(BEGIN_WITH_lib)
+
+
+ STRING(REGEX MATCH "IDL" ISIDL ${name})
+
+
+ IF(ISIDL)
+ IF(WINDOWS)
+ SET(type STATIC)
+ ELSE(WINDOWS)
+ SET(type SHARED)
+ ENDIF(WINDOWS)
+ ELSE(ISIDL)
+ SET(type SHARED)
+ ENDIF(ISIDL)
+
+
+ SET(srcs)
+ FOREACH(src ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+ GET_FILENAME_COMPONENT(ext ${src} EXT)
+ IF(ext STREQUAL .f)
+ IF(src STREQUAL trte.f)
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${src})
+ STRING(REPLACE ".f" ".c" src ${src})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${src})
+ SET(output ${src})
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND f2c ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ ELSE(src STREQUAL trte.f)
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${src})
+ STRING(REPLACE ".f" ".o" src ${src})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${src})
+ SET(output ${src})
+ IF(WINDOWS)
+ SET(F77 g77)
+ ELSE(WINDOWS)
+ SET(F77 gfortran)
+ ENDIF(WINDOWS)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND ${F77} -c -o ${output} ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ ENDIF(src STREQUAL trte.f)
+ ENDIF(ext STREQUAL .f)
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(src ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+
+
+ SET(l ${nodist_${amname}_SOURCES} ${UIC_FILES})
+ FOREACH(f ${l})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(f ${l})
+
+
+ SET(build_srcs)
+ SET(l ${nodist_${amname}_SOURCES} ${BUILT_SOURCES})
+ FOREACH(f ${l})
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ ELSE(ext STREQUAL .py)
+ SET(build_srcs ${build_srcs} ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ ENDIF(ext STREQUAL .py)
+ ENDFOREACH(f ${l})
+
+
+ ADD_LIBRARY(${name} ${type} ${srcs})
+
+
+ SET(var)
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} SalomeIDLKernel)
+ SET(targets ${targets} SalomeDS)
+ SET(targets ${targets} SALOMEDSTest)
+ SET(targets ${targets} SALOMEDS_Client_exe)
+ SET(targets ${targets} SalomeIDLGEOM)
+ SET(targets ${targets} GEOMEngine)
+ SET(targets ${targets} MEDEngine)
+ SET(targets ${targets} SMESHEngine)
+ SET(targets ${targets} SMESH)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(var ${var} -DNOGDI)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(var ${var} -I${dir})
+ SET(var ${var} -DF2C_BUILD)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(var ${var} ${AM_CPPFLAGS})
+ SET(var ${var} ${AM_CXXFLAGS})
+
+
+ SET(var ${var} ${PLATFORM_CPPFLAGS})
+ SET(var ${var} ${PTHREAD_CFLAGS})
+ SET(var ${var} ${${amname}_CPPFLAGS})
+ SET(var ${var} ${${amname}_CXXFLAGS})
+ SET(var ${var} ${${amname}_CFLAGS})
+ SET(vars)
+ IF(WINDOWS)
+ SET(vars ${vars} -include SALOMEconfig.h)
+ SET(vars ${vars} -ftemplate-depth-32)
+ SET(vars ${vars} -fPIC)
+ SET(vars ${vars} -g)
+ ENDIF(WINDOWS)
+ SET(flags)
+ FOREACH(f ${var})
+ FOREACH(v ${vars})
+ IF(f STREQUAL v)
+ SET(f)
+ ENDIF(f STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(flags "${flags} ${f}")
+ ENDFOREACH(f ${var})
+ SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "${flags}")
+
+
+ SET_TARGET_PROPERTIES(${name} PROPERTIES VERSION ${VERSION_INFO} SOVERSION ${SOVERSION_INFO})
+
+
+ SET(libadd)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(libadd ${libadd} ${dir}/LIBF77.lib)
+ SET(libadd ${libadd} ${dir}/LIBI77.lib)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(libs ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+ FOREACH(lib SALOMEBasics SalomeBatch)
+ IF(name STREQUAL lib)
+ SET(libs ${libs} ${PTHREAD_LIBS})
+ ENDIF(name STREQUAL lib)
+ ENDFOREACH(lib SALOMEBasics SalomeBatch)
+
+
+ FOREACH(lib ${libs})
+ GET_FILENAME_COMPONENT(ext ${lib} EXT)
+ IF(ext STREQUAL .la)
+ GET_FILENAME_COMPONENT(lib ${lib} NAME_WE)
+ STRING(REGEX REPLACE "^lib" "" lib ${lib})
+ ENDIF(ext STREQUAL .la)
+ SET(vars)
+ SET(vars ${vars} -no-undefined)
+ SET(vars ${vars} -lvtkWidgets)
+ IF(WINDOWS)
+ SET(vars ${vars} -module)
+ SET(vars ${vars} -Wl,-E)
+ SET(vars ${vars} -Xlinker)
+ SET(vars ${vars} -export-dynamic)
+ SET(vars ${vars} -lm)
+ SET(vars ${vars} -lboost_thread)
+ SET(vars ${vars} -lboost_signals)
+ SET(vars ${vars} -pthread -lpthread -ldl)
+ ENDIF(WINDOWS)
+ FOREACH(v ${vars})
+ IF(lib STREQUAL v)
+ SET(lib)
+ ENDIF(lib STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(libadd ${libadd} ${lib})
+ ENDFOREACH(lib ${libs})
+ TARGET_LINK_LIBRARIES(${name} ${libadd})
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ SET_TARGET_PROPERTIES(${name} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(DEST lib/salome)
+
+
+ IF(BEGIN_WITH_lib)
+ INSTALL(TARGETS ${name} DESTINATION ${DEST})
+
+
+ ELSE(BEGIN_WITH_lib)
+
+
+ IF(WINDOWS)
+ INSTALL(TARGETS ${name} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome)
+ IF(CMAKE_BUILD_TYPE STREQUAL Release)
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome/${name}.dll DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.pyd)
+ ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome/${name}.dll DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}_d.pyd)
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
+ ELSE(WINDOWS)
+ GET_TARGET_PROPERTY(version ${name} VERSION)
+ GET_TARGET_PROPERTY(soversion ${name} SOVERSION)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so.${version})
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so.${soversion})
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so)
+ ENDIF(WINDOWS)
+
+
+ ENDIF(BEGIN_WITH_lib)
+
+
+ ENDFOREACH(amname ${lib_LTLIBRARIES})
+
+
+ FOREACH(amname ${bin_PROGRAMS} ${check_PROGRAMS})
+
+
+ SET(name "${amname}_exe")
+ SET(srcs ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+ SET(l ${nodist_${amname}_SOURCES})
+ FOREACH(f ${l})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(f ${l})
+ LIST(LENGTH srcs nb)
+ IF(nb)
+ ADD_EXECUTABLE(${name} ${srcs})
+
+
+ SET(var)
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} SalomeIDLKernel)
+ SET(targets ${targets} SalomeDS)
+ SET(targets ${targets} SALOMEDSTest)
+ SET(targets ${targets} SALOMEDS_Client_exe)
+ SET(targets ${targets} SalomeIDLGEOM)
+ SET(targets ${targets} GEOMEngine)
+ SET(targets ${targets} MEDEngine)
+ SET(targets ${targets} SMESHEngine)
+ SET(targets ${targets} SMESH)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(var ${var} -DNOGDI)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(var ${var} -I${dir})
+ SET(var ${var} -DF2C_BUILD)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(var ${var} ${AM_CPPFLAGS})
+ SET(var ${var} ${AM_CXXFLAGS})
+
+
+ SET(var ${var} ${PLATFORM_CPPFLAGS})
+ SET(var ${var} ${PTHREAD_CFLAGS})
+ SET(var ${var} ${${amname}_CPPFLAGS})
+ SET(var ${var} ${${amname}_CXXFLAGS})
+ SET(var ${var} ${${amname}_CFLAGS})
+ SET(vars)
+ IF(WINDOWS)
+ SET(vars ${vars} -include SALOMEconfig.h)
+ SET(vars ${vars} -ftemplate-depth-32)
+ SET(vars ${vars} -fPIC)
+ SET(vars ${vars} -g)
+ ENDIF(WINDOWS)
+ SET(flags)
+ FOREACH(f ${var})
+ FOREACH(v ${vars})
+ IF(f STREQUAL v)
+ SET(f)
+ ENDIF(f STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(flags "${flags} ${f}")
+ ENDFOREACH(f ${var})
+ SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "${flags}")
+
+
+ SET(libadd)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(libadd ${libadd} ${dir}/LIBF77.lib)
+ SET(libadd ${libadd} ${dir}/LIBI77.lib)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(libs ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+ FOREACH(lib SALOMEBasics SalomeBatch)
+ IF(name STREQUAL lib)
+ SET(libs ${libs} ${PTHREAD_LIBS})
+ ENDIF(name STREQUAL lib)
+ ENDFOREACH(lib SALOMEBasics SalomeBatch)
+
+
+ SET(libs ${libs} ${LDADD})
+
+
+ FOREACH(lib ${libs})
+ GET_FILENAME_COMPONENT(ext ${lib} EXT)
+ IF(ext STREQUAL .la)
+ GET_FILENAME_COMPONENT(lib ${lib} NAME_WE)
+ STRING(REGEX REPLACE "^lib" "" lib ${lib})
+ ENDIF(ext STREQUAL .la)
+ SET(vars)
+ SET(vars ${vars} -no-undefined)
+ SET(vars ${vars} -lvtkWidgets)
+ IF(WINDOWS)
+ SET(vars ${vars} -module)
+ SET(vars ${vars} -Wl,-E)
+ SET(vars ${vars} -Xlinker)
+ SET(vars ${vars} -export-dynamic)
+ SET(vars ${vars} -lm)
+ SET(vars ${vars} -lboost_thread)
+ SET(vars ${vars} -lboost_signals)
+ SET(vars ${vars} -pthread -lpthread -ldl)
+ ENDIF(WINDOWS)
+ FOREACH(v ${vars})
+ IF(lib STREQUAL v)
+ SET(lib)
+ ENDIF(lib STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(libadd ${libadd} ${lib})
+ ENDFOREACH(lib ${libs})
+ TARGET_LINK_LIBRARIES(${name} ${libadd})
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ SET_TARGET_PROPERTIES(${name} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(DEST bin/salome)
+
+
+ IF(WINDOWS)
+ INSTALL(TARGETS ${name} DESTINATION ${DEST})
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/${DEST}/${name}.exe DESTINATION ${DEST} RENAME ${amname}.exe)
+ INSTALL(CODE "FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${name}.exe)")
+ ELSE(WINDOWS)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${name} DESTINATION ${DEST} PERMISSIONS ${PERMS} RENAME ${amname})
+ ENDIF(WINDOWS)
+
+
+ ENDIF(nb)
+
+
+ ENDFOREACH(amname ${bin_PROGRAMS} ${check_PROGRAMS})
+
+
+ FOREACH(input ${IDL_FILES})
+ STRING(REGEX REPLACE ".idl" "" base ${input})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${base}SK.cc)
+ SET(outputs ${src})
+ SET(dynsrc ${CMAKE_CURRENT_BINARY_DIR}/${base}DynSK.cc)
+ SET(outputs ${outputs} ${dynsrc})
+ SET(inc ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh)
+ SET(outputs ${outputs} ${inc})
+ IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+ ELSE(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+ SET(input ${CMAKE_CURRENT_BINARY_DIR}/${input})
+ ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+ SET(flags ${IDLCXXFLAGS} ${OMNIORB_IDLCXXFLAGS})
+ STRING(REGEX MATCH "-bcxx" ISBCXX ${flags})
+ IF(NOT ISBCXX)
+ SET(flags -bcxx ${flags})
+ ENDIF(NOT ISBCXX)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${outputs}
+ COMMAND ${OMNIORB_IDL} ${flags} ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ install(FILES ${input} DESTINATION idl/salome)
+ SET(IDL_HEADER ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh)
+ install(FILES ${IDL_HEADER} DESTINATION include/salome)
+ INSTALL(CODE "SET(IDL_FILE ${input})")
+ INSTALL(CODE "SET(DIR lib/python${PYTHON_VERSION}/site-packages/salome)")
+ INSTALL(CODE "SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})")
+ INSTALL(CODE "SET(OMNIORB_IDL_PYTHON ${OMNIORB_IDL_PYTHON})")
+ # --
+ SET(flags)
+ FOREACH(f ${IDLPYFLAGS})
+ SET(flags "${flags} ${f}")
+ ENDFOREACH(f ${IDLPYFLAGS})
+ STRING(REGEX MATCH "-bpython" ISBPYTHON ${flags})
+ IF(NOT ISBPYTHON)
+ SET(flags "-bpython ${flags}")
+ ENDIF(NOT ISBPYTHON)
+ SET(IDLPYFLAGS ${flags})
+ STRING(REPLACE "\\" "/" IDLPYFLAGS ${IDLPYFLAGS})
+ INSTALL(CODE "SET(IDLPYFLAGS ${IDLPYFLAGS})")
+ # --
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_python_from_idl.cmake)
+
+
+ ENDFOREACH(input ${IDL_FILES})
+
+++ /dev/null
-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# This Makefile is responsible of generating the client and server
-# implementation of IDL interfaces for both C++ and python usage.
-# The building process of the C++ files is in charge of each source
-# package and then is not manage here.
-#
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-#Executable
-bin_PROGRAMS = vtkWrapIDL
-
-dist_vtkWrapIDL_SOURCES = ${PVHOME}/src/vtkParse.tab.c vtkWrapIDL.c
-
-vtkWrapIDL_CPPFLAGS = \
- ${PARAVIEW_INCLUDES}
-
-include $(srcdir)/wrap.am
-
-BASEIDL_FILES = PARAVIS_Gen_Types.idl PARAVIS_Gen.idl
-BASEIDL_SK_FILES= PARAVIS_Gen_TypesSK.cc PARAVIS_GenSK.cc
-
-# This variable defines the files to be installed
-dist_salomeidl_DATA = $(BASEIDL_FILES) $(WRAP_IDL)
-
-# PARAVIS idl common library
-lib_LTLIBRARIES = libSalomeIDLPARAVIS.la
-
-# Sources built from idl files
-nodist_libSalomeIDLPARAVIS_la_SOURCES = $(BASEIDL_SK_FILES) $(WRAP_SK_FILES)
-
-# header files must be exported: other modules have to use this library
-nodist_salomeinclude_HEADERS = $(BASEIDL_FILES:%.idl=%.hh) $(WRAP_IDL:%.idl=%.hh)
-
-libSalomeIDLPARAVIS_la_CPPFLAGS = \
- -I$(top_builddir)/salome_adm/unix \
- -I$(top_builddir)/idl \
- @CORBA_CXXFLAGS@ @CORBA_INCLUDES@ @KERNEL_CXXFLAGS@
-libSalomeIDLPARAVIS_la_LDFLAGS = -no-undefined -version-info=0:0:0
-libSalomeIDLPARAVIS_la_LIBADD = @CORBA_LIBS@
-
-# These variables defines the building process of CORBA files
-OMNIORB_IDL = @OMNIORB_IDL@
-OMNIORB_IDLCXXFLAGS = @OMNIORB_IDLCXXFLAGS@
-OMNIORB_IDLPYFLAGS = @OMNIORB_IDLPYFLAGS@ -I$(KERNEL_ROOT_DIR)/idl/salome
-IDLCXXFLAGS = -bcxx @IDLCXXFLAGS@ -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome -I$(top_builddir)/salome_adm/unix
-IDLPYFLAGS = -bpythonIDL -p$(srcdir) -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome
-
-# potential problem on parallel make on the following - multiple outputs
-SUFFIXES = .idl .hh SK.cc
-.idlSK.cc:
- $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
-.idl.hh:
- $(OMNIORB_IDL) $(IDLCXXFLAGS) $(OMNIORB_IDLCXXFLAGS) $<
-
-install-exec-local: $(BASEIDL_FILES:%=$(top_srcdir)/idl/%) $(WRAP_IDL)
- $(INSTALL) -d $(DESTDIR)$(salomepythondir)
- ls $^ | while read file; do \
- $(OMNIORB_IDL) $(IDLPYFLAGS) -C$(DESTDIR)$(salomepythondir) $$file ; \
- done
-
-# uninstall-local removes too much, but it works in distcheck
-uninstall-local:
- rm -rf $(DESTDIR)$(salomepythondir)/*
-
-mostlyclean-local: clean-idls
-
-clean-idls:
- @find . \( -name "*.hh" -or -name "*.cc" -or -name ".depidl" -or -name "*.idl" \) -exec rm -f {} \;
-
-# we use cpp to generate dependencies between idl files.
-# option x c tells the preprocessor to consider idl as a c file.
-# if an idl is modified, all idl dependencies are rebuilt
-
-.depidl: $(BASEIDL_FILES)
- @echo "" > $@
- @for dep in $^ dummy; do \
- if [ $$dep != "dummy" ]; then \
- echo Building dependencies for $$dep; \
- $(CPP) $(C_DEPEND_FLAG) $(C_WRAP_IDL_FLAG) -x c -I$(srcdir) -I$(KERNEL_ROOT_DIR)/idl/salome $$dep 2>/dev/null | \
- sed 's/\.o/\SK.cc/' >>$@; \
- fi; \
- done ;
-
--include .depidl
--- /dev/null
+#!/bin/bash
+
+file=vtkWrapIDL.h
+wfile=$1/wrapfiles.txt
+
+echo 'const char* wrapped_classes[] = {' > $file
+awk '{print "\""$1"\",";}' $wfile >> $file
+echo '""' >> $file
+echo '};' >> $file
--- /dev/null
+#!/bin/bash
+
+CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
+
+cp $1/hints hints
+cat ${CONF_DIR}/hints_paravis >> hints
--- /dev/null
+ADD_CUSTOM_COMMAND(
+ OUTPUT vtkWrapIDL.h
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create_header.sh ${CMAKE_BINARY_DIR}
+ DEPENDS ${CMAKE_BINARY_DIR}/wrapfiles.txt
+)
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/vtkWrapIDL.c
+ DEPENDS vtkWrapIDL.h
+)
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT hints
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create_hints.sh ${PARAVIEW_LIBRARY_DIRS}
+ DEPENDS ${PARAVIEW_LIBRARY_DIRS}/hints ${CMAKE_CURRENT_SOURCE_DIR}/hints_paravis
+)
+
+SET(WRAP_IDL)
+SET(WRAP_SK_FILES)
+
+IF(EXISTS ${CMAKE_BINARY_DIR}/wrapfiles.txt)
+ EXECUTE_PROCESS(
+ COMMAND cat ${CMAKE_BINARY_DIR}/wrapfiles.txt
+ OUTPUT_VARIABLE WRAP_LIST_FULL
+ )
+
+ STRING(REGEX MATCHALL "[^\n]+" WRAP_LIST_REG ${WRAP_LIST_FULL})
+ FOREACH(STR ${WRAP_LIST_REG})
+
+ SEPARATE_ARGUMENTS(STR)
+ LIST(LENGTH STR WRAP_LEN)
+ SET(DEP)
+
+ LIST(GET STR 0 VAL)
+
+ IF(WRAP_LEN GREATER 1)
+ MATH(EXPR WRAP_LEN1 "${WRAP_LEN} - 1" )
+
+ FOREACH(IND RANGE 1 ${WRAP_LEN1})
+ LIST(GET STR ${IND} DEP_VAL)
+ SET(DEP ${DEP} PARAVIS_Gen_${DEP_VAL}.idl)
+ ENDFOREACH(IND RANGE 1 ${WRAP_LEN1})
+
+ ENDIF(WRAP_LEN GREATER 1)
+
+ SET(WRAP_IDL ${WRAP_IDL} PARAVIS_Gen_${VAL}.idl)
+ SET(WRAP_SK_FILES ${WRAP_SK_FILES} PARAVIS_Gen_${VAL}SK.cc)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT PARAVIS_Gen_${VAL}.idl
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_exe ${PARAVIEW_INCLUDE_DIRS}/${VAL}.h hints 0 PARAVIS_Gen_${VAL}.idl
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_exe ${PARAVIEW_INCLUDE_DIRS}/${VAL}.h hints ${DEP}
+ )
+
+ ENDFOREACH(STR ${WRAP_LIST_REG})
+ENDIF(EXISTS ${CMAKE_BINARY_DIR}/wrapfiles.txt)
+
+ADD_CUSTOM_TARGET(generate_idl ALL DEPENDS ${CMAKE_BINARY_DIR}/wrapfiles.txt vtkWrapIDL.h ${CMAKE_CURRENT_SOURCE_DIR}/vtkWrapIDL.c hints ${WRAP_IDL})
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# -* Makefile *-
+#
+# Author : Patrick GOLDBRONN (CEA)
+# Date : 28/06/2001
+# Modified by : Alexander BORODIN (OCN) - autotools usage
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(dist_salomeres_DATA
+ LightApp.xml
+ SalomeApp.xml
+ pqAppIcon22.png
+ pqAppIcon16.png
+ ParaViewFilters.xml
+ ParaViewReaders.xml
+ ParaViewSources.xml
+ ParaViewWriters.xml
+)
+
+SET(nodist_salomeres_SCRIPTS
+ PARAVISCatalog.xml
+)
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/PARAVISCatalog.xml.in)
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/PARAVISCatalog.xml)
+
+
+ MESSAGE(STATUS "Creation of ${output}")
+ CONFIGURE_FILE(${input} ${output})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in)
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml)
+
+
+ MESSAGE(STATUS "Creation of ${output}")
+ CONFIGURE_FILE(${input} ${output})
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+FOREACH(f ${nodist_salomeres_SCRIPTS})
+
+ SET(DEST share/salome/resources/paravis)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${nodist_salomeres_SCRIPTS})
+FOREACH(f ${dist_salomeres_DATA})
+
+ SET(DEST share/salome/resources/paravis)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${dist_salomeres_DATA})
+++ /dev/null
-# Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# -* Makefile *-
-#
-# Author : Patrick GOLDBRONN (CEA)
-# Date : 28/06/2001
-# Modified by : Alexander BORODIN (OCN) - autotools usage
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-dist_salomeres_DATA = \
- LightApp.xml \
- SalomeApp.xml \
- pqAppIcon22.png \
- pqAppIcon16.png
-
-nodist_salomeres_SCRIPTS = PARAVISCatalog.xml
--- /dev/null
+<ParaViewFilters>
+ <Category name="Common" menu_label="&Common" preserve_order="1"
+ show_in_toolbar="1">
+ <Proxy group="filters" name="Calculator" icon=":/pqWidgets/Icons/pqCalculator24.png"/>
+ <Proxy group="filters" name="Contour" icon=":/pqWidgets/Icons/pqIsosurface24.png"/>
+ <Proxy group="filters" name="Clip" icon=":/pqWidgets/Icons/pqClip24.png"/>
+ <Proxy group="filters" name="Cut" icon=":/pqWidgets/Icons/pqSlice24.png"/>
+ <Proxy group="filters" name="Threshold" icon=":/pqWidgets/Icons/pqThreshold24.png"/>
+ <Proxy group="filters" name="ExtractGrid" icon=":/pqWidgets/Icons/pqExtractGrid24.png"/>
+ <Proxy group="filters" name="Glyph" icon=":/pqWidgets/Icons/pqGlyph24.png"/>
+ <Proxy group="filters" name="StreamTracer" icon=":/pqWidgets/Icons/pqStreamTracer24.png"/>
+ <Proxy group="filters" name="WarpVector" icon=":/pqWidgets/Icons/pqWarp24.png"/>
+ <Proxy group="filters" name="GroupDataSets" icon=":/pqWidgets/Icons/pqGroup24.png"/>
+ <Proxy group="filters" name="ExtractHierarchicalLevel" icon=":/pqWidgets/Icons/pqGroupExtract24.png"/>
+ </Category>
+
+ <Category name="DataAnalysis" menu_label="&Data Analysis">
+ <Proxy group="filters" name="Calculator" icon=":/pqWidgets/Icons/pqCalculator24.png"/>
+ <Proxy group="filters" name="ExtractSelection"
+ icon=":/pqWidgets/Icons/pqExtractSelection24.png" />
+ <Proxy group="filters" name="ExtractSelectionOverTime"
+ icon=":/pqWidgets/Icons/pqPlotCellOverTime24.png" />
+ <Proxy group="filters" name="ExtractHistogram"
+ icon=":/pqWidgets/Icons/pqHistogram24.png"/>
+ <Proxy group="filters" name="IntegrateAttributes" />
+ <Proxy group="filters" name="ExtractFieldDataOverTime" />
+ <Proxy group="filters" name="ProbeLine"
+ icon=":/pqWidgets/Icons/pqPlotLineOverTime24.png" />
+ <Proxy group="filters" name="ProbePoint"
+ icon=":/pqWidgets/Icons/pqProbeLocation24.png" />
+ <Proxy group="filters" name="PlotAttributes" />
+ <Proxy group="filters" name="PlotOnSortedLines" />
+ <Proxy group="filters" name="PlotOnIntersectionCurves" />
+ <Proxy group="filters" name="ProgrammableFilter"
+ icon=":/pqWidgets/Icons/pqProgrammableFilter24.png"/>
+ </Category>
+
+ <Category name="Statistics" menu_label="&Statistics">
+ <Proxy group="filters" name="ContingencyStatistics"/>
+ <Proxy group="filters" name="DescriptiveStatistics"/>
+ <Proxy group="filters" name="KMeans"/>
+ <Proxy group="filters" name="MulticorrelativeStatistics"/>
+ <Proxy group="filters" name="PCAStatistics"/>
+ </Category>
+
+ <Category name="Temporal" menu_label="&Temporal">
+ <Proxy group="filters" name="ParticleTracer" />
+ <Proxy group="filters" name="ParticlePathLines" />
+ <Proxy group="filters" name="TemporalCache" />
+ <Proxy group="filters" name="TemporalInterpolator" />
+ <Proxy group="filters" name="TemporalSnapToTimeStep" />
+ <Proxy group="filters" name="TemporalShiftScale" />
+ <Proxy group="filters" name="TemporalStatistics" />
+ <Proxy group="filters" name="TimeToTextConvertor" />
+ </Category>
+
+ <Proxy group="filters" name="AMRDualContour" />
+ <Proxy group="filters" name="Append" />
+ <Proxy group="filters" name="AppendAttributes" />
+ <Proxy group="filters" name="AppendPolyData" />
+ <Proxy group="filters" name="ArbitrarySourceGlyph" />
+ <Proxy group="filters" name="ArbitrarySourceStreamTracer" />
+ <Proxy group="filters" name="BlockIdScalars" />
+ <Proxy group="filters" name="BrownianPoints" />
+ <Proxy group="filters" name="Calculator" />
+ <Proxy group="filters" name="CellCenters" />
+ <Proxy group="filters" name="CellDataToPointData" />
+ <Proxy group="filters" name="CellDerivatives"/>
+ <Proxy group="filters" name="CleanPolyData" />
+ <Proxy group="filters" name="CleanUnstructuredGrid" />
+ <Proxy group="filters" name="Clip" />
+ <Proxy group="filters" name="Contour" />
+ <Proxy group="filters" name="CTHFragmentConnect"/>
+ <Proxy group="filters" name="CTHFragmentIntersect"/>
+ <Proxy group="filters" name="CTHPart" />
+ <Proxy group="filters" name="Curvatures" />
+ <Proxy group="filters" name="Cut" />
+ <Proxy group="filters" name="D3" />
+ <Proxy group="filters" name="DataSetSurfaceFilter" />
+ <Proxy group="filters" name="DataSetTriangleFilter" />
+ <Proxy group="filters" name="DecimatePro" />
+ <Proxy group="filters" name="Delaunay2D" />
+ <Proxy group="filters" name="Delaunay3D" />
+ <Proxy group="filters" name="ElevationFilter" />
+ <Proxy group="filters" name="ExtractBlock" />
+ <Proxy group="filters" name="ExtractEdges" />
+ <Proxy group="filters" name="ExtractGeometry" />
+ <Proxy group="filters" name="ExtractGrid" />
+ <Proxy group="filters" name="ExtractHistogram" />
+ <Proxy group="filters" name="ExtractHierarchicalLevel" />
+ <Proxy group="filters" name="ExtractSelection" />
+ <Proxy group="filters" name="ExtractSelectionOverTime" />
+ <Proxy group="filters" name="ExtractHierarchicalDataSets" />
+ <Proxy group="filters" name="FeatureEdges" />
+ <Proxy group="filters" name="FFTSelectionOverTime" />
+ <Proxy group="filters" name="GenerateIdScalars"/>
+ <Proxy group="filters" name="Glyph" />
+ <Proxy group="filters" name="Gradient" />
+ <Proxy group="filters" name="GroupDataSets" />
+ <Proxy group="filters" name="IntegrateAttributes" />
+ <Proxy group="filters" name="IntegrateFlowThroughSurface" />
+ <Proxy group="filters" name="LevelIdScalars" />
+ <Proxy group="filters" name="LinearExtrusionFilter" />
+ <Proxy group="filters" name="LoopSubdivisionFilter" />
+ <Proxy group="filters" name="MaskPoints" />
+ <Proxy group="filters" name="Median" />
+ <Proxy group="filters" name="MergeBlocks" />
+ <Proxy group="filters" name="MeshQuality" />
+ <Proxy group="filters" name="OctreeDepthLimit" />
+ <Proxy group="filters" name="OctreeDepthScalars" />
+ <Proxy group="filters" name="OutlineCornerFilter" />
+ <Proxy group="filters" name="OutlineFilter" />
+ <Proxy group="filters" name="ParticlePathLines" />
+ <Proxy group="filters" name="ParticleTracer" />
+ <Proxy group="filters" name="PlotAttributes" />
+ <Proxy group="filters" name="PlotOnIntersectionCurves" />
+ <Proxy group="filters" name="PlotOnSortedLines" />
+ <Proxy group="filters" name="PointDataToCellData" />
+ <Proxy group="filters" name="PolyDataNormals" />
+ <Proxy group="filters" name="Probe" />
+ <Proxy group="filters" name="ProbeLine" />
+ <Proxy group="filters" name="ProbePoint" />
+ <Proxy group="filters" name="ProcessIdScalars" />
+ <Proxy group="filters" name="ProgrammableFilter" />
+ <Proxy group="filters" name="PVConnectivityFilter" />
+ <Proxy group="filters" name="PythonCalculator" />
+ <Proxy group="filters" name="QuadraturePointInterpolator" />
+ <Proxy group="filters" name="QuadraturePointsGenerator" />
+ <Proxy group="filters" name="QuadraturePointStatistics" />
+ <Proxy group="filters" name="QuadratureSchemeDictionaryGenerator" />
+ <Proxy group="filters" name="QuadricClustering" />
+ <Proxy group="filters" name="ReflectionFilter" />
+ <Proxy group="filters" name="RibbonFilter" />
+ <Proxy group="filters" name="RotationalExtrusionFilter" />
+ <Proxy group="filters" name="ScatterPlot"/>
+ <Proxy group="filters" name="ShrinkFilter" />
+ <Proxy group="filters" name="SmoothPolyDataFilter" />
+ <Proxy group="filters" name="StreamTracer" />
+ <Proxy group="filters" name="Stripper" />
+ <Proxy group="filters" name="StructuredGridOutlineFilter" />
+ <Proxy group="filters" name="Subdivide" />
+ <Proxy group="filters" name="SurfaceVectors" />
+ <Proxy group="filters" name="TemporalCache" />
+ <Proxy group="filters" name="TemporalInterpolator" />
+ <Proxy group="filters" name="TemporalSnapToTimeStep" />
+ <Proxy group="filters" name="TemporalShiftScale" />
+ <Proxy group="filters" name="TemporalStatistics" />
+ <Proxy group="filters" name="TessellatorFilter" />
+ <Proxy group="filters" name="TextureMapToCylinder" />
+ <Proxy group="filters" name="TextureMapToPlane" />
+ <Proxy group="filters" name="TextureMapToSphere" />
+ <Proxy group="filters" name="Threshold" />
+ <Proxy group="filters" name="TimeToTextConvertor" />
+ <Proxy group="filters" name="TransformFilter" />
+ <Proxy group="filters" name="TriangleFilter" />
+ <Proxy group="filters" name="TubeFilter" />
+ <Proxy group="filters" name="UnstructuredGradient" />
+ <Proxy group="filters" name="WarpScalar" />
+ <Proxy group="filters" name="WarpVector" />
+ <Proxy group="filters" name="NormalGlyphs" />
+ <Proxy group="filters" name="TableToPolyData" />
+ <Proxy group="filters" name="TableToStructuredGrid" />
+</ParaViewFilters>
--- /dev/null
+<ParaViewReaders>
+ <!--
+ NOTE: Readers are tried in reverse order that they are present in this
+ list i.e. if two readers can read the same extension, then the reader
+ apperaring later will be tried first when reading the file.
+ -->
+ <Proxy group="sources" name="LSDynaReader" />
+ <Proxy group="sources" name="PVDReader" />
+ <Proxy group="sources" name="XMLPolyDataReader"/>
+ <Proxy group="sources" name="XMLUnstructuredGridReader" />
+ <Proxy group="sources" name="XMLImageDataReader" />
+ <Proxy group="sources" name="XMLStructuredGridReader" />
+ <Proxy group="sources" name="XMLRectilinearGridReader" />
+ <Proxy group="sources" name="XMLPPolyDataReader" />
+ <Proxy group="sources" name="XMLPUnstructuredGridReader" />
+ <Proxy group="sources" name="XMLPImageDataReader" />
+ <Proxy group="sources" name="XMLPStructuredGridReader" />
+ <Proxy group="sources" name="XMLPRectilinearGridReader" />
+ <Proxy group="sources" name="XMLMultiBlockDataReader" />
+ <Proxy group="sources" name="XMLHierarchicalBoxDataReader" />
+ <Proxy group="sources" name="LegacyVTKFileReader" />
+ <Proxy group="sources" name="pvtkfile" />
+ <Proxy group="sources" name="ensight" />
+ <Proxy group="sources" name="ensightMS" />
+ <Proxy group="sources" name="TecplotReader" />
+ <Proxy group="sources" name="netCDFReader" />
+ <Proxy group="sources" name="byureader" />
+ <Proxy group="sources" name="XdmfReader2" />
+ <Proxy group="sources" name="pdbreader" />
+ <Proxy group="sources" name="xyzreader" />
+ <Proxy group="sources" name="P3DReader" />
+ <Proxy group="sources" name="spcthreader" />
+ <Proxy group="sources" name="SPCTHRestartReader" />
+ <Proxy group="sources" name="DEMReader" />
+ <Proxy group="sources" name="vrmlreader" />
+ <Proxy group="sources" name="plyreader" />
+ <Proxy group="sources" name="stlreader" />
+ <Proxy group="sources" name="gaussiancubereader" />
+ <Proxy group="sources" name="ImageReader" />
+ <Proxy group="sources" name="popreader"/>
+ <Proxy group="sources" name="AVSucdSeriesReader" />
+ <Proxy group="sources" name="MetaImageReader" />
+ <Proxy group="sources" name="Facet Proxy" />
+ <Proxy group="sources" name="PNGReader" />
+ <Proxy group="sources" name="TIFFReader" />
+ <Proxy group="sources" name="PhastaReader" />
+ <Proxy group="sources" name="SESAMEReader" />
+ <Proxy group="sources" name="CSVReader" />
+ <Proxy group="sources" name="MFIXReader" />
+ <Proxy group="sources" name="FLUENTReader" />
+ <Proxy group="sources" name="OpenFOAMReader" />
+ <Proxy group="sources" name="CosmoReader" />
+ <Proxy group="sources" name="SiloReader"/>
+ <Proxy group="sources" name="ExodusIIReader" />
+ <Proxy group="sources" name="ExodusRestartReader" />
+ <Proxy group="sources" name="SLACReader" />
+ <Proxy group="sources" name="SLACParticleReader" />
+ <Proxy group="sources" name="ParticleReader" />
+</ParaViewReaders>
--- /dev/null
+<ParaViewSources>
+ <Proxy group="sources" name="GlyphSource2D" />
+ <Proxy group="sources" name="VectorText" />
+ <Proxy group="sources" name="TimeToTextConvertorSource" />
+ <Proxy group="sources" name="ArrowSource" />
+ <Proxy group="sources" name="Axes" />
+ <Proxy group="sources" name="CubeSource" />
+ <Proxy group="sources" name="ConeSource" />
+ <Proxy group="sources" name="CylinderSource" />
+ <Proxy group="sources" name="DataObjectGenerator" />
+ <Proxy group="sources" name="DiskSource" />
+ <Proxy group="sources" name="HierarchicalFractal" />
+ <Proxy group="sources" name="LineSource" />
+ <Proxy group="sources" name="ImageMandelbrotSource" />
+ <Proxy group="sources" name="OctreeFractal" />
+ <Proxy group="sources" name="OutlineSource" />
+ <Proxy group="sources" name="PlaneSource" />
+ <Proxy group="sources" name="PointSource" />
+ <Proxy group="sources" name="ProgrammableSource" />
+ <Proxy group="sources" name="SphereSource" />
+ <Proxy group="sources" name="SplineSource" />
+ <Proxy group="sources" name="SuperquadricSource" />
+ <Proxy group="sources" name="TextSource" />
+ <Proxy group="sources" name="TimeSource" />
+ <Proxy group="sources" name="Ruler" />
+ <Proxy group="sources" name="RTAnalyticSource" />
+</ParaViewSources>
--- /dev/null
+<ParaViewWriters>
+ <Proxy group="writers" name="XMLPVDWriter" />
+ <Proxy group="writers" name="XMLPolyDataWriter" />
+ <Proxy group="writers" name="XMLUnstructuredGridWriter" />
+ <Proxy group="writers" name="XMLStructuredGridWriter" />
+ <Proxy group="writers" name="XMLRectilinearGridWriter" />
+ <Proxy group="writers" name="XMLImageDataWriter" />
+ <Proxy group="writers" name="XMLPPolyDataWriter" />
+ <Proxy group="writers" name="XMLPUnstructuredGridWriter" />
+ <Proxy group="writers" name="XMLPStructuredGridWriter" />
+ <Proxy group="writers" name="XMLPRectilinearGridWriter"/>
+ <Proxy group="writers" name="XMLPImageDataWriter" />
+ <Proxy group="writers" name="XMLMultiBlockDataWriter" />
+ <Proxy group="writers" name="XMLHierarchicalBoxDataWriter" />
+ <Proxy group="writers" name="DataSetWriter" />
+ <Proxy group="writers" name="PDataSetWriter" />
+ <Proxy group="writers" name="PPLYWriter" />
+ <Proxy group="writers" name="PSTLWriter" />
+ <Proxy group="writers" name="MetaImageWriter" />
+ <Proxy group="writers" name="PNGWriter" />
+ <Proxy group="writers" name="XdmfWriter2"/>
+ <Proxy group="writers" name="ExodusIIWriter" />
+ <Proxy group="writers" name="EnSightWriter" />
+ <Proxy group="writers" name="CSVWriter" />
+ <Proxy group="writers" name="DataSetCSVWriter" />
+</ParaViewWriters>
+++ /dev/null
-<document>
- <section name="PARAVIS">
- <!-- Major module parameters -->
- <parameter name="name" value="ParaViS"/>
- <parameter name="icon" value="pqAppIcon22.png"/>
- <parameter name="singleton" value="true"/>
- <!-- Lists all additional popup items separated by ':' -->
- <parameter name="popupitems" value="importmed"/>
- </section>
- <section name="resources">
- <!-- Module resources -->
- <parameter name="PARAVIS" value="${PARAVIS_ROOT_DIR}/share/salome/resources/paravis"/>
- <!-- ParaView pixmaps -->
- <parameter name="ParaView" value="${PVHOME}/include/paraview-${PVVERSION}/Qt/Components/Resources/Icons"/>
- </section>
- <section name="importmed">
- <parameter name="title" value="Load to ParaView"/>
- <parameter name="attributelocalid" value="20"/>
- <parameter name="method" value="onImportFromVisu"/>
- </section>
-</document>
--- /dev/null
+<document>
+ <section name="PARAVIS">
+ <!-- Major module parameters -->
+ <parameter name="name" value="ParaViS"/>
+ <parameter name="icon" value="pqAppIcon22.png"/>
+ <parameter name="singleton" value="true"/>
+ <!-- Lists all additional popup items separated by ':' -->
+ <parameter name="popupitems" value="importmed"/>
+ </section>
+ <section name="resources">
+ <!-- Module resources -->
+ <parameter name="PARAVIS" value="${PARAVIS_ROOT_DIR}/share/salome/resources/paravis"/>
+ <!-- ParaView pixmaps -->
+ <parameter name="ParaView" value="${PARAVIEW_INCLUDE_DIRS}/Qt/Components/Resources/Icons"/>
+ </section>
+ <section name="importmed">
+ <parameter name="title" value="Load to ParaView"/>
+ <parameter name="objectid" value="VISU.RESULT"/>
+ <parameter name="method" value="onImportFromVisu"/>
+ </section>
+</document>
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+#
+#
+# File : Makefile.in
+# Author : (CEA)
+# Modified by : Alexander BORODIN (OCN) - autotools usage
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+IF(BUILD_PLUGINS)
+ SET(SUBDIRS
+ ENGINE
+ PVGUI
+ PV_SWIG
+ Plugins
+ )
+ELSE(BUILD_PLUGINS)
+ SET(SUBDIRS
+ ENGINE
+ PVGUI
+ PV_SWIG
+ )
+ENDIF(BUILD_PLUGINS)
+
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# File : Makefile.in
+# Author : Vitaly Smetannikov
+# Module : PARAVIS
+# $Header:
+#
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(lib_LTLIBRARIES
+ libPARAVISEngine.la
+)
+
+SET(salomeinclude_HEADERS
+ PARAVIS_Engine_i.hh
+)
+
+SET(dist_libPARAVISEngine_la_SOURCES
+ PARAVIS_Engine_i.cc
+)
+
+SET(libPARAVISEngine_la_CPPFLAGS
+ ${KERNEL_CXXFLAGS}
+ ${CORBA_CXXFLAGS}
+ ${CORBA_INCLUDES}
+ -I${CMAKE_BINARY_DIR}/salome_adm/unix
+ -I${CMAKE_BINARY_DIR}/idl
+)
+
+SET(libPARAVISEngine_la_LDFLAGS
+ ${KERNEL_LDFLAGS}
+ ${SalomeIDLKernel}
+ ${SalomeNS}
+ ${SalomeContainer}
+ ${CORBA_LIBS}
+ ${CMAKE_BINARY_DIR}/idl/libSalomeIDLPARAVIS.la
+)
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+
+ FOREACH(amname ${lib_LTLIBRARIES})
+
+
+ STRING(REPLACE .la _la amname ${amname})
+
+
+ STRING(LENGTH ${amname} len)
+ MATH(EXPR newlen "${len}-3")
+ STRING(SUBSTRING ${amname} 0 ${newlen} name)
+
+
+ STRING(REGEX MATCH "^lib" BEGIN_WITH_lib ${name})
+ IF(BEGIN_WITH_lib)
+ STRING(LENGTH ${name} len)
+ MATH(EXPR newlen "${len}-3")
+ STRING(SUBSTRING ${name} 3 ${newlen} name)
+ ENDIF(BEGIN_WITH_lib)
+
+
+ STRING(REGEX MATCH "IDL" ISIDL ${name})
+
+
+ IF(ISIDL)
+ IF(WINDOWS)
+ SET(type STATIC)
+ ELSE(WINDOWS)
+ SET(type SHARED)
+ ENDIF(WINDOWS)
+ ELSE(ISIDL)
+ SET(type SHARED)
+ ENDIF(ISIDL)
+
+
+ SET(srcs)
+ FOREACH(src ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+ GET_FILENAME_COMPONENT(ext ${src} EXT)
+ IF(ext STREQUAL .f)
+ IF(src STREQUAL trte.f)
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${src})
+ STRING(REPLACE ".f" ".c" src ${src})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${src})
+ SET(output ${src})
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND f2c ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ ELSE(src STREQUAL trte.f)
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${src})
+ STRING(REPLACE ".f" ".o" src ${src})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${src})
+ SET(output ${src})
+ IF(WINDOWS)
+ SET(F77 g77)
+ ELSE(WINDOWS)
+ SET(F77 gfortran)
+ ENDIF(WINDOWS)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND ${F77} -c -o ${output} ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ ENDIF(src STREQUAL trte.f)
+ ENDIF(ext STREQUAL .f)
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(src ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+
+
+ SET(l ${nodist_${amname}_SOURCES} ${UIC_FILES})
+ FOREACH(f ${l})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(f ${l})
+
+
+ SET(build_srcs)
+ SET(l ${nodist_${amname}_SOURCES} ${BUILT_SOURCES})
+ FOREACH(f ${l})
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ ELSE(ext STREQUAL .py)
+ SET(build_srcs ${build_srcs} ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ ENDIF(ext STREQUAL .py)
+ ENDFOREACH(f ${l})
+
+
+ ADD_LIBRARY(${name} ${type} ${srcs})
+
+
+ SET(var)
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} SalomeIDLKernel)
+ SET(targets ${targets} SalomeDS)
+ SET(targets ${targets} SALOMEDSTest)
+ SET(targets ${targets} SALOMEDS_Client_exe)
+ SET(targets ${targets} SalomeIDLGEOM)
+ SET(targets ${targets} GEOMEngine)
+ SET(targets ${targets} MEDEngine)
+ SET(targets ${targets} SMESHEngine)
+ SET(targets ${targets} SMESH)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(var ${var} -DNOGDI)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(var ${var} -I${dir})
+ SET(var ${var} -DF2C_BUILD)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(var ${var} ${AM_CPPFLAGS})
+ SET(var ${var} ${AM_CXXFLAGS})
+
+
+ SET(var ${var} ${PLATFORM_CPPFLAGS})
+ SET(var ${var} ${PTHREAD_CFLAGS})
+ SET(var ${var} ${${amname}_CPPFLAGS})
+ SET(var ${var} ${${amname}_CXXFLAGS})
+ SET(var ${var} ${${amname}_CFLAGS})
+ SET(vars)
+ IF(WINDOWS)
+ SET(vars ${vars} -include SALOMEconfig.h)
+ SET(vars ${vars} -ftemplate-depth-32)
+ SET(vars ${vars} -fPIC)
+ SET(vars ${vars} -g)
+ ENDIF(WINDOWS)
+ SET(flags)
+ FOREACH(f ${var})
+ FOREACH(v ${vars})
+ IF(f STREQUAL v)
+ SET(f)
+ ENDIF(f STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(flags "${flags} ${f}")
+ ENDFOREACH(f ${var})
+ SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "${flags}")
+
+
+ SET_TARGET_PROPERTIES(${name} PROPERTIES VERSION ${VERSION_INFO} SOVERSION ${SOVERSION_INFO})
+
+
+ SET(libadd)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(libadd ${libadd} ${dir}/LIBF77.lib)
+ SET(libadd ${libadd} ${dir}/LIBI77.lib)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(libs ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+ FOREACH(lib SALOMEBasics SalomeBatch)
+ IF(name STREQUAL lib)
+ SET(libs ${libs} ${PTHREAD_LIBS})
+ ENDIF(name STREQUAL lib)
+ ENDFOREACH(lib SALOMEBasics SalomeBatch)
+
+
+ FOREACH(lib ${libs})
+ GET_FILENAME_COMPONENT(ext ${lib} EXT)
+ IF(ext STREQUAL .la)
+ GET_FILENAME_COMPONENT(lib ${lib} NAME_WE)
+ STRING(REGEX REPLACE "^lib" "" lib ${lib})
+ ENDIF(ext STREQUAL .la)
+ SET(vars)
+ SET(vars ${vars} -no-undefined)
+ SET(vars ${vars} -lvtkWidgets)
+ IF(WINDOWS)
+ SET(vars ${vars} -module)
+ SET(vars ${vars} -Wl,-E)
+ SET(vars ${vars} -Xlinker)
+ SET(vars ${vars} -export-dynamic)
+ SET(vars ${vars} -lm)
+ SET(vars ${vars} -lboost_thread)
+ SET(vars ${vars} -lboost_signals)
+ SET(vars ${vars} -pthread -lpthread -ldl)
+ ENDIF(WINDOWS)
+ FOREACH(v ${vars})
+ IF(lib STREQUAL v)
+ SET(lib)
+ ENDIF(lib STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(libadd ${libadd} ${lib})
+ ENDFOREACH(lib ${libs})
+ TARGET_LINK_LIBRARIES(${name} ${libadd})
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ SET_TARGET_PROPERTIES(${name} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(DEST lib/salome)
+
+
+ IF(BEGIN_WITH_lib)
+ INSTALL(TARGETS ${name} DESTINATION ${DEST})
+
+
+ ELSE(BEGIN_WITH_lib)
+
+
+ IF(WINDOWS)
+ INSTALL(TARGETS ${name} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome)
+ IF(CMAKE_BUILD_TYPE STREQUAL Release)
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome/${name}.dll DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.pyd)
+ ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome/${name}.dll DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}_d.pyd)
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
+ ELSE(WINDOWS)
+ GET_TARGET_PROPERTY(version ${name} VERSION)
+ GET_TARGET_PROPERTY(soversion ${name} SOVERSION)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so.${version})
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so.${soversion})
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so)
+ ENDIF(WINDOWS)
+
+
+ ENDIF(BEGIN_WITH_lib)
+
+
+ ENDFOREACH(amname ${lib_LTLIBRARIES})
+
+FOREACH(f ${salomeinclude_HEADERS})
+
+ SET(DEST include/salome)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${salomeinclude_HEADERS})
+++ /dev/null
-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# File : Makefile.in
-# Author : Vitaly Smetannikov
-# Module : PARAVIS
-# $Header:
-#
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-lib_LTLIBRARIES= libPARAVISEngine.la
-
-salomeinclude_HEADERS= PARAVIS_Engine_i.hh
-
-dist_libPARAVISEngine_la_SOURCES= PARAVIS_Engine_i.cc
-
-libPARAVISEngine_la_CPPFLAGS= \
- $(KERNEL_CXXFLAGS) $(CORBA_CXXFLAGS) $(CORBA_INCLUDES) \
- -I$(top_builddir)/salome_adm/unix -I$(top_builddir)/idl
-
-libPARAVISEngine_la_LDFLAGS= \
- $(KERNEL_LDFLAGS) -lSalomeIDLKernel -lSalomeNS -lSalomeContainer $(CORBA_LIBS) \
- $(top_builddir)/idl/libSalomeIDLPARAVIS.la
#include "PARAVIS_Engine_i.hh"
#include "utilities.h"
+
#include CORBA_SERVER_HEADER(SALOME_ModuleCatalog)
#include "SALOME_NamingService.hxx"
+++ /dev/null
-# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-#
-#
-# File : Makefile.in
-# Author : (CEA)
-# Modified by : Alexander BORODIN (OCN) - autotools usage
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-if BUILD_PLUGINS
- SUBDIRS = ENGINE PVGUI PV_SWIG Plugins
-else
- SUBDIRS = ENGINE PVGUI PV_SWIG
-endif
-
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# PARAVIS : ParaView wrapper SALOME module
+#
+# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# Author : Julia DOROVSKIKH
+# Date : 01/06/2005
+# Modified by : Alexander BORODIN (OCN) - autotools usage
+
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+IF(WITH_VISU)
+ SET(VISU_PARAVIS_LIBS
+ -lSalomeIDLVISU
+ )
+ SET(VISU_PARAVIS_DEFINES
+ -DWITH_VISU
+ )
+ENDIF(WITH_VISU)
+
+#Executable
+SET(bin_PROGRAMS
+ vtkWrapIDL_HH
+ vtkWrapIDL_CC
+)
+
+SET(dist_vtkWrapIDL_HH_SOURCES
+ ${CMAKE_SOURCE_DIR}/src/ParaView/vtkParse.tab.c
+ ${CMAKE_SOURCE_DIR}/idl/vtkWrapIDL.c
+)
+SET(dist_vtkWrapIDL_CC_SOURCES
+ ${CMAKE_SOURCE_DIR}/src/ParaView/vtkParse.tab.c
+ ${CMAKE_SOURCE_DIR}/idl/vtkWrapIDL.c
+)
+
+SET(vtkWrapIDL_HH_CPPFLAGS
+ -DIDL_I_HH
+ -I${CMAKE_CURRENT_SOURCE_DIR}/../ParaView
+ -I${CMAKE_BINARY_DIR}/idl
+ ${PARAVIEW_INCLUDES}
+ ${VTK_INCLUDES}
+)
+
+SET(vtkWrapIDL_CC_CPPFLAGS
+ -DIDL_I_CC
+ -I${CMAKE_CURRENT_SOURCE_DIR}/../ParaView
+ -I${CMAKE_BINARY_DIR}/idl
+ ${PARAVIEW_INCLUDES}
+ ${VTK_INCLUDES}
+)
+
+# $(srcdir)/wrap.am: $(top_srcdir)/wrapfiles.txt
+# @cd $(srcdir) && $(srcdir)/create_wrap.sh
+
+# include $(srcdir)/wrap.am
+INCLUDE(wrap.cmake)
+
+# PARAVIS_CreateClass.cxx: $(top_srcdir)/wrapfiles.txt $(WRAP_IDL_I_HH)
+# @$(srcdir)/create_class.sh $(top_srcdir)
+
+# Library target
+SET(lib_LTLIBRARIES
+ libPARAVIS.la
+)
+
+# Library sources
+SET(dist_libPARAVIS_la_SOURCES
+ PVGUI_Module.h
+ PVGUI_Module_impl.h
+ PVGUI_Module.cxx
+ PVGUI_Module_actions.cxx
+ PVGUI_Module_widgets.cxx
+ PVGUI_ViewManager.h
+ PVGUI_ViewManager.cxx
+ PVGUI_ViewModel.h
+ PVGUI_ViewModel.cxx
+ PVGUI_ViewWindow.h
+ PVGUI_ViewWindow.cxx
+ PVGUI_OutputWindowAdapter.h
+ PVGUI_OutputWindowAdapter.cxx
+ PVGUI_Tools.h
+ PVGUI_Tools.cxx
+ PV_I.h
+ PARAVIS_Gen_i.hh
+ PV_Events.h
+ PV_Tools.h
+ PARAVIS_Gen_i.cc
+ PV_Tools.cxx
+ ${WRAP_IDL_I_HH}
+ ${WRAP_IDL_I_CC}
+ PARAVIS_CreateClass.cxx
+)
+
+# MOC pre-processing
+SET(MOC_FILES
+ PVGUI_Module_moc.cxx
+ PVGUI_ViewManager_moc.cxx
+ PVGUI_ViewModel_moc.cxx
+ PVGUI_ViewWindow_moc.cxx
+)
+
+SET(nodist_libPARAVIS_la_SOURCES
+ ${MOC_FILES}
+)
+
+# additionnal compilation flags
+# Note that ParaView uses HDF5
+SET(libPARAVIS_la_CPPFLAGS
+ -ftemplate-depth-32
+ ${HDF5_INCLUDES}
+ ${QT_INCLUDES}
+ ${QT_ASSISTANT_INCLUDES}
+ ${PARAVIEW_INCLUDES}
+ ${VTK_INCLUDES}
+ ${CAS_CPPFLAGS}
+ ${PYTHON_INCLUDES}
+ ${CAS_CPPFLAGS}
+ ${CAS_CXXFLAGS}
+ ${KERNEL_CXXFLAGS}
+ ${CORBA_CXXFLAGS}
+ ${CORBA_INCLUDES}
+ ${GUI_CXXFLAGS}
+ ${VISU_CXXFLAGS}
+ ${MED_CXXFLAGS}
+ -I${CMAKE_CURRENT_SOURCE_DIR}
+ -I${CMAKE_BINARY_DIR}/idl
+ -I${CMAKE_CURRENT_SOURCE_DIR}/../../idl
+ -I${CMAKE_BINARY_DIR}/salome_adm/unix
+ ${VISU_PARAVIS_DEFINES}
+)
+
+# additionnal linkage flags
+# Note that ParaView uses HDF5
+SET(libPARAVIS_la_LDFLAGS
+ ${PYTHON_LIBS}
+ ${QT_MT_LIBS}
+ ${HDF5_LIBS}
+ ${QT_ASSISTANT_LIBS}
+ ${PARAVIEW_LIBS}
+ ${CMAKE_BINARY_DIR}/idl/libSalomeIDLPARAVIS.la
+ ${KERNEL_LDFLAGS}
+ ${SalomeNS}
+ ${SalomeDSClient}
+ ${SalomeContainer}
+ ${SalomeLifeCycleCORBA}
+ ${GUI_LDFLAGS}
+ ${SalomeApp}
+ ${LightApp}
+ ${VISU_LDFLAGS}
+ ${VISU_PARAVIS_LIBS}
+)
+
+SET(libPARAVIS_la_LIBADD
+ ${SalomeIDLKernel}
+ ${SalomeHDFPersist}
+ ${SalomeGenericObj}
+ ${SalomeContainer}
+ ${SalomeCommunication}
+ ${SalomeNS}
+ ${TOOLSDS}
+ ${OpUtil}
+ ${SalomeLifeCycleCORBA}
+ ${Event}
+ ${SalomeApp}
+ ${SalomeSession}
+ ${qtx}
+ ${LightApp}
+)
+
+#
+# resources files
+SET(nodist_salomeres_DATA
+ PARAVIS_images.qm
+ PARAVIS_msg_en.qm
+)
+
+# mostlyclean-local: clean-wrap
+
+# clean-wrap:
+# -rm -f *.hh *.cc PARAVIS_CreateClass.cxx
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+
+ FOREACH(amname ${lib_LTLIBRARIES})
+
+
+ STRING(REPLACE .la _la amname ${amname})
+
+
+ STRING(LENGTH ${amname} len)
+ MATH(EXPR newlen "${len}-3")
+ STRING(SUBSTRING ${amname} 0 ${newlen} name)
+
+
+ STRING(REGEX MATCH "^lib" BEGIN_WITH_lib ${name})
+ IF(BEGIN_WITH_lib)
+ STRING(LENGTH ${name} len)
+ MATH(EXPR newlen "${len}-3")
+ STRING(SUBSTRING ${name} 3 ${newlen} name)
+ ENDIF(BEGIN_WITH_lib)
+
+
+ STRING(REGEX MATCH "IDL" ISIDL ${name})
+
+
+ IF(ISIDL)
+ IF(WINDOWS)
+ SET(type STATIC)
+ ELSE(WINDOWS)
+ SET(type SHARED)
+ ENDIF(WINDOWS)
+ ELSE(ISIDL)
+ SET(type SHARED)
+ ENDIF(ISIDL)
+
+
+ SET(srcs)
+ FOREACH(src ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+ GET_FILENAME_COMPONENT(ext ${src} EXT)
+ IF(ext STREQUAL .f)
+ IF(src STREQUAL trte.f)
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${src})
+ STRING(REPLACE ".f" ".c" src ${src})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${src})
+ SET(output ${src})
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND f2c ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ ELSE(src STREQUAL trte.f)
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${src})
+ STRING(REPLACE ".f" ".o" src ${src})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${src})
+ SET(output ${src})
+ IF(WINDOWS)
+ SET(F77 g77)
+ ELSE(WINDOWS)
+ SET(F77 gfortran)
+ ENDIF(WINDOWS)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND ${F77} -c -o ${output} ${input}
+ MAIN_DEPENDENCY ${input}
+ )
+ ENDIF(src STREQUAL trte.f)
+ ENDIF(ext STREQUAL .f)
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(src ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+
+
+ SET(l ${nodist_${amname}_SOURCES} ${UIC_FILES})
+ FOREACH(f ${l})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(f ${l})
+
+
+ SET(build_srcs)
+ SET(l ${nodist_${amname}_SOURCES} ${BUILT_SOURCES})
+ FOREACH(f ${l})
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ ELSE(ext STREQUAL .py)
+ SET(build_srcs ${build_srcs} ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ ENDIF(ext STREQUAL .py)
+ ENDFOREACH(f ${l})
+
+
+ ADD_LIBRARY(${name} ${type} ${srcs})
+
+
+ SET(var)
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} SalomeIDLKernel)
+ SET(targets ${targets} SalomeDS)
+ SET(targets ${targets} SALOMEDSTest)
+ SET(targets ${targets} SALOMEDS_Client_exe)
+ SET(targets ${targets} SalomeIDLGEOM)
+ SET(targets ${targets} GEOMEngine)
+ SET(targets ${targets} MEDEngine)
+ SET(targets ${targets} SMESHEngine)
+ SET(targets ${targets} SMESH)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(var ${var} -DNOGDI)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(var ${var} -I${dir})
+ SET(var ${var} -DF2C_BUILD)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(var ${var} ${AM_CPPFLAGS})
+ SET(var ${var} ${AM_CXXFLAGS})
+
+
+ SET(var ${var} ${PLATFORM_CPPFLAGS})
+ SET(var ${var} ${PTHREAD_CFLAGS})
+ SET(var ${var} ${${amname}_CPPFLAGS})
+ SET(var ${var} ${${amname}_CXXFLAGS})
+ SET(var ${var} ${${amname}_CFLAGS})
+ SET(vars)
+ IF(WINDOWS)
+ SET(vars ${vars} -include SALOMEconfig.h)
+ SET(vars ${vars} -ftemplate-depth-32)
+ SET(vars ${vars} -fPIC)
+ SET(vars ${vars} -g)
+ ENDIF(WINDOWS)
+ SET(flags)
+ FOREACH(f ${var})
+ FOREACH(v ${vars})
+ IF(f STREQUAL v)
+ SET(f)
+ ENDIF(f STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(flags "${flags} ${f}")
+ ENDFOREACH(f ${var})
+ SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "${flags}")
+
+
+ SET_TARGET_PROPERTIES(${name} PROPERTIES VERSION ${VERSION_INFO} SOVERSION ${SOVERSION_INFO})
+
+
+ SET(libadd)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(libadd ${libadd} ${dir}/LIBF77.lib)
+ SET(libadd ${libadd} ${dir}/LIBI77.lib)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(libs ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+ FOREACH(lib SALOMEBasics SalomeBatch)
+ IF(name STREQUAL lib)
+ SET(libs ${libs} ${PTHREAD_LIBS})
+ ENDIF(name STREQUAL lib)
+ ENDFOREACH(lib SALOMEBasics SalomeBatch)
+
+
+ FOREACH(lib ${libs})
+ GET_FILENAME_COMPONENT(ext ${lib} EXT)
+ IF(ext STREQUAL .la)
+ GET_FILENAME_COMPONENT(lib ${lib} NAME_WE)
+ STRING(REGEX REPLACE "^lib" "" lib ${lib})
+ ENDIF(ext STREQUAL .la)
+ SET(vars)
+ SET(vars ${vars} -no-undefined)
+ SET(vars ${vars} -lvtkWidgets)
+ IF(WINDOWS)
+ SET(vars ${vars} -module)
+ SET(vars ${vars} -Wl,-E)
+ SET(vars ${vars} -Xlinker)
+ SET(vars ${vars} -export-dynamic)
+ SET(vars ${vars} -lm)
+ SET(vars ${vars} -lboost_thread)
+ SET(vars ${vars} -lboost_signals)
+ SET(vars ${vars} -pthread -lpthread -ldl)
+ ENDIF(WINDOWS)
+ FOREACH(v ${vars})
+ IF(lib STREQUAL v)
+ SET(lib)
+ ENDIF(lib STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(libadd ${libadd} ${lib})
+ ENDFOREACH(lib ${libs})
+ TARGET_LINK_LIBRARIES(${name} ${libadd})
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ SET_TARGET_PROPERTIES(${name} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(DEST lib/salome)
+
+
+ IF(BEGIN_WITH_lib)
+ INSTALL(TARGETS ${name} DESTINATION ${DEST})
+
+
+ ELSE(BEGIN_WITH_lib)
+
+
+ IF(WINDOWS)
+ INSTALL(TARGETS ${name} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome)
+ IF(CMAKE_BUILD_TYPE STREQUAL Release)
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome/${name}.dll DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.pyd)
+ ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/lib/python${PYTHON_VERSION}/site-packages/salome/${name}.dll DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}_d.pyd)
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
+ ELSE(WINDOWS)
+ GET_TARGET_PROPERTY(version ${name} VERSION)
+ GET_TARGET_PROPERTY(soversion ${name} SOVERSION)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so.${version})
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so.${soversion})
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lib${name}.so.${version} DESTINATION lib/python${PYTHON_VERSION}/site-packages/salome RENAME ${name}.so)
+ ENDIF(WINDOWS)
+
+
+ ENDIF(BEGIN_WITH_lib)
+
+
+ ENDFOREACH(amname ${lib_LTLIBRARIES})
+
+
+ FOREACH(amname ${bin_PROGRAMS} ${check_PROGRAMS})
+
+
+ SET(name "${amname}_exe")
+ SET(srcs ${${amname}_SOURCES} ${dist_${amname}_SOURCES})
+ SET(l ${nodist_${amname}_SOURCES})
+ FOREACH(f ${l})
+ SET(src ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ SET(srcs ${srcs} ${src})
+ ENDFOREACH(f ${l})
+ LIST(LENGTH srcs nb)
+ IF(nb)
+ ADD_EXECUTABLE(${name} ${srcs})
+
+
+ SET(var)
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} SalomeIDLKernel)
+ SET(targets ${targets} SalomeDS)
+ SET(targets ${targets} SALOMEDSTest)
+ SET(targets ${targets} SALOMEDS_Client_exe)
+ SET(targets ${targets} SalomeIDLGEOM)
+ SET(targets ${targets} GEOMEngine)
+ SET(targets ${targets} MEDEngine)
+ SET(targets ${targets} SMESHEngine)
+ SET(targets ${targets} SMESH)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(var ${var} -DNOGDI)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(var ${var} -I${dir})
+ SET(var ${var} -DF2C_BUILD)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(var ${var} ${AM_CPPFLAGS})
+ SET(var ${var} ${AM_CXXFLAGS})
+
+
+ SET(var ${var} ${PLATFORM_CPPFLAGS})
+ SET(var ${var} ${PTHREAD_CFLAGS})
+ SET(var ${var} ${${amname}_CPPFLAGS})
+ SET(var ${var} ${${amname}_CXXFLAGS})
+ SET(var ${var} ${${amname}_CFLAGS})
+ SET(vars)
+ IF(WINDOWS)
+ SET(vars ${vars} -include SALOMEconfig.h)
+ SET(vars ${vars} -ftemplate-depth-32)
+ SET(vars ${vars} -fPIC)
+ SET(vars ${vars} -g)
+ ENDIF(WINDOWS)
+ SET(flags)
+ FOREACH(f ${var})
+ FOREACH(v ${vars})
+ IF(f STREQUAL v)
+ SET(f)
+ ENDIF(f STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(flags "${flags} ${f}")
+ ENDFOREACH(f ${var})
+ SET_TARGET_PROPERTIES(${name} PROPERTIES COMPILE_FLAGS "${flags}")
+
+
+ SET(libadd)
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ SET(dir $ENV{F2CHOME})
+ STRING(REPLACE "\\\\" "/" dir ${dir})
+ SET(libadd ${libadd} ${dir}/LIBF77.lib)
+ SET(libadd ${libadd} ${dir}/LIBI77.lib)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(libs ${PLATFORM_LIBADD} ${PLATFORM_LDFLAGS} ${${amname}_LIBADD} ${${amname}_LDADD} ${${amname}_LDFLAGS})
+ FOREACH(lib SALOMEBasics SalomeBatch)
+ IF(name STREQUAL lib)
+ SET(libs ${libs} ${PTHREAD_LIBS})
+ ENDIF(name STREQUAL lib)
+ ENDFOREACH(lib SALOMEBasics SalomeBatch)
+
+
+ SET(libs ${libs} ${LDADD})
+
+
+ FOREACH(lib ${libs})
+ GET_FILENAME_COMPONENT(ext ${lib} EXT)
+ IF(ext STREQUAL .la)
+ GET_FILENAME_COMPONENT(lib ${lib} NAME_WE)
+ STRING(REGEX REPLACE "^lib" "" lib ${lib})
+ ENDIF(ext STREQUAL .la)
+ SET(vars)
+ SET(vars ${vars} -no-undefined)
+ SET(vars ${vars} -lvtkWidgets)
+ IF(WINDOWS)
+ SET(vars ${vars} -module)
+ SET(vars ${vars} -Wl,-E)
+ SET(vars ${vars} -Xlinker)
+ SET(vars ${vars} -export-dynamic)
+ SET(vars ${vars} -lm)
+ SET(vars ${vars} -lboost_thread)
+ SET(vars ${vars} -lboost_signals)
+ SET(vars ${vars} -pthread -lpthread -ldl)
+ ENDIF(WINDOWS)
+ FOREACH(v ${vars})
+ IF(lib STREQUAL v)
+ SET(lib)
+ ENDIF(lib STREQUAL v)
+ ENDFOREACH(v ${vars})
+ SET(libadd ${libadd} ${lib})
+ ENDFOREACH(lib ${libs})
+ TARGET_LINK_LIBRARIES(${name} ${libadd})
+
+
+ IF(WINDOWS)
+ SET(targets)
+ SET(targets ${targets} MEFISTO2D)
+ FOREACH(target ${targets})
+ IF(name STREQUAL ${target})
+ IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ SET_TARGET_PROPERTIES(${name} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:MSVCRT")
+ ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+ ENDIF(name STREQUAL ${target})
+ ENDFOREACH(target ${targets})
+ ENDIF(WINDOWS)
+
+
+ SET(DEST bin/salome)
+
+
+ IF(WINDOWS)
+ INSTALL(TARGETS ${name} DESTINATION ${DEST})
+ INSTALL(FILES ${CMAKE_INSTALL_PREFIX}/${DEST}/${name}.exe DESTINATION ${DEST} RENAME ${amname}.exe)
+ INSTALL(CODE "FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${name}.exe)")
+ ELSE(WINDOWS)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${name} DESTINATION ${DEST} PERMISSIONS ${PERMS} RENAME ${amname})
+ ENDIF(WINDOWS)
+
+
+ ENDIF(nb)
+
+
+ ENDFOREACH(amname ${bin_PROGRAMS} ${check_PROGRAMS})
+
+
+ FOREACH(output ${MOC_FILES})
+
+
+ STRING(REGEX REPLACE _moc.cxx .h input ${output})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/${input})
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${output})
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${output}
+ COMMAND ${QT_MOC_EXECUTABLE} ${MOC_FLAGS} ${input} -o ${output}
+ MAIN_DEPENDENCY ${input}
+ )
+ ENDFOREACH(output ${MOC_FILES})
+
+FOREACH(f ${nodist_salomeres_DATA})
+
+ SET(DEST share/salome/resources/paravis)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${nodist_salomeres_DATA})
+++ /dev/null
-# PARAVIS : ParaView wrapper SALOME module
-#
-# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# Author : Julia DOROVSKIKH
-# Date : 01/06/2005
-# Modified by : Alexander BORODIN (OCN) - autotools usage
-
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-#Executable
-bin_PROGRAMS = vtkWrapIDL_HH vtkWrapIDL_CC
-
-dist_vtkWrapIDL_HH_SOURCES = ${PVHOME}/src/vtkParse.tab.c $(top_srcdir)/idl/vtkWrapIDL.c
-dist_vtkWrapIDL_CC_SOURCES = ${PVHOME}/src/vtkParse.tab.c $(top_srcdir)/idl/vtkWrapIDL.c
-
-vtkWrapIDL_HH_CPPFLAGS = -DIDL_I_HH ${PARAVIEW_INCLUDES}
-
-
-vtkWrapIDL_CC_CPPFLAGS = -DIDL_I_CC ${PARAVIEW_INCLUDES}
-
-include $(srcdir)/wrap.am
-
-# Library target
-lib_LTLIBRARIES = libPARAVIS.la
-
-# Library sources
-dist_libPARAVIS_la_SOURCES = \
- PVGUI_Module.h \
- PVGUI_Module_impl.h \
- PVGUI_Module.cxx \
- PVGUI_Module_actions.cxx \
- PVGUI_Module_widgets.cxx \
- PVGUI_ProcessModuleHelper.h \
- PVGUI_ProcessModuleHelper.cxx \
- PVGUI_ViewManager.h \
- PVGUI_ViewManager.cxx \
- PVGUI_ViewModel.h \
- PVGUI_ViewModel.cxx \
- PVGUI_ViewWindow.h \
- PVGUI_ViewWindow.cxx \
- PVGUI_OutputWindowAdapter.h \
- PVGUI_OutputWindowAdapter.cxx \
- PVGUI_Tools.h \
- PVGUI_Tools.cxx \
- PVGUI_Trace.h \
- PVGUI_Trace.cxx \
- PV_I.h \
- PARAVIS_Gen_i.hh \
- PV_Events.h \
- PV_Tools.h \
- PARAVIS_Gen_i.cc \
- PV_Tools.cxx \
- $(WRAP_IDL_I_HH) \
- $(WRAP_IDL_I_CC) \
- PARAVIS_CreateClass.cxx
-
-# MOC pre-processing
-MOC_FILES = \
- PVGUI_Module_moc.cxx \
- PVGUI_ViewManager_moc.cxx \
- PVGUI_ViewModel_moc.cxx \
- PVGUI_ViewWindow_moc.cxx \
- PVGUI_Trace_moc.cxx
-
-nodist_libPARAVIS_la_SOURCES = $(MOC_FILES)
-
-# additionnal compilation flags
-# Note that ParaView uses HDF5
-libPARAVIS_la_CPPFLAGS = \
- -ftemplate-depth-32 \
- $(HDF5_INCLUDES) \
- $(QT_INCLUDES) \
- $(QT_ASSISTANT_INCLUDES) \
- $(PARAVIEW_INCLUDES) \
- $(CAS_CPPFLAGS) \
- $(PYTHON_INCLUDES) \
- @CAS_CPPFLAGS@ @CAS_CXXFLAGS@ \
- $(KERNEL_CXXFLAGS) \
- $(CORBA_CXXFLAGS) $(CORBA_INCLUDES) \
- $(GUI_CXXFLAGS) \
- $(VISU_CXXFLAGS) \
- $(MED_CXXFLAGS) \
- -I$(top_builddir)/idl \
- -I$(srcdir)/../../idl \
- -I$(top_builddir)/salome_adm/unix
-
-# additionnal linkage flags
-# Note that ParaView uses HDF5
-libPARAVIS_la_LDFLAGS = \
- $(PYTHON_LIBS) \
- $(QT_MT_LIBS) \
- $(HDF5_LIBS) \
- $(QT_ASSISTANT_LIBS) \
- $(PARAVIEW_LIBS) \
- ../../idl/libSalomeIDLPARAVIS.la \
- $(KERNEL_LDFLAGS) -lSalomeNS -lSalomeDSClient -lSalomeContainer -lSalomeLifeCycleCORBA \
- $(GUI_LDFLAGS) -lSalomeApp -lLightApp \
- $(VISU_LDFLAGS) -lSalomeIDLVISU
-
-libPARAVIS_la_LIBADD= \
- -lSalomeIDLKernel \
- -lSalomeHDFPersist \
- -lSalomeGenericObj \
- -lSalomeContainer \
- -lSalomeCommunication \
- -lSalomeNS \
- -lTOOLSDS \
- -lOpUtil \
- -lSalomeLifeCycleCORBA \
- -lEvent \
- -lSalomeApp \
- -lSalomeSession \
- -lqtx \
- -lLightApp
-
-#
-# resources files
-nodist_salomeres_DATA = \
- PARAVIS_images.qm \
- PARAVIS_msg_en.qm
-
-mostlyclean-local: clean-wrap
-
-clean-wrap:
- -rm -f *.hh *.cc
#include <CAM_Module.h>
#include "PVGUI_Module.h"
#include <SalomeApp_Application.h>
+#include <SUIT_ResourceMgr.h>
#include <SALOMEDS_Tool.hxx>
#include <QFileInfo>
#include "QDomNode"
#include "QDomElement"
#include "QFile"
+#include "QDir"
#include "QTextStream"
#include "vtkWrapIDL.h"
char* PARAVIS_Gen_i::GetTrace()
{
if(MYDEBUG) MESSAGE("PARAVIS_Gen_i::PrintTrace: ");
- return CORBA::string_dup(ProcessEvent(new TGetTrace(mySalomeApp)));
+ return CORBA::string_dup(ProcessEvent(new TGetTrace(mySalomeApp)).c_str());
}
//----------------------------------------------------------------------------
}
//----------------------------------------------------------------------------
- void processElements(QDomNode& thePropertyNode, QStringList& theFileNames, const char* theNewPath)
+ void processElements(QDomNode& thePropertyNode, QStringList& theFileNames, const char* theNewPath, bool theRestore)
{
QDomNode aElementNode = thePropertyNode.firstChild();
while (aElementNode.isElement()) {
if (aIndex == "0") {
QString aValue = aElement.attribute("value");
if (!aValue.isNull()) {
- if (theNewPath == 0) {
+ if (!theNewPath) {
QFileInfo aFInfo(aValue);
- theFileNames<<aValue;
- aElement.setAttribute("value", aFInfo.fileName());
+ if (aFInfo.exists()) {
+ theFileNames<<aValue;
+ aElement.setAttribute("value", aFInfo.fileName());
+ }
break;
} else {
- aElement.setAttribute("value", QString(theNewPath) + aValue);
+ if (theRestore)
+ aElement.setAttribute("value", QString(theNewPath) + aValue);
}
}
}
//----------------------------------------------------------------------------
- void processProperties(QDomNode& theProxyNode, QStringList& theFileNames, const char* theNewPath)
+ void processProperties(QDomNode& theProxyNode, QStringList& theFileNames, const char* theNewPath, bool theRestore)
{
QDomNode aPropertyNode = theProxyNode.firstChild();
while (aPropertyNode.isElement()) {
QDomElement aProperty = aPropertyNode.toElement();
QString aName = aProperty.attribute("name");
if ((aName == "FileName") || (aName == "FileNameInfo") || (aName == "FileNames")) {
- processElements(aPropertyNode, theFileNames, theNewPath);
+ processElements(aPropertyNode, theFileNames, theNewPath, theRestore);
}
aPropertyNode = aPropertyNode.nextSibling();
}
//----------------------------------------------------------------------------
- void processProxies(QDomNode& theNode, QStringList& theFileNames, const char* theNewPath)
+ void processProxies(QDomNode& theNode, QStringList& theFileNames, const char* theNewPath, bool theRestore)
{
QDomNode aProxyNode = theNode.firstChild();
while (aProxyNode.isElement()) {
if (aProxy.tagName() == "Proxy") {
QString aGroup = aProxy.attribute("group");
if (aGroup == "sources") {
- processProperties(aProxyNode, theFileNames, theNewPath);
+ processProperties(aProxyNode, theFileNames, theNewPath, theRestore);
}
}
aProxyNode = aProxyNode.nextSibling();
}
//----------------------------------------------------------------------------
- bool processAllFilesInState(const char* aFileName, QStringList& theFileNames, const char* theNewPath)
+ bool processAllFilesInState(const char* aFileName, QStringList& theFileNames,
+ const char* theNewPath, bool theRestore = false)
{
QFile aFile(aFileName);
if (!aFile.open(QFile::ReadOnly)) {
}
QDomElement aRoot = aDoc.documentElement();
- if ( aRoot.isNull() || aRoot.tagName() != "ParaView" ) {
+ if ( aRoot.isNull() /*|| aRoot.tagName() != "SALOME" Names are different in various versions */ ) {
MESSAGE( "Invalid XML root" );
return false;
}
if ( aRes ) {
QDomElement aSection = aNode.toElement();
if (aSection.tagName() == "ServerManagerState") {
- processProxies(aNode, theFileNames, theNewPath);
+ processProxies(aNode, theFileNames, theNewPath, theRestore);
}
}
aNode = aNode.nextSibling();
}
- //----------------------------------------------------------------------------
- SALOMEDS::TMPFile* PARAVIS_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent,
- const char* theURL, bool isMultiFile)
+ SALOMEDS::TMPFile* SaveState(long thePID, SalomeApp_Application* theApp, SALOMEDS::SComponent_ptr theComponent,
+ const char* theURL, bool isMultiFile)
{
- if(MYDEBUG) MESSAGE("PARAVIS_Gen_i::Save - theURL = '"<<theURL<<"'");
-
std::string aTmpDir = SALOMEDS_Tool::GetTmpDir();
std::ostringstream aStream;
- aStream<<"paravisstate:"<<(long)this;
+ aStream<<"paravisstate:"<<thePID;
std::string aFileName = "_" + aStream.str();
if(MYDEBUG) MESSAGE("aFileName = '"<<aFileName);
- //std::vector<std::string> aFileNames;
- //aFileNames.push_back(aFileName);
-
SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
std::string aFile = aTmpDir + aFileName;
- ProcessVoidEvent(new TSaveStateFile(mySalomeApp, aFile.c_str()));
+ ProcessVoidEvent(new TSaveStateFile(theApp, aFile.c_str()));
- // TO Do: Collect all files from state
- QStringList aFileNames;
- processAllFilesInState(aFile.c_str(), aFileNames, 0);
- aFileNames<<QString(aFile.c_str());
+ // Collect all files from state
+ SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr();
+ int aSavingType = aResourceMgr->integerValue( "PARAVIS", "savestate_type", 0 );
+ QStringList aFileNames;
QStringList aNames;
+
+ switch (aSavingType) {
+ case 0: // Save referenced files only for builin server
+ {
+ MESSAGE("Save as built in;")
+ bool aIsBuiltIn = true;
+ pqServer* aServer = ProcessEvent(new TGetActiveServer(theApp));
+ if (aServer)
+ aIsBuiltIn != aServer->isRemote();
+
+ if (aIsBuiltIn)
+ {
+ // Find referenced files and collect their paths nullyfying references
+ processAllFilesInState(aFile.c_str(), aFileNames, 0);
+ SetRestoreParam(theComponent, true);
+ } else {
+ SetRestoreParam(theComponent, false);
+ }
+ }
+ break;
+ case 1: //Save referenced files when they are accessible
+ {
+ // Find referenced files and collect their paths nullyfying references
+ processAllFilesInState(aFile.c_str(), aFileNames, 0);
+ SetRestoreParam(theComponent, true);
+ }
+ break;
+ case 2: //Never save referenced files
+ SetRestoreParam(theComponent, false);
+ break;
+ }
+ aFileNames<<QString(aFile.c_str());
foreach(QString aFile, aFileNames) {
QFileInfo aInfo(aFile);
aNames<<aInfo.fileName();
}
-
SALOMEDS::ListOfFileNames_var aListOfFileNames = GetListOfFileNames(aFileNames);
SALOMEDS::ListOfFileNames_var aListOfNames = GetListOfFileNames(aNames);
aStreamFile = SALOMEDS_Tool::PutFilesToStream(aListOfFileNames.in(), aListOfNames.in());
- SALOMEDS_Tool::RemoveTemporaryFiles(theURL, aListOfFileNames, true);
-
+ //SALOMEDS_Tool::RemoveTemporaryFiles(theURL, aListOfFileNames, true);
+
return aStreamFile._retn();
}
+
+ //----------------------------------------------------------------------------
+ SALOMEDS::TMPFile* PARAVIS_Gen_i::Save(SALOMEDS::SComponent_ptr theComponent,
+ const char* theURL, bool isMultiFile)
+ {
+ if(MYDEBUG) MESSAGE("PARAVIS_Gen_i::Save - theURL = '"<<theURL<<"'");
+ return SaveState((long) this, mySalomeApp, theComponent, theURL, isMultiFile);
+ }
//----------------------------------------------------------------------------
SALOMEDS::TMPFile* PARAVIS_Gen_i::SaveASCII(SALOMEDS::SComponent_ptr theComponent,
const char* theURL, bool isMultiFile)
{
if(MYDEBUG) MESSAGE("PARAVIS_Gen_i::Save - theURL = '"<<theURL<<"'");
-
- std::string aTmpDir = SALOMEDS_Tool::GetTmpDir();
-
- std::ostringstream aStream;
- aStream<<"paravisstate:"<<(long)this;
- std::string aFileName = "_" + aStream.str();
- if(MYDEBUG) MESSAGE("aFileName = '"<<aFileName);
-
- SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(0);
-
- std::string aFile = aTmpDir + aFileName;
- ProcessVoidEvent(new TSaveStateFile(mySalomeApp, aFile.c_str()));
-
- //Collect all files from state
- QStringList aFileNames;
- processAllFilesInState(aFile.c_str(), aFileNames, 0);
- aFileNames<<QString(aFile.c_str());
-
- QStringList aNames;
- foreach(QString aFile, aFileNames) {
- QFileInfo aInfo(aFile);
- aNames<<aInfo.fileName();
- }
-
- SALOMEDS::ListOfFileNames_var aListOfFileNames = GetListOfFileNames(aFileNames);
- SALOMEDS::ListOfFileNames_var aListOfNames = GetListOfFileNames(aNames);
-
- aStreamFile = SALOMEDS_Tool::PutFilesToStream(aListOfFileNames.in(), aListOfNames.in());
- SALOMEDS_Tool::RemoveTemporaryFiles(theURL, aListOfFileNames, true);
-
- return aStreamFile._retn();
+ return SaveState((long) this, mySalomeApp, theComponent, theURL, isMultiFile);
}
//----------------------------------------------------------------------------
- bool PARAVIS_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile& theStream,
- const char* theURL, bool isMultiFile)
+ bool LoadState(SalomeApp_Application* theApp, SALOMEDS::SComponent_ptr theComponent,
+ const SALOMEDS::TMPFile& theStream, const char* theURL, bool isMultiFile)
{
std::string aTmpDir = isMultiFile ? theURL : SALOMEDS_Tool::GetTmpDir();
if(MYDEBUG) MESSAGE("PARAVIS_Gen_i::Load - "<<aTmpDir);
if (aSeq->length() == 0)
return false;
+ bool aRestore = GetRestoreParam(theComponent);
+ MESSAGE("PARAVIS_Gen_i::Restore path - "<<aRestore);
+
std::string aFile = aTmpDir + std::string(aSeq[aSeq->length() - 1]);
QStringList aEmptyList;
- processAllFilesInState(aFile.c_str(), aEmptyList, aTmpDir.c_str());
- ProcessVoidEvent(new TLoadStateFile(mySalomeApp, aFile.c_str()));
+ processAllFilesInState(aFile.c_str(), aEmptyList, aTmpDir.c_str(), aRestore);
+ ProcessVoidEvent(new TLoadStateFile(theApp, aFile.c_str()));
return true;
}
+ //----------------------------------------------------------------------------
+ bool PARAVIS_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile& theStream,
+ const char* theURL, bool isMultiFile)
+ {
+ return LoadState(mySalomeApp, theComponent, theStream, theURL, isMultiFile);
+ }
+
//----------------------------------------------------------------------------
bool PARAVIS_Gen_i::LoadASCII(SALOMEDS::SComponent_ptr theComponent,
const SALOMEDS::TMPFile& theStream,
const char* theURL, bool isMultiFile)
{
- std::string aTmpDir = isMultiFile ? theURL : SALOMEDS_Tool::GetTmpDir();
- if(MYDEBUG) MESSAGE("PARAVIS_Gen_i::Load - "<<aTmpDir);
-
- SALOMEDS::ListOfFileNames_var aSeq = SALOMEDS_Tool::PutStreamToFiles(theStream, aTmpDir, false);
- if (aSeq->length() == 0)
- return false;
-
- std::string aFile = aTmpDir + std::string(aSeq[aSeq->length() - 1]);
- QStringList aEmptyList;
- processAllFilesInState(aFile.c_str(), aEmptyList, aTmpDir.c_str());
- ProcessVoidEvent(new TLoadStateFile(mySalomeApp, aFile.c_str()));
-
- return true;
+ return LoadState(mySalomeApp, theComponent, theStream, theURL, isMultiFile);
}
//----------------------------------------------------------------------------
aResult += "\ndef RebuildData(theStudy):\n pass\n";
CORBA::ULong aSize = aResult.size() + 1;
char* aBuffer = new char[aSize];
+ memset(aBuffer, 0, aSize);
strcpy(aBuffer, &aResult[0]);
Engines::TMPFile_var aDump = new Engines::TMPFile(aSize,aSize,(CORBA::Octet*)aBuffer,1);
return aDump._retn();
// Author : Julia DOROVSKIKH
//
+#include <vtkPython.h> // Python first
#include "PVGUI_Module.h"
#include "SALOMEconfig.h"
#include "PARAVIS_Gen_i.hh"
#include "PVGUI_Module_impl.h"
-#include "PVGUI_ProcessModuleHelper.h"
#include "PVGUI_ViewModel.h"
#include "PVGUI_ViewManager.h"
#include "PVGUI_ViewWindow.h"
#include "PVGUI_Tools.h"
-#include "PVGUI_Trace.h"
+//#include "PVGUI_Trace.h"
#include <SUIT_Desktop.h>
#include <SUIT_MessageBox.h>
#include "SALOME_ListIteratorOfListIO.hxx"
#include "SALOMEDS_SObject.hxx"
-//#include <LightApp_Application.h>
#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Application.h>
#include <SalomeApp_Study.h>
#include <SALOME_ListIO.hxx>
#include <SALOMEDS_Tool.hxx>
+#include <PyInterp_Dispatcher.h>
#include <QtxActionMenuMgr.h>
#include <QtxActionToolMgr.h>
#include <QStringList>
#include <QTimer>
#include <QToolBar>
+#include <QTextStream>
+#include <QShortcut>
#include <pqApplicationCore.h>
#include <pqActiveView.h>
-#include <pqClientAboutDialog.h>
#include <pqObjectBuilder.h>
#include <pqOptions.h>
#include <pqRenderView.h>
-#include <pqRubberBandHelper.h>
#include <pqServer.h>
-//#include <pqServerManagerModel.h>
-//#include <pqServerResource.h>
#include <pqUndoStack.h>
#include <pqVCRController.h>
#include <pqViewManager.h>
#include <pqPipelineSource.h>
#include <vtkPVMain.h>
#include <vtkProcessModule.h>
+#include <pqParaViewBehaviors.h>
+#include <pqHelpReaction.h>
+#include <vtkOutputWindow.h>
+#include <pqPluginManager.h>
+#include <vtkPVPluginInformation.h>
+#include <pqSettings.h>
+#include <pqPythonDialog.h>
+#include <pqPythonManager.h>
+#include <pqPythonShell.h>
+#include "pqBrandPluginsLoader.h"
+#include <pqLoadDataReaction.h>
/*
* Make sure all the kits register their classes with vtkInstantiator.
#include <vtkHybridInstantiator.h>
#include <vtkParallelInstantiator.h>
-//#include <vtkPVServerCommonInstantiator.h>
-//#include <vtkPVFiltersInstantiator.h>
-//#include <vtkPVServerManagerInstantiator.h>
-//#include <vtkClientServerInterpreter.h>
-
-
-
-//----------------------------------------------------------------------------
-// ClientServer wrapper initialization functions.
-// Taken from ParaView sources (file pqMain.cxx)
-extern "C" void vtkCommonCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkFilteringCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkGenericFilteringCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkImagingCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkInfovisCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkGraphicsCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkIOCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkRenderingCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkVolumeRenderingCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkHybridCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkWidgetsCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkParallelCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkPVServerCommonCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkPVFiltersCS_Initialize(vtkClientServerInterpreter*);
-extern "C" void vtkXdmfCS_Initialize(vtkClientServerInterpreter *);
+#include <pqAlwaysConnectedBehavior.h>
+#include <pqApplicationCore.h>
+#include <pqAutoLoadPluginXMLBehavior.h>
+#include <pqCommandLineOptionsBehavior.h>
+#include <pqCrashRecoveryBehavior.h>
+#include <pqDataTimeStepBehavior.h>
+#include <pqDefaultViewBehavior.h>
+#include <pqDeleteBehavior.h>
+#include <pqPersistentMainWindowStateBehavior.h>
+#include <pqPluginActionGroupBehavior.h>
+#include <pqPluginDockWidgetsBehavior.h>
+#include <pqPluginManager.h>
+#include <pqPVNewSourceBehavior.h>
+//#include <pqQtMessageHandlerBehavior.h>
+#include <pqSpreadSheetVisibilityBehavior.h>
+#include <pqStandardViewModules.h>
+#include <pqUndoRedoBehavior.h>
+#include <pqViewFrameActionsBehavior.h>
//----------------------------------------------------------------------------
-void ParaViewInitializeInterpreter(vtkProcessModule* pm)
-{
- vtkClientServerInterpreter* interp = pm->GetInterpreter();
- // Initialize built-in wrapper modules.
- vtkCommonCS_Initialize(interp);
- vtkFilteringCS_Initialize(interp);
- vtkGenericFilteringCS_Initialize(interp);
- vtkImagingCS_Initialize(interp);
- vtkInfovisCS_Initialize(interp);
- vtkGraphicsCS_Initialize(interp);
- vtkIOCS_Initialize(interp);
- vtkRenderingCS_Initialize(interp);
- vtkVolumeRenderingCS_Initialize(interp);
- vtkHybridCS_Initialize(interp);
- vtkWidgetsCS_Initialize(interp);
- vtkParallelCS_Initialize(interp);
- vtkPVServerCommonCS_Initialize(interp);
- vtkPVFiltersCS_Initialize(interp);
- vtkXdmfCS_Initialize(interp);
-}
-
-vtkPVMain* PVGUI_Module::pqImplementation::myPVMain = 0;
-pqOptions* PVGUI_Module::pqImplementation::myPVOptions = 0;
-PVGUI_ProcessModuleHelper* PVGUI_Module::pqImplementation::myPVHelper = 0;
+pqApplicationCore* PVGUI_Module::pqImplementation::Core = 0;
+PVGUI_OutputWindowAdapter* PVGUI_Module::pqImplementation::OutputWindowAdapter = 0;
+QPointer<pqHelpWindow> PVGUI_Module::pqImplementation::helpWindow = 0;
PVGUI_Module* ParavisModule = 0;
It also requires common SALOME environment including GUI_ROOT_DIR and other prerequsites.
- As soon as the environment is set, excute the following commands in a shell:
- \code
- mkdir PARAVIS_BUILD
- cd PARAVIS_BUILD
- ../PARAVIS_SRC/build_configure
- ../PARAVIS_SRC/configure --prefix=${PARAVIS_ROOT_DIR} -with-paraview
- make
- make docs
- make install
- \endcode
PARAVIS module can be launched using the following commands:
\li Full SALOME configuration
ParaView client initalization is performed when an instance of PVGUI_Module class has been created
and \link PVGUI_Module::initialize() PVGUI_Module::initialize()\endlink method is called by SALOME GUI.
The actual client start-up is done in \link PVGUI_Module::pvInit() PVGUI_Module::pvInit()\endlink method.
- It simulates actions perfomed by pqMain::Run( QApplication&, pqProcessModuleGUIHelper* ) method.
- Custom PVGUI_ProcessModuleHelper class derived from %pqProcessModuleGUIHelper base is the main actor in ParaView
- client initialization. It initializes the client that uses the main window (SALOME desktop) supplied from the outside,
- it does not start Qt event loop as this is done in SALOME GUI executable (SUITApp or SALOME_Session_Server), and after all
- it redirects ParaView diagnostic output to SALOME LogWindow with help of PVGUI_OutputWindowAdapter class.
- This is achieved by reimplementing \link PVGUI_ProcessModuleHelper::InitializeApplication() InitializeApplication()\endlink,
- \link PVGUI_ProcessModuleHelper::appExec() appExec()\endlink, \link PVGUI_ProcessModuleHelper::postAppExec() postAppExec()\endlink
- virtual methods as well as those responsible for main window management.
-
- <h3>ParaView GUI connection to SALOME desktop</h3>
-
- ParaView Qt components include pqMainWindowCore class that handles most ParaView GUI client actions,
- updates menu states and connects many GUI components.
- After the client initalization \link PVGUI_Module::initialize() PVGUI_Module::initialize()\endlink method creates
- an instance of internal PVGUI_Module::pqImplementation class (declared PVGUI_Module_impl.h) that wraps some ParaView GUI components:
- pqMainWindowCore, pqServer, etc. Instance of SALOME desktop widget is passed to pqMainWindowCore instead of ParaView main window.
-
- Basically it simulates constructor of ParaView client's %MainWindow class (src/Applications/Client/MainWindow.cxx). It creates the same
- menu and toolbar commands using SALOME menu and toolbar managers, connecting the actions to %pqMainWindowCore slots or to the module's
- slots in some cases. It also sets up dock widgets for ParaView widgets, such as object inspector, pipeline browser, etc.
-
- ParaView GUI resources (icons) are reused directly from the ParaView resource directory, they are loaded into SALOME GUI
- resource manager, the path to these icons is specified in PARAVIS configuration XML files (LightApp.xml and SlomeApp.xml).
-
- As both SALOME destop and ParaView main window classes inherit QMainWindow and %pqMainWindowCore deals with QMainWindow API to control
- menus, tollbars and dock widgets, its integration into SALOME GUI is straightforward and smooth.
<h3>Multi-view manager</h3>
<h3>ParaView plugins</h3>
ParaView server and client plugins are managed by %pqMainWindowCore slots that has full access to PARAVIS menus and toolbars.
As a result they appears automatically in PARAVIS menus and toolbars if loaded successfully.
-
- <h2>Limitations of 2008 year prototype</h2>
- \li SALOME persistence (possibility to save the module data into a tsudy file) is not implemented for PARAVIS module.
- \li As a light module, PARAVIS does not have a CORBA engine that follows SALOME rules, however PARAVIS can use load a CORBA engine
- on its own if needed.
*/
/*!
\class PVGUI_Module
- \brief Implementation of light (no-CORBA-engine)
+ \brief Implementation
SALOME module wrapping ParaView GUI.
*/
Implementation( 0 ),
mySelectionControlsTb( -1 ),
mySourcesMenuId( -1 ),
- myFiltersMenuId( -1 )
+ myFiltersMenuId( -1 ),
+ myMacrosMenuId(-1),
+ myToolbarsMenuId(-1),
+ myOldMsgHandler(0)
{
ParavisModule = this;
}
{
}
+
+
/*!
\brief Initialize module. Creates menus, prepares context menu, etc.
\param app SALOME GUI application instance
setupDockWidgets();
pvCreateActions();
- pvCreateMenus();
pvCreateToolBars();
+ pvCreateMenus();
+
+ // new pqParaViewBehaviors(anApp->desktop(), this);
+ // Has to be replaced in order to exclude using of pqQtMessageHandlerBehaviour
+ // Start pqParaViewBehaviors
+ // Register ParaView interfaces.
+ pqPluginManager* pgm = pqApplicationCore::instance()->getPluginManager();
+
+ // * adds support for standard paraview views.
+ pgm->addInterface(new pqStandardViewModules(pgm));
+
+ // Load plugins distributed with application.
+ pqApplicationCore::instance()->loadDistributedPlugins();
+
+ // Define application behaviors.
+ //new pqQtMessageHandlerBehavior(this);
+ new pqDataTimeStepBehavior(this);
+ new pqViewFrameActionsBehavior(this);
+ new pqSpreadSheetVisibilityBehavior(this);
+ new pqDefaultViewBehavior(this);
+ new pqAlwaysConnectedBehavior(this);
+ new pqPVNewSourceBehavior(this);
+ new pqDeleteBehavior(this);
+ new pqUndoRedoBehavior(this);
+ new pqCrashRecoveryBehavior(this);
+ new pqAutoLoadPluginXMLBehavior(this);
+ new pqPluginDockWidgetsBehavior(getApp()->desktop());
+ new pqPluginActionGroupBehavior(getApp()->desktop());
+ new pqCommandLineOptionsBehavior(this);
+ new pqPersistentMainWindowStateBehavior(getApp()->desktop());
+
+ // Setup quick-launch shortcuts.
+ QShortcut *ctrlSpace = new QShortcut(Qt::CTRL + Qt::Key_Space,
+ getApp()->desktop());
+ QObject::connect(ctrlSpace, SIGNAL(activated()),
+ pqApplicationCore::instance(), SLOT(quickLaunch()));
+ QShortcut *altSpace = new QShortcut(Qt::ALT + Qt::Key_Space,
+ getApp()->desktop());
+ QObject::connect(altSpace, SIGNAL(activated()),
+ pqApplicationCore::instance(), SLOT(quickLaunch()));
+ // End pqParaViewBehaviors
- setupDockWidgetsContextMenu();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ QString aPath = resMgr->stringValue("resources", "PARAVIS", QString());
+ if (!aPath.isNull()) {
+ pqImplementation::Core->loadConfiguration(aPath + QDir::separator() + "ParaViewFilters.xml");
+ pqImplementation::Core->loadConfiguration(aPath + QDir::separator() + "ParaViewReaders.xml");
+ pqImplementation::Core->loadConfiguration(aPath + QDir::separator() + "ParaViewSources.xml");
+ pqImplementation::Core->loadConfiguration(aPath + QDir::separator() + "ParaViewWriters.xml");
+ }
// Now that we're ready, initialize everything ...
- Implementation->Core.initializeStates();
+
// Force creation of engine
PARAVIS::GetParavisGen(this);
updateObjBrowser();
}
+ // Initialize list of toolbars
QCoreApplication::processEvents();
+ QList<QToolBar*> aBars = getParaViewToolbars();
+ foreach (QToolBar* aBar, aBars) {
+ myToolbarState[aBar] = true;
+ }
SUIT_ResourceMgr* aResourceMgr = SUIT_Session::session()->resourceMgr();
bool isStop = aResourceMgr->booleanValue( "PARAVIS", "stop_trace", false );
- if(!isStop)
- QTimer::singleShot(500, this, SLOT(activateTrace()));
- // start_trace();
+ if(!isStop)
+ QTimer::singleShot(50, this, SLOT(activateTrace()));
}
void PVGUI_Module::activateTrace()
{
- start_trace();
+ PyInterp_Dispatcher* aDispatcher = PyInterp_Dispatcher::Get();
+ if (aDispatcher->IsBusy()) {
+ QTimer::singleShot(50, this, SLOT(activateTrace()));
+ return;
+ }
+
+ pqPythonDialog* pyDiag = 0;
+ pqPythonManager* manager = qobject_cast<pqPythonManager*>(
+ pqApplicationCore::instance()->manager("PYTHON_MANAGER"));
+ if (manager) {
+ pyDiag = manager->pythonShellDialog();
+ }
+ if (pyDiag) {
+ pyDiag->runString("try:\n"
+ " from paraview import smtrace\n"
+ " smtrace.start_trace()\n"
+ " print 'Trace started.'\n"
+ "except: raise RuntimeError('could not import paraview.smtrace')\n");
+ }
}
*/
bool PVGUI_Module::pvInit()
{
- if ( !pqImplementation::myPVMain ){
+ if ( !pqImplementation::Core ){
// Obtain command-line arguments
int argc = 0;
QStringList args = QApplication::arguments();
char** argv = new char*[args.size()];
- for ( QStringList::const_iterator it = args.begin(); argc < 1 && it != args.end(); it++, argc++ )
+ for ( QStringList::const_iterator it = args.begin(); argc < 1 && it != args.end(); it++, argc++ ) {
argv[argc] = strdup( (*it).toLatin1().constData() );
-
- vtkPVMain::SetUseMPI(0); // pvClient never runs with MPI.
- vtkPVMain::Initialize(&argc, &argv); // Perform any initializations.
-
- // TODO: Set plugin dir from preferences
- //QApplication::setLibraryPaths(QStringList(dir.absolutePath()));
-
- pqImplementation::myPVMain = vtkPVMain::New();
- if ( !pqImplementation::myPVOptions )
- pqImplementation::myPVOptions = pqOptions::New();
- if ( !pqImplementation::myPVHelper )
- pqImplementation::myPVHelper = PVGUI_ProcessModuleHelper::New();
-
- pqImplementation::myPVOptions->SetProcessType(vtkPVOptions::PVCLIENT);
-
- // This creates the Process Module and initializes it.
- int ret = pqImplementation::myPVMain->Initialize(pqImplementation::myPVOptions,
- pqImplementation::myPVHelper,
- ParaViewInitializeInterpreter,
- argc, argv);
- if (!ret){
- // Tell process module that we support Multiple connections.
- // This must be set before starting the event loop.
- vtkProcessModule::GetProcessModule()->SupportMultipleConnectionsOn();
- ret = pqImplementation::myPVHelper->Run(pqImplementation::myPVOptions);
}
+ pqImplementation::Core = new pqPVApplicationCore (argc, argv);
+ if (pqImplementation::Core->getOptions()->GetHelpSelected() ||
+ pqImplementation::Core->getOptions()->GetUnknownArgument() ||
+ pqImplementation::Core->getOptions()->GetErrorMessage() ||
+ pqImplementation::Core->getOptions()->GetTellVersion()) {
+ return false;
+ }
+ // VSV: Code from Initializer - it seems that it does nothing
+
+ // Not sure why this is needed. Andy added this ages ago with comment saying
+ // needed for Mac apps. Need to check that it's indeed still required.
+ QDir dir(QApplication::applicationDirPath());
+ dir.cdUp();
+ dir.cd("Plugins");
+ QApplication::addLibraryPath(dir.absolutePath());
+ // Load required application plugins.
+ QString plugin_string = "";
+ QStringList plugin_list = plugin_string.split(';',QString::SkipEmptyParts);
+ pqBrandPluginsLoader loader;
+ if (loader.loadPlugins(plugin_list) == false) {
+ printf("Failed to load required plugins for this application\n");
+ return false;
+ }
+
+ // Load optional plugins.
+ plugin_string = "";
+ plugin_list = plugin_string.split(';',QString::SkipEmptyParts);
+ loader.loadPlugins(plugin_list, true); //quietly skip not-found plugins.
+
+ // End of Initializer code
+
+ //qInstallMsgHandler(0); // switch off standard Paraview message handler
+ pqImplementation::OutputWindowAdapter = PVGUI_OutputWindowAdapter::New();
+ vtkOutputWindow::SetInstance(pqImplementation::OutputWindowAdapter);
+ //pqPluginManager* pgm = pqApplicationCore::instance()->getPluginManager();
+ //pgm->loadExtensions(NULL);
+
+ new pqViewManager(); // it registers as "MULTIVIEW_MANAGER on creation
+
if (argc == 1)
free(argv[0]); // because in creation argc < 1
delete[] argv;
- return !ret;
}
return true;
}
-/*!
- \brief Static method, cleans up ParaView session at application exit.
-*/
-void PVGUI_Module::pvShutdown()
-{
- if ( pqImplementation::myPVHelper )
- pqImplementation::myPVHelper->finalize();
-}
-
/*!
\brief Shows (toShow = true) or hides ParaView view window
*/
void PVGUI_Module::showView( bool toShow )
{
SalomeApp_Application* anApp = getApp();
- PVGUI_ViewManager* viewMgr = dynamic_cast<PVGUI_ViewManager*>( anApp->getViewManager( PVGUI_Viewer::Type(), false ) );
+ PVGUI_ViewManager* viewMgr =
+ dynamic_cast<PVGUI_ViewManager*>( anApp->getViewManager( PVGUI_Viewer::Type(), false ) );
if ( !viewMgr ) {
viewMgr = new PVGUI_ViewManager( anApp->activeStudy(), anApp->desktop() );
anApp->addViewManager( viewMgr );
PVGUI_ViewWindow* pvWnd = dynamic_cast<PVGUI_ViewWindow*>( viewMgr->getActiveView() );
if ( !pvWnd ) {
pvWnd = dynamic_cast<PVGUI_ViewWindow*>( viewMgr->createViewWindow() );
- pvWnd->setMultiViewManager( &Implementation->Core.multiViewManager() );
}
pvWnd->setShown( toShow );
}
-/*!
- \brief Manage the label of Undo operation.
-*/
-void PVGUI_Module::onUndoLabel( const QString& label )
-{
- action(UndoId)->setText(
- label.isEmpty() ? tr("MEN_CANTUNDO") : QString(tr("MEN_UNDO_ACTION")).arg(label));
- action(UndoId)->setStatusTip(
- label.isEmpty() ? tr("MEN_CANTUNDO") : QString(tr("MEN_UNDO_ACTION_TIP")).arg(label));
-}
-/*!
- \brief Manage the label of Redo operation.
-*/
-void PVGUI_Module::onRedoLabel( const QString& label )
-{
- action(RedoId)->setText(
- label.isEmpty() ? tr("MEN_CANTREDO") : QString(tr("MEN_REDO_ACTION")).arg(label));
- action(RedoId)->setStatusTip(
- label.isEmpty() ? tr("MEN_CANTREDO") : QString(tr("MEN_REDO_ACTION_TIP")).arg(label));
-}
+// void PVGUI_Module::connectToPlay()
+// {
+// connect( action(PlayId), SIGNAL( triggered() ), &Implementation->Core.VCRController(), SLOT( onPlay() ) );
+// }
-/*!
- \brief Manage the label of Undo Camera operation.
-*/
-void PVGUI_Module::onCameraUndoLabel( const QString& label )
-{
- action(CameraUndoId)->setText(
- label.isEmpty() ? tr("MEN_CANT_CAMERA_UNDO") : QString(tr("MEN_CAMERA_UNDO_ACTION")).arg(label));
- action(CameraUndoId)->setStatusTip(
- label.isEmpty() ? tr("MEN_CANT_CAMERA_UNDO") : QString(tr("MEN_CAMERA_UNDO_ACTION_TIP")).arg(label));
-}
/*!
- \brief Manage the label of Redo Camera operation.
+ \brief Slot to show help for proxy.
*/
-void PVGUI_Module::onCameraRedoLabel( const QString& label )
+void PVGUI_Module::showHelpForProxy( const QString& proxy )
{
- action(CameraRedoId)->setText(
- label.isEmpty() ? tr("MEN_CANT_CAMERA_REDO") : QString(tr("MEN_CAMERA_REDO_ACTION")).arg(label));
- action(CameraRedoId)->setStatusTip(
- label.isEmpty() ? tr("MEN_CANT_CAMERA_REDO") : QString(tr("MEN_CAMERA_REDO_ACTION_TIP")).arg(label));
+ //pqHelpReaction::showHelp(QString("qthelp://paraview.org/paraview/%1.html").arg(proxy));
+ showHelp(QString("qthelp://paraview.org/paraview/%1.html").arg(proxy));
}
-/*!
- \brief Slot to delete all objects.
-*/
-void PVGUI_Module::onDeleteAll()
+void PVGUI_Module::showParaViewHelp()
{
- pqObjectBuilder* builder = pqApplicationCore::instance()->getObjectBuilder();
- Implementation->Core.getApplicationUndoStack()->beginUndoSet("Delete All");
- builder->destroyPipelineProxies();
- Implementation->Core.getApplicationUndoStack()->endUndoSet();
+ showHelp(QString());
}
-/*!
- \brief Slot to check/uncheck the action for corresponding selection mode.
-*/
-void PVGUI_Module::onSelectionModeChanged( int mode )
+void PVGUI_Module::showHelp(const QString& url)
{
- if( toolMgr()->toolBar( mySelectionControlsTb )->isEnabled() ) {
- if(mode == pqRubberBandHelper::SELECT) //surface selection
- action(SelectCellsOnId)->setChecked(true);
- else if(mode == pqRubberBandHelper::SELECT_POINTS) //surface selection
- action(SelectPointsOnId)->setChecked(true);
- else if(mode == pqRubberBandHelper::FRUSTUM)
- action(SelectCellsThroughId)->setChecked(true);
- else if(mode == pqRubberBandHelper::FRUSTUM_POINTS)
- action(SelectPointsThroughId)->setChecked(true);
- else if (mode == pqRubberBandHelper::BLOCKS)
- action(SelectBlockId)->setChecked(true);
- else // INTERACT
- action(InteractId)->setChecked(true);
+ if (pqImplementation::helpWindow) {
+ // raise assistant window;
+ pqImplementation::helpWindow->show();
+ pqImplementation::helpWindow->raise();
+ if (!url.isEmpty()) {
+ pqImplementation::helpWindow->showPage(url);
+ }
+ return;
}
-}
-
-/*!
- \brief Slot to manage the change of axis center.
-*/
-void PVGUI_Module::onShowCenterAxisChanged( bool enabled )
-{
- action(ShowCenterId)->setEnabled(enabled);
- action(ShowCenterId)->blockSignals(true);
- pqRenderView* renView = qobject_cast<pqRenderView*>(
- pqActiveView::instance().current());
- action(ShowCenterId)->setChecked( renView ? renView->getCenterAxesVisibility() : false);
- action(ShowCenterId)->blockSignals(false);
-}
-/*!
- \brief Slot to set tooltips for the first anf the last frames, i.e. a time range of animation.
-*/
-void PVGUI_Module::setTimeRanges( double start, double end )
-{
- action(FirstFrameId)->setToolTip(QString("First Frame (%1)").arg(start, 0, 'g'));
- action(LastFrameId)->setToolTip(QString("Last Frame (%1)").arg(end, 0, 'g'));
-}
-
-
-void PVGUI_Module::connectToPlay()
-{
- connect( action(PlayId), SIGNAL( triggered() ), &Implementation->Core.VCRController(), SLOT( onPlay() ) );
-}
-
-
-/*!
- \brief Slot to manage the plaing process of animation.
-*/
-void PVGUI_Module::onPlaying( bool playing )
-{
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- if(playing) {
- disconnect( action(PlayId), SIGNAL( triggered() ),&Implementation->Core.VCRController(), SLOT( onPlay() ) );
- connect( action(PlayId), SIGNAL( triggered() ), &Implementation->Core.VCRController(), SLOT( onPause() ) );
- action(PlayId)->setIcon(QIcon(resMgr->loadPixmap("ParaView",tr("ICON_PAUSE"),false)));
- action(PlayId)->setText("Pa&use");
- }
- else {
- // Immediate connecting toPlay doubles event
- QTimer::singleShot(10, this, SLOT(connectToPlay()));
- //connect( action(PlayId), SIGNAL( triggered() ), &Implementation->Core.VCRController(), SLOT( onPlay() ) );
- disconnect( action(PlayId), SIGNAL( triggered() ), &Implementation->Core.VCRController(), SLOT( onPause() ) );
- action(PlayId)->setIcon(QIcon(resMgr->loadPixmap("ParaView",tr("ICON_PLAY"),false)));
- action(PlayId)->setText("&Play");
+ // * Discover help project files from the resources.
+ QString aPVHome(getenv("PVHOME"));
+ if (aPVHome.isNull()) {
+ qWarning("Wariable PVHOME is not defined");
+ return;
}
+ QChar aSep = QDir::separator();
+ QString aFile = aPVHome + aSep + "doc" + aSep + "paraview.qch";
- Implementation->Core.setSelectiveEnabledState(!playing);
-}
-
-/*!
- \brief Slot to add camera link.
-*/
-void PVGUI_Module::onAddCameraLink()
-{
- pqView* vm = pqActiveView::instance().current();
- pqRenderView* rm = qobject_cast<pqRenderView*>(vm);
- if(rm) rm->linkToOtherView();
- else SUIT_MessageBox::warning(getApp()->desktop(),
- tr("WARNING"), tr("WRN_ADD_CAMERA_LINK"));
-}
-
-/*!
- \brief Slot to show information about ParaView.
-*/
-void PVGUI_Module::onHelpAbout()
-{
- pqClientAboutDialog* const dialog = new pqClientAboutDialog(getApp()->desktop());
- dialog->setAttribute(Qt::WA_DeleteOnClose);
- dialog->show();
-}
-
-/*!
- \brief Slot to show native ParaView user documentation.
-*/
-void PVGUI_Module::onParaViewHelp()
-{
- showHelpForProxy("index");
-}
-
-/*!
- \brief Slot to show help for proxy.
-*/
-void PVGUI_Module::showHelpForProxy( const QString& proxy )
-{
- // make sure assistant is ready
- this->makeAssistant();
-
- if(this->Implementation->myHelpWindow) {
- this->Implementation->myHelpWindow->show();
- this->Implementation->myHelpWindow->raise();
+ if (!QFile::exists(aFile)) {
+ qWarning("Help file do not found");
+ return;
}
- /* if(this->Implementation->AssistantClient) {
- this->Implementation->AssistantClient->openAssistant();
- QString page("%1/Documentation/%2.html");
- page = page.arg(this->Implementation->DocumentationDir);
- page = page.arg(proxy);
- this->Implementation->AssistantClient->showPage(page);
- }*/
-}
-
-QString Locate( const QString& appName )
-{
- QString app_dir = QCoreApplication::applicationDirPath();
- const char* inst_dirs[] = {
- "/./",
- "/../bin/",
- "/../../bin/",
- 0
- };
- for (const char** dir = inst_dirs; *dir; ++dir) {
- QString path = app_dir;
- path += *dir;
- path += appName;
- //cout << "Checking : " << path.toAscii().data() << " ... ";
- //cout.flush();
- QFileInfo finfo (path);
- if (finfo.exists()) {
- //cout << " Success!" << endl;
- return path;
- }
- //cout << " Failed" << endl;
+
+ pqImplementation::helpWindow = new pqHelpWindow(QString("ParaView Online Help"), getApp()->desktop());
+ QString namespace_name = pqImplementation::helpWindow->registerDocumentation(aFile);
+
+ pqImplementation::helpWindow->showHomePage(namespace_name);
+ pqImplementation::helpWindow->show();
+ pqImplementation::helpWindow->raise();
+ if (!url.isEmpty()) {
+ pqImplementation::helpWindow->showPage(url);
}
- return app_dir + QDir::separator() + appName;
}
-/*!
- \brief Initialized an assistant client.
-*/
-void PVGUI_Module::makeAssistant()
-{
- if (this->Implementation->myHelpWindow)
- return;
- pqHelpWindow* helpWindow = new pqHelpWindow("ParaView Online Help", getApp()->desktop());
- QObject::connect(helpWindow, SIGNAL(helpWarnings(const QString&)),
- this, SLOT(assistantError(const QString&)));
- helpWindow->registerDocumentation(":/ParaViewResources/pqClient.qch");
- this->Implementation->myHelpWindow = helpWindow;
- this->Implementation->myHelpWindow->showPage("qthelp://paraview.org/paraview/Documentation/index.html");
-}
-
-/*!
- \brief Slot to call the message handler with the critical message.
-*/
-void PVGUI_Module::assistantError( const QString& error )
-{
- qCritical(error.toAscii().data());
-}
/*!
\brief Slot to show the waiting state.
*/
pqViewManager* PVGUI_Module::getMultiViewManager() const
{
- pqViewManager* aMVM = 0;
- if ( Implementation )
- aMVM = &Implementation->Core.multiViewManager();
- return aMVM;
+ return qobject_cast<pqViewManager*>(pqApplicationCore::instance()->manager("MULTIVIEW_MANAGER"));
}
-/*!
- \brief Processes QEvent::ActionAdded and QEvent::ActionRemoved from Lookmarks toolbar
- in order to register/unregister this action in/from QtxActionToolMgr.
-*/
-bool PVGUI_Module::eventFilter( QObject* theObject, QEvent* theEvent )
+
+static void ParavisMessageOutput(QtMsgType type, const char *msg)
{
- QToolBar* aTB = toolMgr()->toolBar(tr("TOOL_LOOKMARKS"));
- if ( theObject == aTB ) {
-
- if ( theEvent->type() == QEvent::ActionAdded ) {
- QList<QAction*> anActns = aTB->actions();
- for (int i = 0; i < anActns.size(); ++i)
- if ( toolMgr()->actionId(anActns.at(i)) == -1 ) {
- toolMgr()->setUpdatesEnabled(false);
- createTool( anActns.at(i), tr("TOOL_LOOKMARKS") );
- toolMgr()->setUpdatesEnabled(true);
- }
+ switch(type)
+ {
+ case QtDebugMsg:
+ vtkOutputWindow::GetInstance()->DisplayText(msg);
+ break;
+ case QtWarningMsg:
+ vtkOutputWindow::GetInstance()->DisplayErrorText(msg);
+ break;
+ case QtCriticalMsg:
+ vtkOutputWindow::GetInstance()->DisplayErrorText(msg);
+ break;
+ case QtFatalMsg:
+ vtkOutputWindow::GetInstance()->DisplayErrorText(msg);
+ break;
}
+}
- if ( theEvent->type() == QEvent::ActionRemoved ) {
- QList<QAction*> anActns = aTB->actions();
- QIntList aIDL = toolMgr()->idList();
- for (int i = 0; i < aIDL.size(); ++i) {
- if ( toolMgr()->action(aIDL.at(i))->parent() == aTB
- &&
- !anActns.contains( toolMgr()->action(aIDL.at(i)) ) ) {
- toolMgr()->setUpdatesEnabled(false);
- toolMgr()->unRegisterAction( aIDL.at(i) );
- toolMgr()->remove( aIDL.at(i), tr("TOOL_LOOKMARKS") );
- toolMgr()->setUpdatesEnabled(true);
- }
- }
- }
-
- }
- return QObject::eventFilter( theObject, theEvent );
-}
/*!
\brief Activate module.
*/
bool PVGUI_Module::activateModule( SUIT_Study* study )
{
+ myOldMsgHandler = qInstallMsgHandler(ParavisMessageOutput);
+
bool isDone = SalomeApp_Module::activateModule( study );
if ( !isDone ) return false;
showView( true );
-
if ( mySourcesMenuId != -1 ) menuMgr()->show(mySourcesMenuId);
if ( myFiltersMenuId != -1 ) menuMgr()->show(myFiltersMenuId);
+ if ( myFiltersMenuId != -1 ) menuMgr()->show(myMacrosMenuId);
+ if ( myFiltersMenuId != -1 ) menuMgr()->show(myToolbarsMenuId);
setMenuShown( true );
setToolShown( true );
- toolMgr()->toolBar(tr("TOOL_LOOKMARKS"))->installEventFilter(this);
-
- // Make default server connection
- if ( Implementation )
- Implementation->Core.makeDefaultConnectionIfNoneExists();
+ if (myToolbarState.size() > 0) {
+ SUIT_Desktop* desk = application()->desktop();
+ QList<QToolBar*> aToolbars = myToolbarState.keys();
+ foreach(QToolBar* aBar, aToolbars) {
+ aBar->setParent(desk);
+ aBar->setVisible(myToolbarState[aBar]);
+ }
+ }
restoreDockWidgetsState();
*/
bool PVGUI_Module::deactivateModule( SUIT_Study* study )
{
- toolMgr()->toolBar(tr("TOOL_LOOKMARKS"))->removeEventFilter(this);
-
+ if (pqImplementation::helpWindow) {
+ pqImplementation::helpWindow->hide();
+ }
showView( false );
// hide menus
menuMgr()->hide(mySourcesMenuId);
menuMgr()->hide(myFiltersMenuId);
+ menuMgr()->hide(myMacrosMenuId);
+ menuMgr()->hide(myToolbarsMenuId);
setMenuShown( false );
setToolShown( false );
saveDockWidgetsState();
+ // hide toolbars
+ QList<QToolBar*> aToolbars = myToolbarState.keys();
+ foreach(QToolBar* aBar, aToolbars) {
+ myToolbarState[aBar] = aBar->isVisible();
+ aBar->hide();
+ aBar->setParent(0);
+ }
+
+ if (myOldMsgHandler)
+ qInstallMsgHandler(myOldMsgHandler);
return SalomeApp_Module::deactivateModule( study );
}
+
/*!
\brief Called when application is closed.
*/
void PVGUI_Module::onApplicationClosed( SUIT_Application* theApp )
{
+ pqApplicationCore::instance()->settings()->sync();
int aAppsNb = SUIT_Session::session()->applications().size();
if (aAppsNb == 1) {
deleteTemporaryFiles();
- pvShutdown();
+ //pvShutdown();
}
CAM_Module::onApplicationClosed(theApp);
}
\brief Compares the contents of the window with the given reference image,
returns true if they "match" within some tolerance.
*/
+/*VSV it seems that this method is obsolete
bool PVGUI_Module::compareView( const QString& ReferenceImage, double Threshold,
std::ostream& Output, const QString& TempDirectory )
{
return Implementation->Core.compareView( ReferenceImage, Threshold, Output, TempDirectory );
return false;
}
-
+*/
QString PVGUI_Module::engineIOR() const
{
CORBA::String_var anIOR = PARAVIS::GetParavisGen(this)->GetIOR();
return QString(anIOR.in());
}
-void PVGUI_Module::onOpenFile()
-{
- // This avoids an immediate exception on wrong MED file opening
- Implementation->Core.onFileOpen();
-}
/*!
\brief Open file of format supported by ParaView
{
QStringList aFiles;
aFiles<<theName;
- Implementation->Core.createReaderOnActiveServer(aFiles);
+ pqLoadDataReaction::loadData(aFiles);
}
/*!
\brief Returns trace string
*/
-QString PVGUI_Module::printTrace()
+QString PVGUI_Module::getTraceString()
{
- return get_trace_string();
+ pqPythonDialog* pyDiag = 0;
+ pqPythonManager* manager = qobject_cast<pqPythonManager*>(
+ pqApplicationCore::instance()->manager("PYTHON_MANAGER"));
+ if (manager) {
+ pyDiag = manager->pythonShellDialog();
+ }
+
+ QString traceString;
+ if (pyDiag) {
+ pyDiag->runString("try:\n"
+ " from paraview import smtrace\n"
+ " __smtraceString = smtrace.get_trace_string()\n"
+ "except:\n"
+ " __smtraceString = str()\n"
+ " raise RuntimeError('could not import paraview.smtrace')\n");
+ pyDiag->shell()->makeCurrent();
+ PyObject* main_module = PyImport_AddModule((char*)"__main__");
+ PyObject* global_dict = PyModule_GetDict(main_module);
+ PyObject* string_object = PyDict_GetItemString(global_dict, "__smtraceString");
+ char* string_ptr = PyString_AsString(string_object);
+ if (string_ptr) {
+ traceString = string_ptr;
+ }
+ pyDiag->shell()->releaseControl();
+ }
+ return traceString;
}
/*!
*/
void PVGUI_Module::saveTrace(const char* theName)
{
- save_trace(theName);
+ //save_trace(theName);
+ QFile file(theName);
+ if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
+ MESSAGE( "Could not open file:" << theName );
+ return;
+ }
+ QTextStream out(&file);
+ out << getTraceString();
+ file.close();
}
/*!
*/
void PVGUI_Module::saveParaviewState(const char* theFileName)
{
- QStringList aFiles;
- aFiles<<theFileName;
- Implementation->Core.onFileSaveServerState(aFiles);
+ Implementation->Core->saveState(theFileName);
}
/*!
*/
void PVGUI_Module::loadParaviewState(const char* theFileName)
{
- QStringList aFiles;
- aFiles<<theFileName;
- Implementation->Core.onFileLoadServerState(aFiles);
+ Implementation->Core->loadState(theFileName, getActiveServer());
}
/*!
*/
void PVGUI_Module::onImportFromVisu(QString theEntry)
{
+#ifdef WITH_VISU
SUIT_OverrideCursor aWaitCursor;
// get active study
openFile(aFilePath.c_str());
myTemporaryFiles.append(QString(aFilePath.c_str()));
}
+#else
+ MESSAGE("Visu module is not found.");
+#endif
}
/*!
*/
pqServer* PVGUI_Module::getActiveServer()
{
- return Implementation->Core.getActiveServer();
+ return Implementation->Core->getActiveServer();
}
{
int TraceTab = addPreference( tr( "TIT_TRACE" ) );
addPreference( tr( "PREF_STOP_TRACE" ), TraceTab, LightApp_Preferences::Bool, "PARAVIS", "stop_trace");
+
+ int aSaveType = addPreference(tr( "PREF_SAVE_TYPE_LBL" ), TraceTab,
+ LightApp_Preferences::Selector,
+ "PARAVIS", "savestate_type");
+ QList<QVariant> aIndices;
+ QStringList aStrings;
+ aIndices<<0<<1<<2;
+ aStrings<<tr("PREF_SAVE_TYPE_0");
+ aStrings<<tr("PREF_SAVE_TYPE_1");
+ aStrings<<tr("PREF_SAVE_TYPE_2");
+ setPreferenceProperty(aSaveType, "strings", aStrings);
+ setPreferenceProperty(aSaveType, "indexes", aIndices);
}
class QMenu;
class QDockWidget;
-//class LightApp_Selection;
-//class LightApp_SelectionMgr;
-class PVGUI_ProcessModuleHelper;
+class QToolBar;
class vtkPVMain;
class pqOptions;
class pqServer;
CameraRedoId,
ChangeInputId,
+ IgnoreTimeId,
DeleteId,
DeleteAllId,
- InteractId,
- SelectCellsOnId,
- SelectPointsOnId,
- SelectCellsThroughId,
- SelectPointsThroughId,
- SelectBlockId,
+ //InteractId,
+ //SelectCellsOnId,
+ //SelectPointsOnId,
+ //SelectCellsThroughId,
+ //SelectPointsThroughId,
+ //SelectBlockId,
SettingsId,
ViewSettingsId,
// Menu "View"
- ResetCameraId,
- PositiveXId,
- NegativeXId,
- PositiveYId,
- NegativeYId,
- PositiveZId,
- NegativeZId,
-
- ShowCenterId,
- ResetCenterId,
- PickCenterId,
- ShowColorLegendId,
- EditColorMapId,
- ResetRangeId,
-
- AnimationInspectorId,
- AnimationViewId,
- ComparativeViewInspectorId,
- SelectionInspectorId,
- LookmarkBrowserId,
- LookmarkInspectorId,
- ObjectInspectorId,
- PipelineBrowserId,
- StatisticsViewId,
+ FullScreenId,
+// ResetCameraId,
+// PositiveXId,
+// NegativeXId,
+// PositiveYId,
+// NegativeYId,
+// PositiveZId,
+// NegativeZId,
+//
+// ShowCenterId,
+// ResetCenterId,
+// PickCenterId,
+// ShowColorLegendId,
+// EditColorMapId,
+// ResetRangeId,
+//
+// AnimationInspectorId,
+// AnimationViewId,
+// ComparativeViewInspectorId,
+// SelectionInspectorId,
+// LookmarkBrowserId,
+// LookmarkInspectorId,
+// ObjectInspectorId,
+// PipelineBrowserId,
+// StatisticsViewId,
// Menu "Sources"
// TODO...
pqViewManager* getMultiViewManager() const;
- virtual bool eventFilter( QObject*, QEvent* );
-
virtual QString engineIOR() const;
- //! Compares the contents of the window with the given reference image, returns true if they "match" within some tolerance
- bool compareView( const QString& ReferenceImage, double Threshold,
- std::ostream& Output, const QString& TempDirectory );
+ /*! Compares the contents of the window with the given reference image,
+ * returns true if they "match" within some tolerance
+ */
+ /*bool compareView( const QString& ReferenceImage, double Threshold,
+ std::ostream& Output, const QString& TempDirectory );*/
void openFile(const char* theName);
void saveParaviewState(const char* theFileName);
void loadParaviewState(const char* theFileName);
- QString printTrace();
+ QString getTraceString();
void saveTrace(const char* theName);
pqServer* getActiveServer();
public slots:
void onImportFromVisu(QString theEntry);
-protected:
- //virtual CAM_DataModel* createDataModel();
-
private:
//! Initialize ParaView if not yet done (once per session)
static bool pvInit();
- //! Shutdown ParaView, should be called on application exit
- static void pvShutdown();
//! Create actions for ParaView GUI operations
void pvCreateActions();
//! Create dock widgets for ParaView widgets
void setupDockWidgets();
- //! Create dock widgets context menus
- void setupDockWidgetsContextMenu();
-
//! Save states of dockable ParaView widgets
void saveDockWidgetsState();
QMenu* getMenu( const int );
void deleteTemporaryFiles();
-
-private slots:
- void onUndoLabel( const QString& );
- void onRedoLabel( const QString& );
- void onCameraUndoLabel( const QString& );
- void onCameraRedoLabel( const QString& );
-
- void onDeleteAll();
-
- void onSelectionModeChanged( int mode );
-
- void onShowCenterAxisChanged( bool );
-
- void setTimeRanges( double, double );
+ QList<QToolBar*> getParaViewToolbars();
- void onPlaying( bool );
-
- void onAddCameraLink();
-
- void onHelpAbout();
-
- void onParaViewHelp();
+private slots:
void showHelpForProxy( const QString& proxy );
- void makeAssistant();
- void assistantError( const QString& err );
void onPreAccept();
void onPostAccept();
void endWaitCursor();
- void connectToPlay();
+ void activateTrace();
- void onOpenFile();
+ void buildToolbarsMenu();
- void activateTrace();
+ void showParaViewHelp();
+ void showHelp(const QString& url);
public slots:
virtual bool activateModule( SUIT_Study* );
int mySelectionControlsTb;
int mySourcesMenuId;
int myFiltersMenuId;
+ int myToolbarsMenuId;
+ int myMacrosMenuId;
QList<QDockWidget*> myDockWidgets;
QStringList myTemporaryFiles;
+
+ QMap<QToolBar*, bool> myToolbarState;
+
+ QtMsgHandler myOldMsgHandler;
};
#endif // PVGUI_Module_H
#include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h>
#include <SalomeApp_Application.h>
+#include <LightApp_Application.h>
#include <QAction>
#include <QMenu>
#include <pqApplicationCore.h>
#include <pqColorScaleToolbar.h>
-#include <pqMainWindowCore.h>
-#include <pqObjectInspectorDriver.h>
-#include <pqPipelineBrowser.h>
#include <pqProgressManager.h>
#include <pqRubberBandHelper.h>
#include <pqScalarBarVisibilityAdaptor.h>
#include <pqUndoStack.h>
#include <pqVCRController.h>
+#include <pqSaveStateReaction.h>
+#include <pqLoadDataReaction.h>
+#include <pqLoadStateReaction.h>
+#include <pqSaveDataReaction.h>
+#include <pqSaveScreenshotReaction.h>
+#include <pqExportReaction.h>
+#include <pqSaveAnimationReaction.h>
+#include <pqSaveAnimationGeometryReaction.h>
+#include <pqServerConnectReaction.h>
+#include <pqServerDisconnectReaction.h>
+#include <pqCameraUndoRedoReaction.h>
+#include <pqUndoRedoReaction.h>
+#include <pqDeleteReaction.h>
+#include <pqChangePipelineInputReaction.h>
+#include <pqApplicationSettingsReaction.h>
+#include <pqViewSettingsReaction.h>
+#include <pqIgnoreSourceTimeReaction.h>
+#include <pqViewMenuManager.h>
+#include <pqParaViewMenuBuilders.h>
+#include <pqProxyGroupMenuManager.h>
+#include <pqCreateCustomFilterReaction.h>
+#include <pqManageLinksReaction.h>
+#include <pqManagePluginsReaction.h>
+#include <pqCameraLinkReaction.h>
+#include <pqManageCustomFiltersReaction.h>
+#include <pqSetName.h>
+#include <pqPythonShellReaction.h>
+#include <pqTimerLogReaction.h>
+#include <pqTestingReaction.h>
+#include <pqAboutDialogReaction.h>
+#include <pqHelpReaction.h>
+#include <pqViewManager.h>
+
#include "PVGUI_Tools.h"
*/
void PVGUI_Module::pvCreateActions()
{
- SUIT_Desktop* desk = application()->desktop();
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
QPixmap aPixmap;
QAction* anAction;
- QtxAction* aQtxAction;
+ //QtxAction* aQtxAction;
// --- Menu "File"
// Open File
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_OPEN_FILE"), false );
- createAction( OpenFileId, tr("TOP_OPEN_FILE"), QIcon(aPixmap),
- tr("MEN_OPEN"), tr("STB_OPEN_FILE"),
- //0, desk, false, &Implementation->Core, SLOT( onFileOpen() ) );
- // This avoids an immediate exception on wrong MED file opening
- 0, desk, false, this, SLOT( onOpenFile() ) );
-
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_OPEN"), this);
+ anAction->setToolTip(tr("TOP_OPEN_FILE"));
+ anAction->setStatusTip(tr("STB_OPEN_FILE"));
+ registerAction(OpenFileId, anAction);
+ new pqLoadDataReaction(anAction);
+
// Load State
- anAction = createAction( LoadStateId, tr("TOP_LOAD_STATE"), QIcon(),
- tr("MEN_LOAD_STATE"), tr("STB_LOAD_STATE"),
- 0, desk, false, &Implementation->Core, SLOT( onFileLoadServerState() ) );
- connect( &Implementation->Core, SIGNAL( enableFileLoadServerState(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
+ anAction = new QAction(tr("MEN_LOAD_STATE"), this);
+ anAction->setToolTip(tr("TOP_LOAD_STATE"));
+ anAction->setStatusTip(tr("STB_LOAD_STATE"));
+ registerAction(LoadStateId, anAction);
+ new pqLoadStateReaction(anAction);
+
// Save State
- anAction = createAction( SaveStateId, tr("TOP_SAVE_STATE"), QIcon(),
- tr("MEN_SAVE_STATE"), tr("STB_SAVE_STATE"),
- 0, desk, false, &Implementation->Core, SLOT( onFileSaveServerState() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveServerState(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(tr("MEN_SAVE_STATE"), this);
+ anAction->setToolTip(tr("TOP_SAVE_STATE"));
+ anAction->setStatusTip(tr("STB_SAVE_STATE"));
+ registerAction(SaveStateId, anAction);
+ new pqSaveStateReaction(anAction);
// Save Data
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SAVE_DATA"), false );
- anAction = createAction( SaveDataId, tr("TOP_SAVE_DATA"), QIcon(aPixmap),
- tr("MEN_SAVE_DATA"), tr("STB_SAVE_DATA"),
- 0, desk, false, &Implementation->Core, SLOT( onFileSaveData() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveData(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_SAVE_DATA"), this);
+ anAction->setToolTip(tr("TOP_SAVE_DATA"));
+ anAction->setStatusTip(tr("STB_SAVE_DATA"));
+ registerAction(SaveDataId, anAction);
+ new pqSaveDataReaction(anAction);
// Save Screenshot
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SAVE_SCREENSHOT"), false );
- anAction = createAction( SaveScreenshotId, tr("TOP_SAVE_SCREENSHOT"), QIcon(aPixmap),
- tr("MEN_SAVE_SCREENSHOT"), tr("STB_SAVE_SCREENSHOT"),
- 0, desk, false, &Implementation->Core, SLOT( onFileSaveScreenshot() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_SAVE_SCREENSHOT"), this);
+ anAction->setToolTip(tr("TOP_SAVE_SCREENSHOT"));
+ anAction->setStatusTip(tr("STB_SAVE_SCREENSHOT"));
+ registerAction(SaveScreenshotId, anAction);
+ new pqSaveScreenshotReaction(anAction);
// Export
- anAction = createAction( ExportId, tr("TOP_EXPORT"), QIcon(),
- tr("MEN_EXPORT"), tr("STB_EXPORT"),
- 0, desk, false, &Implementation->Core, SLOT( onFileExport() ) );
- connect( &Implementation->Core, SIGNAL( enableExport(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(tr("MEN_EXPORT"), this);
+ anAction->setToolTip(tr("TOP_EXPORT"));
+ anAction->setStatusTip(tr("STB_EXPORT"));
+ registerAction(ExportId, anAction);
+ new pqExportReaction(anAction);
// Save Animation
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SAVE_ANIMATION"), false );
- anAction = createAction( SaveAnimationId, tr("TOP_SAVE_ANIMATION"), QIcon(aPixmap),
- tr("MEN_SAVE_ANIMATION"), tr("STB_SAVE_ANIMATION"),
- 0, desk, false, &Implementation->Core, SLOT( onFileSaveAnimation() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveAnimation(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_SAVE_ANIMATION"), this);
+ anAction->setToolTip(tr("TOP_SAVE_ANIMATION"));
+ anAction->setStatusTip(tr("STB_SAVE_ANIMATION"));
+ registerAction(SaveAnimationId, anAction);
+ new pqSaveAnimationReaction(anAction);
// Save Geometry
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SAVE_GEOMETRY"), false );
- anAction = createAction( SaveGeometryId, tr("TOP_SAVE_GEOMETRY"), QIcon(aPixmap),
- tr("MEN_SAVE_GEOMETRY"), tr("STB_SAVE_GEOMETRY"),
- 0, desk, false, &Implementation->Core, SLOT( onSaveGeometry() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveGeometry(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_SAVE_GEOMETRY"), this);
+ anAction->setToolTip(tr("TOP_SAVE_GEOMETRY"));
+ anAction->setStatusTip(tr("STB_SAVE_GEOMETRY"));
+ registerAction(SaveGeometryId, anAction);
+ new pqSaveAnimationGeometryReaction(anAction);
// Connect
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_CONNECT"), false );
- anAction = createAction( ConnectId, tr("TOP_CONNECT"), QIcon(aPixmap),
- tr("MEN_CONNECT"), tr("STB_CONNECT"),
- 0, desk, false, &Implementation->Core, SLOT( onServerConnect() ) );
- connect( &Implementation->Core, SIGNAL( enableServerConnect(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_CONNECT"), this);
+ anAction->setToolTip(tr("TOP_CONNECT"));
+ anAction->setStatusTip(tr("STB_CONNECT"));
+ registerAction(ConnectId, anAction);
+ new pqServerConnectReaction(anAction);
// Disconnect
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_DISCONNECT"), false );
- anAction = createAction( DisconnectId, tr("TOP_DISCONNECT"), QIcon(aPixmap),
- tr("MEN_DISCONNECT"), tr("STB_DISCONNECT"),
- 0, desk, false, &Implementation->Core, SLOT( onServerDisconnect() ) );
- connect( &Implementation->Core, SIGNAL( enableServerDisconnect(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_DISCONNECT"), this);
+ anAction->setToolTip(tr("TOP_DISCONNECT"));
+ anAction->setStatusTip(tr("STB_DISCONNECT"));
+ registerAction(DisconnectId, anAction);
+ new pqServerDisconnectReaction(anAction);
// --- Menu "Edit"
- pqUndoStack* undoStack = Implementation->Core.getApplicationUndoStack();
-
// Undo
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_UNDO"), false );
- anAction = createAction( UndoId, tr("TOP_UNDO"), QIcon(aPixmap),
- tr("MEN_UNDO"), tr("STB_UNDO"), Qt::CTRL+Qt::Key_Z,
- desk, false, undoStack, SLOT( undo() ) );
- connect( undoStack, SIGNAL( canUndoChanged(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
- connect( undoStack, SIGNAL( undoLabelChanged(const QString&) ),
- this, SLOT( onUndoLabel(const QString&) ) );
- anAction->setEnabled( undoStack->canUndo() );
- onUndoLabel(undoStack->undoLabel());
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_UNDO"), this);
+ anAction->setToolTip(tr("TOP_UNDO"));
+ anAction->setStatusTip(tr("STB_UNDO"));
+ registerAction(UndoId, anAction);
+ new pqUndoRedoReaction(anAction, true);
// Redo
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_REDO"), false );
- anAction = createAction( RedoId, tr("TOP_REDO"), QIcon(aPixmap),
- tr("MEN_REDO"), tr("STB_REDO"), Qt::CTRL+Qt::Key_Y,
- desk, false, undoStack, SLOT( redo() ) );
- connect( undoStack, SIGNAL( canRedoChanged(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
- connect( undoStack, SIGNAL( redoLabelChanged(const QString&) ),
- this, SLOT( onRedoLabel(const QString&) ) );
- anAction->setEnabled( undoStack->canRedo() );
- onRedoLabel(undoStack->redoLabel());
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_REDO"), this);
+ anAction->setToolTip(tr("TOP_REDO"));
+ anAction->setStatusTip(tr("STB_REDO"));
+ registerAction(RedoId, anAction);
+ new pqUndoRedoReaction(anAction, false);
// Camera Undo
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_CAMERA_UNDO"), false );
- anAction = createAction( CameraUndoId, tr("TOP_CAMERA_UNDO"), QIcon(aPixmap),
- tr("MEN_CAMERA_UNDO"), tr("STB_CAMERA_UNDO"), Qt::CTRL+Qt::Key_C+Qt::Key_B,
- desk, false, &Implementation->Core, SLOT( onEditCameraUndo() ) );
- connect( &Implementation->Core, SIGNAL( enableCameraUndo(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
- connect( &Implementation->Core, SIGNAL( cameraUndoLabel(const QString&) ),
- this, SLOT( onCameraUndoLabel(const QString&) ) );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_CAMERA_UNDO"), this);
+ anAction->setToolTip(tr("TOP_CAMERA_UNDO"));
+ anAction->setStatusTip(tr("STB_CAMERA_UNDO"));
+ registerAction(CameraUndoId, anAction);
+ new pqCameraUndoRedoReaction(anAction, true);
// Camera Redo
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_CAMERA_REDO"), false );
- anAction = createAction( CameraRedoId, tr("TOP_CAMERA_REDO"), QIcon(aPixmap),
- tr("MEN_CAMERA_REDO"), tr("STB_CAMERA_REDO"), Qt::CTRL+Qt::Key_C+Qt::Key_F,
- desk, false, &Implementation->Core, SLOT( onEditCameraRedo() ) );
- connect( &Implementation->Core, SIGNAL( enableCameraRedo(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
- connect( &Implementation->Core, SIGNAL( cameraRedoLabel(const QString&) ),
- this, SLOT( onCameraRedoLabel(const QString&) ) );
-
- pqPipelineBrowser* browser = Implementation->Core.pipelineBrowser();
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_CAMERA_REDO"), this);
+ anAction->setToolTip(tr("TOP_CAMERA_REDO"));
+ anAction->setStatusTip(tr("STB_CAMERA_REDO"));
+ registerAction(CameraRedoId, anAction);
+ new pqCameraUndoRedoReaction(anAction, false);
// Change Input
- createAction( ChangeInputId, tr("TOP_CHANGE_INPUT"), QIcon(),
- tr("MEN_CHANGE_INPUT"), tr("STB_CHANGE_INPUT"),
- 0, desk, false, browser, SLOT( changeInput() ) );
+ anAction = new QAction(tr("MEN_CHANGE_INPUT"), this);
+ anAction->setToolTip(tr("TOP_CHANGE_INPUT"));
+ anAction->setStatusTip(tr("STB_CHANGE_INPUT"));
+ registerAction(ChangeInputId, anAction);
+ new pqChangePipelineInputReaction(anAction);
+
+ // Ignore source time
+ anAction = new QAction(tr("MEN_IGNORE_TIME"), this);
+ anAction->setToolTip(tr("TOP_IGNORE_TIME"));
+ anAction->setStatusTip(tr("STB_IGNORE_TIME"));
+ anAction->setCheckable(true);
+ registerAction(IgnoreTimeId, anAction);
+ new pqIgnoreSourceTimeReaction(anAction);
// Delete
- createAction( DeleteId, tr("TOP_DELETE"), QIcon(),
- tr("MEN_DELETE"), tr("STB_DELETE"),
- 0, desk, false, browser, SLOT( deleteSelected() ) );
-
- // Delet All
- createAction( DeleteAllId, tr("TOP_DELETE_ALL"), QIcon(),
- tr("MEN_DELETE_ALL"), tr("STB_DELETE_ALL"),
- 0, desk, false, this, SLOT( onDeleteAll() ) );
-
- // Interact
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_INTERACT"), false );
- anAction = createAction( InteractId, tr("TOP_INTERACT"), QIcon(aPixmap),
- tr("MEN_INTERACT"), tr("STB_INTERACT"), 0, desk, true,
- Implementation->Core.renderViewSelectionHelper(), SLOT( endSelection() ) );
- anAction->setChecked( true ); ///!!!
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( interactionModeChanged(bool) ),
- anAction, SLOT( setChecked(bool) ) );
-
- // Select Cells On
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SELECT_CELLS_ON"), false );
- anAction = createAction( SelectCellsOnId, tr("TOP_SELECT_CELLS_ON"), QIcon(aPixmap),
- tr("MEN_SELECT_CELLS_ON"), tr("STB_SELECT_CELLS_ON"), Qt::Key_S, desk, true,
- Implementation->Core.renderViewSelectionHelper(), SLOT( beginSurfaceSelection() ) );
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( enableSurfaceSelection(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Select Points On
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SELECT_POINTS_ON"), false );
- anAction = createAction( SelectPointsOnId, tr("TOP_SELECT_POINTS_ON"), QIcon(aPixmap),
- tr("MEN_SELECT_POINTS_ON"), tr("STB_SELECT_POINTS_ON"), 0, desk, true,
- Implementation->Core.renderViewSelectionHelper(), SLOT( beginSurfacePointsSelection() ) );
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( enableSurfacePointsSelection(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Select Cells Through
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SELECT_CELLS_THROUGH"), false );
- anAction = createAction( SelectCellsThroughId, tr("TOP_SELECT_CELLS_THROUGH"), QIcon(aPixmap),
- tr("MEN_SELECT_CELLS_THROUGH"), tr("STB_SELECT_CELLS_THROUGH"), 0, desk, true,
- Implementation->Core.renderViewSelectionHelper(), SLOT( beginFrustumSelection() ) );
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( enableFrustumSelection(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Select Points Through
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SELECT_POINTS_THROUGH"), false );
- anAction = createAction( SelectPointsThroughId, tr("TOP_SELECT_POINTS_THROUGH"), QIcon(aPixmap),
- tr("MEN_SELECT_POINTS_THROUGH"), tr("STB_SELECT_POINTS_THROUGH"), 0, desk, true,
- Implementation->Core.renderViewSelectionHelper(), SLOT( beginFrustumPointsSelection() ) );
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( enableFrustumPointSelection(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Select Block
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SELECT_BLOCK"), false );
- anAction = createAction( SelectBlockId, tr("TOP_SELECT_BLOCK"), QIcon(aPixmap),
- tr("MEN_SELECT_BLOCK"), tr("STB_SELECT_BLOCK"), Qt::Key_B, desk, true,
- Implementation->Core.renderViewSelectionHelper(), SLOT( beginBlockSelection() ) );
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( enableBlockSelection(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Create action group for exclusively selected modes
- QActionGroup* aModeGroup = new QActionGroup( desk );
- aModeGroup->addAction( action(InteractId) );
- aModeGroup->addAction( action(SelectCellsOnId) );
- aModeGroup->addAction( action(SelectPointsOnId) );
- aModeGroup->addAction( action(SelectCellsThroughId) );
- aModeGroup->addAction( action(SelectPointsThroughId) );
- aModeGroup->addAction( action(SelectBlockId) );
-
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( selectionModeChanged(int) ),
- this, SLOT( onSelectionModeChanged(int) ) );
- // When a selection is marked, we revert to interaction mode.
- connect( Implementation->Core.renderViewSelectionHelper(), SIGNAL( selectionFinished(int, int, int, int) ),
- Implementation->Core.renderViewSelectionHelper(), SLOT( endSelection() ) );
+ anAction = new QAction(tr("MEN_DELETE"), this);
+ anAction->setToolTip(tr("TOP_DELETE"));
+ anAction->setStatusTip(tr("STB_DELETE"));
+ registerAction(DeleteId, anAction);
+ new pqDeleteReaction(anAction);
+
+ // Delete All
+ anAction = new QAction(tr("MEN_DELETE_ALL"), this);
+ anAction->setToolTip(tr("TOP_DELETE_ALL"));
+ anAction->setStatusTip(tr("STB_DELETE_ALL"));
+ registerAction(DeleteAllId, anAction);
+ new pqDeleteReaction(anAction, true);
+
// Setting
- createAction( SettingsId, tr("TOP_SETTINGS"), QIcon(),
- tr("MEN_SETTINGS"), tr("STB_SETTINGS"),
- 0, desk, false, &Implementation->Core, SLOT( onEditSettings() ) );
+ anAction = new QAction(tr("MEN_SETTINGS"), this);
+ anAction->setToolTip(tr("TOP_SETTINGS"));
+ anAction->setStatusTip(tr("STB_SETTINGS"));
+ registerAction(SettingsId, anAction);
+ new pqApplicationSettingsReaction(anAction);
// View Settings
- createAction( ViewSettingsId, tr("TOP_VIEW_SETTINGS"), QIcon(),
- tr("MEN_VIEW_SETTINGS"), tr("STB_VIEW_SETTINGS"),
- 0, desk, false, &Implementation->Core, SLOT( onEditViewSettings() ) );
+ anAction = new QAction(tr("MEN_VIEW_SETTINGS"), this);
+ anAction->setToolTip(tr("TOP_VIEW_SETTINGS"));
+ anAction->setStatusTip(tr("STB_VIEW_SETTINGS"));
+ registerAction(ViewSettingsId, anAction);
+ new pqViewSettingsReaction(anAction);
// --- Menu "View"
-
- // Camera submenu -> Reset
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_RESET_CAMERA"), false );
- anAction = createAction( ResetCameraId, tr("TOP_RESET_CAMERA"), QIcon(aPixmap),
- tr("MEN_RESET_CAMERA"), tr("STB_RESET_CAMERA"),
- 0, desk, false, &Implementation->Core, SLOT( resetCamera() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Camera submenu -> +X
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_+X"), false );
- anAction = createAction( PositiveXId, tr("TOP_+X"), QIcon(aPixmap),
- tr("MEN_+X"), tr("STB_+X"),
- 0, desk, false, &Implementation->Core, SLOT( resetViewDirectionPosX() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Camera submenu -> -X
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_-X"), false );
- anAction = createAction( NegativeXId, tr("TOP_-X"), QIcon(aPixmap),
- tr("MEN_-X"), tr("STB_-X"),
- 0, desk, false, &Implementation->Core, SLOT( resetViewDirectionNegX() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Camera submenu -> +Y
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_+Y"), false );
- anAction = createAction( PositiveYId, tr("TOP_+Y"), QIcon(aPixmap),
- tr("MEN_+Y"), tr("STB_+Y"),
- 0, desk, false, &Implementation->Core, SLOT( resetViewDirectionPosY() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Camera submenu -> -Y
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_-Y"), false );
- anAction = createAction( NegativeYId, tr("TOP_-Y"), QIcon(aPixmap),
- tr("MEN_-Y"), tr("STB_-Y"),
- 0, desk, false, &Implementation->Core, SLOT( resetViewDirectionNegY() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Camera submenu -> +Z
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_+Z"), false );
- anAction = createAction( PositiveZId, tr("TOP_+Z"), QIcon(aPixmap),
- tr("MEN_+Z"), tr("STB_+Z"),
- 0, desk, false, &Implementation->Core, SLOT( resetViewDirectionPosZ() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Camera submenu -> -Z
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_-Z"), false );
- anAction = createAction( NegativeZId, tr("TOP_-Z"), QIcon(aPixmap),
- tr("MEN_-Z"), tr("STB_-Z"),
- 0, desk, false, &Implementation->Core, SLOT( resetViewDirectionNegZ() ) );
- connect( &Implementation->Core, SIGNAL( enableFileSaveScreenshot(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Show Center
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SHOW_CENTER"), false );
- aQtxAction = new QtxAction( tr("TOP_SHOW_CENTER"), QIcon(aPixmap),
- tr("MEN_SHOW_CENTER"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_SHOW_CENTER" ) );
- aQtxAction->setCheckable( true );
- registerAction( ShowCenterId, aQtxAction );
- connect( aQtxAction, SIGNAL( toggled(bool) ),
- &Implementation->Core, SLOT( setCenterAxesVisibility(bool) ) );
- connect( &Implementation->Core, SIGNAL( enableShowCenterAxis(bool) ),
- this, SLOT( onShowCenterAxisChanged(bool) ), Qt::QueuedConnection );
-
- // Reset Center
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_RESET_CENTER"), false );
- anAction = createAction( ResetCenterId, tr("TOP_RESET_CENTER"), QIcon(aPixmap),
- tr("MEN_RESET_CENTER"), tr("STB_RESET_CENTER"), 0, desk, false,
- &Implementation->Core, SLOT( resetCenterOfRotationToCenterOfCurrentData() ) );
- connect( &Implementation->Core, SIGNAL( enableResetCenter(bool) ),
- anAction, SLOT( setEnabled(bool) ) );
-
- // Pick Center
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_PICK_CENTER"), false );
- aQtxAction = new QtxAction( tr("TOP_PICK_CENTER"), QIcon(aPixmap),
- tr("MEN_PICK_CENTER"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_PICK_CENTER" ) );
- aQtxAction->setCheckable( true );
- registerAction( PickCenterId, aQtxAction );
- connect( aQtxAction, SIGNAL( toggled(bool) ),
- &Implementation->Core, SLOT( pickCenterOfRotation(bool) ) );
- connect( &Implementation->Core, SIGNAL( enablePickCenter(bool) ),
- aQtxAction, SLOT( setEnabled(bool) ) );
- connect( &Implementation->Core, SIGNAL( pickingCenter(bool) ),
- aQtxAction, SLOT( setChecked(bool) ) );
-
- // Show Color Legend
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_SHOW_COLOR_LEGEND"), false );
- aQtxAction = new QtxAction( tr("TOP_SHOW_COLOR_LEGEND"), QIcon(aPixmap),
- tr("MEN_SHOW_COLOR_LEGEND"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_SHOW_COLOR_LEGEND" ) );
- aQtxAction->setCheckable( true );
- aQtxAction->setEnabled(false);
- registerAction( ShowColorLegendId, aQtxAction );
- pqScalarBarVisibilityAdaptor* sbva = new pqScalarBarVisibilityAdaptor( aQtxAction );
- connect( Implementation->Core.getObjectInspectorDriver(),
- SIGNAL( representationChanged(pqDataRepresentation*, pqView*) ),
- sbva,
- SLOT( setActiveRepresentation(pqDataRepresentation*) ) );
-
- // --- Menu "Sources" and "Filters"
- // As ParaView is responsible for updating "Sources" and "Filters" menus,
- // actions for these menus are created inside the pqMainWindowCore.
- // So, the creation of corresponding QMenu object is in the PVGUI_Module::pvCreateMenus().
-
- // --- Menu "Animation"
-
- pqVCRController* vcrcontroller = &Implementation->Core.VCRController();
-
- // First Frame
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_FIRST_FRAME"), false );
- anAction = createAction( FirstFrameId, tr("TOP_FIRST_FRAME"), QIcon(aPixmap),
- tr("MEN_FIRST_FRAME"), tr("STB_FIRST_FRAME"),
- 0, desk, false, vcrcontroller, SLOT( onFirstFrame() ) );
- connect( vcrcontroller, SIGNAL( enabled(bool) ), anAction, SLOT( setEnabled(bool) ) );
-
- // Previous Frame
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_PREVIOUS_FRAME"), false );
- anAction = createAction( PreviousFrameId, tr("TOP_PREVIOUS_FRAME"), QIcon(aPixmap),
- tr("MEN_PREVIOUS_FRAME"), tr("STB_PREVIOUS_FRAME"),
- 0, desk, false, vcrcontroller, SLOT( onPreviousFrame() ) );
- connect( vcrcontroller, SIGNAL( enabled(bool) ), anAction, SLOT( setEnabled(bool) ) );
-
- // Play
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_PLAY"), false );
- anAction = createAction( PlayId, tr("TOP_PLAY"), QIcon(aPixmap),
- tr("MEN_PLAY"), tr("STB_PLAY"),
- 0, desk, false, vcrcontroller, SLOT( onPlay() ) );
- connect( vcrcontroller, SIGNAL( enabled(bool) ), anAction, SLOT( setEnabled(bool) ) );
-
- // Next Frame
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_NEXT_FRAME"), false );
- anAction = createAction( NextFrameId, tr("TOP_NEXT_FRAME"), QIcon(aPixmap),
- tr("MEN_NEXT_FRAME"), tr("STB_NEXT_FRAME"),
- 0, desk, false, vcrcontroller, SLOT( onNextFrame() ) );
- connect( vcrcontroller, SIGNAL( enabled(bool) ), anAction, SLOT( setEnabled(bool) ) );
-
- // Last Frame
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_LAST_FRAME"), false );
- anAction = createAction( LastFrameId, tr("TOP_LAST_FRAME"), QIcon(aPixmap),
- tr("MEN_LAST_FRAME"), tr("STB_LAST_FRAME"),
- 0, desk, false, vcrcontroller, SLOT( onLastFrame() ) );
- connect( vcrcontroller, SIGNAL( enabled(bool) ), anAction, SLOT( setEnabled(bool) ) );
-
- // Loop
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_LOOP"), false );
- aQtxAction = new QtxAction( tr("TOP_LOOP"), QIcon(aPixmap),
- tr("MEN_LOOP"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_LOOP" ) );
- aQtxAction->setCheckable(true);
- registerAction( LoopId, aQtxAction );
- connect( aQtxAction, SIGNAL( toggled(bool) ), vcrcontroller, SLOT( onLoop(bool) ) );
- connect( vcrcontroller, SIGNAL( enabled(bool) ), aQtxAction, SLOT( setEnabled(bool) ) );
- connect( vcrcontroller, SIGNAL( loop(bool) ), aQtxAction, SLOT( setChecked(bool) ) );
-
- connect( vcrcontroller, SIGNAL( playing(bool) ), this, SLOT( onPlaying(bool) ) );
- connect( vcrcontroller, SIGNAL( timeRanges(double, double) ),
- this, SLOT( setTimeRanges(double, double) ) );
+ pqViewManager* viewManager = qobject_cast<pqViewManager*>(
+ pqApplicationCore::instance()->manager("MULTIVIEW_MANAGER"));
+ if (viewManager) {
+ anAction = new QAction("Full Screen", this);
+ anAction->setObjectName("actionFullScreen");
+ anAction->setShortcut(QKeySequence("F11"));
+ connect(anAction, SIGNAL(triggered()), viewManager, SLOT(toggleFullScreen()));
+ registerAction(FullScreenId, anAction);
+ }
// --- Menu "Tools"
-
// Create Custom Filter
- createAction( CreateCustomFilterId, tr("TOP_CREATE_CUSTOM_FILTER"), QIcon(),
- tr("MEN_CREATE_CUSTOM_FILTER"), tr("STB_CREATE_CUSTOM_FILTER"),
- 0, desk, false, &Implementation->Core, SLOT( onToolsCreateCustomFilter() ) );
-
- // Manage Custom Filters
- createAction( ManageCustomFiltersId, tr("TOP_MANAGE_CUSTOM_FILTERS"), QIcon(),
- tr("MEN_MANAGE_CUSTOM_FILTERS"), tr("STB_MANAGE_CUSTOM_FILTERS"),
- 0, desk, false, &Implementation->Core, SLOT( onToolsManageCustomFilters() ) );
+ anAction = new QAction(tr("MEN_CREATE_CUSTOM_FILTER"), this);
+ anAction->setToolTip(tr("TOP_CREATE_CUSTOM_FILTER"));
+ anAction->setStatusTip(tr("STB_CREATE_CUSTOM_FILTER"));
+ registerAction(CreateCustomFilterId, anAction);
+ new pqCreateCustomFilterReaction(anAction << pqSetName("actionToolsCreateCustomFilter"));
- // Create Lookmark
- createAction( CreateLookmarkId, tr("TOP_CREATE_LOOKMARK"), QIcon(),
- tr("MEN_CREATE_LOOKMARK"), tr("STB_CREATE_LOOKMARK"),
- 0, desk, false, &Implementation->Core, SLOT( onToolsCreateLookmark() ) );
+ // Manage Custom Filters
+ anAction = new QAction(tr("MEN_MANAGE_CUSTOM_FILTERS"), this);
+ anAction->setToolTip(tr("TOP_MANAGE_CUSTOM_FILTERS"));
+ anAction->setStatusTip(tr("STB_MANAGE_CUSTOM_FILTERS"));
+ registerAction(ManageCustomFiltersId, anAction);
+ new pqManageCustomFiltersReaction(anAction << pqSetName("actionToolsManageCustomFilters"));
// Manage Links
- createAction( ManageLinksId, tr("TOP_MANAGE_LINKS"), QIcon(),
- tr("MEN_MANAGE_LINKS"), tr("STB_MANAGE_LINKS"),
- 0, desk, false, &Implementation->Core, SLOT( onToolsManageLinks() ) );
+ anAction = new QAction(tr("MEN_MANAGE_LINKS"), this);
+ anAction->setToolTip(tr("TOP_MANAGE_LINKS"));
+ anAction->setStatusTip(tr("STB_MANAGE_LINKS"));
+ registerAction(ManageLinksId, anAction);
+ new pqManageLinksReaction(anAction << pqSetName("actionToolsManageLinks"));
// Add Camera Link
- createAction( AddCameraLinkId, tr("TOP_ADD_CAMERA_LINK"), QIcon(),
- tr("MEN_ADD_CAMERA_LINK"), tr("STB_ADD_CAMERA_LINK"),
- 0, desk, false, this, SLOT( onAddCameraLink() ) );
+ anAction = new QAction(tr("MEN_ADD_CAMERA_LINK"), this);
+ anAction->setToolTip(tr("TOP_ADD_CAMERA_LINK"));
+ anAction->setStatusTip(tr("STB_ADD_CAMERA_LINK"));
+ registerAction(AddCameraLinkId, anAction);
+ new pqCameraLinkReaction(anAction << pqSetName("actionToolsAddCameraLink"));
// Manage Plugins/Extensions
- createAction( ManagePluginsExtensionsId, tr( "TOP_MANAGE_PLUGINS" ), QIcon(),
- tr( "MEN_MANAGE_PLUGINS" ), tr( "STB_MANAGE_PLUGINS" ),
- 0, desk, false, &Implementation->Core, SLOT( onManagePlugins() ) );
-
- // Dump Widget Names
- createAction( DumpWidgetNamesId, tr( "TOP_DUMP_WIDGET_NAMES" ), QIcon(),
- tr( "MEN_DUMP_WIDGET_NAMES" ), tr( "STB_DUMP_WIDGET_NAMES" ),
- 0, desk, false, &Implementation->Core, SLOT( onToolsDumpWidgetNames() ) );
+ anAction = new QAction(tr("MEN_MANAGE_PLUGINS"), this);
+ anAction->setToolTip(tr("TOP_MANAGE_PLUGINS"));
+ anAction->setStatusTip(tr("STB_MANAGE_PLUGINS"));
+ registerAction(ManagePluginsExtensionsId, anAction);
+ new pqManagePluginsReaction(anAction << pqSetName("actionManage_Plugins"));
// Record Test
- createAction( RecordTestId, tr( "TOP_RECORD_TEST" ), QIcon(),
- tr( "MEN_RECORD_TEST" ), tr( "STB_RECORD_TEST" ),
- 0, desk, false, &Implementation->Core, SLOT( onToolsRecordTest() ) );
-
- // Record Test Screenshot
- createAction( RecordTestScreenshotId, tr( "TOP_RECORD_TEST_SCREENSHOT" ), QIcon(),
- tr( "MEN_RECORD_TEST_SCREENSHOT" ), tr( "STB_RECORD_TEST_SCREENSHOT" ),
- 0, desk, false, &Implementation->Core, SLOT( onToolsRecordTestScreenshot() ) );
-
+ anAction = new QAction(tr("MEN_RECORD_TEST"), this);
+ anAction->setToolTip(tr("TOP_RECORD_TEST"));
+ anAction->setStatusTip(tr("STB_RECORD_TEST"));
+ registerAction(RecordTestId, anAction);
+ new pqTestingReaction(anAction << pqSetName("actionToolsRecordTest"), pqTestingReaction::RECORD);
+
// Play Test
- createAction( PlayTestId, tr( "TOP_PLAY_TEST" ), QIcon(),
- tr( "MEN_PLAY_TEST" ), tr( "STB_PLAY_TEST" ),
- 0, desk, false, &Implementation->Core, SLOT( onToolsPlayTest() ) );
+ anAction = new QAction(tr("MEN_PLAY_TEST"), this);
+ anAction->setToolTip(tr("TOP_PLAY_TEST"));
+ anAction->setStatusTip(tr("STB_PLAY_TEST"));
+ registerAction(PlayTestId, anAction);
+ new pqTestingReaction(anAction << pqSetName("actionToolsPlayTest"), pqTestingReaction::PLAYBACK);
// Max Window Size
- aQtxAction = new QtxAction( tr("TOP_MAX_WINDOW_SIZE"), QIcon(),
- tr("MEN_MAX_WINDOW_SIZE"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_MAX_WINDOW_SIZE" ) );
- aQtxAction->setCheckable(true);
- registerAction( MaxWindowSizeId, aQtxAction );
- connect( aQtxAction, SIGNAL( toggled(bool) ), &Implementation->Core, SLOT( enableTestingRenderWindowSize(bool) ) );
+ anAction = new QAction(tr("MEN_MAX_WINDOW_SIZE"), this);
+ anAction->setToolTip(tr("TOP_MAX_WINDOW_SIZE"));
+ anAction->setStatusTip(tr("PRP_APP_MAX_WINDOW_SIZE"));
+ anAction->setCheckable(true);
+ registerAction(MaxWindowSizeId, anAction);
+ new pqTestingReaction(anAction << pqSetName("actionTesting_Window_Size"),
+ pqTestingReaction::LOCK_VIEW_SIZE);
// Timer Log
- createAction( TimerLogId, tr( "TOP_TIMER_LOG" ), QIcon(),
- tr( "MEN_TIMER_LOG" ), tr( "STB_TIMER_LOG" ),
- 0, desk, false, &Implementation->Core, SLOT( onToolsTimerLog() ) );
+ anAction = new QAction(tr("MEN_TIMER_LOG"), this);
+ anAction->setToolTip(tr("TOP_TIMER_LOG"));
+ anAction->setStatusTip(tr("STB_TIMER_LOG"));
+ registerAction(TimerLogId, anAction);
+ new pqTimerLogReaction(anAction << pqSetName("actionToolsTimerLog"));
// Output Window
- createAction( OutputWindowId, tr( "TOP_OUTPUT_WINDOW" ), QIcon(),
- tr( "MEN_OUTPUT_WINDOW" ), tr( "STB_OUTPUT_WINDOW" ),
- 0, desk, false, &Implementation->Core, SLOT( onToolsOutputWindow() ) );
+ anAction = new QAction(tr("MEN_OUTPUT_WINDOW"), this);
+ anAction->setToolTip(tr("TOP_OUTPUT_WINDOW"));
+ anAction->setStatusTip(tr("STB_OUTPUT_WINDOW"));
+ registerAction(OutputWindowId, anAction);
+ anAction << pqSetName("actionToolsOutputWindow");
+ connect(anAction, SIGNAL(triggered()), pqApplicationCore::instance(), SLOT(showOutputWindow()));
- // Python Shell
- createAction( PythonShellId, tr( "TOP_PYTHON_SHELL" ), QIcon(),
- tr( "MEN_PYTHON_SHELL" ), tr( "STB_PYTHON_SHELL" ),
- 0, desk, false, &Implementation->Core, SLOT( onToolsPythonShell() ) );
+ // Python Shell
+ anAction = new QAction(tr("MEN_PYTHON_SHELL"), this);
+ anAction->setToolTip(tr("TOP_PYTHON_SHELL"));
+ anAction->setStatusTip(tr("STB_PYTHON_SHELL"));
+ registerAction(PythonShellId, anAction);
+ new pqPythonShellReaction(anAction << pqSetName("actionToolsPythonShell"));
// --- Menu "Help"
// About
- createAction( AboutParaViewId, tr( "TOP_ABOUT" ), QIcon(),
- tr( "MEN_ABOUT" ), tr( "STB_ABOUT" ),
- 0, desk, false, this, SLOT( onHelpAbout() ) );
+ anAction = new QAction(tr("MEN_ABOUT"), this);
+ anAction->setToolTip(tr("TOP_ABOUT"));
+ anAction->setStatusTip(tr("STB_ABOUT"));
+ registerAction(AboutParaViewId, anAction);
+ new pqAboutDialogReaction(anAction << pqSetName("actionAbout"));
// Native ParaView user documentation
aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_PARAVIEW_HELP"), false );
- createAction( ParaViewHelpId, tr( "TOP_PARAVIEW_HELP" ), QIcon(aPixmap),
- tr( "MEN_PARAVIEW_HELP" ), tr( "STB_PARAVIEW_HELP" ),
- 0, desk, false, this, SLOT( onParaViewHelp() ) );
-
- // Enable Tooltips
- aQtxAction = new QtxAction( tr("TOP_ENABLE_TOOLTIPS"), QIcon(),
- tr("MEN_ENABLE_TOOLTIPS"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_ENABLE_TOOLTIPS" ) );
- aQtxAction->setCheckable(true);
- aQtxAction->setChecked(true);
- registerAction( EnableTooltipsId, aQtxAction );
+ anAction = new QAction(QIcon(aPixmap), tr("MEN_PARAVIEW_HELP"), this);
+ anAction->setToolTip(tr("TOP_PARAVIEW_HELP"));
+ anAction->setStatusTip(tr("STB_PARAVIEW_HELP"));
+ anAction->setShortcut(QKeySequence::HelpContents);
+ connect(anAction, SIGNAL(triggered()), this, SLOT(showParaViewHelp()));
+ registerAction(ParaViewHelpId, anAction);
+ //new pqHelpReaction(anAction << pqSetName("actionHelp"));
}
/*!
*/
void PVGUI_Module::pvCreateMenus()
{
+ SUIT_Desktop* desk = application()->desktop();
+
// --- Menu "File"
int aPVMnu = createMenu( tr( "MEN_DESK_FILE" ), -1, -1 );
createMenu( OpenFileId, aPVMnu, 5 );
// Recent Files
- int aMenuId = createMenu( tr( "MEN_RECENT_FILES" ), aPVMnu, -1, 5 );
- QMenu* aMenu = menuMgr()->findMenu( aMenuId );
- Implementation->RecentFilesMenu = new pqRecentFilesMenu( *aMenu, getApp()->desktop() );
- connect( Implementation->RecentFilesMenu, SIGNAL( serverConnectFailed() ),
- &Implementation->Core, SLOT( makeDefaultConnectionIfNoneExists() ) );
- QList<QAction*> anActns = aMenu->actions();
- for (int i = 0; i < anActns.size(); ++i)
- createMenu( anActns.at(i), aMenuId );
+ int aMenuId = createMenu( tr( "MEN_RECENT_FILES" ), aPVMnu, -1, 5 );
+ QMenu* aMenu = menuMgr()->findMenu( aMenuId );
+ Implementation->RecentFilesMenu = new pqRecentFilesMenu( *aMenu, getApp()->desktop() );
+ QList<QAction*> anActns = aMenu->actions();
+ for (int i = 0; i < anActns.size(); ++i)
+ createMenu( anActns.at(i), aMenuId );
createMenu( separator(), aPVMnu, -1, 5 );
createMenu( separator(), aPVMnu );
createMenu( ChangeInputId, aPVMnu );
+ createMenu( IgnoreTimeId, aPVMnu );
createMenu( DeleteId, aPVMnu );
createMenu( DeleteAllId, aPVMnu );
createMenu( separator(), aPVMnu );
- createMenu( InteractId, aPVMnu );
- createMenu( SelectCellsOnId, aPVMnu );
- createMenu( SelectPointsOnId, aPVMnu );
- createMenu( SelectCellsThroughId, aPVMnu );
- createMenu( SelectPointsThroughId, aPVMnu );
- createMenu( SelectBlockId, aPVMnu );
- createMenu( separator(), aPVMnu );
-
createMenu( SettingsId, aPVMnu );
createMenu( ViewSettingsId, aPVMnu );
createMenu( separator(), aPVMnu );
// --- Menu "View"
aPVMnu = createMenu( tr( "MEN_DESK_VIEW" ), -1, -1 );
-
- int aCameraMnu = createMenu( tr( "MEN_CAMERA" ), aPVMnu );
- createMenu( ResetCameraId, aCameraMnu );
- createMenu( PositiveXId, aCameraMnu );
- createMenu( NegativeXId, aCameraMnu );
- createMenu( PositiveYId, aCameraMnu );
- createMenu( NegativeYId, aCameraMnu );
- createMenu( PositiveZId, aCameraMnu );
- createMenu( NegativeZId, aCameraMnu );
- createMenu( separator(), aPVMnu );
-
- createMenu( ShowCenterId, aPVMnu );
- createMenu( ResetCenterId, aPVMnu );
- createMenu( PickCenterId, aPVMnu );
- createMenu( ShowColorLegendId, aPVMnu );
+ myToolbarsMenuId = createMenu( "Toolbars", aPVMnu );
+ aMenu = getMenu( myToolbarsMenuId );
+ if (aMenu) {
+ buildToolbarsMenu();
+ connect(aMenu, SIGNAL(aboutToShow()), this, SLOT(buildToolbarsMenu()));
+ }
createMenu( separator(), aPVMnu );
-
+ createMenu( FullScreenId, aPVMnu );
+
// --- Menu "Sources"
// Install ParaView managers for "Sources" menu
QMenu* aRes = 0;
- mySourcesMenuId = createMenu( tr( "MEN_DESK_SOURCES" ), -1, -1, 60 );
+ mySourcesMenuId = createMenu( tr( "MEN_DESK_SOURCES" ), -1, -1, 60);
if ( (aRes = getMenu( mySourcesMenuId )) ) {
- Implementation->Core.setSourceMenu( aRes );
- connect( &Implementation->Core, SIGNAL( enableSourceCreate(bool) ),
- aRes, SLOT( setEnabled(bool) ) );
+ pqParaViewMenuBuilders::buildSourcesMenu(*aRes, desk);
}
// --- Menu "Filters"
// Install ParaView managers for "Filters" menu
myFiltersMenuId = createMenu( tr( "MEN_DESK_FILTERS" ), -1, -1, 70 );
if ( (aRes = getMenu( myFiltersMenuId )) ) {
- Implementation->Core.setFilterMenu( aRes );
- connect( &Implementation->Core, SIGNAL( enableFilterCreate(bool) ),
- aRes, SLOT( setEnabled(bool) ) );
+ pqParaViewMenuBuilders::buildFiltersMenu(*aRes, desk);
}
-
- // --- Menu "Animation"
- int anAnimationMnu = createMenu( tr( "MEN_DESK_ANIMATION" ), -1, -1, 80 );
-
- createMenu( FirstFrameId, anAnimationMnu );
- createMenu( PreviousFrameId, anAnimationMnu );
- createMenu( PlayId, anAnimationMnu );
- createMenu( NextFrameId, anAnimationMnu );
- createMenu( LastFrameId, anAnimationMnu );
- createMenu( LoopId, anAnimationMnu );
+ // --- Menu "Macros"
+ myMacrosMenuId = createMenu( tr( "MEN_MACROS" ), -1, -1, 80 );
+ if ( (aRes = getMenu( myMacrosMenuId )) ) {
+ pqParaViewMenuBuilders::buildMacrosMenu(*aRes);
+ }
+
// --- Menu "Tools"
int aToolsMnu = createMenu( tr( "MEN_DESK_TOOLS" ), -1, -1, 90 );
createMenu( CreateCustomFilterId, aToolsMnu );
+ createMenu( AddCameraLinkId, aToolsMnu );
+ createMenu( separator(), aToolsMnu );
createMenu( ManageCustomFiltersId, aToolsMnu );
- createMenu( CreateLookmarkId, aToolsMnu );
createMenu( ManageLinksId, aToolsMnu );
- createMenu( AddCameraLinkId, aToolsMnu );
createMenu( ManagePluginsExtensionsId, aToolsMnu );
createMenu( separator(), aToolsMnu );
- createMenu( DumpWidgetNamesId, aToolsMnu );
createMenu( RecordTestId, aToolsMnu );
- createMenu( RecordTestScreenshotId, aToolsMnu );
createMenu( PlayTestId, aToolsMnu );
createMenu( MaxWindowSizeId, aToolsMnu );
createMenu( separator(), aToolsMnu );
createMenu( TimerLogId, aToolsMnu );
createMenu( OutputWindowId, aToolsMnu );
createMenu( separator(), aToolsMnu );
-
+
createMenu( PythonShellId, aToolsMnu );
// --- Menu "Help"
int aHelpMnu = createMenu( tr( "MEN_DESK_HELP" ), -1, -1 );
-
createMenu( AboutParaViewId, aHelpMnu );
- createMenu( ParaViewHelpId, aHelpMnu );
- createMenu( separator(), aHelpMnu );
- createMenu( EnableTooltipsId, aHelpMnu );
+ int aHelpModule = createMenu( LightApp_Application::tr( "MEN_DESK_MODULE_HELP" ), aHelpMnu, -1 );
+ createMenu( ParaViewHelpId, aHelpModule );
}
/*!
void PVGUI_Module::pvCreateToolBars()
{
SUIT_Desktop* desk = application()->desktop();
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
-
- QPixmap aPixmap;
- QtxAction* aQtxAction;
-
- // --- Toolbar "Main Controls"
-
- int aToolId = createTool( tr("TOOL_MAIN_CONTROLS") );
-
- createTool( OpenFileId, aToolId );
- createTool( SaveDataId, aToolId );
- createTool( separator(), aToolId );
- createTool( ConnectId, aToolId );
- createTool( DisconnectId, aToolId );
- createTool( separator(), aToolId );
- createTool( ParaViewHelpId, aToolId );
-
- // --- Toolbar "Selection Controls"
-
- mySelectionControlsTb = createTool( tr("TOOL_SELECTION_CONTROLS") );
-
- createTool( InteractId, mySelectionControlsTb );
- createTool( SelectCellsOnId, mySelectionControlsTb );
- createTool( SelectPointsOnId, mySelectionControlsTb );
- createTool( SelectCellsThroughId, mySelectionControlsTb );
- createTool( SelectPointsThroughId, mySelectionControlsTb );
- createTool( SelectBlockId, mySelectionControlsTb );
-
- // --- Toolbar "Undo/Redo Controls"
-
- aToolId = createTool( tr("TOOL_UNDOREDO_CONTROLS") );
-
- createTool( UndoId, aToolId );
- createTool( RedoId, aToolId );
-
- // --- Toolbar "VCR Controls"
-
- aToolId = createTool( tr("TOOL_VCR_CONTROLS") );
-
- createTool( FirstFrameId, aToolId );
- createTool( PreviousFrameId, aToolId );
- createTool( PlayId, aToolId );
- createTool( NextFrameId, aToolId );
- createTool( LastFrameId, aToolId );
- createTool( LoopId, aToolId );
-
- pqProgressManager* progress_manager = pqApplicationCore::instance()->getProgressManager();
- progress_manager->addNonBlockableObject( toolMgr()->toolBar( aToolId ) );
-
- // --- Toolbar "Active Variable Controls"
-
- aToolId = createTool( tr("TOOL_ACTIVE_VARIABLE_CONTROLS") );
- QToolBar* aTB = toolMgr()->toolBar( aToolId );
-
- createTool( ShowColorLegendId, aToolId );
-
- // To set up the color map tool buttons.
- pqColorScaleToolbar* colorScale = Implementation->Core.getColorScaleEditorManager();
-
- // Edit Color Map
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_EDIT_COLOR_MAP"), false );
- aQtxAction = new QtxAction( tr("TOP_EDIT_COLOR_MAP"), QIcon(aPixmap),
- tr("MEN_EDIT_COLOR_MAP"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_EDIT_COLOR_MAP" ) );
- registerAction( EditColorMapId, aQtxAction );
- connect( &Implementation->Core, SIGNAL( enableVariableToolbar(bool) ),
- aQtxAction, SLOT( setEnabled(bool) ) );
- colorScale->setColorAction( aQtxAction ); /// !!!
- createTool( EditColorMapId, aToolId );
-
- // Reset Range
- aPixmap = resMgr->loadPixmap( "ParaView", tr("ICON_RESET_RANGE"), false );
- aQtxAction = new QtxAction( tr("TOP_RESET_RANGE"), QIcon(aPixmap),
- tr("MEN_RESET_RANGE"), 0, desk );
- aQtxAction->setStatusTip( tr( "PRP_APP_RESET_RANGE" ) );
- registerAction( ResetRangeId, aQtxAction );
- connect( &Implementation->Core, SIGNAL( enableVariableToolbar(bool) ),
- aQtxAction, SLOT( setEnabled(bool) ) );
- colorScale->setRescaleAction( aQtxAction ); /// !!!
- createTool( ResetRangeId, aToolId );
-
- Implementation->Core.setupVariableToolbar(aTB);
- QList<QAction*> anActns = aTB->actions();
- for (int i = 0; i < anActns.size(); ++i)
- if ( anActns.at(i) != action(ShowColorLegendId) ) {
- createTool( anActns.at(i), aToolId );
- connect( &Implementation->Core, SIGNAL( enableVariableToolbar(bool) ),
- anActns.at(i), SLOT( setEnabled(bool) ) );
- }
-
- // --- Toolbar "Representation"
-
- aToolId = createTool( tr("TOOL_REPRESENTATION") );
- aTB = toolMgr()->toolBar( aToolId );
-
- Implementation->Core.setupRepresentationToolbar(aTB);
- anActns = aTB->actions();
- for (int i = 0; i < anActns.size(); ++i) {
- createTool( anActns.at(i), aToolId );
- connect( &Implementation->Core, SIGNAL( enableVariableToolbar(bool) ),
- anActns.at(i), SLOT( setEnabled(bool) ) );
- }
-
- // --- Toolbar "Camera Controls"
-
- aToolId = createTool( tr("TOOL_CAMERA_CONTROLS") );
-
- createTool( ResetCameraId, aToolId );
- createTool( PositiveXId, aToolId );
- createTool( NegativeXId, aToolId );
- createTool( PositiveYId, aToolId );
- createTool( NegativeYId, aToolId );
- createTool( PositiveZId, aToolId );
- createTool( NegativeZId, aToolId );
-
- // --- Toolbar "Center Axes Controls"
-
- aToolId = createTool( tr("TOOL_CENTER_AXES_CONTROLS") );
-
- createTool( ShowCenterId, aToolId );
- createTool( ResetCenterId, aToolId );
- createTool( PickCenterId, aToolId );
-
- // --- Toolbar "Common Filters"
-
- aToolId = createTool( tr("TOOL_COMMON_FILTERS") );
- aTB = toolMgr()->toolBar( aToolId );
-
- Implementation->Core.setupCommonFiltersToolbar(aTB);
- anActns = aTB->actions();
- for (int i = 0; i < anActns.size(); ++i)
- createTool( anActns.at(i), aToolId );
-
- // --- Toolbar "Lookmarks"
-
- aToolId = createTool( tr("TOOL_LOOKMARKS") );
- aTB = toolMgr()->toolBar(aToolId);
-
- aTB->setContextMenuPolicy(Qt::CustomContextMenu);
- aTB->setOrientation(Qt::Vertical);
- aTB->setAllowedAreas(Qt::RightToolBarArea);
- toolMgr()->mainWindow()->addToolBar(Qt::RightToolBarArea,aTB);
- Implementation->Core.setupLookmarkToolbar(aTB);
+ pqParaViewMenuBuilders::buildToolbars(*desk);
}
/*!
}
return res;
}
+
+/*!
+ \brief Returns list of ParaView toolbars
+*/
+QList<QToolBar*> PVGUI_Module::getParaViewToolbars()
+{
+ QList<QToolBar*> all_toolbars = application()->desktop()->findChildren<QToolBar*>();
+ // First two toolbars has to be ignored because they are not from ParaView
+ if (all_toolbars.size() > 2) {
+ all_toolbars.removeFirst();
+ all_toolbars.removeFirst();
+ }
+ return all_toolbars;
+}
+
+
+
+/*!
+ \brief Builds a menu which referred to toolbars
+*/
+void PVGUI_Module::buildToolbarsMenu()
+{
+ SUIT_Desktop* desk = application()->desktop();
+ QMenu* aMenu = menuMgr()->findMenu( myToolbarsMenuId );
+ if (aMenu) {
+ aMenu->clear();
+ QList<QMenu*> child_menus = aMenu->findChildren<QMenu*>();
+ foreach (QMenu* menu, child_menus) {
+ delete menu;
+ }
+ QList<QToolBar*> all_toolbars = getParaViewToolbars();
+
+ // Add menus for all toolbars and actions from them.
+ // This puts menu actions for all toolbars making it possible to access all
+ // toolbar actions even when the toolbar are not visible.
+ // I wonder if I should ignore the pqMainControlsToolbar since those actions
+ // are already placed at other places.
+ foreach (QToolBar* toolbar, all_toolbars) {
+ QMenu* sub_menu = new QMenu(aMenu) << pqSetName(toolbar->windowTitle());
+ bool added = false;
+ foreach (QAction* action, toolbar->actions()) {
+ if (!action->text().isEmpty()) {
+ added = true;
+ sub_menu->addAction(action);
+ }
+ }
+ if (added) {
+ QAction* menu_action = aMenu->addMenu(sub_menu);
+ menu_action->setText(toolbar->windowTitle());
+ } else {
+ delete sub_menu;
+ }
+ }
+ disconnect(aMenu, SIGNAL(aboutToShow()), this, SLOT(buildToolbarsMenu()));
+ }
+}
+
#define PVGUI_Module_impl_H
#include "PVGUI_Module.h"
+#include "PVGUI_OutputWindowAdapter.h"
//#include <QAssistantClient>
#include <pqHelpWindow.h>
#include <QPointer>
-#include <pqMainWindowCore.h>
#include <pqRecentFilesMenu.h>
+#include <pqPVApplicationCore.h>
+#include <pqPQLookupTableManager.h>
+#include <pqActiveObjects.h>
+
//////////////////////////////////////////////////////////////////////////////
// PVGUI_Module::pqImplementation
class PVGUI_Module::pqImplementation
{
public:
- pqImplementation(QWidget* parent) :
- //AssistantClient(0),
- myHelpWindow(0),
- Core(parent),
+ pqImplementation(QWidget* parent):
RecentFilesMenu(0)
- {
- }
+ { }
~pqImplementation()
- {
- if (myHelpWindow)
- delete myHelpWindow;
- }
+ { }
- //QPointer<QAssistantClient> AssistantClient;
- pqMainWindowCore Core;
pqRecentFilesMenu* RecentFilesMenu;
- //QPointer<pqServer> ActiveServer;
- QString DocumentationDir;
- QPointer<pqHelpWindow> myHelpWindow;
-
- static vtkPVMain* myPVMain;
- static pqOptions* myPVOptions;
- static PVGUI_ProcessModuleHelper* myPVHelper;
+ static pqApplicationCore* Core;
+ static PVGUI_OutputWindowAdapter* OutputWindowAdapter;
+ static QPointer<pqHelpWindow> helpWindow;
};
#endif // PVGUI_Module_impl_H
#include <QAction>
#include <QDockWidget>
#include <QToolBar>
+#include <QStatusBar>
+#include <QShortcut>
-//VSV #include <pqAnimationPanel.h>
#include <pqAnimationViewWidget.h> //VSV
#include <pqApplicationCore.h>
#include <pqComparativeVisPanel.h>
-#include <pqMainWindowCore.h>
#include <pqObjectInspectorWidget.h>
-#include <pqPipelineBrowser.h>
-#include <pqPipelineBrowserContextMenu.h>
-#include <pqPipelineMenu.h>
+#include <pqPipelineBrowserWidget.h>
#include <pqProxyTabWidget.h>
#include <pqSettings.h>
+#include <pqDataInformationWidget.h>
+#include <pqPVAnimationWidget.h>
+#include <pqSelectionInspectorPanel.h>
+#include <pqProgressWidget.h>
+
+#include <pqAlwaysConnectedBehavior.h>
+#include <pqApplicationCore.h>
+#include <pqAutoLoadPluginXMLBehavior.h>
+#include <pqCommandLineOptionsBehavior.h>
+#include <pqCrashRecoveryBehavior.h>
+#include <pqDataTimeStepBehavior.h>
+#include <pqDefaultViewBehavior.h>
+#include <pqDeleteBehavior.h>
+#include <pqPersistentMainWindowStateBehavior.h>
+#include <pqPluginActionGroupBehavior.h>
+#include <pqPluginDockWidgetsBehavior.h>
+#include <pqPluginManager.h>
+#include <pqPVNewSourceBehavior.h>
+#include <pqSpreadSheetVisibilityBehavior.h>
+#include <pqStandardViewModules.h>
+#include <pqUndoRedoBehavior.h>
+#include <pqViewFrameActionsBehavior.h>
+#include <pqParaViewMenuBuilders.h>
/*!
\brief Create dock widgets for ParaView widgets such as object inspector, pipeline browser, etc.
{
SUIT_Desktop* desk = application()->desktop();
- // See ParaView src/Applications/Client/MainWindow.cxx
+ // Pipeline
QDockWidget* pipelineBrowserDock = new QDockWidget( tr( "TTL_PIPELINE_BROWSER" ), desk );
pipelineBrowserDock->setObjectName("pipelineBrowserDock");
pipelineBrowserDock->setAllowedAreas( Qt::LeftDockWidgetArea|Qt::NoDockWidgetArea|Qt::RightDockWidgetArea );
desk->addDockWidget( Qt::LeftDockWidgetArea, pipelineBrowserDock );
- Implementation->Core.setupPipelineBrowser( pipelineBrowserDock );
- pqPipelineBrowser *browser = Implementation->Core.pipelineBrowser();
- Implementation->Core.pipelineMenu().setModels(browser->getModel(), browser->getSelectionModel());
+ pqPipelineBrowserWidget* browser = new pqPipelineBrowserWidget(pipelineBrowserDock);
+ pqParaViewMenuBuilders::buildPipelineBrowserContextMenu(*browser);
+ pipelineBrowserDock->setWidget(browser);
myDockWidgets.append(pipelineBrowserDock);
+ //Object inspector
QDockWidget* objectInspectorDock = new QDockWidget( tr( "TTL_OBJECT_INSPECTOR" ), desk );
objectInspectorDock->setObjectName("objectInspectorDock");
objectInspectorDock->setAllowedAreas( Qt::LeftDockWidgetArea|Qt::NoDockWidgetArea|Qt::RightDockWidgetArea );
desk->addDockWidget( Qt::LeftDockWidgetArea, objectInspectorDock );
- pqProxyTabWidget* const proxyTab = Implementation->Core.setupProxyTabWidget( objectInspectorDock );
+ pqProxyTabWidget* proxyTab = new pqProxyTabWidget(objectInspectorDock);
+ proxyTab->setShowOnAccept(true);
+ objectInspectorDock->setWidget(proxyTab);
connect( proxyTab->getObjectInspector(), SIGNAL( helpRequested(QString) ),
- this, SLOT( showHelpForProxy(QString) ) );
- connect( proxyTab->getObjectInspector(), SIGNAL( preaccept() ),
- this, SLOT( onPreAccept() ) );
- connect( proxyTab->getObjectInspector(), SIGNAL( postaccept() ),
- this, SLOT( onPostAccept() ) );
+ this, SLOT( showHelpForProxy(QString) ) );
+ //connect( proxyTab->getObjectInspector(), SIGNAL( preaccept() ), this, SLOT( onPreAccept() ) );
+ //connect( proxyTab->getObjectInspector(), SIGNAL( postaccept() ), this, SLOT( onPostAccept() ) );
myDockWidgets.append(objectInspectorDock);
-
+
+ // Statistic View
QDockWidget* statisticsViewDock = new QDockWidget( tr( "TTL_STATISTICS_VIEW" ), desk );
statisticsViewDock->setObjectName("statisticsViewDock");
- statisticsViewDock->setAllowedAreas( Qt::BottomDockWidgetArea|Qt::LeftDockWidgetArea|Qt::NoDockWidgetArea|Qt::RightDockWidgetArea );
+ statisticsViewDock->setAllowedAreas(Qt::BottomDockWidgetArea|Qt::LeftDockWidgetArea|
+ Qt::NoDockWidgetArea|Qt::RightDockWidgetArea );
desk->addDockWidget( Qt::BottomDockWidgetArea, statisticsViewDock );
- Implementation->Core.setupStatisticsView( statisticsViewDock );
+ pqDataInformationWidget* aStatWidget = new pqDataInformationWidget(statisticsViewDock);
+ statisticsViewDock->setWidget(aStatWidget);
myDockWidgets.append(statisticsViewDock);
- QDockWidget* animationPanelDock = new QDockWidget( tr( "TTL_ANIMATION_INSPECTOR" ), desk );
- animationPanelDock->setObjectName("animationPanelDock");
- desk->addDockWidget( Qt::LeftDockWidgetArea, animationPanelDock );
- //pqAnimationPanel* animation_panel = Implementation->Core.setupAnimationPanel( animationPanelDock );
- pqAnimationViewWidget* animation_panel = Implementation->Core.setupAnimationView( animationPanelDock );
-
- int aToolId = createTool( tr("TOOL_CURRENT_TIME_CONTROLS") );
- QToolBar* aTB = toolMgr()->toolBar( aToolId );
- //animation_panel->setCurrentTimeToolbar( aTB );
- QList<QAction*> anActns = aTB->actions();
- for (int i = 0; i < anActns.size(); ++i)
- createTool( anActns.at(i), aToolId );
-
- myDockWidgets.append(animationPanelDock);
-
- QDockWidget* lookmarkBrowserDock = new QDockWidget( tr( "TTL_LOOKMARK_BROWSER" ), desk );
- lookmarkBrowserDock->setObjectName("lookmarkBrowserDock");
- QSizePolicy sp( QSizePolicy::Preferred, QSizePolicy::Preferred );
- sp.setHorizontalStretch( 0 );
- sp.setVerticalStretch( 0 );
- lookmarkBrowserDock->setSizePolicy( sp );
- lookmarkBrowserDock->setFloating( false );
- desk->addDockWidget( Qt::RightDockWidgetArea, lookmarkBrowserDock );
- Implementation->Core.setupLookmarkBrowser( lookmarkBrowserDock );
- myDockWidgets.append(lookmarkBrowserDock);
-
- QDockWidget* lookmarkInspectorDock = new QDockWidget( tr( "TTL_LOOKMARK_INSPECTOR" ), desk );
- lookmarkInspectorDock->setObjectName("lookmarkInspectorDock");
- lookmarkInspectorDock->setAllowedAreas( Qt::RightDockWidgetArea );
- desk->addDockWidget( Qt::RightDockWidgetArea, lookmarkInspectorDock );
- Implementation->Core.setupLookmarkInspector( lookmarkInspectorDock );
- myDockWidgets.append(lookmarkInspectorDock);
-
- QDockWidget* comparativePanelDock = new QDockWidget( tr( "TTL_COMPARATIVE_VIEW_INSPECTOR" ), desk );
- comparativePanelDock->setObjectName("comparativePanelDock");
- desk->addDockWidget( Qt::LeftDockWidgetArea, comparativePanelDock );
- pqComparativeVisPanel* cv_panel = new pqComparativeVisPanel( comparativePanelDock );
- comparativePanelDock->setWidget(cv_panel);
- myDockWidgets.append(comparativePanelDock);
-
+ //Animation view
QDockWidget* animationViewDock = new QDockWidget( tr( "TTL_ANIMATION_VIEW" ), desk );
animationViewDock->setObjectName("animationViewDock");
desk->addDockWidget( Qt::BottomDockWidgetArea, animationViewDock );
- Implementation->Core.setupAnimationView( animationViewDock );
+ pqPVAnimationWidget* animation_panel = new pqPVAnimationWidget(animationViewDock);
+ animationViewDock->setWidget(animation_panel);
myDockWidgets.append(animationViewDock);
+ // Selection view
QDockWidget* selectionInspectorDock = new QDockWidget( tr( "TTL_SELECTION_INSPECTOR" ), desk );
selectionInspectorDock->setObjectName("selectionInspectorDock");
selectionInspectorDock->setAllowedAreas( Qt::AllDockWidgetAreas );
desk->addDockWidget( Qt::LeftDockWidgetArea, selectionInspectorDock );
- Implementation->Core.setupSelectionInspector( selectionInspectorDock );
+ pqSelectionInspectorPanel* aSelInspector = new pqSelectionInspectorPanel(selectionInspectorDock);
+ selectionInspectorDock->setWidget(aSelInspector);
myDockWidgets.append(selectionInspectorDock);
- // Setup the statusbar ...
- Implementation->Core.setupProgressBar( desk->statusBar() );
+ // Comparative View
+ QDockWidget* comparativePanelDock = new QDockWidget( tr( "TTL_COMPARATIVE_VIEW_INSPECTOR" ), desk );
+ comparativePanelDock->setObjectName("comparativePanelDock");
+ desk->addDockWidget( Qt::LeftDockWidgetArea, comparativePanelDock );
+ pqComparativeVisPanel* cv_panel = new pqComparativeVisPanel( comparativePanelDock );
+ comparativePanelDock->setWidget(cv_panel);
+ myDockWidgets.append(comparativePanelDock);
+ // Setup the statusbar ...
+ pqProgressWidget* aProgress = new pqProgressWidget(desk->statusBar());
+ desk->statusBar()->addPermanentWidget(aProgress);
+
// Set up the dock window corners to give the vertical docks more room.
desk->setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea);
desk->setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea);
-
+
// Setup the default dock configuration ...
- lookmarkBrowserDock->hide();
- lookmarkInspectorDock->hide();
statisticsViewDock->hide();
- animationPanelDock->hide();
comparativePanelDock->hide();
animationViewDock->hide();
selectionInspectorDock->hide();
-}
-/*!
- \brief Create dock widgets context menus.
-*/
-void PVGUI_Module::setupDockWidgetsContextMenu()
-{
- // Pipeline menu
- Implementation->Core.pipelineMenu().setMenuAction( pqPipelineMenu::ChangeInputAction,
- action(ChangeInputId) );
- Implementation->Core.pipelineMenu().setMenuAction( pqPipelineMenu::DeleteAction,
- action(DeleteId) );
-
- // Pipeline Browser menu
- pqPipelineBrowser *browser = Implementation->Core.pipelineBrowser();
- pqPipelineBrowserContextMenu *browserMenu = new pqPipelineBrowserContextMenu(browser);
-
- browserMenu->setMenuAction(pqPipelineBrowserContextMenu::OPEN, action(OpenFileId));
- if ( action(OpenFileId)->text().compare(tr("MEN_OPEN")) == 0 )
- action(OpenFileId)->setText(tr("MEN_OPEN_FILE"));
-
- browserMenu->setMenuAction(pqPipelineBrowserContextMenu::CHANGE_INPUT, action(ChangeInputId));
- browserMenu->setMenuAction(pqPipelineBrowserContextMenu::DELETE, action(DeleteId));
- browserMenu->setMenuAction(pqPipelineBrowserContextMenu::CREATE_CUSTOM_FILTER, action(CreateCustomFilterId));
+
+ // Setup quick-launch shortcuts.
+ QShortcut *ctrlSpace = new QShortcut(Qt::CTRL + Qt::Key_Space, desk);
+ QObject::connect(ctrlSpace, SIGNAL(activated()), pqApplicationCore::instance(), SLOT(quickLaunch()));
+ QShortcut *altSpace = new QShortcut(Qt::ALT + Qt::Key_Space, desk);
+ QObject::connect(altSpace, SIGNAL(activated()), pqApplicationCore::instance(), SLOT(quickLaunch()));
+
}
/*!
+++ /dev/null
-// File: PVGUI_ProcessModuleHelper.cxx
-// Created: Tue Nov 11 13:03:19 2008
-// Author: Sergey ANIKIN
-// <san@portrex.nnov.opencascade.com>
-
-
-#include "PVGUI_Module.h"
-#include "PVGUI_ProcessModuleHelper.h"
-#include "PVGUI_OutputWindowAdapter.h"
-
-#include <CAM_Application.h>
-#include <CAM_Module.h>
-#include <SUIT_Session.h>
-
-#include <vtkObjectFactory.h>
-#include <vtkOutputWindow.h>
-#include <vtkSmartPointer.h>
-
-vtkStandardNewMacro(PVGUI_ProcessModuleHelper);
-vtkCxxRevisionMacro(PVGUI_ProcessModuleHelper, "$Revision$");
-
-class PVGUI_ProcessModuleHelper::pqImplementation
-{
-public:
- pqImplementation() :
- OutputWindowAdapter(vtkSmartPointer<PVGUI_OutputWindowAdapter>::New())
- {}
-
- ~pqImplementation()
- {}
-
- //! Displays VTK debug output in SALOME log window
- vtkSmartPointer<PVGUI_OutputWindowAdapter> OutputWindowAdapter;
-};
-
-//-----------------------------------------------------------------------------
-PVGUI_ProcessModuleHelper::PVGUI_ProcessModuleHelper()
- : Implementation(new pqImplementation())
-{
-}
-
-//-----------------------------------------------------------------------------
-PVGUI_ProcessModuleHelper::~PVGUI_ProcessModuleHelper()
-{
-}
-
-//-----------------------------------------------------------------------------
-void PVGUI_ProcessModuleHelper::PrintSelf(ostream& os, vtkIndent indent)
-{
- this->Superclass::PrintSelf(os, indent);
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Used by ParaView testing capabilities, not usable in SALOME.
- */
-bool PVGUI_ProcessModuleHelper::compareView(const QString& ReferenceImage,
- double Threshold, ostream& Output, const QString& TempDirectory)
-{
- if ( CAM_Application* anApp = dynamic_cast<CAM_Application*>( SUIT_Session::session()->activeApplication() ) )
- if ( PVGUI_Module* aPVM = dynamic_cast<PVGUI_Module*>( anApp->module("ParaVis") ) )
- return aPVM->compareView( ReferenceImage, Threshold, Output, TempDirectory );
-
- return false;
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Reimplemented to suppress default ParaView client behavior. Does nothing.
-*/
-void PVGUI_ProcessModuleHelper::showOutputWindow()
-{
- // Do nothing here
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Reimplemented to suppress default ParaView client behavior. Does nothing.
-*/
-void PVGUI_ProcessModuleHelper::showWindow()
-{
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Reimplemented to suppress default ParaView client behavior. Does nothing.
-*/
-void PVGUI_ProcessModuleHelper::hideWindow()
-{
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Finalize application in order to save server settings.
-*/
-void PVGUI_ProcessModuleHelper::finalize()
-{
- this->FinalizeApplication();
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Calls the base implementation and redirects ParaView output to PVGUI_OutputWindowAdapter instance.
- \sa PVGUI_OutputWindowAdapter
-*/
-int PVGUI_ProcessModuleHelper::InitializeApplication(int argc, char** argv)
-{
- if ( pqProcessModuleGUIHelper::InitializeApplication( argc, argv ) ){
- // Redirect VTK debug output to SALOME GUI message console
- vtkOutputWindow::SetInstance(Implementation->OutputWindowAdapter);
- }
-
- return 1;
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Reimplemented to suppress default ParaView client behavior and not to run Qt event loop. Does nothing.
-*/
-int PVGUI_ProcessModuleHelper::appExec()
-{
- return 0;
-}
-
-/*!
- \brief Reimplemented to suppress default ParaView client behavior and not to exit after the client initalization. Does nothing.
-*/
-//-----------------------------------------------------------------------------
-int PVGUI_ProcessModuleHelper::postAppExec()
-{
- return 0;
-}
-
-/*!
- \brief Reimplemented to suppress default ParaView client behavior. Does nothing.
-*/
-//-----------------------------------------------------------------------------
-QWidget* PVGUI_ProcessModuleHelper::CreateMainWindow()
-{
- return 0;
-}
-
-//-----------------------------------------------------------------------------
-/*!
- \brief Reimplemented to suppress default ParaView client behavior. Does nothing.
-*/
-void PVGUI_ProcessModuleHelper::ExitApplication()
-{
- // Cannot exit here, so do nothing
-}
+++ /dev/null
-// PARAVIS : ParaView wrapper SALOME module
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// 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.
-//
-// 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
-//
-// File : PVGUI_ProcessModuleHelper.h
-// Author : Sergey ANIKIN
-//
-
-#ifndef PVGUI_ProcessModuleHelper_H
-#define PVGUI_ProcessModuleHelper_H
-
-#include <pqProcessModuleGUIHelper.h>
-
-/*!
- \class PVGUI_ProcessModuleHelper
- One of the key elements of ParaView integration into SALOME GUI.
- Sub-classes pqProcessModuleGUIHelper with the following main features:
- \li No main window is created by this class
- \li Qt event loop is run outside this class
- \li ParaView messages are redirected to SALOME GUI message console
- \li Client-server architecture is intialized and used as in any ParaView client
- */
-class PVGUI_ProcessModuleHelper : public pqProcessModuleGUIHelper
-{
-public:
- static PVGUI_ProcessModuleHelper* New();
- vtkTypeRevisionMacro(PVGUI_ProcessModuleHelper, pqProcessModuleGUIHelper);
- void PrintSelf(ostream& os, vtkIndent indent);
-
- virtual bool compareView(const QString& ReferenceImage, double Threshold, ostream& Output, const QString& TempDirectory);
-
- virtual void showOutputWindow();
- virtual void showWindow();
- virtual void hideWindow();
-
- void finalize();
-
-protected:
- virtual int InitializeApplication(int argc, char** argv);
-
- virtual int appExec();
- virtual int postAppExec();
-
- PVGUI_ProcessModuleHelper();
- ~PVGUI_ProcessModuleHelper();
-
- virtual QWidget* CreateMainWindow();
- virtual void ExitApplication();
-
-private:
- PVGUI_ProcessModuleHelper(const PVGUI_ProcessModuleHelper&); // Not implemented.
- void operator=(const PVGUI_ProcessModuleHelper&); // Not implemented.
-
- class pqImplementation;
- pqImplementation* const Implementation;
-};
-
-#endif
PARAVIS_Gen_var aPARAVIS = PARAVIS_Gen::_narrow(aComponent);
if(!CORBA::is_nil(aPARAVIS)){
aGen = PARAVIS_Gen_i::GetParavisGenImpl();
- //if(aGen)
- //aGen->SetCurrentStudy(GetDSStudy(GetCStudy(GetAppStudy(theModule))));
}
}
if(!aGen)
+++ /dev/null
-#include "PVGUI_Trace.h"
-#include "PVGUI_Module.h"
-
-#include <vtkSMPythonTraceObserver.h>
-#include <vtkSMSourceProxy.h>
-#include <vtkSMViewProxy.h>
-#include <vtkSMProxy.h>
-#include <vtkSMProperty.h>
-#include <vtkSMProxyProperty.h>
-#include <vtkSMProxyIterator.h>
-#include <pqServer.h>
-#include <vtkSMProxyManager.h>
-#include <vtkSMDomain.h>
-#include <vtkSMProxyListDomain.h>
-#include <vtkSMProxyGroupDomain.h>
-#include <vtkSMPropertyIterator.h>
-#include <vtkCallbackCommand.h>
-#include <vtkSMStringVectorProperty.h>
-#include <vtkSMIntVectorProperty.h>
-#include <vtkSMIdTypeVectorProperty.h>
-#include <vtkSMDoubleVectorProperty.h>
-#include <vtkSMEnumerationDomain.h>
-#include <vtkSMDomainIterator.h>
-#include <vtkSMInputProperty.h>
-
-#include <QFile>
-#include <QTextStream>
-
-extern PVGUI_Module* ParavisModule;
-
-static trace_globals globals;
-static bool myInitialised = false;
-
-
-//********************************************************************
-QString pyvariable_from_proxy_name(const QString& proxy_name)
-{
- QString aName = proxy_name;
- return make_name_valid(aName.replace(".", "_"));
-}
-
-//********************************************************************
-proxy_trace_info::proxy_trace_info(vtkSMProxy* proxy,
- const QString& proxyGroup,
- const QString& proxyName)
-{
- Proxy = proxy;
- Group = proxyGroup;
- ProxyName = proxyName;
- PyVariable = pyvariable_from_proxy_name(proxyName);
- ignore_next_unregister = false;
-}
-
-//********************************************************************
-prop_trace_info::prop_trace_info(const proxy_trace_info_ptr proxyTraceInfo, vtkSMProperty* prop)
-{
- Prop = prop;
- // Determine python variable name
- PyVariable = prop->GetXMLLabel();
- // For non-self properties, use the xml name instead of xml label:
- if (prop->GetParent() != proxyTraceInfo->Proxy)
- PyVariable = proxyTraceInfo->Proxy->GetPropertyName(prop);
- PyVariable = make_name_valid(PyVariable);
-}
-
-
-//********************************************************************
-QString make_name_valid(const QString& theName)
-{
- QString name = theName;
- if (name.isNull())
- return QString("");
- if ((name.indexOf('(') >= 0) || (name.indexOf(')') >=0))
- return QString("");
- name = name.replace(" ","");
- name = name.replace("-","");
- name = name.replace(":","");
- name = name.replace(".","");
- if (!name.at(0).isLetter())
- name = "a" + name;
- return name;
-}
-
-//********************************************************************
-vtkSMPythonTraceObserver* trace_observer()
-{
- return globals.observer;
-}
-
-//********************************************************************
-QStringList ignoredViewProperties()
-{
- return globals.ignored_view_properties;
-}
-
-//********************************************************************
-QStringList ignoredRepresentationProperties()
-{
- return globals.ignored_representation_properties;
-}
-
-//********************************************************************
-bool propIsIgnored(const proxy_trace_info_ptr info, const QString& propName)
-{
- QStringList aIgnoredList = ignoredViewProperties();
- if ((info->Group == "views") && (aIgnoredList.contains(propName)))
- return true;
- aIgnoredList = ignoredRepresentationProperties();
- if ((info->Group == "representations") && (aIgnoredList.contains(propName)))
- return true;
- return false;
-}
-
-//********************************************************************
-bool operator < (const QStringList& list1, const QStringList& list2) {
- QString s1 = list1.join(":");
- QString s2 = list2.join(":");
- return (s1 < s2);
-}
-
-//********************************************************************
-void GetProxiesInGroup(const char* theName, QMap<QStringList,vtkSMProxy*>& proxies)
-{
- pqServer* aServer = ParavisModule->getActiveServer();
-
- vtkSMProxyIterator* aIt = vtkSMProxyIterator::New();
- aIt->SetConnectionID(aServer->GetConnectionID());
- aIt->SetModeToOneGroup();
- for (aIt->Begin(theName); !aIt->IsAtEnd(); aIt->Next()) {
- vtkSMProxy* aProxy = aIt->GetProxy();
- QStringList aKey;
- aKey << aIt->GetKey() << aProxy->GetSelfIDAsString();
- proxies[aKey] = aProxy;
- }
- aIt->Delete();
-}
-
-//********************************************************************
-void track_existing_sources()
-{
- QMap<QStringList, vtkSMProxy*> existing_sources;
- GetProxiesInGroup("sources", existing_sources);
-
- QMap<QStringList, vtkSMProxy*>::const_iterator aIt;
- for (aIt = existing_sources.constBegin(); aIt!=existing_sources.constEnd(); ++aIt) {
- QStringList aKey = aIt.key();
- vtkSMProxy* aProxy = aIt.value();
- track_existing_source_proxy(aProxy, "");
- }
-}
-
-//********************************************************************
-proxy_trace_info_ptr track_existing_source_proxy(vtkSMProxy* proxy, const QString& proxy_name)
-{
- proxy_trace_info_ptr proxy_info(new proxy_trace_info(proxy, "sources", proxy_name));
- globals.registered_proxies.append(proxy_info);
- if ((!globals.last_active_source) && (proxy == globals.active_source_at_start)) {
- globals.last_active_source = proxy;
- globals.trace_output.append(QString("%1 = GetActiveSource()").arg(proxy_info->PyVariable));
- } else {
- globals.trace_output.append(QString("%1 = FindSource(\"%2\")").arg(proxy_info->PyVariable).arg(proxy_name));
- }
- return proxy_info;
-}
-
-//********************************************************************
-QList<vtkSMProxy*> GetRenderViews()
-{
- QList<vtkSMProxy*> render_modules;
-
- pqServer* aServer = ParavisModule->getActiveServer();
-
- vtkSMProxyIterator* aIt = vtkSMProxyIterator::New();
- aIt->SetConnectionID(aServer->GetConnectionID());
- for (aIt->Begin(); !aIt->IsAtEnd(); aIt->Next()) {
- vtkSMProxy* aProxy = aIt->GetProxy();
- if (aProxy->IsA("vtkSMRenderViewProxy"))
- render_modules.append(aProxy);
- }
- aIt->Delete();
- return render_modules;
-}
-
-//********************************************************************
-proxy_trace_info_ptr track_existing_view_proxy(vtkSMProxy* proxy, const QString& proxy_name)
-{
- proxy_trace_info_ptr proxy_info(new proxy_trace_info(proxy, "views", proxy_name));
- globals.registered_proxies.append(proxy_info);
- if ((!globals.last_active_view) && (proxy == globals.active_view_at_start)) {
- globals.last_active_view = proxy;
- globals.trace_output.append(QString("%1 = GetRenderView()").arg(proxy_info->PyVariable));
- } else {
- QList<vtkSMProxy*> all_views = GetRenderViews();
- if (all_views.contains(proxy)) {
- int view_index = all_views.indexOf(proxy);
- if (view_index != -1)
- globals.trace_output.append(QString("%1 = GetRenderViews()[%2]").arg(proxy_info->PyVariable).arg(view_index));
- }
- }
- return proxy_info;
-}
-
-//********************************************************************
-proxy_trace_info_ptr track_existing_representation_proxy(vtkSMProxy* proxy,
- const QString& proxy_name)
-{
- vtkSMProxyProperty* input_property = dynamic_cast<vtkSMProxyProperty*>(proxy->GetProperty("Input"));
- if (!input_property) return proxy_trace_info_ptr();
-
- if (input_property->GetNumberOfProxies() > 0) {
- vtkSMProxy* input_proxy = input_property->GetProxy(0);
- proxy_trace_info_ptr input_proxy_info = get_proxy_info(input_proxy);
- if (input_proxy_info.get()) {
- proxy_trace_info_ptr proxy_info(new proxy_trace_info(proxy, "representations", proxy_name));
- globals.registered_proxies.append(proxy_info);
- globals.trace_output.append(QString("%1 = GetDisplayProperties(%2)").arg(proxy_info->PyVariable).arg(input_proxy_info->PyVariable));
- return proxy_info;
- }
- }
- return proxy_trace_info_ptr();
-}
-
-//********************************************************************
-proxy_trace_info_ptr track_existing_proxy(vtkSMProxy* proxy)
-{
- QString proxy_name = get_source_proxy_registration_name(proxy);
- if (!proxy_name.isNull())
- return track_existing_source_proxy(proxy, proxy_name);
-
- proxy_name = get_representation_proxy_registration_name(proxy);
- if (!proxy_name.isNull())
- return track_existing_representation_proxy(proxy, proxy_name);
-
- proxy_name = get_view_proxy_registration_name(proxy);
- if (!proxy_name.isNull())
- return track_existing_view_proxy(proxy, proxy_name);
- return proxy_trace_info_ptr();
-}
-
-//********************************************************************
-proxy_trace_info_ptr get_proxy_info(const QString& p, bool search_existing)
-{
- foreach(proxy_trace_info_ptr info, globals.last_registered_proxies) {
- if (info->PyVariable == p) return info;
- }
- foreach(proxy_trace_info_ptr info, globals.registered_proxies) {
- if (info->PyVariable == p) return info;
- }
-
- if(search_existing) return proxy_trace_info_ptr();
-
- return proxy_trace_info_ptr();
-}
-
-//********************************************************************
-proxy_trace_info_ptr get_proxy_info(vtkSMProxy* p, bool search_existing)
-{
- foreach(proxy_trace_info_ptr info, globals.last_registered_proxies) {
- if (info->Proxy == p) return info;
- }
- foreach(proxy_trace_info_ptr info, globals.registered_proxies) {
- if (info->Proxy == p) return info;
- }
- // It must be a proxy that existed before trace started
- if (search_existing) return track_existing_proxy(p);
-
- return proxy_trace_info_ptr();
-}
-
-//********************************************************************
-void ensure_active_source(const proxy_trace_info_ptr proxy_info)
-{
- if (proxy_info && (proxy_info->Proxy != globals.last_active_source)) {
- globals.trace_output.append(QString("SetActiveSource(%1)").arg(proxy_info->PyVariable));
- globals.last_active_source = proxy_info->Proxy;
- }
-}
-
-//********************************************************************
-void ensure_active_view(const proxy_trace_info_ptr proxy_info)
-{
- if (proxy_info && (proxy_info->Proxy != globals.last_active_view)) {
- globals.trace_output.append(QString("SetActiveView(%1)").arg(proxy_info->PyVariable));
- globals.last_active_view = proxy_info->Proxy;
- }
-}
-
-//********************************************************************
-proxy_trace_info_ptr get_input_proxy_info_for_rep(const proxy_trace_info_ptr rep_info)
-{
- if (rep_info->CurrentProps.contains("Input")) {
- QString input_proxy_pyvariable = rep_info->CurrentProps["Input"];
- return get_proxy_info(input_proxy_pyvariable);
- }
- return proxy_trace_info_ptr();
-}
-
-//********************************************************************
-proxy_trace_info_ptr get_view_proxy_info_for_rep(const proxy_trace_info_ptr rep_info)
-{
- QList<proxy_trace_info_ptr> aTmpList;
- aTmpList.append(globals.registered_proxies);
- aTmpList.append(globals.last_registered_proxies);
- foreach (proxy_trace_info_ptr p, aTmpList) {
- // If the proxy is a view, check for rep_info.Proxy in the
- // view's 'Representation' property
- if (p->Group == "views") {
- vtkSMProxyProperty* rep_prop =
- dynamic_cast<vtkSMProxyProperty*>(p->Proxy->GetProperty("Representations"));
- if (rep_prop) {
- for (int i = 0; i < rep_prop->GetNumberOfProxies(); i++) {
- if (rep_info->Proxy == rep_prop->GetProxy(i))
- return p;
- }
- }
- }
- }
- return proxy_trace_info_ptr();
-}
-
-//********************************************************************
-QString get_source_proxy_registration_name(vtkSMProxy* proxy)
-{
- return vtkSMObject::GetProxyManager()->GetProxyName("sources", proxy);
-}
-
-//********************************************************************
-QString get_view_proxy_registration_name(vtkSMProxy* proxy)
-{
- return vtkSMObject::GetProxyManager()->GetProxyName("views", proxy);
-}
-
-//********************************************************************
-QString get_representation_proxy_registration_name(vtkSMProxy* proxy)
-{
- return vtkSMObject::GetProxyManager()->GetProxyName("representations", proxy);
-}
-
-//********************************************************************
-QString make_comma_separated_string(QStringList values)
-{
- QString ret=values.join(", ");
- if(ret!="")
- ret = QString(" %1 ").arg(ret);
- return ret;
-}
-
-QStringList wrap_property(vtkSMProxy* proxy, vtkSMProperty* smproperty)
-{
- QStringList propertyList;
- if(smproperty->IsA("vtkSMVectorProperty")) {
- vtkSMVectorProperty* property = dynamic_cast<vtkSMVectorProperty*>(smproperty);
- int nElem = property->GetNumberOfElements();
- int di = 1;
- vtkSMDomain* dom = NULL;
- if(property->IsA("vtkSMStringVectorProperty")) {
- dom = property->GetDomain("array_list");
- if(dom!=NULL && dom->IsA("vtkSMArraySelectionDomain") && property->GetRepeatable()) {
- if(nElem%2 != 0) {
- cerr << "!!!Error: The SMProperty with XML label" << smproperty->GetXMLLabel() << "has a size that is not a multiple of 2." << endl;
- nElem=0;
- } else {
- di=2;
- }
- }
- } else if(property->IsA("vtkSMIntVectorProperty")) {
- dom = property->GetDomain("enum");
- }
- for(int i = 0; i < nElem; i+=di) {
- bool ap=true;
- if(di!=1) {
- if(dynamic_cast<vtkSMStringVectorProperty*>(property)->GetElement(i+1) == "0") {
- ap=false;
- }
- }
- if(ap) {
- if(property->IsA("vtkSMStringVectorProperty"))
- propertyList.append(QString("'%1'").arg(dynamic_cast<vtkSMStringVectorProperty*>(property)->GetElement(i)));
- if(property->IsA("vtkSMIntVectorProperty")) {
- if(dom == NULL) {
- propertyList.append(QString("%1").arg(dynamic_cast<vtkSMIntVectorProperty*>(property)->GetElement(i)));
- } else {
- for(int j = 0; j < dynamic_cast<vtkSMEnumerationDomain*>(dom)->GetNumberOfEntries(); j++) {
- if(dynamic_cast<vtkSMEnumerationDomain*>(dom)->GetEntryValue(j) == dynamic_cast<vtkSMIntVectorProperty*>(property)->GetElement(i)) {
- propertyList.append(QString("'%1'").arg(dynamic_cast<vtkSMEnumerationDomain*>(dom)->GetEntryText(j)));
- break;
- }
- }
- }
- }
- if(property->IsA("vtkSMIdTypeVectorProperty"))
- propertyList.append(QString("%1").arg(dynamic_cast<vtkSMIdTypeVectorProperty*>(property)->GetElement(i)));
- if(property->IsA("vtkSMDoubleVectorProperty"))
- propertyList.append(QString("%1").arg(dynamic_cast<vtkSMDoubleVectorProperty*>(property)->GetElement(i)));
- }
- }
- }
- return propertyList;
-}
-
-//********************************************************************
-QString vector_smproperty_tostring(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo)
-{
- vtkSMProxy* proxy = proxyInfo->Proxy;
- vtkSMProperty* prop = propInfo->Prop;
- QStringList propList = wrap_property(proxy, prop);
- QString pythonProp;
- if (propList.size() == 0)
- pythonProp = "[]";
- if (propList.size() == 1)
- return propList.first();
- if (propList.size() > 1) {
- pythonProp = make_comma_separated_string(propList);
- pythonProp = QString("[%1]").arg(pythonProp);
- }
- return pythonProp;
-}
-
-//********************************************************************
-QString get_property_value_from_list_domain(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo)
-{
- vtkSMProxy* proxy = proxyInfo->Proxy;
- vtkSMProxyProperty* prop = dynamic_cast<vtkSMProxyProperty*>(propInfo->Prop);
- vtkSMProxyListDomain* listdomain = dynamic_cast<vtkSMProxyListDomain*>(prop->GetDomain("proxy_list"));
- if (listdomain != NULL && prop->GetNumberOfProxies() == 1) {
- vtkSMProxy* proxyPropertyValue = prop->GetProxy(0);
- for (int i = 0; i < listdomain->GetNumberOfProxies(); i++) {
- if (listdomain->GetProxy(i) == proxyPropertyValue) {
- proxy_trace_info_ptr info = get_proxy_info(proxyPropertyValue);
- if (!info) {
- proxy_trace_info_ptr infotmp(new proxy_trace_info(proxyPropertyValue, "helpers", listdomain->GetProxy(i)->GetXMLLabel()));
- info = infotmp;
- }
- info->PyVariable = QString("%1.%2").arg(proxyInfo->PyVariable).arg(propInfo->PyVariable);
- globals.registered_proxies.append(info);
- return QString("\"%1\"").arg(listdomain->GetProxy(i)->GetXMLLabel());
- }
- }
- }
- return QString();
-}
-
-//********************************************************************
-QString proxy_smproperty_tostring(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo)
-{
- QString strValue = get_property_value_from_list_domain(proxyInfo, propInfo);
- if (!strValue.isNull())
- return strValue;
- vtkSMProxy* proxy = proxyInfo->Proxy;
- vtkSMProxyProperty* prop = dynamic_cast<vtkSMProxyProperty*>(propInfo->Prop);
- // Create a list of the python variables for each proxy in the property vector
- QStringList nameList;
- for (int i = 0; i < prop->GetNumberOfProxies(); i++) {
- vtkSMProxy* inputProxy = prop->GetProxy(i);
- proxy_trace_info_ptr info = get_proxy_info(inputProxy);
- if (info && (!info->PyVariable.isNull()))
- nameList.append(info->PyVariable);
- }
- if (nameList.size() == 0)
- return "[]";
- if (nameList.size() == 1)
- return nameList.first();
- if (nameList.size() > 1) {
- QString nameListStr = make_comma_separated_string(nameList);
- return QString("[%1]").arg(nameListStr);
- }
-}
-
-//********************************************************************
-QString input_smproperty_tostring(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo)
-{
- return proxy_smproperty_tostring(proxyInfo, propInfo);
-}
-
-//********************************************************************
-void trace_proxy_rename(const proxy_trace_info_ptr proxy_info, const char* new_name)
-{
- if ((!proxy_info) || (proxy_info->Group != "sources"))
- return;
- QString old_pyvariable = proxy_info->PyVariable;
- proxy_info->PyVariable = pyvariable_from_proxy_name(new_name);
- proxy_info->ignore_next_unregister = true;
- QString newName(new_name);
- QString name_to_set = newName.replace("\"", "");
- globals.trace_output.append(QString("RenameSource(\"%1\", %2)").arg(name_to_set).arg(old_pyvariable));
- globals.trace_output.append(QString("%1 = %2").arg(proxy_info->PyVariable).arg(old_pyvariable));
- globals.trace_output.append(QString("del %1").arg(old_pyvariable));
-}
-
-//********************************************************************
-proxy_trace_info_ptr trace_proxy_registered(vtkSMProxy* proxy,
- const QString& proxyGroup,
- const char* proxyName)
-{
- //if trace_globals.verbose:
- // print "Proxy '%s' registered in group '%s'" % (proxyName, proxyGroup)
- if (!globals.traced_proxy_groups.contains(proxyGroup))
- return proxy_trace_info_ptr();
-
- proxy_trace_info_ptr info(new proxy_trace_info(proxy, proxyGroup, proxyName));
- globals.last_registered_proxies.append(info);
- if (globals.capture_all_properties) {
- vtkSMPropertyIterator* itr = proxy->NewPropertyIterator();
- for (itr->Begin(); !itr->IsAtEnd(); itr->Next()) {
- vtkSMProperty* prop = itr->GetProperty();
- if (prop->GetInformationOnly() || prop->GetIsInternal()) continue;
- trace_property_modified(info, prop);
- }
- }
- return info;
-}
-
-//********************************************************************
-prop_trace_info_ptr trace_property_modified(proxy_trace_info_ptr info, vtkSMProperty* prop)
-{
- prop_trace_info_ptr propInfo(new prop_trace_info(info, prop));
- //if (globals.verbose)
- // print "Property '%s' modifed on proxy '%s'" % (propInfo.PyVariable, info.ProxyName)
- QString propValue;
- if (prop->IsA("vtkSMVectorProperty"))
- propValue = vector_smproperty_tostring(info, propInfo);
- else if (prop->IsA("vtkSMInputProperty"))
- propValue = input_smproperty_tostring(info, propInfo);
- else if (prop->IsA("vtkSMProxyProperty"))
- propValue = proxy_smproperty_tostring(info, propInfo);
- if (!propValue.isNull()) {
- info->Props[prop] = propValue;
- info->ModifiedProps[propInfo->PyVariable] = propValue;
- info->CurrentProps[propInfo->PyVariable] = propValue;
- }
- return propInfo;
-}
-
-//********************************************************************
-QList<proxy_trace_info_ptr> sort_proxy_info_by_group(const QList<proxy_trace_info_ptr>& infoList)
-{
- QList<proxy_trace_info_ptr> views;
- QList<proxy_trace_info_ptr> sources;
- QList<proxy_trace_info_ptr> representations;
- QList<proxy_trace_info_ptr> other;
- foreach (proxy_trace_info_ptr i, infoList) {
- if (i->Group == "views") views.append(i);
- else if (i->Group == "sources") sources.append(i);
- else if (i->Group == "representations") representations.append(i);
- else other.append(i);
- }
- views.append(sources);
- views.append(other);
- views.append(representations);
- return views;
-}
-
-//********************************************************************
-void append_trace()
-{
- // Get the list of last registered proxies in sorted order
- QList<proxy_trace_info_ptr> modified_proxies =
- sort_proxy_info_by_group(globals.last_registered_proxies);
-
- // Now append the existing proxies to the list
- foreach (proxy_trace_info_ptr p, globals.registered_proxies)
- modified_proxies.append(p);
-
- foreach(proxy_trace_info_ptr info, modified_proxies) {
- QString traceOutput = "";
-
- // Generate list of tuples : (propName, propValue)
- QMap<QString, QString> propNameValues;
- QMap<QString, QString>::const_iterator aIt;
- for (aIt = info->ModifiedProps.constBegin(); aIt!=info->ModifiedProps.constEnd(); ++aIt) {
- QString propName = aIt.key();
- QString propValue = aIt.value();
- if (propIsIgnored(info, propName))
- continue;
-
- // Note, the 'Input' property is ignored for representations, so we are
- // only dealing with filter proxies here. If the 'Input' property is a
- // single value (not a multi-input filter), then ensure the input is
- // the active source and leave the 'Input' property out of the
- // propNameValues list.
- if ((propName == "Input") && (!propValue.contains("["))) {
- proxy_trace_info_ptr inputProxyInfo = get_proxy_info(propValue);
- ensure_active_source(inputProxyInfo);
- continue;
- }
- propNameValues[propName] = propValue;
- }
-
- // Clear the modified prop list
- info->ModifiedProps.clear();
-
- // If info is in the last_registered_proxies list, then we need to add the
- // proxy's constructor call to the trace
- if(globals.last_registered_proxies.contains(info)) {
- // Determine the function call to construct the proxy
- bool setPropertiesInCtor = true;
- QStringList ctorArgs;
- QString extraCtorCommands = "";
- QString ctorMethod = make_name_valid(info->Proxy->GetXMLLabel());
- if (info->Group == "sources") {
- // track it as the last active source now
- globals.last_active_source = info->Proxy;
- // maybe append the guiName property
- if (globals.use_gui_name)
- ctorArgs.append(QString("guiName=\"%1\"").arg(info->ProxyName));
- }
- if (info->Group == "representations") {
- ctorMethod = "Show";
- setPropertiesInCtor = false;
- // Ensure the input proxy is the active source:
- proxy_trace_info_ptr input_proxy_info = get_input_proxy_info_for_rep(info);
- if (input_proxy_info)
- ensure_active_source(input_proxy_info);
-
- // Ensure the view is the active view:
- proxy_trace_info_ptr view_proxy_info = get_view_proxy_info_for_rep(info);
- if (view_proxy_info) {
- ensure_active_view(view_proxy_info);
- }
- }
- if (info->Group == "scalar_bars") {
- ctorMethod = "CreateScalarBar";
- extraCtorCommands =
- QString("GetRenderView().Representations.append(%1)").arg(info->PyVariable);
- }
- if (info->Group == "views") {
- ctorMethod = "CreateRenderView";
- // Now track it as the last active view
- globals.last_active_view = info->Proxy;
- setPropertiesInCtor = false;
- }
- if (info->Group == "lookup_tables")
- ctorMethod = "CreateLookupTable";
-
-
- if (setPropertiesInCtor) {
- QMap<QString, QString>::const_iterator aIt1;
- for (aIt1 = propNameValues.constBegin(); aIt1!=propNameValues.constEnd(); ++aIt1) {
- QString propName = aIt1.key();
- QString propValue = aIt1.value();
- ctorArgs.append(QString("%1=%2").arg(propName).arg(propValue));
- }
- propNameValues.clear();
- }
- QString ctorArgString = make_comma_separated_string(ctorArgs);
- traceOutput =
- QString("%1 = %2(%3)\n%4").arg(info->PyVariable).arg(ctorMethod).arg(ctorArgString).arg(extraCtorCommands);
- }
- // Set properties on the proxy
-
- QMap<QString, QString>::const_iterator aIt2;
- for (aIt2 = propNameValues.constBegin(); aIt2!=propNameValues.constEnd(); ++aIt2) {
- QString propName = aIt2.key();
- QString propValue = aIt2.value();
- traceOutput += QString("%1.%2 = %3\n").arg(info->PyVariable).arg(propName).arg(propValue);
- }
- if (traceOutput.length() > 0){
- globals.trace_output.append(traceOutput);
- }
- }
- foreach (proxy_trace_info_ptr p, globals.last_registered_proxies) {
- globals.registered_proxies.append(p);
- }
- while (globals.last_registered_proxies.size() > 0)
- globals.last_registered_proxies.removeLast();
-}
-
-//********************************************************************
-QString get_trace_string()
-{
- append_trace();
- QString s = globals.trace_output.join("\n");
- s += globals.trace_output_endblock + "\n";
-
- return s;
-}
-
-//********************************************************************
-void save_trace(const QString& fileName)
-{
- QFile file(fileName);
- if(!file.open(QFile::WriteOnly))
- return;
-
- QString trace = get_trace_string();
- QTextStream out(&file);
- out << trace;
- file.close();
-}
-
-//********************************************************************
-//QString print_trace()
-
-//********************************************************************
-void on_proxy_registered(vtkObject* obj, unsigned long , void* , void *)
-{
- vtkSMPythonTraceObserver* o = dynamic_cast<vtkSMPythonTraceObserver*>(obj);
- if (!o) return;
-
- vtkSMProxy* p = o->GetLastProxyRegistered();
- const char* pGroup = o->GetLastProxyRegisteredGroup();
- const char* pName = o->GetLastProxyRegisteredName();
- if (p && pGroup && pName) {
- proxy_trace_info_ptr proxy_info = get_proxy_info(p, false);
- // handle source proxy rename, no-op if proxy isn't a source
- if (proxy_info)
- trace_proxy_rename(proxy_info, pName);
- else
- trace_proxy_registered(p, pGroup, pName);
- }
-}
-
-//********************************************************************
-void on_proxy_unregistered(vtkObject* obj, unsigned long , void* , void*)
-{
- vtkSMPythonTraceObserver* o = dynamic_cast<vtkSMPythonTraceObserver*>(obj);
- if (!o) return;
-
- vtkSMProxy* p = o->GetLastProxyUnRegistered();
- const char* pGroup = o->GetLastProxyUnRegisteredGroup();
- const char* pName = o->GetLastProxyUnRegisteredName();
- if (p && pGroup && pName) {
- proxy_trace_info_ptr proxy_info = get_proxy_info(p);
- if (proxy_info != NULL && proxy_info->Proxy != NULL) {
- if (proxy_info->ignore_next_unregister) {
- proxy_info->ignore_next_unregister = false;
- return;
- }
- globals.trace_output.append(QString("Delete(%1)").arg(proxy_info->PyVariable));
- if (globals.last_registered_proxies.contains(proxy_info)) {
- int aInd = globals.last_registered_proxies.indexOf(proxy_info);
- globals.last_registered_proxies.removeAt(aInd);
- }
- if (globals.registered_proxies.contains(proxy_info)) {
- int aInd = globals.registered_proxies.indexOf(proxy_info);
- globals.registered_proxies.removeAt(aInd);
- }
- }
- }
-}
-
-//********************************************************************
-void on_property_modified(vtkObject* obj, unsigned long , void* , void*)
-{
- vtkSMPythonTraceObserver* o = dynamic_cast<vtkSMPythonTraceObserver*>(obj);
- if (!o) return;
-
- const char* propName = o->GetLastPropertyModifiedName();
- vtkSMProxy* proxy = o->GetLastPropertyModifiedProxy();
- if ((propName != NULL) && (proxy != NULL)) {
- vtkSMProperty* prop = proxy->GetProperty(propName);
- if (prop->GetInformationOnly() || prop->GetIsInternal()) return;
-
- // small hack here: some view properties are modified before the view
- // is registered. We don't want to call get_proxy_info until after
- // the view is registered, so for now lets ignore these properties:
- QStringList ignoredViewProp = ignoredViewProperties();
- if (ignoredViewProp.contains(propName)) return;
-
- proxy_trace_info_ptr info = get_proxy_info(proxy);
- if ((info != NULL && info->Proxy != NULL) && (prop != NULL))
- trace_property_modified(info, prop);
- }
-}
-
-//********************************************************************
-void on_update_information(vtkObject*, unsigned long , void* , void*)
-{
- append_trace();
-}
-
-//********************************************************************
-void add_observers()
-{
- vtkCallbackCommand *aCommand = NULL;
- vtkSMPythonTraceObserver* o = trace_observer();
- aCommand = vtkCallbackCommand::New();
- aCommand->SetCallback(on_proxy_registered);
- o->AddObserver("RegisterEvent", aCommand);
- aCommand->Delete();
- aCommand = vtkCallbackCommand::New();
- aCommand->SetCallback(on_proxy_unregistered);
- o->AddObserver("UnRegisterEvent", aCommand);
- aCommand->Delete();
- aCommand = vtkCallbackCommand::New();
- aCommand->SetCallback(on_property_modified);
- o->AddObserver("PropertyModifiedEvent", aCommand);
- aCommand->Delete();
- aCommand = vtkCallbackCommand::New();
- aCommand->SetCallback(on_update_information);
- o->AddObserver("UpdateInformationEvent", aCommand);
- aCommand->Delete();
- globals.observer_active = true;
-}
-
-//********************************************************************
-void reset_trace_observer()
-{
- if (myInitialised)
- globals.observer->Delete();
- globals.observer = vtkSMPythonTraceObserver::New();
- globals.observer_active = false;
- myInitialised = true;
-}
-
-//********************************************************************
-void reset_trace_globals()
-{
- globals.capture_all_properties = false;
- globals.use_gui_name = false;
- globals.verbose = false;
- globals.active_source_at_start = 0;
- globals.active_view_at_start = 0;
- globals.last_active_view = 0;
- globals.last_active_source = 0;
- globals.last_registered_proxies.clear();
- globals.registered_proxies.clear();
- globals.trace_output.clear();
- globals.trace_output << "try: pvsimple\nexcept: from pvsimple import *\n";
- globals.trace_output_endblock = "Render()";
- globals.traced_proxy_groups.clear();
- globals.traced_proxy_groups << "sources"<<"representations"<<"views"<<"lookup_tables"<<"scalar_bars";
- globals.ignored_view_properties.clear();
- globals.ignored_view_properties << "ViewSize"<<"GUISize"<<"ViewPosition"<<"ViewTime"<<"Representations";
- globals.ignored_representation_properties.clear();
- globals.ignored_representation_properties << "Input";
- reset_trace_observer();
-}
-
-//********************************************************************
-void clear_trace()
-{
- reset_trace_globals();
-}
-
-//********************************************************************
-void stop_trace()
-{
- reset_trace_observer();
-}
-
-//********************************************************************
-void start_trace(bool CaptureAllProperties, bool UseGuiName, bool Verbose)
-{
- clear_trace();
- add_observers();
- // VSV: Has to be defined
- //globals.active_source_at_start = simple.GetActiveSource()
- //globals.active_view_at_start = simple.GetActiveView()
- //globals.capture_all_properties = CaptureAllProperties
- //globals.use_gui_name = UseGuiName
- //globals.verbose = Verbose
-}
+++ /dev/null
-// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// 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.
-//
-// 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
-//
-// File : PVGUI_Trace.h
-// Author : Vitaly Smetannikov
-// Module : PARAVIS
-//
-#ifndef __PARAVIS_TRACE_I_H__
-#define __PARAVIS_TRACE_I_H__
-
-#include <QString>
-#include <QStringList>
-#include <QList>
-#include <QMap>
-#include <boost/shared_ptr.hpp>
-
-class vtkSMPythonTraceObserver;
-class vtkSMProxy;
-class vtkSMProperty;
-class vtkObject;
-
-class proxy_trace_info: public QObject
-{
- Q_OBJECT
-public:
- proxy_trace_info(vtkSMProxy* proxy, const QString& proxyGroup, const QString& proxyName);
-
- vtkSMProxy* Proxy;
- QString Group;
- QString ProxyName;
- QString PyVariable;
- QMap<vtkSMProperty*, QString> Props;
- QMap<QString, QString> CurrentProps;
- QMap<QString, QString> ModifiedProps;
- bool ignore_next_unregister;
-};
-
-typedef boost::shared_ptr<proxy_trace_info> proxy_trace_info_ptr;
-
-
-
-class prop_trace_info: public QObject
-{
- Q_OBJECT
-public:
- prop_trace_info(proxy_trace_info_ptr proxyTraceInfo, vtkSMProperty* prop);
-
- vtkSMProperty* Prop;
- QString PyVariable;
-};
-
-typedef boost::shared_ptr<prop_trace_info> prop_trace_info_ptr;
-
-struct trace_globals
-{
- vtkSMPythonTraceObserver* observer;
- bool observer_active;
- bool capture_all_properties;
- bool use_gui_name;
- bool verbose;
-
- vtkSMProxy* active_source_at_start;
- vtkSMProxy* last_active_source;
-
- vtkSMProxy* active_view_at_start;
- vtkSMProxy* last_active_view;
-
- QList<proxy_trace_info_ptr> last_registered_proxies;
- QList<proxy_trace_info_ptr> registered_proxies;
-
- QStringList trace_output;
- QString trace_output_endblock;
- QStringList traced_proxy_groups;
- QStringList ignored_view_properties;
- QStringList ignored_representation_properties;
-};
-
-
-QString make_name_valid(const QString& theName);
-
-void reset_trace_observer();
-
-void reset_trace_globals();
-
-QString pyvariable_from_proxy_name(const QString& proxy_name);
-
-vtkSMPythonTraceObserver* trace_observer();
-
-QStringList ignoredViewProperties();
-
-QStringList ignoredRepresentationProperties();
-
-bool propIsIgnored(const proxy_trace_info_ptr info, const QString& propName);
-
-void track_existing_sources();
-
-proxy_trace_info_ptr track_existing_source_proxy(vtkSMProxy* proxy, const QString& proxy_name);
-
-proxy_trace_info_ptr track_existing_view_proxy(vtkSMProxy* proxy, const QString& proxy_name);
-
-proxy_trace_info_ptr track_existing_representation_proxy(vtkSMProxy* proxy, const QString& proxy_name);
-
-proxy_trace_info_ptr track_existing_proxy(vtkSMProxy* proxy);
-
-proxy_trace_info_ptr get_proxy_info(const QString& p, bool search_existing=true);
-proxy_trace_info_ptr get_proxy_info(vtkSMProxy* p, bool search_existing=true);
-
-void ensure_active_source(const proxy_trace_info_ptr proxy_info);
-void ensure_active_view(const proxy_trace_info_ptr proxy_info);
-
-proxy_trace_info_ptr get_input_proxy_info_for_rep(const proxy_trace_info_ptr rep_info);
-proxy_trace_info_ptr get_view_proxy_info_for_rep(const proxy_trace_info_ptr rep_info);
-
-QString get_source_proxy_registration_name(vtkSMProxy* proxy);
-
-QString get_view_proxy_registration_name(vtkSMProxy* proxy);
-
-QString get_representation_proxy_registration_name(vtkSMProxy* proxy);
-
-QString make_comma_separated_string(QStringList values);
-
-QString vector_smproperty_tostring(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo);
-
-QString get_property_value_from_list_domain(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo);
-
-QString proxy_smproperty_tostring(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo);
-
-QString input_smproperty_tostring(const proxy_trace_info_ptr proxyInfo,
- const prop_trace_info_ptr propInfo);
-
-void trace_proxy_rename(const proxy_trace_info_ptr proxy_info, const char* new_name);
-
-proxy_trace_info_ptr trace_proxy_registered(vtkSMProxy* proxy,
- const QString& proxyGroup,
- const char* proxyName);
-
-prop_trace_info_ptr trace_property_modified(proxy_trace_info_ptr info, vtkSMProperty* prop);
-
-
-QList<proxy_trace_info_ptr> sort_proxy_info_by_group(const QList<proxy_trace_info_ptr>& infoList);
-
-void append_trace();
-
-QString get_trace_string();
-
-void save_trace(const QString& fileName);
-
-//QString print_trace();
-
-void on_proxy_registered(vtkObject* o, unsigned long eid, void* clientdata, void *calldata);
-
-void on_proxy_unregistered(vtkObject* o, unsigned long eid, void* clientdata, void *calldata);
-
-void on_property_modified(vtkObject* o, unsigned long eid, void* clientdata, void *calldata);
-
-void on_update_information(vtkObject* o, unsigned long eid, void* clientdata, void *calldata);
-
-void add_observers();
-
-void clear_trace();
-
-void stop_trace();
-
-void start_trace(bool CaptureAllProperties=false, bool UseGuiName=false, bool Verbose=false);
-
-
-#endif
#include <PVGUI_ViewManager.h>
#include <PVGUI_ViewModel.h>
#include <PVGUI_ViewWindow.h>
-
+#include <pqApplicationCore.h>
+#include <pqViewManager.h>
/*!
Constructor
*/
pqViewManager* PVGUI_ViewManager::getMultiViewManager()
{
- pqViewManager* aMVM = 0;
- PVGUI_ViewWindow* aVW = dynamic_cast<PVGUI_ViewWindow*>( getActiveView() );
- if ( aVW )
- aMVM = aVW->getMultiViewManager();
- return aMVM;
+ return qobject_cast<pqViewManager*>(pqApplicationCore::instance()->manager("MULTIVIEW_MANAGER"));
}
#include <SUIT_Desktop.h>
#include <pqViewManager.h>
-
+#include <pqApplicationCore.h>
/*!
\class PVGUI_ViewWindow
: SUIT_ViewWindow( theDesktop ), myPVMgr( 0 )
{
myModel = theModel;
+ myPVMgr = qobject_cast<pqViewManager*>(pqApplicationCore::instance()->manager("MULTIVIEW_MANAGER"));
+ if (myPVMgr) {
+ myPVMgr->setParent( this );
+ // This is mandatory, see setParent() method in Qt 4 documentation
+ myPVMgr->show();
+ setCentralWidget( myPVMgr );
+ } else
+ qDebug("No multiViewManager defined");
}
/*!
/*!
\brief Sets the ParaView multi-view manager for this view window
*/
-void PVGUI_ViewWindow::setMultiViewManager( pqViewManager* viewMgr )
-{
- myPVMgr = viewMgr;
- myPVMgr->setParent( this );
- // This is mandatory, see setParent() method in Qt 4 documentation
- myPVMgr->show();
- setCentralWidget( myPVMgr );
-}
+// void PVGUI_ViewWindow::setMultiViewManager()
+// {
+// myPVMgr = qobject_cast<pqViewManager*>(pqApplicationCore::instance()->manager("MULTIVIEW_MANAGER"));
+// if (myPVMgr) {
+// myPVMgr->setParent( this );
+// // This is mandatory, see setParent() method in Qt 4 documentation
+// myPVMgr->show();
+// setCentralWidget( myPVMgr );
+// } else
+// qDebug("No multiViewManager defined");
+// }
/*!
\brief Returns the ParaView multi-view manager previously set with setMultiViewManager()
virtual QString getVisualParameters();
virtual void setVisualParameters( const QString& );
- void setMultiViewManager( pqViewManager* );
+ //void setMultiViewManager();
pqViewManager* getMultiViewManager() const;
private:
*/
struct TGetTrace: public TModuleEvent
{
- typedef const char* TResult;
+ typedef std::string TResult;
TResult myResult;
TGetTrace(SalomeApp_Application* theApp) :
TModuleEvent(theApp)
{
PVGUI_Module* aPVModule = getModule();
if (aPVModule)
- myResult = qPrintable(aPVModule->printTrace());
+ myResult = qPrintable(aPVModule->getTraceString());
}
};
anAttr = aStudyBuilder->FindOrCreateAttribute(aSComponent, "AttributePixMap");
SALOMEDS::AttributePixMap_var aPixmap = SALOMEDS::AttributePixMap::_narrow(anAttr);
aPixmap->SetPixMap( "pqAppIcon16.png" );
+
+ // Create Attribute parameters for future using
+ anAttr = aStudyBuilder->FindOrCreateAttribute(aSComponent, "AttributeParameter");
PARAVIS_Gen_var aParaVisGen = PARAVIS_Gen_i::GetParavisGenImpl()->_this();
aStudyBuilder->DefineComponentInstance(aSComponent, aParaVisGen);
}
return NULL;
}
+
+ void SetRestoreParam(SALOMEDS::SComponent_ptr theComponent, bool theRestore)
+ {
+ SALOMEDS::GenericAttribute_var anAttr;
+ if (theComponent->FindAttribute(anAttr, "AttributeParameter")) {
+ SALOMEDS::AttributeParameter_var aParams = SALOMEDS::AttributeParameter::_narrow(anAttr);
+ aParams->SetBool("RestorePath", theRestore);
+ }
+ }
+
+ bool GetRestoreParam(SALOMEDS::SComponent_ptr theComponent)
+ {
+ SALOMEDS::GenericAttribute_var anAttr;
+ if (theComponent->FindAttribute(anAttr, "AttributeParameter")) {
+ SALOMEDS::AttributeParameter_var aParams = SALOMEDS::AttributeParameter::_narrow(anAttr);
+ if (aParams->IsSet("RestorePath", 2)) {
+ return aParams->GetBool("RestorePath");
+ }
+ }
+ return true;
+ }
};
SALOMEDS::SComponent_var FindOrCreateParaVisComponent(SALOMEDS::Study_ptr theStudyDocument);
+ /*!
+ * Set/Get flag to restore or not path in paraview state file.
+ */
+ void SetRestoreParam(SALOMEDS::SComponent_ptr theComponent, bool theRestore);
+ bool GetRestoreParam(SALOMEDS::SComponent_ptr theComponent);
+
PARAVIS_Base_i* GET_SERVANT(CORBA::Object_ptr aObj);
//dynamic_cast<PARAVIS_Base_i*>(PARAVIS_Gen_i::GetPOA()->reference_to_servant(OBJ).in())
--- /dev/null
+#!/bin/bash
+
+file=PARAVIS_CreateClass.cxx
+wfile=$1/wrapfiles.txt
+
+echo '#include <iostream>' > $file
+echo '#include <QString>' >> $file
+echo '#include "PARAVIS_Gen_i.hh"' >> $file
+awk '{print "#include \"PARAVIS_Gen_"$1"_i.hh\"";}' $wfile >> $file
+echo '' >> $file
+echo 'PARAVIS::PARAVIS_Base_i* CreateInstance(::vtkObjectBase* Inst, const QString& theClassName)' >> $file
+echo '{' >> $file
+awk 'BEGIN {lst="";} {lst=lst" "$1;} END{i=split(lst,arr);for(j=i;j>0;j--) {print " if(theClassName == \""arr[j]"\" || (Inst != NULL && Inst->IsA(\""arr[j]"\")))";print " return new PARAVIS::"arr[j]"_i();"}}' $wfile >> $file
+echo '' >> $file
+echo ' cerr << "The class " << theClassName.toStdString() << " is not created!" << endl;' >> $file
+echo ' return new PARAVIS::PARAVIS_Base_i();' >> $file
+echo '}' >> $file
</message>
<message>
<source>MEN_OPEN</source>
- <translation>&Open</translation>
+ <translation>&Open...</translation>
</message>
<message>
<source>MEN_OPEN_FILE</source>
</message>
<message>
<source>MEN_DISCONNECT</source>
- <translation>&Disconnect...</translation>
+ <translation>&Disconnect</translation>
</message>
<message>
<source>STB_DISCONNECT</source>
<source>INF_APP_CHANGE_INPUTACTIONS</source>
<translation>Change a Filter's Input</translation>
</message>
+ <message>
+ <source>MEN_IGNORE_TIME</source>
+ <translation>Ignore Time</translation>
+ </message>
+ <message>
+ <source>TOP_IGNORE_TIME</source>
+ <translation>Ignore Time</translation>
+ </message>
+ <message>
+ <source>STB_IGNORE_TIME</source>
+ <translation>Disregard this source/filter's time from animation</translation>
+ </message>
<message>
<source>TOP_DELETE</source>
<translation>Delete</translation>
</message>
<message>
<source>MEN_MANAGE_PLUGINS</source>
- <translation>Manage Plugins/Extensions...</translation>
+ <translation>Manage Plugins...</translation>
</message>
<message>
<source>STB_MANAGE_PLUGINS</source>
</message>
<message>
<source>TOP_MAX_WINDOW_SIZE</source>
- <translation>Max Window Size: 300x300</translation>
+ <translation>Lock View Size</translation>
</message>
<message>
<source>MEN_MAX_WINDOW_SIZE</source>
- <translation>Max Window Size: 300x300</translation>
+ <translation>Lock View Size</translation>
</message>
<message>
<source>PRP_APP_MAX_WINDOW_SIZE</source>
- <translation>Set Max Window Size: 300x300</translation>
+ <translation>Lock View Size</translation>
</message>
<message>
<source>TOP_TIMER_LOG</source>
</message>
<message>
<source>MEN_ABOUT</source>
- <translation>About ParaView</translation>
+ <translation>About ParaView...</translation>
</message>
<message>
<source>STB_ABOUT</source>
</message>
<message>
<source>MEN_PARAVIEW_HELP</source>
- <translation>ParaView User Documentation</translation>
+ <translation>ParaView Help</translation>
</message>
<message>
<source>STB_PARAVIEW_HELP</source>
<source>TIT_TRACE</source>
<translation>Trace</translation>
</message>
+ <message>
+ <source>MEN_MACROS</source>
+ <translation>&Macros</translation>
+ </message>
+ <message>
+ <source>PREF_SAVE_TYPE_LBL</source>
+ <translation>Paraview state saving type</translation>
+ </message>
+ <message>
+ <source>PREF_SAVE_TYPE_0</source>
+ <translation>Save referenced files only for builin server</translation>
+ </message>
+ <message>
+ <source>PREF_SAVE_TYPE_1</source>
+ <translation>Always save referenced files when they are accessible</translation>
+ </message>
+ <message>
+ <source>PREF_SAVE_TYPE_2</source>
+ <translation>Never save referenced files</translation>
+ </message>
</context>
</TS>
--- /dev/null
+SET(WRAP_IDL_I_HH)
+SET(WRAP_IDL_I_CC)
+
+IF(EXISTS ${CMAKE_BINARY_DIR}/wrapfiles.txt)
+ EXECUTE_PROCESS(
+ COMMAND cat ${CMAKE_BINARY_DIR}/wrapfiles.txt
+ OUTPUT_VARIABLE WRAP_LIST_FULL
+ )
+
+ STRING(REGEX MATCHALL "[^\n]+" WRAP_LIST_REG ${WRAP_LIST_FULL})
+ FOREACH(STR ${WRAP_LIST_REG})
+
+ SEPARATE_ARGUMENTS(STR)
+ LIST(LENGTH STR WRAP_LEN)
+ SET(DEP_HH)
+ SET(DEP_CC)
+
+ LIST(GET STR 0 VAL)
+
+ IF(WRAP_LEN GREATER 1)
+ MATH(EXPR WRAP_LEN1 "${WRAP_LEN} - 1" )
+
+ FOREACH(IND RANGE 1 ${WRAP_LEN1})
+ LIST(GET STR ${IND} DEP_VAL)
+ SET(DEP_HH ${DEP_HH} PARAVIS_Gen_${DEP_VAL}_i.hh)
+ SET(DEP_CC ${DEP_CC} PARAVIS_Gen_${DEP_VAL}_i.cc)
+ ENDFOREACH(IND RANGE 1 ${WRAP_LEN1})
+
+ ENDIF(WRAP_LEN GREATER 1)
+
+ SET(WRAP_IDL_I_HH ${WRAP_IDL_I_HH} PARAVIS_Gen_${VAL}_i.hh)
+ SET(WRAP_IDL_I_CC ${WRAP_IDL_I_CC} PARAVIS_Gen_${VAL}_i.cc)
+
+ ADD_CUSTOM_COMMAND(
+ OUTPUT PARAVIS_Gen_${VAL}_i.hh
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_HH_exe ${PARAVIEW_INCLUDE_DIRS}/${VAL}.h ${CMAKE_BINARY_DIR}/idl/hints 0 PARAVIS_Gen_${VAL}_i.hh
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_HH_exe ${PARAVIEW_INCLUDE_DIRS}/${VAL}.h ${CMAKE_BINARY_DIR}/idl/hints ${DEP_HH}
+ )
+
+ ADD_CUSTOM_COMMAND(
+ OUTPUT PARAVIS_Gen_${VAL}_i.cc
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_CC_exe ${PARAVIEW_INCLUDE_DIRS}/${VAL}.h ${CMAKE_BINARY_DIR}/idl/hints 0 PARAVIS_Gen_${VAL}_i.cc
+ DEPENDS PARAVIS_Gen_${VAL}_i.hh ${CMAKE_CURRENT_BINARY_DIR}/vtkWrapIDL_CC_exe ${PARAVIEW_INCLUDE_DIRS}/${VAL}.h ${CMAKE_BINARY_DIR}/idl/hints ${DEP_CC}
+ )
+
+ ENDFOREACH(STR ${WRAP_LIST_REG})
+ENDIF(EXISTS ${CMAKE_BINARY_DIR}/wrapfiles.txt)
+
+ADD_CUSTOM_COMMAND(
+ OUTPUT PARAVIS_CreateClass.cxx
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/create_class.sh ${CMAKE_SOURCE_DIR}
+ DEPENDS ${CMAKE_BINARY_DIR}/wrapfiles.txt ${WRAP_IDL_I_HH}
+)
+ADD_CUSTOM_TARGET(generate_pvgui ALL DEPENDS ${CMAKE_BINARY_DIR}/wrapfiles.txt PARAVIS_CreateClass.cxx ${WRAP_IDL_I_HH} ${WRAP_IDL_I_CC})
--- /dev/null
+
+ SET(VERSION_INFO 0.0.0)
+ SET(SOVERSION_INFO 0)
+ SET(SUBDIRS)
+ SET(AM_CPPFLAGS)
+ SET(AM_CXXFLAGS)
+ SET(LDADD)
+
+
+ SET(AM_CPPFLAGS ${AM_CPPFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+ SET(AM_CXXFLAGS ${AM_CXXFLAGS} -DHAVE_SALOME_CONFIG -I${KERNEL_ROOT_DIR}/include/salome -include SALOMEconfig.h)
+
+# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# 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.
+#
+# 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
+#
+# VISU VISU_SWIG : binding of C++ implementation and Python
+# File : Makefile.am
+# Author : Paul RASCLE, EDF
+# Module : VISU
+#
+# include $(top_srcdir)/adm_local/unix/make_common_starter.am
+
+SET(dist_salomescript_DATA
+ paravis.py
+ paravisSM.py
+ pvsimple.py
+)
+
+
+
+ FOREACH(dir ${SUBDIRS})
+ IF(NOT dir STREQUAL .)
+ ADD_SUBDIRECTORY(${dir})
+ ENDIF(NOT dir STREQUAL .)
+ ENDFOREACH(dir ${SUBDIRS})
+
+FOREACH(f ${dist_salomescript_DATA})
+
+ SET(DEST bin/salome)
+
+
+ STRING(COMPARE EQUAL ${f} SALOMEconfig.h.in test_SALOMEconfig.h.in)
+ IF(test_SALOMEconfig.h.in)
+ INSTALL(FILES SALOMEconfig.ref.in DESTINATION ${DEST} RENAME SALOMEconfig.h.in)
+ ELSE(test_SALOMEconfig.h.in)
+ SET(dummy dummy-NOTFOUND)
+ MARK_AS_ADVANCED(dummy)
+ # FILE(REMOVE ${CMAKE_INSTALL_PREFIX}/${DEST}/${f})
+ FIND_FILE(dummy ${f} PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)
+ IF(dummy)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ IF(DEST STREQUAL bin/salome)
+ SET(PERMS)
+ SET(PERMS ${PERMS} OWNER_READ OWNER_WRITE OWNER_EXECUTE)
+ SET(PERMS ${PERMS} GROUP_READ GROUP_EXECUTE)
+ SET(PERMS ${PERMS} WORLD_READ WORLD_EXECUTE)
+ INSTALL(FILES ${f} DESTINATION ${DEST} PERMISSIONS ${PERMS})
+ ELSE(DEST STREQUAL bin/salome)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(DEST STREQUAL bin/salome)
+ ELSE(ext STREQUAL .py)
+ INSTALL(FILES ${f} DESTINATION ${DEST})
+ ENDIF(ext STREQUAL .py)
+
+
+ ELSE(dummy)
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .qm)
+ STRING(REGEX REPLACE .qm .ts input ${f})
+
+
+ SET(input ${CMAKE_CURRENT_SOURCE_DIR}/resources/${input})
+
+
+ SET(output ${CMAKE_CURRENT_BINARY_DIR}/${f})
+ # ADD_CUSTOM_COMMAND(
+ # OUTPUT ${output}
+ # COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output}
+ # MAIN_DEPENDENCY ${input}
+ # )
+ EXECUTE_PROCESS(COMMAND ${QT_LRELEASE_EXECUTABLE} ${input} -qm ${output})
+ ENDIF(ext STREQUAL .qm)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${f} DESTINATION ${DEST})
+ ENDIF(dummy)
+ ENDIF(test_SALOMEconfig.h.in)
+
+
+ GET_FILENAME_COMPONENT(ext ${f} EXT)
+ IF(ext STREQUAL .py)
+ INSTALL(CODE "SET(PYTHON_FILE ${f})")
+ INSTALL(CODE "SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})")
+ INSTALL(CODE "SET(DEST ${DEST})")
+ INSTALL(CODE "SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})")
+
+
+ STRING(REPLACE "\\" "/" KERNEL_ROOT_DIR ${KERNEL_ROOT_DIR})
+ INSTALL(SCRIPT ${KERNEL_ROOT_DIR}/salome_adm/cmake_files/install_and_compile_python_file.cmake)
+
+
+ ENDIF(ext STREQUAL .py)
+
+ENDFOREACH(f ${dist_salomescript_DATA})
+++ /dev/null
-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-#
-# 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.
-#
-# 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
-#
-# VISU VISU_SWIG : binding of C++ implementation and Python
-# File : Makefile.am
-# Author : Paul RASCLE, EDF
-# Module : VISU
-#
-include $(top_srcdir)/adm_local/unix/make_common_starter.am
-
-dist_salomescript_DATA = paravis.py paravisSM.py pvsimple.py
-
return conn
def _connectSelf():
- """Initialises self connection.Internal method, use Connect() instead."""
- print "Connect to self"
+ """Creates a new self connection.Internal method, use Connect() instead."""
pm = vtkProcessModule.GetProcessModule()
pmOptions = pm.GetOptions()
if pmOptions.GetProcessType() == 0x40: # PVBATCH
is not specified, then the active connection is used, if available.
This method can also be used to initialize properties by passing
- keyword arguments where the key is the name of the property.In addition
+ keyword arguments where the key is the name of the property. In addition
registrationGroup and registrationName (optional) can be specified (as
keyword arguments) to automatically register the proxy with the proxy
manager."""
+ return _create_view("RenderView", connection, **extraArgs)
+def _create_view(view_xml_name, connection=None, **extraArgs):
+ """Creates a view on the particular connection. If connection
+ is not specified, then the active connection is used, if available.
+ This method can also be used to initialize properties by passing
+ keyword arguments where the key is the name of the property."""
if not connection:
connection = ActiveConnection
if not connection:
- raise RuntimeError, "Cannot create render window without connection."
+ raise RuntimeError, "Cannot create view without connection."
pxm = ProxyManager()
- prototype = pxm.GetPrototypeProxy("views", "RenderView")
-
+ prototype = pxm.GetPrototypeProxy("views", view_xml_name)
proxy_xml_name = prototype.GetSuggestedViewType(connection.ID)
- ren_module = None
+ view_module = None
if proxy_xml_name:
- ren_module = CreateProxy("views", proxy_xml_name, connection)
- if not ren_module:
+ view_module = CreateProxy("views", proxy_xml_name, connection)
+ if not view_module:
return None
- extraArgs['proxy'] = ren_module
- proxy = rendering.__dict__[ren_module.GetXMLName()](**extraArgs)
+ extraArgs['proxy'] = view_module
+ proxy = rendering.__dict__[view_module.GetXMLName()](**extraArgs)
return proxy
def GetRepresentation(aProxy, view):
if not aProxy:
raise RuntimeError, "proxy argument cannot be None."
if not view:
- raise RuntimeError, "render module argument cannot be None."
+ raise RuntimeError, "view argument cannot be None."
if "proxyName" in extraArgs:
display = CreateProxy("representations", extraArgs['proxyName'], None)
del extraArgs['proxyName']
scene.Play()
return scene
-def ToggleProgressPrinting():
- """Turn on/off printing of progress (by default, it is on). You can
- always turn progress off and add your own observer to the process
- module to handle progress in a custom way. See _printProgress for
- an example event observer."""
+def GetProgressPrintingIsEnabled():
+ return progressObserverTag is not None
+
+def SetProgressPrintingEnabled(value):
+ """Is not supported because of not supported observers"""
pass
- #vsv global progressObserverTag
- #vsv if fromGUI:
- #vsv raise RuntimeError, "Printing progress in the GUI is not supported."
- #vsv if progressObserverTag:
- #vsv vtkProcessModule.GetProcessModule().RemoveObserver(progressObserverTag)
- #vsv progressObserverTag = None
- #VSV Observer is not supported
- #else:
- # progressObserverTag = vtkProcessModule.GetProcessModule().AddObserver("ProgressEvent", _printProgress)
+def ToggleProgressPrinting():
+ """Turn on/off printing of progress. See SetProgressPrintingEnabled."""
+ SetProgressPrintingEnabled(not GetProgressPrintingIsEnabled())
def Finalize():
- """Although not required, this can be called at exit to cleanup."""
- global progressObserverTag
- # Make sure to remove the observer
- if progressObserverTag:
- ToggleProgressPrinting()
- vtkInitializationHelper.Finalize()
+ """Although not required, this can be called at exit to cleanup."""
+ global progressObserverTag
+ # Make sure to remove the observer
+ if progressObserverTag:
+ ToggleProgressPrinting()
+ vtkInitializationHelper.Finalize()
# Internal methods
def _findClassForProxy(xmlName, xmlGroup):
"""Given the xmlName for a proxy, returns a Proxy class. Note
that if there are duplicates, the first one is returned."""
- global sources, filters, rendering, animation, implicit_functions, writers, extended_sources, misc
+ global sources, filters, writers, rendering, animation, implicit_functions,\
+ piecewise_functions, extended_sources, misc
if not xmlName:
return None
if xmlGroup == "sources":
return filters.__dict__[xmlName]
elif xmlGroup == "implicit_functions":
return implicit_functions.__dict__[xmlName]
+ elif xmlGroup == "piecewise_functions":
+ return piecewise_functions.__dict__[xmlName]
elif xmlGroup == "writers":
return writers.__dict__[xmlName]
elif xmlGroup == "extended_sources":
def updateModules():
"""Called when a plugin is loaded, this method updates
the proxy class object in all known modules."""
- global sources, filters, writers, rendering, animation, implicit_functions, extended_sources, misc
+ global sources, filters, writers, rendering, animation, implicit_functions,\
+ piecewise_functions, extended_sources, misc
createModule("sources", sources)
createModule("filters", filters)
createModule("misc", misc)
createModule('animation_keyframes', animation)
createModule('implicit_functions', implicit_functions)
+ createModule('piecewise_functions', piecewise_functions)
createModule("extended_sources", extended_sources)
+ createModule("incremental_point_locators", misc)
def _createModules():
"""Called when the module is loaded, this creates sub-
modules for all know proxy groups."""
- global sources, filters, writers, rendering, animation, implicit_functions, extended_sources, misc
+ global sources, filters, writers, rendering, animation, implicit_functions,\
+ piecewise_functions, extended_sources, misc
sources = createModule('sources')
filters = createModule('filters')
animation = createModule('animation')
createModule('animation_keyframes', animation)
implicit_functions = createModule('implicit_functions')
+ piecewise_functions = createModule('piecewise_functions')
extended_sources = createModule("extended_sources")
misc = createModule("misc")
+ createModule("incremental_point_locators", misc)
class PVModule(object):
pass
def _make_name_valid(name):
- "Make a string into a valid Python variable name"
- if not name:
+ """Make a string into a valid Python variable name. Return None if
+ the name contains parentheses."""
+ if not name or '(' in name or ')' in name:
return None
- if name.find('(') >= 0 or name.find(')') >=0:
- return None
- name = name.replace(' ','')
- name = name.replace('-','')
- name = name.replace(':','')
- name = name.replace('.','')
+ import string
+ valid_chars = "_%s%s" % (string.ascii_letters, string.digits)
+ name = str().join([c for c in name if c in valid_chars])
if not name[0].isalpha():
name = 'a' + name
return name
for i in range(numProxies):
proxyName = pxm.GetXMLProxyName(groupName, i)
proto = pxm.GetPrototypeProxy(groupName, proxyName)
+ pname = proxyName
if proto.GetXMLLabel():
pname = proto.GetXMLLabel()
pname = _make_name_valid(pname)
None,
propDoc)
# Add the documentation as the class __doc__
- if proto.GetDocumentation() and proto.GetDocumentation().GetDescription():
+ if proto.GetDocumentation() and \
+ proto.GetDocumentation().GetDescription():
doc = proto.GetDocumentation().GetDescription()
- #else:
- doc = Proxy.__doc__
+ else:
+ doc = Proxy.__doc__
cdict['__doc__'] = doc
# Create the new type
if proto.GetXMLName() == "ExodusIIReader":
return "lookup_tables"
elif xmlgroup == "implicit_functions":
return "implicit_functions"
+ elif xmlgroup == "piecewise_functions":
+ return "piecewise_functions"
return None
__nameCounter = {}
servermanager = paravisSM
-def Connect(ds_host=None, ds_port=11111, rs_host=None, rs_port=11111):
- """Creates a connection to a server. Example usage:
- > Connect("amber") # Connect to a single server at default port
- > Connect("amber", 12345) # Connect to a single server at port 12345
- > Connect("amber", 11111, "vis_cluster", 11111) # connect to data server, render server pair
- This also create a default render view."""
+def _disconnect():
servermanager.ProxyManager().UnRegisterProxies()
active_objects.view = None
active_objects.source = None
import gc
gc.collect()
servermanager.Disconnect()
+
+def Connect(ds_host=None, ds_port=11111, rs_host=None, rs_port=11111):
+ """Creates a connection to a server. Example usage:
+ > Connect("amber") # Connect to a single server at default port
+ > Connect("amber", 12345) # Connect to a single server at port 12345
+ > Connect("amber", 11111, "vis_cluster", 11111) # connect to data server, render server pair"""
+ _disconnect()
cid = servermanager.Connect(ds_host, ds_port, rs_host, rs_port)
servermanager.ProxyManager().RegisterProxy("timekeeper", "tk", servermanager.misc.TimeKeeper())
+ return cid
+def ReverseConnect(port=11111):
+ """Create a reverse connection to a server. Listens on port and waits for
+ an incoming connection from the server."""
+ _disconnect()
+ cid = servermanager.ReverseConnect(port)
+ servermanager.ProxyManager().RegisterProxy("timekeeper", "tk", servermanager.misc.TimeKeeper())
return cid
-def CreateRenderView():
+def _create_view(view_xml_name):
"Creates and returns a 3D render view."
- view = servermanager.CreateRenderView()
+ view = servermanager._create_view(view_xml_name)
servermanager.ProxyManager().RegisterProxy("views", \
"my_view%d" % _funcs_internals.view_counter, view)
active_objects.view = view
return view
+def CreateRenderView():
+ return _create_view("RenderView")
+
+def CreateXYPlotView():
+ return _create_view("XYPlotView")
+
+def CreateBarChartView():
+ return _create_view("BarChart")
+
def GetRenderView():
"Returns the active view if there is one. Else creates and returns a new view."
view = active_objects.view
proxy = GetActiveSource()
if proxy == None:
raise RuntimeError, "Show() needs a proxy argument or that an active source is set."
- if not view and len(GetRenderViews()) == 0:
+ if not view and not active_objects.view:
CreateRenderView()
rep = GetDisplayProperties(proxy, view)
if rep == None:
view = active_objects.view
view.StillRender()
if _funcs_internals.first_render:
- view.ResetCamera()
- view.StillRender()
+ # Not all views have a ResetCamera method
+ try:
+ view.ResetCamera()
+ view.StillRender()
+ except AttributeError: pass
_funcs_internals.first_render = False
return view
SetProperties(lt, **params)
return lt
+def CreatePiecewiseFunction(**params):
+ """Create and return a piecewise function. Optionally, parameters can be
+ given to assign to the piecewise function.
+ """
+ pfunc = servermanager.piecewise_functions.PiecewiseFunction()
+ servermanager.Register(pfunc)
+ SetProperties(pfunc, **params)
+ return pfunc
+
def CreateScalarBar(**params):
"""Create and return a scalar bar widget. The returned widget may
be added to a render view by appending it to the view's representations
elif extension == 'bmp':
return 'vtkBMPWriter'
elif extension == 'ppm':
- return vtkPNMWriter
+ return 'vtkPNMWriter'
elif extension == 'tif' or extension == 'tiff':
return 'vtkTIFFWriter'
elif extension == 'jpg' or extension == 'jpeg':
if not servermanager.ActiveConnection:
Connect()
+
+def ImportFile(theFileName):
+ paravisSM.ImportFile(theFileName)
< #==============================================================================
< #
< # Program: ParaView
-< # Module: $RCSfile$
+< # Module: $RCSfile: servermanager.diff,v $
< #
< # Copyright (c) Kitware, Inc.
< # All rights reserved.
< collection = vtk.vtkCollection()
---
> collection = vtkCollection()
-1844c1819,1820
-< """Creates a new self connection.Internal method, use Connect() instead."""
----
-> """Initialises self connection.Internal method, use Connect() instead."""
-> print "Connect to self"
-1909c1885
+1909c1884
<
---
>
-2015c1991,1992
+2020c1995,1996
< try: isRep = rep.Input == aProxy
---
> #VSV: ==
> try: isRep = rep.Input.IsSame(aProxy)
-2261c2238,2239
+2265,2281c2241,2242
+< """Turn on/off printing of progress (by default, it is on). You can
+< always turn progress off and add your own observer to the process
+< module to handle progress in a custom way. See _printProgress for
+< an example event observer."""
< global progressObserverTag
----
-> pass
-> #vsv global progressObserverTag
-2263,2270c2241,2248
-< if fromGUI:
-< raise RuntimeError, "Printing progress in the GUI is not supported."
-< if progressObserverTag:
+<
+< # If value is true and progress printing is currently off...
+< if value and not GetProgressPrintingIsEnabled():
+< if fromGUI:
+< raise RuntimeError("Printing progress in the GUI is not supported.")
+< progressObserverTag = vtkProcessModule.GetProcessModule().AddObserver(\
+< "ProgressEvent", _printProgress)
+<
+< # If value is false and progress printing is currently on...
+< elif GetProgressPrintingIsEnabled():
< vtkProcessModule.GetProcessModule().RemoveObserver(progressObserverTag)
< progressObserverTag = None
-< else:
-< progressObserverTag = vtkProcessModule.GetProcessModule().AddObserver(\
-< "ProgressEvent", _printProgress)
----
-> #vsv if fromGUI:
-> #vsv raise RuntimeError, "Printing progress in the GUI is not supported."
-> #vsv if progressObserverTag:
-> #vsv vtkProcessModule.GetProcessModule().RemoveObserver(progressObserverTag)
-> #vsv progressObserverTag = None
-> #VSV Observer is not supported
-> #else:
-> # progressObserverTag = vtkProcessModule.GetProcessModule().AddObserver("ProgressEvent", _printProgress)
-2273,2278c2251,2256
-< """Although not required, this can be called at exit to cleanup."""
-< global progressObserverTag
-< # Make sure to remove the observer
-< if progressObserverTag:
-< ToggleProgressPrinting()
-< vtkInitializationHelper.Finalize()
---
-> """Although not required, this can be called at exit to cleanup."""
-> global progressObserverTag
-> # Make sure to remove the observer
-> if progressObserverTag:
-> ToggleProgressPrinting()
-> vtkInitializationHelper.Finalize()
-2293,2295c2271,2272
+> """Is not supported because of not supported observers"""
+> pass
+2308,2310c2269,2270
< if paraview.compatibility.GetVersion() >= 3.5:
< if smproxy.GetXMLLabel():
< xmlName = smproxy.GetXMLLabel()
---
> if smproxy.GetXMLLabel():
> xmlName = smproxy.GetXMLLabel()
-2335,2338c2312
+2350,2353c2310
< if paraview.compatibility.GetVersion() >= 3.5:
< return self.GetPropertyValue(propName)
< else:
< return self.GetProperty(propName)
---
> return self.GetPropertyValue(propName)
-2447c2421,2432
+2471c2428,2437
< return paraview.make_name_valid(name)
---
-> "Make a string into a valid Python variable name"
-> if not name:
-> return None
-> if name.find('(') >= 0 or name.find(')') >=0:
+> """Make a string into a valid Python variable name. Return None if
+> the name contains parentheses."""
+> if not name or '(' in name or ')' in name:
> return None
-> name = name.replace(' ','')
-> name = name.replace('-','')
-> name = name.replace(':','')
-> name = name.replace('.','')
+> import string
+> valid_chars = "_%s%s" % (string.ascii_letters, string.digits)
+> name = str().join([c for c in name if c in valid_chars])
> if not name[0].isalpha():
> name = 'a' + name
> return name
-2465,2469c2450,2451
-< if paraview.compatibility.GetVersion() >= 3.5:
-< if proto.GetXMLLabel():
-< pname = proto.GetXMLLabel()
-< else:
-< pname = proxyName
+2490,2491c2456
+< if paraview.compatibility.GetVersion() >= 3.5 and\
+< proto.GetXMLLabel():
---
> if proto.GetXMLLabel():
-> pname = proto.GetXMLLabel()
-2483,2486c2465,2466
+2506,2509c2471,2472
< if paraview.compatibility.GetVersion() >= 3.5:
< if (prop.GetInformationOnly() and propName != "TimestepValues" ) \
< or prop.GetIsInternal():
---
> if (prop.GetInformationOnly() and propName != "TimestepValues" ) or prop.GetIsInternal():
> continue
-2488,2489c2468
+2511,2512c2474
< if paraview.compatibility.GetVersion() >= 3.5:
< names = [iter.PropertyLabel]
---
> names = [iter.PropertyLabel]
-2502,2503c2481
-< if proto.GetDocumentation() and \
-< proto.GetDocumentation().GetDescription():
----
-> if proto.GetDocumentation() and proto.GetDocumentation().GetDescription():
-2505,2506c2483,2484
-< else:
-< doc = Proxy.__doc__
----
-> #else:
-> doc = Proxy.__doc__
-2616,2625c2594,2597
+2641,2650c2603,2606
< if paraview.compatibility.GetVersion() <= 3.4:
< ss = sources.SphereSource(Radius=2, ThetaResolution=32)
< shr = filters.ShrinkFilter(Input=OutputPort(ss,0))
> shr = filters.Shrink(Input=OutputPort(ss,0))
> cs = sources.Cone()
> app = filters.AppendDatasets()
-2646,2649c2618
+2671,2674c2627
< if paraview.compatibility.GetVersion() <= 3.4:
< arraySelection = reader.PointResultArrayStatus
< else:
< arraySelection = reader.PointVariables
---
> arraySelection = reader.PointVariables
-2683,2686c2652
+2708,2711c2661
< if paraview.compatibility.GetVersion() <= 3.4:
< print "Range:", ai.Range(j)
< else:
< print "Range:", ai.GetRange(j)
---
> print "Range:", ai.GetRange(j)
-2717,2720c2683
+2742,2745c2692
< if paraview.compatibility.GetVersion() <= 3.4:
< source = sources.RTAnalyticSource()
< else:
< source = sources.Wavelet()
---
> source = sources.Wavelet()
-2751,2758c2714,2716
+2776,2783c2723,2725
< if paraview.compatibility.GetVersion() <= 3.4:
< probe = filters.Probe(Input=source)
< # with a line
> probe = filters.ResampleWithDataset(Input=source)
> # with a line
> line = sources.Line(Resolution=60)
-2802,2805c2760
+2827,2830c2769
< if paraview.compatibility.GetVersion() <= 3.4:
< sphere = sources.SphereSource()
< else:
< sphere = sources.Sphere()
---
> sphere = sources.Sphere()
-2871a2827,2833
+2897,2899c2836,2844
+< if hasattr(sys, "ps1"):
+< # session is interactive.
+< print vtkSMProxyManager.GetParaViewSourceVersion();
+---
> # Definitions for working in SALOME GUI mode
> aParams = myParavis.GetConnectionParameters()
> ActiveConnection = Connection(aParams[0])
> ToggleProgressPrinting()
> fromGUI = True
>
-2872a2835
+> print vtkSMProxyManager.GetParaViewSourceVersion();
>
< #==============================================================================
< #
< # Program: ParaView
-< # Module: $RCSfile$
+< # Module: $RCSfile: simple.diff,v $
< #
< # Copyright (c) Kitware, Inc.
< # All rights reserved.
> import paravisSM
>
> servermanager = paravisSM
-259c244,245
+280c265,266
< if proxy == GetActiveSource():
---
> #VSV:==
> if proxy.IsSame(GetActiveSource()):
-267c253,254
+288c274,275
< if rep.Input == proxy:
---
> #VSV:==
> if rep.Input.IsSame(proxy):
-271c258,259
+292c279,280
< if proxy == GetActiveView():
---
> ##VSV:==
> if proxy.IsSame(GetActiveView()):
-679a668,674
+709a698,704
> def PrintTrace():
> print paravisSM.myParavis.GetTrace()
>
> paravisSM.myParavis.SaveTrace(fileName)
>
>
-681a677,678
+711a707,708
> ## Initialisation for SALOME GUI
> active_objects.view = servermanager.GetRenderView()
+714a712,714
+>
+> def ImportFile(theFileName):
+> paravisSM.ImportFile(theFileName)
--- /dev/null
+
+#line 3 "lex.yy.c"
+
+#define YY_INT_ALIGNED short int
+
+/* A lexical scanner generated by flex */
+
+#define FLEX_SCANNER
+#define YY_FLEX_MAJOR_VERSION 2
+#define YY_FLEX_MINOR_VERSION 5
+#define YY_FLEX_SUBMINOR_VERSION 35
+#if YY_FLEX_SUBMINOR_VERSION > 0
+#define FLEX_BETA
+#endif
+
+/* First, we deal with platform-specific or compiler-specific issues. */
+
+/* begin standard C headers. */
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include <stdlib.h>
+
+/* end standard C headers. */
+
+/* flex integer type definitions */
+
+#ifndef FLEXINT_H
+#define FLEXINT_H
+
+/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
+
+#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+
+/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
+ * if you want the limit (max/min) macros for int types.
+ */
+#ifndef __STDC_LIMIT_MACROS
+#define __STDC_LIMIT_MACROS 1
+#endif
+
+#include <inttypes.h>
+typedef int8_t flex_int8_t;
+typedef uint8_t flex_uint8_t;
+typedef int16_t flex_int16_t;
+typedef uint16_t flex_uint16_t;
+typedef int32_t flex_int32_t;
+typedef uint32_t flex_uint32_t;
+#else
+typedef signed char flex_int8_t;
+typedef short int flex_int16_t;
+typedef int flex_int32_t;
+typedef unsigned char flex_uint8_t;
+typedef unsigned short int flex_uint16_t;
+typedef unsigned int flex_uint32_t;
+
+/* Limits of integral types. */
+#ifndef INT8_MIN
+#define INT8_MIN (-128)
+#endif
+#ifndef INT16_MIN
+#define INT16_MIN (-32767-1)
+#endif
+#ifndef INT32_MIN
+#define INT32_MIN (-2147483647-1)
+#endif
+#ifndef INT8_MAX
+#define INT8_MAX (127)
+#endif
+#ifndef INT16_MAX
+#define INT16_MAX (32767)
+#endif
+#ifndef INT32_MAX
+#define INT32_MAX (2147483647)
+#endif
+#ifndef UINT8_MAX
+#define UINT8_MAX (255U)
+#endif
+#ifndef UINT16_MAX
+#define UINT16_MAX (65535U)
+#endif
+#ifndef UINT32_MAX
+#define UINT32_MAX (4294967295U)
+#endif
+
+#endif /* ! C99 */
+
+#endif /* ! FLEXINT_H */
+
+#ifdef __cplusplus
+
+/* The "const" storage-class-modifier is valid. */
+#define YY_USE_CONST
+
+#else /* ! __cplusplus */
+
+/* C99 requires __STDC__ to be defined as 1. */
+#if defined (__STDC__)
+
+#define YY_USE_CONST
+
+#endif /* defined (__STDC__) */
+#endif /* ! __cplusplus */
+
+#ifdef YY_USE_CONST
+#define yyconst const
+#else
+#define yyconst
+#endif
+
+/* Returned upon end-of-file. */
+#define YY_NULL 0
+
+/* Promotes a possibly negative, possibly signed char to an unsigned
+ * integer for use as an array index. If the signed char is negative,
+ * we want to instead treat it as an 8-bit unsigned char, hence the
+ * double cast.
+ */
+#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
+
+/* Enter a start condition. This macro really ought to take a parameter,
+ * but we do it the disgusting crufty way forced on us by the ()-less
+ * definition of BEGIN.
+ */
+#define BEGIN (yy_start) = 1 + 2 *
+
+/* Translate the current start state into a value that can be later handed
+ * to BEGIN to return to the state. The YYSTATE alias is for lex
+ * compatibility.
+ */
+#define YY_START (((yy_start) - 1) / 2)
+#define YYSTATE YY_START
+
+/* Action number for EOF rule of a given start state. */
+#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
+
+/* Special action meaning "start processing a new file". */
+#define YY_NEW_FILE yyrestart(yyin )
+
+#define YY_END_OF_BUFFER_CHAR 0
+
+/* Size of default input buffer. */
+#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
+#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
+#endif
+
+/* The state buf must be large enough to hold one state per character in the main buffer.
+ */
+#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
+
+#ifndef YY_TYPEDEF_YY_BUFFER_STATE
+#define YY_TYPEDEF_YY_BUFFER_STATE
+typedef struct yy_buffer_state *YY_BUFFER_STATE;
+#endif
+
+extern int yyleng;
+
+extern FILE *yyin, *yyout;
+
+#define EOB_ACT_CONTINUE_SCAN 0
+#define EOB_ACT_END_OF_FILE 1
+#define EOB_ACT_LAST_MATCH 2
+
+ /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
+ * access to the local variable yy_act. Since yyless() is a macro, it would break
+ * existing scanners that call yyless() from OUTSIDE yylex.
+ * One obvious solution it to make yy_act a global. I tried that, and saw
+ * a 5% performance hit in a non-yylineno scanner, because yy_act is
+ * normally declared as a register variable-- so it is not worth it.
+ */
+ #define YY_LESS_LINENO(n) \
+ do { \
+ int yyl;\
+ for ( yyl = n; yyl < yyleng; ++yyl )\
+ if ( yytext[yyl] == '\n' )\
+ --yylineno;\
+ }while(0)
+
+/* Return all but the first "n" matched characters back to the input stream. */
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ int yyless_macro_arg = (n); \
+ YY_LESS_LINENO(yyless_macro_arg);\
+ *yy_cp = (yy_hold_char); \
+ YY_RESTORE_YY_MORE_OFFSET \
+ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
+ YY_DO_BEFORE_ACTION; /* set up yytext again */ \
+ } \
+ while ( 0 )
+
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+
+#ifndef YY_STRUCT_YY_BUFFER_STATE
+#define YY_STRUCT_YY_BUFFER_STATE
+struct yy_buffer_state
+ {
+ FILE *yy_input_file;
+
+ char *yy_ch_buf; /* input buffer */
+ char *yy_buf_pos; /* current position in input buffer */
+
+ /* Size of input buffer in bytes, not including room for EOB
+ * characters.
+ */
+ yy_size_t yy_buf_size;
+
+ /* Number of characters read into yy_ch_buf, not including EOB
+ * characters.
+ */
+ size_t yy_n_chars;
+
+ /* Whether we "own" the buffer - i.e., we know we created it,
+ * and can realloc() it to grow it, and should free() it to
+ * delete it.
+ */
+ int yy_is_our_buffer;
+
+ /* Whether this is an "interactive" input source; if so, and
+ * if we're using stdio for input, then we want to use getc()
+ * instead of fread(), to make sure we stop fetching input after
+ * each newline.
+ */
+ int yy_is_interactive;
+
+ /* Whether we're considered to be at the beginning of a line.
+ * If so, '^' rules will be active on the next match, otherwise
+ * not.
+ */
+ int yy_at_bol;
+
+ int yy_bs_lineno; /**< The line count. */
+ int yy_bs_column; /**< The column count. */
+
+ /* Whether to try to fill the input buffer when we reach the
+ * end of it.
+ */
+ int yy_fill_buffer;
+
+ int yy_buffer_status;
+
+#define YY_BUFFER_NEW 0
+#define YY_BUFFER_NORMAL 1
+ /* When an EOF's been seen but there's still some text to process
+ * then we mark the buffer as YY_EOF_PENDING, to indicate that we
+ * shouldn't try reading from the input source any more. We might
+ * still have a bunch of tokens to match, though, because of
+ * possible backing-up.
+ *
+ * When we actually see the EOF, we change the status to "new"
+ * (via yyrestart()), so that the user can continue scanning by
+ * just pointing yyin at a new input file.
+ */
+#define YY_BUFFER_EOF_PENDING 2
+
+ };
+#endif /* !YY_STRUCT_YY_BUFFER_STATE */
+
+/* Stack of input buffers. */
+static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
+static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
+static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
+
+/* We provide macros for accessing buffer states in case in the
+ * future we want to put the buffer states in a more general
+ * "scanner state".
+ *
+ * Returns the top of the stack, or NULL.
+ */
+#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
+ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
+ : NULL)
+
+/* Same as previous macro, but useful when we know that the buffer stack is not
+ * NULL or when we need an lvalue. For internal use only.
+ */
+#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
+
+/* yy_hold_char holds the character lost when yytext is formed. */
+static char yy_hold_char;
+static size_t yy_n_chars; /* number of characters read into yy_ch_buf */
+int yyleng;
+
+/* Points to current character in buffer. */
+static char *yy_c_buf_p = (char *) 0;
+static int yy_init = 0; /* whether we need to initialize */
+static int yy_start = 0; /* start state number */
+
+/* Flag which is used to allow yywrap()'s to do buffer switches
+ * instead of setting up a fresh yyin. A bit of a hack ...
+ */
+static int yy_did_buffer_switch_on_eof;
+
+void yyrestart (FILE *input_file );
+void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
+YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
+void yy_delete_buffer (YY_BUFFER_STATE b );
+void yy_flush_buffer (YY_BUFFER_STATE b );
+void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
+void yypop_buffer_state (void );
+
+static void yyensure_buffer_stack (void );
+static void yy_load_buffer_state (void );
+static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
+
+#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
+
+YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
+YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
+YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
+
+void *yyalloc (yy_size_t );
+void *yyrealloc (void *,yy_size_t );
+void yyfree (void * );
+
+#define yy_new_buffer yy_create_buffer
+
+#define yy_set_interactive(is_interactive) \
+ { \
+ if ( ! YY_CURRENT_BUFFER ){ \
+ yyensure_buffer_stack (); \
+ YY_CURRENT_BUFFER_LVALUE = \
+ yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ } \
+ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
+ }
+
+#define yy_set_bol(at_bol) \
+ { \
+ if ( ! YY_CURRENT_BUFFER ){\
+ yyensure_buffer_stack (); \
+ YY_CURRENT_BUFFER_LVALUE = \
+ yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ } \
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
+ }
+
+#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
+
+/* Begin user sect3 */
+
+typedef unsigned char YY_CHAR;
+
+FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+
+typedef int yy_state_type;
+
+extern int yylineno;
+
+int yylineno = 1;
+
+extern char *yytext;
+#define yytext_ptr yytext
+
+static yy_state_type yy_get_previous_state (void );
+static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
+static int yy_get_next_buffer (void );
+static void yy_fatal_error (yyconst char msg[] );
+
+/* Done after the current pattern has been matched and before the
+ * corresponding action - sets up yytext.
+ */
+#define YY_DO_BEFORE_ACTION \
+ (yytext_ptr) = yy_bp; \
+ yyleng = (size_t) (yy_cp - yy_bp); \
+ (yy_hold_char) = *yy_cp; \
+ *yy_cp = '\0'; \
+ (yy_c_buf_p) = yy_cp;
+
+#define YY_NUM_RULES 94
+#define YY_END_OF_BUFFER 95
+/* This struct is not used in this scanner,
+ but its presence is necessary. */
+struct yy_trans_info
+ {
+ flex_int32_t yy_verify;
+ flex_int32_t yy_nxt;
+ };
+static yyconst flex_int16_t yy_accept[772] =
+ { 0,
+ 0, 0, 95, 93, 89, 89, 93, 92, 93, 84,
+ 88, 88, 90, 91, 88, 88, 88, 88, 88, 88,
+ 88, 88, 88, 88, 88, 88, 89, 9, 9, 93,
+ 93, 0, 1, 11, 84, 0, 0, 88, 88, 88,
+ 0, 0, 88, 88, 88, 88, 88, 88, 88, 88,
+ 88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
+ 88, 88, 88, 0, 9, 0, 0, 86, 10, 85,
+ 11, 0, 88, 0, 0, 14, 88, 88, 88, 88,
+ 88, 88, 88, 88, 88, 30, 88, 88, 88, 88,
+ 88, 88, 88, 88, 88, 88, 88, 87, 10, 10,
+
+ 10, 10, 0, 88, 88, 88, 37, 36, 88, 88,
+ 88, 88, 88, 0, 88, 88, 33, 88, 88, 88,
+ 88, 88, 88, 88, 88, 88, 35, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 10,
+ 10, 10, 10, 10, 10, 0, 88, 88, 88, 88,
+ 26, 39, 88, 31, 88, 0, 0, 88, 88, 0,
+ 88, 88, 88, 88, 88, 88, 32, 88, 88, 88,
+ 88, 0, 0, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 10, 10, 10, 10, 10,
+ 10, 10, 0, 88, 88, 88, 88, 0, 34, 42,
+
+ 0, 0, 88, 88, 0, 0, 88, 88, 88, 88,
+ 88, 27, 0, 88, 88, 43, 88, 88, 0, 0,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 10, 10, 10, 10, 10, 10, 10, 10,
+ 2, 0, 88, 88, 12, 24, 0, 0, 0, 0,
+ 20, 88, 0, 0, 18, 88, 88, 28, 88, 0,
+ 88, 0, 88, 88, 38, 0, 0, 0, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 10, 10,
+ 10, 10, 10, 10, 10, 12, 88, 88, 0, 20,
+
+ 0, 0, 88, 19, 18, 0, 21, 40, 88, 0,
+ 17, 0, 88, 41, 0, 0, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 10, 10, 10, 3, 10, 10, 88, 88, 0, 0,
+ 19, 88, 21, 0, 88, 29, 17, 0, 88, 0,
+ 0, 87, 87, 87, 87, 87, 87, 87, 45, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 3, 10, 10, 3, 10,
+ 10, 72, 88, 0, 0, 15, 0, 88, 0, 88,
+
+ 0, 25, 0, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 12, 3, 10, 10, 10,
+ 10, 88, 0, 22, 0, 23, 25, 0, 87, 87,
+ 87, 48, 87, 87, 87, 0, 0, 87, 47, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 74, 87,
+ 87, 87, 87, 87, 10, 10, 10, 10, 88, 22,
+ 23, 0, 87, 87, 87, 87, 87, 87, 0, 13,
+ 87, 87, 87, 87, 87, 46, 87, 76, 78, 80,
+ 70, 87, 87, 87, 87, 75, 87, 87, 10, 10,
+
+ 10, 10, 88, 0, 0, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 77, 79, 81,
+ 87, 87, 10, 10, 10, 10, 10, 10, 10, 88,
+ 0, 16, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 82, 83, 87, 87, 87, 10, 10, 10, 10,
+ 10, 10, 10, 10, 10, 10, 73, 55, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 10,
+
+ 10, 10, 10, 10, 10, 10, 10, 10, 8, 87,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 51,
+ 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
+ 87, 10, 10, 10, 10, 8, 10, 10, 10, 10,
+ 8, 87, 87, 87, 54, 50, 87, 87, 87, 87,
+ 65, 52, 87, 49, 87, 87, 87, 87, 64, 87,
+ 87, 87, 10, 10, 10, 10, 8, 10, 10, 10,
+ 10, 87, 87, 87, 60, 61, 62, 63, 87, 56,
+ 57, 58, 59, 87, 87, 87, 10, 10, 10, 10,
+ 10, 10, 10, 10, 87, 87, 87, 87, 87, 87,
+
+ 87, 10, 10, 10, 10, 7, 10, 10, 10, 68,
+ 87, 44, 87, 71, 87, 87, 7, 10, 10, 10,
+ 7, 10, 5, 6, 87, 87, 87, 87, 7, 10,
+ 5, 6, 10, 5, 6, 87, 87, 87, 87, 10,
+ 5, 6, 10, 87, 87, 87, 67, 10, 4, 87,
+ 87, 87, 4, 4, 87, 87, 87, 4, 87, 87,
+ 66, 87, 87, 69, 87, 87, 87, 87, 87, 53,
+ 0
+ } ;
+
+static yyconst flex_int32_t yy_ec[256] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
+ 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 5, 1, 6, 7, 1, 1, 8, 1, 9,
+ 10, 11, 1, 8, 8, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 19, 21, 19, 22, 23, 1,
+ 8, 1, 1, 1, 24, 25, 26, 27, 28, 29,
+ 30, 31, 32, 31, 33, 34, 35, 36, 37, 38,
+ 31, 39, 40, 41, 42, 43, 44, 45, 46, 31,
+ 47, 1, 48, 1, 49, 1, 50, 51, 52, 53,
+
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 31, 66, 67, 68, 69, 70, 71, 72,
+ 73, 31, 8, 1, 8, 8, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1
+ } ;
+
+static yyconst flex_int32_t yy_meta[74] =
+ { 0,
+ 1, 2, 3, 2, 2, 4, 1, 1, 1, 5,
+ 1, 1, 1, 6, 7, 7, 7, 7, 7, 7,
+ 7, 1, 8, 9, 9, 9, 9, 9, 9, 9,
+ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
+ 9, 9, 9, 9, 9, 9, 1, 10, 9, 9,
+ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
+ 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
+ 9, 9, 9
+ } ;
+
+static yyconst flex_int16_t yy_base[799] =
+ { 0,
+ 0, 72, 1713, 1714, 1714, 1714, 0, 1714, 67, 72,
+ 1663, 53, 79, 1714, 67, 47, 48, 49, 54, 51,
+ 55, 52, 57, 50, 61, 73, 125, 1714, 1714, 1708,
+ 121, 1704, 1714, 0, 128, 1660, 105, 1659, 107, 103,
+ 155, 159, 106, 122, 76, 116, 118, 90, 120, 121,
+ 123, 124, 125, 129, 126, 142, 130, 146, 137, 133,
+ 147, 148, 149, 212, 1714, 1694, 1703, 1714, 194, 1714,
+ 0, 156, 1656, 218, 224, 1714, 186, 155, 181, 182,
+ 183, 184, 159, 162, 185, 241, 191, 187, 188, 189,
+ 200, 203, 192, 205, 207, 210, 211, 284, 257, 0,
+
+ 256, 1663, 225, 242, 230, 226, 1654, 1653, 222, 228,
+ 231, 232, 235, 301, 246, 236, 327, 238, 268, 272,
+ 285, 270, 286, 287, 266, 288, 344, 1652, 290, 292,
+ 250, 301, 248, 295, 302, 293, 303, 309, 332, 0,
+ 351, 1659, 329, 1645, 1653, 330, 343, 333, 335, 355,
+ 372, 1648, 337, 1647, 334, 1631, 1637, 331, 341, 393,
+ 340, 350, 351, 352, 357, 358, 413, 359, 373, 364,
+ 374, 426, 434, 362, 258, 383, 384, 393, 391, 392,
+ 395, 400, 401, 397, 408, 428, 1639, 1647, 1667, 1662,
+ 1622, 1685, 417, 428, 437, 426, 425, 476, 1638, 1637,
+
+ 1622, 1620, 420, 421, 1620, 1618, 423, 433, 424, 435,
+ 434, 1632, 490, 436, 501, 1631, 458, 448, 511, 515,
+ 449, 459, 451, 489, 462, 479, 517, 487, 485, 484,
+ 481, 502, 1655, 1650, 1610, 1673, 1640, 1648, 1621, 1669,
+ 1714, 496, 520, 509, 1622, 1621, 559, 1601, 1612, 1601,
+ 569, 500, 1598, 1602, 1615, 521, 510, 1614, 526, 1599,
+ 516, 583, 532, 529, 1612, 588, 592, 600, 557, 534,
+ 558, 559, 563, 564, 566, 568, 567, 518, 572, 574,
+ 570, 578, 582, 579, 609, 588, 590, 603, 1625, 1633,
+ 1606, 1654, 1628, 1614, 1588, 1604, 616, 1603, 1591, 652,
+
+ 1582, 657, 600, 1600, 1714, 1592, 665, 1598, 622, 1578,
+ 1596, 1587, 623, 1594, 674, 682, 631, 614, 639, 640,
+ 482, 625, 641, 596, 645, 646, 649, 651, 653, 654,
+ 655, 656, 660, 662, 666, 663, 687, 675, 680, 688,
+ 1614, 1600, 1574, 0, 1607, 1580, 682, 698, 730, 1573,
+ 1714, 681, 738, 746, 696, 1587, 1714, 1585, 689, 758,
+ 1570, 705, 715, 707, 708, 717, 709, 697, 1584, 723,
+ 724, 726, 728, 729, 730, 731, 732, 736, 735, 742,
+ 738, 744, 740, 746, 756, 0, 1600, 1573, 0, 1593,
+ 1564, 1579, 753, 809, 813, 1714, 1564, 770, 1563, 752,
+
+ 1559, 1575, 1565, 774, 772, 773, 775, 778, 782, 784,
+ 829, 786, 788, 791, 792, 793, 795, 797, 800, 846,
+ 798, 804, 805, 806, 808, 1573, 0, 1584, 1555, 1583,
+ 1550, 827, 1561, 1567, 1547, 1565, 1714, 1560, 820, 830,
+ 837, 1563, 828, 831, 832, 879, 1601, 848, 1561, 833,
+ 836, 843, 840, 844, 842, 874, 886, 885, 1560, 855,
+ 858, 894, 879, 863, 1572, 1539, 1601, 1547, 888, 1714,
+ 1714, 928, 868, 869, 872, 873, 878, 928, 1594, 1714,
+ 891, 889, 898, 915, 935, 1554, 937, 1553, 1552, 1551,
+ 1550, 900, 936, 910, 942, 1549, 916, 913, 1592, 1538,
+
+ 941, 1531, 930, 971, 985, 923, 929, 934, 947, 949,
+ 958, 965, 966, 967, 954, 957, 961, 968, 963, 970,
+ 983, 986, 987, 974, 1009, 1008, 978, 1545, 1544, 1543,
+ 979, 980, 1004, 1527, 1540, 1535, 1534, 1533, 1523, 997,
+ 1045, 1714, 985, 991, 988, 1004, 1010, 1011, 1014, 1016,
+ 1018, 1020, 1021, 1024, 1025, 1026, 1031, 1033, 1035, 1039,
+ 1041, 1536, 1535, 1028, 1037, 1043, 1533, 1528, 1527, 1526,
+ 1516, 1508, 1510, 1522, 1521, 1552, 1524, 1523, 1059, 1046,
+ 1047, 1050, 1048, 1052, 1053, 1058, 1060, 990, 1062, 1086,
+ 1066, 1068, 1069, 1070, 1075, 1074, 1090, 1080, 1081, 1501,
+
+ 1503, 1515, 1514, 1545, 1512, 1513, 1559, 1558, 0, 1087,
+ 1089, 1093, 1092, 1095, 1096, 1097, 1098, 1099, 1102, 1513,
+ 1103, 1104, 1105, 1106, 1108, 1109, 1111, 1112, 1100, 1121,
+ 1122, 1507, 1508, 1554, 1553, 0, 1507, 1490, 1531, 1504,
+ 0, 1129, 1124, 1131, 1497, 1487, 1133, 1134, 1135, 1136,
+ 1477, 1467, 1137, 1457, 1138, 1139, 1143, 1144, 1447, 1160,
+ 1142, 1147, 1436, 1410, 1442, 1406, 0, 1368, 1371, 1367,
+ 1357, 1161, 1162, 1164, 1355, 1351, 1331, 1327, 1165, 1317,
+ 1313, 1312, 1309, 1166, 1167, 1184, 1289, 1289, 1272, 1271,
+ 1264, 1262, 1256, 1247, 1172, 1173, 1169, 1175, 1177, 1176,
+
+ 1181, 1242, 1243, 1239, 1238, 0, 1235, 1238, 1236, 1249,
+ 1188, 1248, 1185, 1247, 1193, 1186, 0, 1224, 1198, 1131,
+ 0, 1131, 0, 0, 1196, 1199, 1214, 1201, 0, 994,
+ 0, 0, 977, 0, 0, 1202, 1217, 1206, 1204, 907,
+ 0, 0, 603, 1222, 1210, 1220, 550, 427, 0, 1224,
+ 1221, 1209, 0, 0, 1227, 1228, 1229, 0, 1215, 1234,
+ 353, 1235, 1236, 154, 1252, 1239, 1242, 1241, 1246, 127,
+ 1714, 1310, 1315, 1319, 1327, 1334, 1344, 1353, 1363, 1368,
+ 1377, 1387, 1396, 1405, 1415, 1424, 1433, 1443, 1453, 1463,
+ 1473, 1483, 1493, 1503, 1513, 1523, 1533, 1543
+
+ } ;
+
+static yyconst flex_int16_t yy_def[799] =
+ { 0,
+ 771, 1, 771, 771, 771, 771, 772, 771, 771, 773,
+ 774, 774, 775, 771, 774, 774, 774, 774, 774, 774,
+ 774, 774, 774, 774, 774, 774, 771, 771, 771, 776,
+ 771, 772, 771, 777, 773, 773, 773, 774, 774, 774,
+ 775, 778, 774, 774, 774, 774, 774, 774, 774, 774,
+ 774, 774, 774, 774, 774, 774, 774, 774, 774, 774,
+ 774, 774, 774, 771, 771, 771, 776, 771, 779, 771,
+ 777, 773, 774, 771, 778, 771, 774, 774, 774, 774,
+ 774, 774, 774, 774, 774, 774, 774, 774, 774, 774,
+ 774, 774, 774, 774, 774, 774, 774, 780, 781, 779,
+
+ 779, 779, 773, 774, 774, 774, 774, 774, 774, 774,
+ 774, 774, 774, 771, 774, 774, 774, 774, 774, 774,
+ 774, 774, 774, 774, 774, 774, 774, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 781,
+ 781, 781, 779, 779, 779, 773, 774, 774, 774, 774,
+ 774, 774, 774, 774, 774, 771, 771, 774, 774, 771,
+ 774, 774, 774, 774, 774, 774, 774, 774, 774, 774,
+ 774, 771, 771, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 781, 781, 781, 779, 779,
+ 779, 782, 773, 774, 774, 774, 774, 771, 774, 774,
+
+ 771, 771, 774, 774, 771, 771, 774, 774, 774, 774,
+ 774, 774, 771, 774, 774, 774, 774, 774, 771, 783,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 781, 781, 781, 784, 779, 779, 779, 782,
+ 771, 773, 774, 774, 774, 774, 771, 771, 771, 771,
+ 774, 774, 771, 771, 774, 774, 774, 774, 774, 771,
+ 774, 771, 774, 774, 774, 771, 771, 783, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 781, 781,
+ 781, 784, 779, 779, 779, 773, 774, 774, 771, 771,
+
+ 771, 771, 774, 774, 771, 771, 774, 774, 774, 771,
+ 774, 771, 774, 774, 771, 771, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 781, 781, 781, 785, 779, 779, 774, 774, 786, 771,
+ 771, 774, 771, 771, 774, 774, 771, 771, 774, 771,
+ 771, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 787, 781, 781, 785, 779,
+ 779, 774, 774, 771, 786, 771, 771, 774, 771, 774,
+
+ 771, 774, 771, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 787, 781, 781, 779,
+ 779, 774, 771, 774, 771, 774, 771, 771, 780, 780,
+ 780, 780, 780, 780, 780, 771, 788, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 781, 781, 779, 779, 774, 771,
+ 771, 771, 780, 780, 780, 780, 780, 780, 788, 771,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 781, 781,
+
+ 779, 779, 774, 771, 771, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 781, 781, 779, 779, 779, 779, 779, 774,
+ 771, 771, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 781, 781, 781, 781,
+ 781, 779, 779, 779, 779, 779, 774, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 781,
+
+ 781, 781, 781, 781, 779, 779, 779, 779, 789, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 781, 781, 781, 781, 790, 779, 779, 779, 779,
+ 789, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 781, 781, 781, 781, 790, 779, 779, 779,
+ 779, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 780, 780, 780, 780, 780, 780, 781, 781, 781, 781,
+ 779, 779, 779, 779, 780, 780, 780, 780, 780, 780,
+
+ 780, 781, 781, 781, 781, 791, 779, 779, 779, 780,
+ 780, 780, 780, 780, 780, 780, 792, 781, 781, 781,
+ 791, 779, 793, 794, 780, 780, 780, 780, 792, 781,
+ 795, 796, 779, 793, 794, 780, 780, 780, 780, 781,
+ 795, 796, 779, 780, 780, 780, 780, 781, 797, 780,
+ 780, 780, 798, 797, 780, 780, 780, 798, 780, 780,
+ 780, 780, 780, 780, 780, 780, 780, 780, 780, 780,
+ 0, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771
+
+ } ;
+
+static yyconst flex_int16_t yy_nxt[1788] =
+ { 0,
+ 4, 5, 6, 5, 5, 7, 4, 8, 8, 8,
+ 8, 8, 9, 10, 10, 10, 10, 10, 10, 10,
+ 10, 8, 8, 11, 11, 11, 11, 11, 11, 11,
+ 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
+ 11, 11, 12, 11, 11, 11, 13, 14, 15, 11,
+ 16, 17, 18, 11, 19, 11, 11, 20, 11, 11,
+ 21, 11, 11, 22, 23, 11, 24, 11, 25, 26,
+ 11, 11, 11, 27, 28, 29, 27, 33, 30, 34,
+ 41, 41, 41, 41, 31, 35, 35, 35, 35, 35,
+ 35, 35, 35, 40, 43, 39, 39, 39, 39, 39,
+
+ 39, 39, 39, 39, 46, 39, 57, 58, 47, 39,
+ 45, 48, 49, 52, 50, 44, 54, 59, 53, 51,
+ 37, 39, 55, 60, 39, 56, 64, 65, 65, 64,
+ 61, 33, 72, 69, 43, 73, 62, 66, 39, 79,
+ 63, 35, 35, 35, 35, 35, 35, 35, 35, 43,
+ 77, 39, 82, 37, 39, 39, 41, 41, 41, 41,
+ 74, 74, 74, 74, 39, 80, 39, 81, 39, 39,
+ 39, 39, 39, 39, 39, 139, 37, 39, 39, 78,
+ 85, 39, 88, 89, 84, 39, 94, 87, 83, 90,
+ 39, 86, 91, 92, 39, 39, 39, 39, 101, 95,
+
+ 103, 93, 139, 39, 37, 97, 76, 39, 98, 111,
+ 39, 112, 96, 64, 65, 65, 64, 106, 102, 74,
+ 74, 74, 74, 105, 66, 74, 74, 74, 74, 39,
+ 39, 39, 39, 39, 39, 39, 39, 39, 113, 39,
+ 39, 107, 114, 114, 114, 114, 117, 108, 39, 109,
+ 110, 39, 118, 39, 123, 39, 120, 119, 39, 39,
+ 121, 141, 146, 127, 125, 76, 149, 143, 122, 43,
+ 39, 76, 124, 37, 39, 147, 39, 126, 39, 39,
+ 39, 142, 144, 39, 39, 148, 39, 163, 151, 39,
+ 39, 153, 159, 150, 39, 152, 139, 155, 139, 154,
+
+ 178, 115, 114, 114, 114, 114, 139, 116, 129, 158,
+ 176, 130, 131, 132, 39, 133, 39, 164, 39, 134,
+ 39, 170, 222, 135, 136, 165, 137, 138, 160, 160,
+ 160, 160, 139, 39, 39, 39, 39, 167, 139, 168,
+ 139, 139, 166, 139, 169, 172, 172, 172, 172, 139,
+ 139, 139, 173, 174, 177, 180, 171, 139, 179, 185,
+ 183, 156, 186, 175, 189, 182, 193, 157, 190, 181,
+ 194, 195, 184, 196, 197, 39, 198, 187, 37, 39,
+ 139, 39, 39, 39, 161, 39, 200, 162, 39, 39,
+ 199, 39, 39, 203, 160, 160, 160, 160, 39, 39,
+
+ 39, 139, 207, 39, 204, 39, 39, 39, 211, 212,
+ 139, 215, 39, 208, 213, 213, 213, 213, 209, 210,
+ 39, 39, 39, 218, 216, 221, 217, 172, 172, 172,
+ 172, 139, 139, 225, 173, 219, 219, 219, 219, 139,
+ 139, 139, 246, 139, 220, 139, 223, 228, 139, 139,
+ 205, 224, 232, 206, 230, 242, 139, 243, 226, 227,
+ 244, 39, 231, 233, 229, 37, 245, 234, 39, 39,
+ 214, 39, 39, 39, 39, 251, 39, 247, 247, 247,
+ 247, 39, 39, 39, 39, 39, 252, 257, 258, 753,
+ 255, 213, 213, 213, 213, 256, 39, 139, 261, 139,
+
+ 271, 259, 262, 262, 262, 262, 39, 139, 265, 269,
+ 139, 264, 219, 219, 219, 219, 266, 266, 266, 266,
+ 277, 220, 270, 272, 267, 273, 284, 139, 274, 139,
+ 139, 275, 139, 139, 276, 139, 296, 139, 285, 288,
+ 366, 287, 278, 297, 37, 248, 298, 260, 39, 39,
+ 139, 279, 263, 280, 286, 281, 282, 39, 39, 283,
+ 247, 247, 247, 247, 39, 139, 139, 304, 39, 39,
+ 302, 302, 302, 302, 39, 308, 307, 39, 326, 309,
+ 39, 314, 139, 311, 262, 262, 262, 262, 313, 266,
+ 266, 266, 266, 315, 315, 315, 315, 267, 139, 318,
+
+ 316, 266, 266, 266, 266, 139, 139, 139, 320, 267,
+ 317, 139, 139, 321, 139, 139, 139, 39, 139, 323,
+ 139, 327, 139, 329, 328, 319, 139, 139, 248, 303,
+ 139, 322, 324, 325, 312, 331, 139, 333, 139, 340,
+ 334, 347, 339, 335, 139, 330, 332, 336, 39, 369,
+ 337, 139, 338, 302, 302, 302, 302, 139, 302, 302,
+ 302, 302, 139, 352, 39, 749, 354, 354, 354, 354,
+ 39, 39, 359, 139, 356, 315, 315, 315, 315, 139,
+ 362, 363, 316, 360, 360, 360, 360, 139, 139, 139,
+ 367, 365, 368, 139, 139, 371, 364, 139, 370, 139,
+
+ 372, 139, 139, 139, 139, 384, 376, 374, 139, 373,
+ 139, 139, 350, 39, 139, 380, 381, 350, 382, 375,
+ 378, 377, 355, 139, 379, 393, 385, 392, 139, 39,
+ 39, 394, 394, 394, 394, 139, 139, 39, 383, 354,
+ 354, 354, 354, 398, 39, 139, 39, 354, 354, 354,
+ 354, 361, 396, 139, 402, 139, 139, 139, 400, 360,
+ 360, 360, 360, 139, 410, 139, 409, 404, 405, 406,
+ 408, 139, 139, 407, 139, 411, 139, 139, 139, 139,
+ 139, 414, 415, 139, 139, 412, 139, 416, 139, 418,
+ 139, 413, 139, 421, 139, 399, 426, 432, 417, 419,
+
+ 39, 39, 420, 399, 139, 424, 423, 422, 439, 425,
+ 394, 394, 394, 394, 394, 394, 394, 394, 39, 436,
+ 139, 139, 139, 139, 440, 434, 139, 361, 441, 443,
+ 139, 396, 139, 446, 139, 396, 139, 447, 442, 139,
+ 139, 139, 450, 139, 444, 139, 139, 445, 139, 455,
+ 448, 449, 139, 139, 139, 452, 139, 451, 453, 454,
+ 456, 461, 457, 460, 105, 458, 459, 469, 139, 473,
+ 474, 464, 462, 463, 475, 39, 139, 139, 139, 139,
+ 139, 139, 481, 446, 139, 139, 477, 447, 139, 483,
+ 139, 139, 139, 488, 139, 476, 139, 478, 484, 486,
+
+ 482, 489, 490, 139, 497, 485, 139, 509, 493, 487,
+ 494, 139, 510, 495, 496, 503, 139, 139, 491, 506,
+ 139, 139, 139, 517, 492, 529, 139, 139, 498, 504,
+ 504, 504, 504, 139, 139, 508, 39, 139, 505, 139,
+ 516, 507, 139, 511, 512, 513, 139, 514, 139, 519,
+ 520, 521, 522, 525, 523, 528, 526, 527, 139, 530,
+ 518, 139, 515, 139, 139, 532, 535, 536, 540, 524,
+ 748, 139, 504, 504, 504, 504, 139, 139, 39, 531,
+ 537, 505, 139, 139, 139, 139, 541, 541, 543, 541,
+ 139, 545, 548, 544, 542, 139, 546, 139, 547, 549,
+
+ 550, 551, 139, 552, 557, 139, 139, 538, 553, 139,
+ 554, 139, 556, 139, 139, 139, 139, 558, 139, 555,
+ 559, 560, 139, 561, 562, 563, 139, 139, 139, 567,
+ 568, 139, 577, 139, 139, 139, 139, 566, 139, 139,
+ 743, 564, 565, 569, 579, 39, 541, 541, 578, 541,
+ 580, 740, 139, 620, 542, 581, 139, 139, 139, 139,
+ 583, 582, 139, 584, 139, 585, 139, 586, 139, 139,
+ 570, 587, 139, 139, 139, 589, 139, 591, 590, 139,
+ 592, 139, 593, 139, 594, 139, 588, 139, 595, 139,
+ 597, 139, 596, 610, 139, 139, 139, 611, 139, 615,
+
+ 139, 139, 598, 616, 617, 599, 139, 139, 139, 618,
+ 139, 622, 613, 612, 139, 614, 139, 139, 139, 624,
+ 625, 626, 139, 139, 629, 619, 627, 621, 139, 139,
+ 631, 623, 630, 644, 139, 139, 642, 139, 139, 628,
+ 139, 139, 643, 139, 139, 139, 139, 139, 139, 660,
+ 139, 139, 139, 139, 139, 645, 139, 139, 646, 139,
+ 139, 647, 648, 649, 650, 651, 652, 653, 654, 139,
+ 139, 655, 139, 656, 657, 659, 658, 139, 661, 139,
+ 672, 139, 139, 139, 139, 139, 139, 139, 733, 662,
+ 139, 139, 139, 673, 732, 139, 675, 676, 677, 678,
+
+ 686, 680, 681, 674, 685, 679, 682, 683, 139, 139,
+ 139, 684, 139, 139, 139, 139, 700, 139, 701, 696,
+ 139, 139, 712, 139, 139, 139, 695, 698, 697, 139,
+ 716, 699, 139, 139, 139, 710, 139, 728, 726, 711,
+ 714, 139, 713, 715, 139, 725, 727, 139, 738, 139,
+ 139, 737, 139, 745, 139, 746, 750, 139, 139, 736,
+ 751, 731, 139, 139, 744, 139, 739, 747, 139, 139,
+ 139, 752, 139, 755, 757, 139, 139, 139, 759, 756,
+ 762, 760, 139, 139, 139, 763, 766, 139, 767, 139,
+ 139, 730, 761, 768, 139, 139, 139, 139, 764, 724,
+
+ 139, 723, 722, 765, 720, 719, 769, 718, 717, 770,
+ 32, 32, 32, 709, 32, 32, 32, 32, 32, 32,
+ 36, 36, 708, 36, 38, 38, 707, 38, 42, 42,
+ 706, 705, 704, 42, 67, 67, 67, 67, 67, 67,
+ 67, 67, 67, 67, 71, 71, 703, 71, 71, 71,
+ 71, 71, 71, 71, 75, 75, 702, 139, 75, 75,
+ 139, 139, 75, 100, 100, 139, 100, 100, 100, 100,
+ 100, 100, 100, 128, 128, 139, 128, 140, 140, 139,
+ 140, 140, 140, 140, 140, 140, 140, 240, 240, 240,
+ 240, 240, 240, 240, 240, 240, 240, 268, 268, 139,
+
+ 268, 268, 268, 139, 268, 292, 292, 292, 292, 292,
+ 292, 292, 292, 292, 292, 389, 389, 694, 389, 389,
+ 389, 389, 389, 389, 389, 395, 395, 693, 692, 395,
+ 395, 395, 395, 427, 427, 691, 427, 427, 427, 427,
+ 427, 427, 427, 479, 479, 479, 479, 479, 479, 479,
+ 479, 479, 479, 641, 641, 690, 641, 641, 641, 641,
+ 641, 641, 641, 667, 667, 689, 667, 667, 667, 667,
+ 667, 667, 667, 721, 721, 688, 721, 721, 721, 721,
+ 721, 721, 721, 729, 729, 687, 729, 729, 729, 729,
+ 729, 729, 729, 734, 734, 139, 734, 734, 734, 734,
+
+ 734, 734, 734, 735, 735, 139, 735, 735, 735, 735,
+ 735, 735, 735, 741, 741, 139, 741, 741, 741, 741,
+ 741, 741, 741, 742, 742, 139, 742, 742, 742, 742,
+ 742, 742, 742, 754, 754, 139, 754, 754, 754, 754,
+ 754, 754, 754, 758, 758, 139, 758, 758, 758, 758,
+ 758, 758, 758, 671, 670, 669, 668, 666, 665, 664,
+ 663, 139, 640, 639, 638, 637, 636, 635, 634, 633,
+ 632, 139, 39, 609, 608, 607, 606, 605, 604, 603,
+ 602, 601, 600, 139, 139, 576, 575, 574, 573, 572,
+ 571, 139, 139, 139, 539, 534, 533, 139, 139, 139,
+
+ 139, 139, 139, 480, 502, 501, 500, 499, 139, 139,
+ 480, 139, 472, 39, 471, 39, 470, 468, 467, 466,
+ 465, 139, 438, 39, 437, 435, 433, 39, 431, 430,
+ 429, 428, 139, 403, 401, 39, 397, 391, 390, 388,
+ 387, 386, 39, 358, 39, 357, 39, 353, 39, 351,
+ 349, 348, 37, 346, 345, 344, 241, 343, 342, 341,
+ 39, 310, 39, 39, 306, 305, 301, 300, 299, 39,
+ 39, 241, 295, 294, 293, 241, 291, 290, 289, 39,
+ 39, 254, 253, 250, 249, 39, 39, 241, 239, 238,
+ 237, 236, 235, 202, 201, 39, 39, 192, 191, 188,
+
+ 139, 39, 39, 145, 104, 68, 99, 39, 37, 70,
+ 68, 39, 771, 3, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771
+ } ;
+
+static yyconst flex_int16_t yy_chk[1788] =
+ { 0,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 2, 2, 2, 2, 9, 2, 9,
+ 13, 13, 13, 13, 2, 10, 10, 10, 10, 10,
+ 10, 10, 10, 12, 15, 16, 17, 18, 24, 20,
+
+ 22, 12, 19, 21, 17, 23, 24, 24, 17, 25,
+ 16, 17, 18, 20, 19, 15, 22, 24, 21, 19,
+ 10, 26, 23, 25, 45, 23, 27, 27, 27, 27,
+ 26, 31, 37, 31, 39, 40, 26, 27, 48, 45,
+ 26, 35, 35, 35, 35, 35, 35, 35, 35, 44,
+ 43, 40, 48, 37, 43, 39, 41, 41, 41, 41,
+ 42, 42, 42, 42, 46, 46, 47, 47, 49, 50,
+ 44, 51, 52, 53, 55, 770, 35, 54, 57, 44,
+ 51, 60, 54, 55, 50, 59, 59, 53, 49, 55,
+ 56, 52, 56, 57, 58, 61, 62, 63, 69, 60,
+
+ 72, 58, 764, 78, 72, 62, 42, 83, 63, 83,
+ 84, 84, 61, 64, 64, 64, 64, 78, 69, 74,
+ 74, 74, 74, 77, 64, 75, 75, 75, 75, 79,
+ 80, 81, 82, 85, 77, 88, 89, 90, 85, 87,
+ 93, 79, 86, 86, 86, 86, 87, 80, 91, 81,
+ 82, 92, 88, 94, 93, 95, 90, 89, 96, 97,
+ 91, 99, 103, 97, 95, 74, 105, 101, 92, 104,
+ 109, 75, 94, 103, 106, 104, 110, 96, 105, 111,
+ 112, 99, 101, 113, 116, 104, 118, 118, 109, 86,
+ 104, 111, 116, 106, 115, 110, 133, 113, 131, 112,
+
+ 133, 86, 114, 114, 114, 114, 175, 86, 98, 115,
+ 131, 98, 98, 98, 125, 98, 119, 119, 122, 98,
+ 120, 125, 175, 98, 98, 120, 98, 98, 117, 117,
+ 117, 117, 98, 121, 123, 124, 126, 122, 129, 123,
+ 130, 136, 121, 134, 124, 127, 127, 127, 127, 132,
+ 135, 137, 127, 129, 132, 135, 126, 138, 134, 139,
+ 137, 114, 141, 130, 143, 136, 146, 114, 143, 135,
+ 147, 148, 138, 149, 150, 117, 151, 141, 146, 158,
+ 139, 148, 155, 149, 117, 153, 155, 117, 161, 159,
+ 153, 147, 127, 158, 160, 160, 160, 160, 162, 163,
+
+ 164, 761, 161, 150, 159, 165, 166, 168, 165, 166,
+ 174, 168, 170, 162, 167, 167, 167, 167, 163, 164,
+ 151, 169, 171, 171, 169, 174, 170, 172, 172, 172,
+ 172, 176, 177, 178, 172, 173, 173, 173, 173, 179,
+ 180, 178, 197, 181, 173, 184, 176, 181, 182, 183,
+ 160, 177, 185, 160, 183, 193, 185, 194, 179, 180,
+ 195, 167, 184, 186, 182, 193, 196, 186, 203, 204,
+ 167, 207, 209, 197, 196, 203, 194, 198, 198, 198,
+ 198, 208, 211, 210, 214, 195, 204, 209, 210, 748,
+ 207, 213, 213, 213, 213, 208, 218, 221, 214, 223,
+
+ 223, 211, 215, 215, 215, 215, 217, 222, 218, 221,
+ 225, 217, 219, 219, 219, 219, 220, 220, 220, 220,
+ 226, 219, 222, 224, 220, 224, 228, 226, 224, 231,
+ 321, 224, 230, 229, 225, 228, 242, 224, 229, 232,
+ 321, 231, 227, 243, 242, 198, 244, 213, 252, 215,
+ 232, 227, 215, 227, 230, 227, 227, 244, 257, 227,
+ 247, 247, 247, 247, 261, 227, 278, 252, 243, 256,
+ 251, 251, 251, 251, 259, 257, 256, 264, 278, 259,
+ 263, 264, 270, 261, 262, 262, 262, 262, 263, 266,
+ 266, 266, 266, 267, 267, 267, 267, 266, 747, 270,
+
+ 267, 268, 268, 268, 268, 269, 271, 272, 272, 268,
+ 269, 273, 274, 273, 275, 277, 276, 251, 281, 275,
+ 279, 279, 280, 281, 280, 271, 282, 284, 247, 251,
+ 283, 274, 276, 277, 262, 283, 286, 285, 287, 288,
+ 285, 297, 287, 285, 324, 282, 284, 285, 303, 324,
+ 285, 288, 286, 300, 300, 300, 300, 285, 302, 302,
+ 302, 302, 318, 303, 297, 743, 307, 307, 307, 307,
+ 309, 313, 313, 322, 309, 315, 315, 315, 315, 317,
+ 317, 318, 315, 316, 316, 316, 316, 319, 320, 323,
+ 322, 320, 323, 325, 326, 326, 319, 327, 325, 328,
+
+ 327, 329, 330, 331, 332, 339, 331, 329, 333, 328,
+ 334, 336, 300, 307, 335, 335, 336, 302, 337, 330,
+ 333, 332, 307, 338, 334, 348, 340, 347, 339, 352,
+ 347, 349, 349, 349, 349, 337, 340, 359, 338, 353,
+ 353, 353, 353, 352, 355, 368, 348, 354, 354, 354,
+ 354, 316, 349, 362, 359, 364, 365, 367, 355, 360,
+ 360, 360, 360, 363, 368, 366, 367, 362, 363, 364,
+ 366, 370, 371, 365, 372, 370, 373, 374, 375, 376,
+ 377, 373, 374, 379, 378, 371, 381, 375, 383, 377,
+ 380, 372, 382, 380, 384, 353, 385, 393, 376, 378,
+
+ 400, 393, 379, 354, 385, 383, 382, 381, 404, 384,
+ 394, 394, 394, 394, 395, 395, 395, 395, 398, 400,
+ 405, 406, 404, 407, 405, 398, 408, 360, 406, 408,
+ 409, 394, 410, 411, 412, 395, 413, 411, 407, 414,
+ 415, 416, 414, 417, 409, 418, 421, 410, 419, 419,
+ 412, 413, 422, 423, 424, 416, 425, 415, 417, 418,
+ 420, 422, 420, 421, 432, 420, 420, 432, 439, 439,
+ 440, 425, 423, 424, 441, 432, 443, 411, 440, 444,
+ 445, 450, 448, 446, 451, 441, 444, 446, 453, 451,
+ 455, 452, 454, 456, 420, 443, 448, 445, 452, 454,
+
+ 450, 457, 458, 460, 463, 453, 461, 476, 462, 455,
+ 462, 464, 477, 462, 462, 469, 473, 474, 460, 473,
+ 475, 476, 456, 482, 461, 494, 477, 463, 464, 472,
+ 472, 472, 472, 458, 457, 475, 469, 482, 472, 481,
+ 481, 474, 462, 478, 478, 478, 483, 478, 492, 484,
+ 485, 485, 485, 487, 485, 493, 487, 492, 494, 495,
+ 483, 498, 478, 484, 497, 498, 501, 501, 503, 485,
+ 740, 506, 504, 504, 504, 504, 478, 507, 503, 497,
+ 501, 504, 508, 485, 493, 487, 505, 505, 506, 505,
+ 495, 508, 511, 507, 505, 509, 509, 510, 510, 512,
+
+ 513, 514, 515, 515, 520, 516, 511, 501, 516, 517,
+ 517, 519, 519, 512, 513, 514, 518, 521, 520, 518,
+ 522, 523, 524, 524, 525, 526, 527, 531, 532, 533,
+ 533, 521, 540, 543, 522, 523, 545, 532, 588, 544,
+ 733, 527, 531, 533, 544, 540, 541, 541, 543, 541,
+ 545, 730, 546, 588, 541, 546, 526, 525, 547, 548,
+ 548, 547, 549, 549, 550, 550, 551, 551, 552, 553,
+ 533, 552, 554, 555, 556, 554, 564, 556, 555, 557,
+ 557, 558, 558, 559, 559, 565, 553, 560, 560, 561,
+ 564, 566, 561, 579, 580, 581, 583, 579, 582, 583,
+
+ 584, 585, 565, 584, 585, 566, 586, 579, 587, 586,
+ 589, 590, 581, 580, 591, 582, 592, 593, 594, 592,
+ 593, 594, 596, 595, 597, 587, 595, 589, 598, 599,
+ 599, 591, 598, 612, 590, 610, 610, 611, 597, 596,
+ 613, 612, 611, 614, 615, 616, 617, 618, 629, 629,
+ 619, 621, 622, 623, 624, 613, 625, 626, 614, 627,
+ 628, 615, 616, 617, 618, 619, 621, 622, 623, 630,
+ 631, 624, 643, 625, 626, 628, 627, 642, 630, 644,
+ 642, 647, 648, 649, 650, 653, 655, 656, 722, 631,
+ 661, 657, 658, 643, 720, 662, 647, 648, 649, 650,
+
+ 662, 655, 656, 644, 661, 653, 657, 658, 660, 672,
+ 673, 660, 674, 679, 684, 685, 685, 697, 686, 673,
+ 695, 696, 697, 698, 700, 699, 672, 679, 674, 701,
+ 701, 684, 686, 713, 716, 695, 711, 716, 713, 696,
+ 699, 715, 698, 700, 725, 711, 715, 726, 727, 728,
+ 736, 726, 739, 737, 738, 738, 744, 752, 745, 725,
+ 745, 719, 727, 759, 736, 737, 728, 739, 746, 751,
+ 744, 746, 750, 750, 752, 755, 756, 757, 755, 751,
+ 759, 756, 760, 762, 763, 760, 765, 766, 766, 768,
+ 767, 718, 757, 767, 769, 714, 712, 710, 762, 709,
+
+ 765, 708, 707, 763, 705, 704, 768, 703, 702, 769,
+ 772, 772, 772, 694, 772, 772, 772, 772, 772, 772,
+ 773, 773, 693, 773, 774, 774, 692, 774, 775, 775,
+ 691, 690, 689, 775, 776, 776, 776, 776, 776, 776,
+ 776, 776, 776, 776, 777, 777, 688, 777, 777, 777,
+ 777, 777, 777, 777, 778, 778, 687, 683, 778, 778,
+ 682, 681, 778, 779, 779, 680, 779, 779, 779, 779,
+ 779, 779, 779, 780, 780, 678, 780, 781, 781, 677,
+ 781, 781, 781, 781, 781, 781, 781, 782, 782, 782,
+ 782, 782, 782, 782, 782, 782, 782, 783, 783, 676,
+
+ 783, 783, 783, 675, 783, 784, 784, 784, 784, 784,
+ 784, 784, 784, 784, 784, 785, 785, 671, 785, 785,
+ 785, 785, 785, 785, 785, 786, 786, 670, 669, 786,
+ 786, 786, 786, 787, 787, 668, 787, 787, 787, 787,
+ 787, 787, 787, 788, 788, 788, 788, 788, 788, 788,
+ 788, 788, 788, 789, 789, 666, 789, 789, 789, 789,
+ 789, 789, 789, 790, 790, 665, 790, 790, 790, 790,
+ 790, 790, 790, 791, 791, 664, 791, 791, 791, 791,
+ 791, 791, 791, 792, 792, 663, 792, 792, 792, 792,
+ 792, 792, 792, 793, 793, 659, 793, 793, 793, 793,
+
+ 793, 793, 793, 794, 794, 654, 794, 794, 794, 794,
+ 794, 794, 794, 795, 795, 652, 795, 795, 795, 795,
+ 795, 795, 795, 796, 796, 651, 796, 796, 796, 796,
+ 796, 796, 796, 797, 797, 646, 797, 797, 797, 797,
+ 797, 797, 797, 798, 798, 645, 798, 798, 798, 798,
+ 798, 798, 798, 640, 639, 638, 637, 635, 634, 633,
+ 632, 620, 608, 607, 606, 605, 604, 603, 602, 601,
+ 600, 578, 577, 576, 575, 574, 573, 572, 571, 570,
+ 569, 568, 567, 563, 562, 539, 538, 537, 536, 535,
+ 534, 530, 529, 528, 502, 500, 499, 496, 491, 490,
+
+ 489, 488, 486, 479, 468, 467, 466, 465, 459, 449,
+ 447, 442, 438, 436, 435, 434, 433, 431, 430, 429,
+ 428, 426, 403, 402, 401, 399, 397, 392, 391, 390,
+ 388, 387, 369, 361, 358, 356, 350, 346, 345, 343,
+ 342, 341, 314, 312, 311, 310, 308, 306, 304, 301,
+ 299, 298, 296, 295, 294, 293, 292, 291, 290, 289,
+ 265, 260, 258, 255, 254, 253, 250, 249, 248, 246,
+ 245, 240, 239, 238, 237, 236, 235, 234, 233, 216,
+ 212, 206, 205, 202, 201, 200, 199, 192, 191, 190,
+ 189, 188, 187, 157, 156, 154, 152, 145, 144, 142,
+
+ 128, 108, 107, 102, 73, 67, 66, 38, 36, 32,
+ 30, 11, 3, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771, 771, 771, 771,
+ 771, 771, 771, 771, 771, 771, 771
+ } ;
+
+/* Table of booleans, true if rule could match eol. */
+static yyconst flex_int32_t yy_rule_can_match_eol[95] =
+ { 0,
+0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, };
+
+static yy_state_type yy_last_accepting_state;
+static char *yy_last_accepting_cpos;
+
+extern int yy_flex_debug;
+int yy_flex_debug = 0;
+
+/* The intent behind this definition is that it'll catch
+ * any uses of REJECT which flex missed.
+ */
+#define REJECT reject_used_but_not_detected
+#define yymore() yymore_used_but_not_detected
+#define YY_MORE_ADJ 0
+#define YY_RESTORE_YY_MORE_OFFSET
+char *yytext;
+#line 1 "vtkParse.l"
+#line 3 "vtkParse.l"
+
+/*
+
+This file must be translated to C and modified to build everywhere.
+
+Run flex like this:
+
+ flex -olex.yy.c vtkParse.l
+
+Modify lex.yy.c:
+ - remove yyunput function
+ - remove TABs
+ - change yy_n_chars declarations from "int yy_n_chars;" to
+ "size_t yy_n_chars;" in both the yy_buffer_state structure
+ and the global scope.
+ - change num_to_read declaration from "int num_to_read;" to
+ "size_t num_to_read;" in yy_get_next_buffer function.
+
+*/
+
+/* We do not care of interactive mode */
+#define YY_NEVER_INTERACTIVE 1
+#define YY_NO_UNPUT 1
+
+/* Do not include unistd.h in generated source. */
+#define YY_NO_UNISTD_H
+
+/* Skip declaring this function. It is a macro. */
+#define YY_SKIP_YYWRAP
+
+#ifdef _WIN32
+#pragma warning ( disable : 4018 )
+#pragma warning ( disable : 4127 )
+#pragma warning ( disable : 4131 )
+#pragma warning ( disable : 4244 )
+#pragma warning ( disable : 4251 )
+#pragma warning ( disable : 4267 )
+#pragma warning ( disable : 4305 )
+#pragma warning ( disable : 4309 )
+#pragma warning ( disable : 4706 )
+#pragma warning ( disable : 4786 )
+#endif
+
+#line 1179 "lex.yy.c"
+
+#define INITIAL 0
+
+#ifndef YY_NO_UNISTD_H
+/* Special case for "unistd.h", since it is non-ANSI. We include it way
+ * down here because we want the user's section 1 to have been scanned first.
+ * The user has a chance to override it with an option.
+ */
+#include <unistd.h>
+#endif
+
+#ifndef YY_EXTRA_TYPE
+#define YY_EXTRA_TYPE void *
+#endif
+
+static int yy_init_globals (void );
+
+/* Accessor methods to globals.
+ These are made visible to non-reentrant scanners for convenience. */
+
+int yylex_destroy (void );
+
+int yyget_debug (void );
+
+void yyset_debug (int debug_flag );
+
+YY_EXTRA_TYPE yyget_extra (void );
+
+void yyset_extra (YY_EXTRA_TYPE user_defined );
+
+FILE *yyget_in (void );
+
+void yyset_in (FILE * in_str );
+
+FILE *yyget_out (void );
+
+void yyset_out (FILE * out_str );
+
+int yyget_leng (void );
+
+char *yyget_text (void );
+
+int yyget_lineno (void );
+
+void yyset_lineno (int line_number );
+
+/* Macros after this point can all be overridden by user definitions in
+ * section 1.
+ */
+
+#ifndef YY_SKIP_YYWRAP
+#ifdef __cplusplus
+extern "C" int yywrap (void );
+#else
+extern int yywrap (void );
+#endif
+#endif
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy (char *,yyconst char *,int );
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen (yyconst char * );
+#endif
+
+#ifndef YY_NO_INPUT
+
+#ifdef __cplusplus
+static int yyinput (void );
+#else
+static int input (void );
+#endif
+
+#endif
+
+/* Amount of stuff to slurp up with each read. */
+#ifndef YY_READ_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k */
+#define YY_READ_BUF_SIZE 16384
+#else
+#define YY_READ_BUF_SIZE 8192
+#endif /* __ia64__ */
+#endif
+
+/* Copy whatever the last rule matched to the standard output. */
+#ifndef ECHO
+/* This used to be an fputs(), but since the string might contain NUL's,
+ * we now use fwrite().
+ */
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
+#endif
+
+/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
+ * is returned in "result".
+ */
+#ifndef YY_INPUT
+#define YY_INPUT(buf,result,max_size) \
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
+ { \
+ int c = '*'; \
+ size_t n; \
+ for ( n = 0; n < max_size && \
+ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
+ buf[n] = (char) c; \
+ if ( c == '\n' ) \
+ buf[n++] = (char) c; \
+ if ( c == EOF && ferror( yyin ) ) \
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ result = n; \
+ } \
+ else \
+ { \
+ errno=0; \
+ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
+ { \
+ if( errno != EINTR) \
+ { \
+ YY_FATAL_ERROR( "input in flex scanner failed" ); \
+ break; \
+ } \
+ errno=0; \
+ clearerr(yyin); \
+ } \
+ }\
+\
+
+#endif
+
+/* No semi-colon after return; correct usage is to write "yyterminate();" -
+ * we don't want an extra ';' after the "return" because that will cause
+ * some compilers to complain about unreachable statements.
+ */
+#ifndef yyterminate
+#define yyterminate() return YY_NULL
+#endif
+
+/* Number of entries by which start-condition stack grows. */
+#ifndef YY_START_STACK_INCR
+#define YY_START_STACK_INCR 25
+#endif
+
+/* Report a fatal error. */
+#ifndef YY_FATAL_ERROR
+#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
+#endif
+
+/* end tables serialization structures and prototypes */
+
+/* Default declaration of generated scanner - a define so the user can
+ * easily add parameters.
+ */
+#ifndef YY_DECL
+#define YY_DECL_IS_OURS 1
+
+extern int yylex (void);
+
+#define YY_DECL int yylex (void)
+#endif /* !YY_DECL */
+
+/* Code executed at the beginning of each rule, after yytext and yyleng
+ * have been set up.
+ */
+#ifndef YY_USER_ACTION
+#define YY_USER_ACTION
+#endif
+
+/* Code executed at the end of each rule. */
+#ifndef YY_BREAK
+#define YY_BREAK break;
+#endif
+
+#define YY_RULE_SETUP \
+ if ( yyleng > 0 ) \
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
+ (yytext[yyleng - 1] == '\n'); \
+ YY_USER_ACTION
+
+/** The main scanner function which does all the work.
+ */
+YY_DECL
+{
+ register yy_state_type yy_current_state;
+ register char *yy_cp, *yy_bp;
+ register int yy_act;
+
+#line 49 "vtkParse.l"
+
+
+#line 1372 "lex.yy.c"
+
+ if ( !(yy_init) )
+ {
+ (yy_init) = 1;
+
+#ifdef YY_USER_INIT
+ YY_USER_INIT;
+#endif
+
+ if ( ! (yy_start) )
+ (yy_start) = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! YY_CURRENT_BUFFER ) {
+ yyensure_buffer_stack ();
+ YY_CURRENT_BUFFER_LVALUE =
+ yy_create_buffer(yyin,YY_BUF_SIZE );
+ }
+
+ yy_load_buffer_state( );
+ }
+
+ while ( 1 ) /* loops until end-of-file is reached */
+ {
+ yy_cp = (yy_c_buf_p);
+
+ /* Support of yytext. */
+ *yy_cp = (yy_hold_char);
+
+ /* yy_bp points to the position in yy_ch_buf of the start of
+ * the current run.
+ */
+ yy_bp = yy_cp;
+
+ yy_current_state = (yy_start);
+ yy_current_state += YY_AT_BOL();
+yy_match:
+ do
+ {
+ register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 772 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ ++yy_cp;
+ }
+ while ( yy_base[yy_current_state] != 1714 );
+
+yy_find_action:
+ yy_act = yy_accept[yy_current_state];
+ if ( yy_act == 0 )
+ { /* have to back up */
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
+ yy_act = yy_accept[yy_current_state];
+ }
+
+ YY_DO_BEFORE_ACTION;
+
+ if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
+ {
+ int yyl;
+ for ( yyl = 0; yyl < yyleng; ++yyl )
+ if ( yytext[yyl] == '\n' )
+
+ yylineno++;
+;
+ }
+
+do_action: /* This label is used only to access EOF actions. */
+
+ switch ( yy_act )
+ { /* beginning of action switch */
+ case 0: /* must back up */
+ /* undo the effects of YY_DO_BEFORE_ACTION */
+ *yy_cp = (yy_hold_char);
+ yy_cp = (yy_last_accepting_cpos);
+ yy_current_state = (yy_last_accepting_state);
+ goto yy_find_action;
+
+case 1:
+YY_RULE_SETUP
+#line 51 "vtkParse.l"
+{ int c1 = 0, c2 = input();
+ for (;;)
+ {
+ if (c2 == 0)
+ {
+ fprintf(yyout,"Cannot find closing comment.\n");
+ break;
+ }
+ if (c1 == '*' && c2 == '/') break;
+ c1 = c2; c2 = input();
+ }
+ };
+ YY_BREAK
+case 2:
+*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
+(yy_c_buf_p) = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 64 "vtkParse.l"
+{
+ int c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = input();
+ for (;;)
+ {
+ if (c5 == 0)
+ {
+ fprintf(yyout,"Cannot find matching //ETX.\n");
+ break;
+ }
+ if (c1 == '/' && c2 == '/' && c3 == 'E' && c4 == 'T' && c5 == 'X') break;
+ c1 = c2; c2 = c3; c3 = c4; c4 = c5; c5 = input();
+ }
+ for (;;)
+ {
+ if (c5 == 0) break;
+ if (c5 == '\n') break;
+ c5 = input();
+ }
+ };
+ YY_BREAK
+case 3:
+YY_RULE_SETUP
+#line 84 "vtkParse.l"
+{
+ int pos = 1;
+ while (yytext[pos-1] != 'M' || yytext[pos] != 'E')
+ {
+ pos++;
+ }
+ yylval.str = (char *)malloc(yyleng + 1 - pos - 1);
+ memcpy(yylval.str,yytext+ pos + 1,yyleng - pos - 1);
+ yylval.str[yyleng - pos - 1] = '\0';
+ data.NameComment = vtkstrdup(yylval.str);
+ };
+ YY_BREAK
+case 4:
+YY_RULE_SETUP
+#line 96 "vtkParse.l"
+{
+ CommentState = 1;
+ data.Description = (char*)malloc(100000);
+ data.Description[0] = '\0';
+ };
+ YY_BREAK
+case 5:
+YY_RULE_SETUP
+#line 102 "vtkParse.l"
+{
+ CommentState = 3;
+ data.SeeAlso = (char*)malloc(100000);
+ data.SeeAlso[0] = '\0';
+ };
+ YY_BREAK
+case 6:
+YY_RULE_SETUP
+#line 108 "vtkParse.l"
+{
+ CommentState = 3;
+ data.SeeAlso = (char*)malloc(100000);
+ data.SeeAlso[0] = '\0';
+ };
+ YY_BREAK
+case 7:
+YY_RULE_SETUP
+#line 114 "vtkParse.l"
+{
+ CommentState = 4;
+ data.Caveats = (char*)malloc(100000);
+ data.Caveats[0] = '\0';
+ };
+ YY_BREAK
+case 8:
+YY_RULE_SETUP
+#line 120 "vtkParse.l"
+{
+ CommentState = 2;
+ HaveComment = 1;
+ CommentText[0] = '\0';
+ };
+ YY_BREAK
+case 9:
+/* rule 9 can match eol */
+YY_RULE_SETUP
+#line 126 "vtkParse.l"
+{
+ HaveComment = 0;
+ CommentState = 0;
+ };
+ YY_BREAK
+case 10:
+YY_RULE_SETUP
+#line 131 "vtkParse.l"
+{
+ int pos = 1;
+ while (yytext[pos-1] != '/' || yytext[pos] != '/') pos++;
+ yylval.str = (char *)malloc(yyleng + 1 - pos - 1 + 1);
+ memcpy(yylval.str,yytext+ pos + 1,yyleng - pos - 1);
+ yylval.str[yyleng - pos - 1] = '\n';
+ yylval.str[yyleng - pos] = '\0';
+ switch (CommentState)
+ {
+ case 1: strcat(data.Description,yylval.str); break;
+ case 2: strcat(CommentText,yylval.str); break;
+ case 3: strcat(data.SeeAlso,yylval.str); break;
+ case 4: strcat(data.Caveats,yylval.str); break;
+ }
+ };
+ YY_BREAK
+case 11:
+YY_RULE_SETUP
+#line 147 "vtkParse.l"
+;
+ YY_BREAK
+case 12:
+YY_RULE_SETUP
+#line 149 "vtkParse.l"
+;
+ YY_BREAK
+case 13:
+/* rule 13 can match eol */
+YY_RULE_SETUP
+#line 151 "vtkParse.l"
+;
+ YY_BREAK
+case 14:
+/* rule 14 can match eol */
+YY_RULE_SETUP
+#line 153 "vtkParse.l"
+{
+ sscanf(yytext+1,"%d",&yylval.integer); return(ARRAY_NUM);}
+ YY_BREAK
+case 15:
+/* rule 15 can match eol */
+YY_RULE_SETUP
+#line 157 "vtkParse.l"
+return(CLASS_REF);
+ YY_BREAK
+case 16:
+/* rule 16 can match eol */
+YY_RULE_SETUP
+#line 159 "vtkParse.l"
+return(VAR_FUNCTION);
+ YY_BREAK
+case 17:
+/* rule 17 can match eol */
+YY_RULE_SETUP
+#line 161 "vtkParse.l"
+return(SHORT);
+ YY_BREAK
+case 18:
+/* rule 18 can match eol */
+YY_RULE_SETUP
+#line 162 "vtkParse.l"
+return(LONG);
+ YY_BREAK
+case 19:
+/* rule 19 can match eol */
+YY_RULE_SETUP
+#line 163 "vtkParse.l"
+return(SHORT);
+ YY_BREAK
+case 20:
+/* rule 20 can match eol */
+YY_RULE_SETUP
+#line 164 "vtkParse.l"
+return(LONG);
+ YY_BREAK
+case 21:
+/* rule 21 can match eol */
+YY_RULE_SETUP
+#line 166 "vtkParse.l"
+return(LONG_LONG);
+ YY_BREAK
+case 22:
+/* rule 22 can match eol */
+YY_RULE_SETUP
+#line 167 "vtkParse.l"
+return(LONG_LONG);
+ YY_BREAK
+case 23:
+/* rule 23 can match eol */
+YY_RULE_SETUP
+#line 168 "vtkParse.l"
+return(LONG_LONG);
+ YY_BREAK
+case 24:
+YY_RULE_SETUP
+#line 170 "vtkParse.l"
+return(INT64__);
+ YY_BREAK
+case 25:
+/* rule 25 can match eol */
+YY_RULE_SETUP
+#line 172 "vtkParse.l"
+return(SIGNED_CHAR);
+ YY_BREAK
+case 26:
+YY_RULE_SETUP
+#line 174 "vtkParse.l"
+return(CLASS);
+ YY_BREAK
+case 27:
+YY_RULE_SETUP
+#line 175 "vtkParse.l"
+return(PUBLIC);
+ YY_BREAK
+case 28:
+YY_RULE_SETUP
+#line 176 "vtkParse.l"
+return(PRIVATE);
+ YY_BREAK
+case 29:
+YY_RULE_SETUP
+#line 177 "vtkParse.l"
+return(PROTECTED);
+ YY_BREAK
+case 30:
+YY_RULE_SETUP
+#line 178 "vtkParse.l"
+return(INT);
+ YY_BREAK
+case 31:
+YY_RULE_SETUP
+#line 179 "vtkParse.l"
+return(FLOAT);
+ YY_BREAK
+case 32:
+YY_RULE_SETUP
+#line 180 "vtkParse.l"
+return(SHORT);
+ YY_BREAK
+case 33:
+YY_RULE_SETUP
+#line 181 "vtkParse.l"
+return(LONG);
+ YY_BREAK
+case 34:
+YY_RULE_SETUP
+#line 182 "vtkParse.l"
+return(DOUBLE);
+ YY_BREAK
+case 35:
+YY_RULE_SETUP
+#line 183 "vtkParse.l"
+return(VOID);
+ YY_BREAK
+case 36:
+YY_RULE_SETUP
+#line 184 "vtkParse.l"
+return(CHAR);
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
+#line 185 "vtkParse.l"
+return(BOOL);
+ YY_BREAK
+case 38:
+YY_RULE_SETUP
+#line 186 "vtkParse.l"
+return(VIRTUAL);
+ YY_BREAK
+case 39:
+YY_RULE_SETUP
+#line 187 "vtkParse.l"
+return(CONST);
+ YY_BREAK
+case 40:
+YY_RULE_SETUP
+#line 188 "vtkParse.l"
+return(OPERATOR);
+ YY_BREAK
+case 41:
+YY_RULE_SETUP
+#line 189 "vtkParse.l"
+return(UNSIGNED);
+ YY_BREAK
+case 42:
+YY_RULE_SETUP
+#line 190 "vtkParse.l"
+return(FRIEND);
+ YY_BREAK
+case 43:
+YY_RULE_SETUP
+#line 191 "vtkParse.l"
+return(STATIC);
+ YY_BREAK
+case 44:
+YY_RULE_SETUP
+#line 193 "vtkParse.l"
+return(DOUBLE);
+ YY_BREAK
+case 45:
+YY_RULE_SETUP
+#line 194 "vtkParse.l"
+return(IdType);
+ YY_BREAK
+case 46:
+YY_RULE_SETUP
+#line 195 "vtkParse.l"
+return(StdString);
+ YY_BREAK
+case 47:
+YY_RULE_SETUP
+#line 196 "vtkParse.l"
+return(SetMacro);
+ YY_BREAK
+case 48:
+YY_RULE_SETUP
+#line 197 "vtkParse.l"
+return(GetMacro);
+ YY_BREAK
+case 49:
+YY_RULE_SETUP
+#line 198 "vtkParse.l"
+return(SetStringMacro);
+ YY_BREAK
+case 50:
+YY_RULE_SETUP
+#line 199 "vtkParse.l"
+return(GetStringMacro);
+ YY_BREAK
+case 51:
+YY_RULE_SETUP
+#line 200 "vtkParse.l"
+return(SetClampMacro);
+ YY_BREAK
+case 52:
+YY_RULE_SETUP
+#line 201 "vtkParse.l"
+return(SetObjectMacro);
+ YY_BREAK
+case 53:
+YY_RULE_SETUP
+#line 202 "vtkParse.l"
+return(SetReferenceCountedObjectMacro);
+ YY_BREAK
+case 54:
+YY_RULE_SETUP
+#line 203 "vtkParse.l"
+return(GetObjectMacro);
+ YY_BREAK
+case 55:
+YY_RULE_SETUP
+#line 204 "vtkParse.l"
+return(BooleanMacro);
+ YY_BREAK
+case 56:
+YY_RULE_SETUP
+#line 205 "vtkParse.l"
+return(SetVector2Macro);
+ YY_BREAK
+case 57:
+YY_RULE_SETUP
+#line 206 "vtkParse.l"
+return(SetVector3Macro);
+ YY_BREAK
+case 58:
+YY_RULE_SETUP
+#line 207 "vtkParse.l"
+return(SetVector4Macro);
+ YY_BREAK
+case 59:
+YY_RULE_SETUP
+#line 208 "vtkParse.l"
+return(SetVector6Macro);
+ YY_BREAK
+case 60:
+YY_RULE_SETUP
+#line 209 "vtkParse.l"
+return(GetVector2Macro);
+ YY_BREAK
+case 61:
+YY_RULE_SETUP
+#line 210 "vtkParse.l"
+return(GetVector3Macro);
+ YY_BREAK
+case 62:
+YY_RULE_SETUP
+#line 211 "vtkParse.l"
+return(GetVector4Macro);
+ YY_BREAK
+case 63:
+YY_RULE_SETUP
+#line 212 "vtkParse.l"
+return(GetVector6Macro);
+ YY_BREAK
+case 64:
+YY_RULE_SETUP
+#line 213 "vtkParse.l"
+return(SetVectorMacro);
+ YY_BREAK
+case 65:
+YY_RULE_SETUP
+#line 214 "vtkParse.l"
+return(GetVectorMacro);
+ YY_BREAK
+case 66:
+YY_RULE_SETUP
+#line 215 "vtkParse.l"
+return(ViewportCoordinateMacro);
+ YY_BREAK
+case 67:
+YY_RULE_SETUP
+#line 216 "vtkParse.l"
+return(WorldCoordinateMacro);
+ YY_BREAK
+case 68:
+YY_RULE_SETUP
+#line 217 "vtkParse.l"
+return(TypeMacro);
+ YY_BREAK
+case 69:
+YY_RULE_SETUP
+#line 218 "vtkParse.l"
+return(TypeMacro);
+ YY_BREAK
+case 70:
+YY_RULE_SETUP
+#line 219 "vtkParse.l"
+return(TypeMacro);
+ YY_BREAK
+case 71:
+YY_RULE_SETUP
+#line 220 "vtkParse.l"
+return(TypeMacro);
+ YY_BREAK
+case 72:
+YY_RULE_SETUP
+#line 221 "vtkParse.l"
+return(VTK_LEGACY);
+ YY_BREAK
+case 73:
+YY_RULE_SETUP
+#line 222 "vtkParse.l"
+return(VTK_WRAP_EXTERN);
+ YY_BREAK
+case 74:
+YY_RULE_SETUP
+#line 223 "vtkParse.l"
+return(TypeInt8);
+ YY_BREAK
+case 75:
+YY_RULE_SETUP
+#line 224 "vtkParse.l"
+return(TypeUInt8);
+ YY_BREAK
+case 76:
+YY_RULE_SETUP
+#line 225 "vtkParse.l"
+return(TypeInt16);
+ YY_BREAK
+case 77:
+YY_RULE_SETUP
+#line 226 "vtkParse.l"
+return(TypeUInt16);
+ YY_BREAK
+case 78:
+YY_RULE_SETUP
+#line 227 "vtkParse.l"
+return(TypeInt32);
+ YY_BREAK
+case 79:
+YY_RULE_SETUP
+#line 228 "vtkParse.l"
+return(TypeUInt32);
+ YY_BREAK
+case 80:
+YY_RULE_SETUP
+#line 229 "vtkParse.l"
+return(TypeInt64);
+ YY_BREAK
+case 81:
+YY_RULE_SETUP
+#line 230 "vtkParse.l"
+return(TypeUInt64);
+ YY_BREAK
+case 82:
+YY_RULE_SETUP
+#line 231 "vtkParse.l"
+return(TypeFloat32);
+ YY_BREAK
+case 83:
+YY_RULE_SETUP
+#line 232 "vtkParse.l"
+return(TypeFloat64);
+ YY_BREAK
+case 84:
+YY_RULE_SETUP
+#line 235 "vtkParse.l"
+{ sscanf(yytext,"%d",&yylval.integer); return(NUM);}
+ YY_BREAK
+case 85:
+/* rule 85 can match eol */
+YY_RULE_SETUP
+#line 237 "vtkParse.l"
+{
+ yylval.str = vtkstrdup(yytext + 1);
+ yylval.str[strlen(yytext)-2] = '\0';
+ return(STRING);
+ }
+ YY_BREAK
+case 86:
+*yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
+(yy_c_buf_p) = yy_cp -= 1;
+YY_DO_BEFORE_ACTION; /* set up yytext again */
+YY_RULE_SETUP
+#line 243 "vtkParse.l"
+;
+ YY_BREAK
+case 87:
+YY_RULE_SETUP
+#line 246 "vtkParse.l"
+{ yylval.str = (char *)malloc(yyleng + 1);
+ memcpy(yylval.str,yytext,yyleng);
+ yylval.str[yyleng] = '\0';
+ return(VTK_ID);
+ }
+ YY_BREAK
+case 88:
+YY_RULE_SETUP
+#line 252 "vtkParse.l"
+{ yylval.str = (char *)malloc(yyleng + 1);
+ memcpy(yylval.str,yytext,yyleng);
+ yylval.str[yyleng] = '\0';
+ return(ID);
+ }
+ YY_BREAK
+case 89:
+/* rule 89 can match eol */
+YY_RULE_SETUP
+#line 258 "vtkParse.l"
+;
+ YY_BREAK
+case 90:
+YY_RULE_SETUP
+#line 261 "vtkParse.l"
+return(yytext[0]);
+ YY_BREAK
+case 91:
+YY_RULE_SETUP
+#line 262 "vtkParse.l"
+return(yytext[0]);
+ YY_BREAK
+case 92:
+YY_RULE_SETUP
+#line 265 "vtkParse.l"
+{ return(yytext[0]); }
+ YY_BREAK
+case 93:
+YY_RULE_SETUP
+#line 267 "vtkParse.l"
+return(OTHER);
+ YY_BREAK
+case 94:
+YY_RULE_SETUP
+#line 268 "vtkParse.l"
+ECHO;
+ YY_BREAK
+#line 2046 "lex.yy.c"
+case YY_STATE_EOF(INITIAL):
+ yyterminate();
+
+ case YY_END_OF_BUFFER:
+ {
+ /* Amount of text matched not including the EOB char. */
+ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
+
+ /* Undo the effects of YY_DO_BEFORE_ACTION. */
+ *yy_cp = (yy_hold_char);
+ YY_RESTORE_YY_MORE_OFFSET
+
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
+ {
+ /* We're scanning a new file or input source. It's
+ * possible that this happened because the user
+ * just pointed yyin at a new source and called
+ * yylex(). If so, then we have to assure
+ * consistency between YY_CURRENT_BUFFER and our
+ * globals. Here is the right place to do so, because
+ * this is the first action (other than possibly a
+ * back-up) that will match for the new input source.
+ */
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
+ YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
+ }
+
+ /* Note that here we test for yy_c_buf_p "<=" to the position
+ * of the first EOB in the buffer, since yy_c_buf_p will
+ * already have been incremented past the NUL character
+ * (since all states make transitions on EOB to the
+ * end-of-buffer state). Contrast this with the test
+ * in input().
+ */
+ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
+ { /* This was really a NUL. */
+ yy_state_type yy_next_state;
+
+ (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state( );
+
+ /* Okay, we're now positioned to make the NUL
+ * transition. We couldn't have
+ * yy_get_previous_state() go ahead and do it
+ * for us because it doesn't know how to deal
+ * with the possibility of jamming (and we don't
+ * want to build jamming into it because then it
+ * will run more slowly).
+ */
+
+ yy_next_state = yy_try_NUL_trans( yy_current_state );
+
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+
+ if ( yy_next_state )
+ {
+ /* Consume the NUL. */
+ yy_cp = ++(yy_c_buf_p);
+ yy_current_state = yy_next_state;
+ goto yy_match;
+ }
+
+ else
+ {
+ yy_cp = (yy_c_buf_p);
+ goto yy_find_action;
+ }
+ }
+
+ else switch ( yy_get_next_buffer( ) )
+ {
+ case EOB_ACT_END_OF_FILE:
+ {
+ (yy_did_buffer_switch_on_eof) = 0;
+
+ if ( yywrap( ) )
+ {
+ /* Note: because we've taken care in
+ * yy_get_next_buffer() to have set up
+ * yytext, we can now set up
+ * yy_c_buf_p so that if some total
+ * hoser (like flex itself) wants to
+ * call the scanner after we return the
+ * YY_NULL, it'll still work - another
+ * YY_NULL will get returned.
+ */
+ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
+
+ yy_act = YY_STATE_EOF(YY_START);
+ goto do_action;
+ }
+
+ else
+ {
+ if ( ! (yy_did_buffer_switch_on_eof) )
+ YY_NEW_FILE;
+ }
+ break;
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ (yy_c_buf_p) =
+ (yytext_ptr) + yy_amount_of_matched_text;
+
+ yy_current_state = yy_get_previous_state( );
+
+ yy_cp = (yy_c_buf_p);
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+ goto yy_match;
+
+ case EOB_ACT_LAST_MATCH:
+ (yy_c_buf_p) =
+ &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
+
+ yy_current_state = yy_get_previous_state( );
+
+ yy_cp = (yy_c_buf_p);
+ yy_bp = (yytext_ptr) + YY_MORE_ADJ;
+ goto yy_find_action;
+ }
+ break;
+ }
+
+ default:
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--no action found" );
+ } /* end of action switch */
+ } /* end of scanning one token */
+} /* end of yylex */
+
+/* yy_get_next_buffer - try to read in a new buffer
+ *
+ * Returns a code representing an action:
+ * EOB_ACT_LAST_MATCH -
+ * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
+ * EOB_ACT_END_OF_FILE - end of file
+ */
+static int yy_get_next_buffer (void)
+{
+ register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
+ register char *source = (yytext_ptr);
+ register int number_to_move, i;
+ int ret_val;
+
+ if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
+ YY_FATAL_ERROR(
+ "fatal flex scanner internal error--end of buffer missed" );
+
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
+ { /* Don't try to fill the buffer, so this is an EOF. */
+ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
+ {
+ /* We matched a single character, the EOB, so
+ * treat this as a final EOF.
+ */
+ return EOB_ACT_END_OF_FILE;
+ }
+
+ else
+ {
+ /* We matched some text prior to the EOB, first
+ * process it.
+ */
+ return EOB_ACT_LAST_MATCH;
+ }
+ }
+
+ /* Try to read more data. */
+
+ /* First move last chars to start of buffer. */
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
+
+ for ( i = 0; i < number_to_move; ++i )
+ *(dest++) = *(source++);
+
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
+ /* don't do the read, it's not guaranteed to return an EOF,
+ * just force an EOF
+ */
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
+
+ else
+ {
+ size_t num_to_read =
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
+
+ while ( num_to_read <= 0 )
+ { /* Not enough room in the buffer - grow it. */
+
+ /* just a shorter name for the current buffer */
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
+
+ int yy_c_buf_p_offset =
+ (int) ((yy_c_buf_p) - b->yy_ch_buf);
+
+ if ( b->yy_is_our_buffer )
+ {
+ int new_size = b->yy_buf_size * 2;
+
+ if ( new_size <= 0 )
+ b->yy_buf_size += b->yy_buf_size / 8;
+ else
+ b->yy_buf_size *= 2;
+
+ b->yy_ch_buf = (char *)
+ /* Include room in for 2 EOB chars. */
+ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
+ }
+ else
+ /* Can't grow it, we don't own it. */
+ b->yy_ch_buf = 0;
+
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR(
+ "fatal error - scanner input buffer overflow" );
+
+ (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
+
+ num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
+ number_to_move - 1;
+
+ }
+
+ if ( num_to_read > YY_READ_BUF_SIZE )
+ num_to_read = YY_READ_BUF_SIZE;
+
+ /* Read in more data. */
+ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
+ (yy_n_chars), (size_t) num_to_read );
+
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+ }
+
+ if ( (yy_n_chars) == 0 )
+ {
+ if ( number_to_move == YY_MORE_ADJ )
+ {
+ ret_val = EOB_ACT_END_OF_FILE;
+ yyrestart(yyin );
+ }
+
+ else
+ {
+ ret_val = EOB_ACT_LAST_MATCH;
+ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
+ YY_BUFFER_EOF_PENDING;
+ }
+ }
+
+ else
+ ret_val = EOB_ACT_CONTINUE_SCAN;
+
+ if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
+ /* Extend the array by 50%, plus the number we really need. */
+ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
+ if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
+ }
+
+ (yy_n_chars) += number_to_move;
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
+
+ (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
+
+ return ret_val;
+}
+
+/* yy_get_previous_state - get the state just before the EOB char was reached */
+
+ static yy_state_type yy_get_previous_state (void)
+{
+ register yy_state_type yy_current_state;
+ register char *yy_cp;
+
+ yy_current_state = (yy_start);
+ yy_current_state += YY_AT_BOL();
+
+ for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
+ {
+ register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 772 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ }
+
+ return yy_current_state;
+}
+
+/* yy_try_NUL_trans - try to make a transition on the NUL character
+ *
+ * synopsis
+ * next_state = yy_try_NUL_trans( current_state );
+ */
+ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
+{
+ register int yy_is_jam;
+ register char *yy_cp = (yy_c_buf_p);
+
+ register YY_CHAR yy_c = 1;
+ if ( yy_accept[yy_current_state] )
+ {
+ (yy_last_accepting_state) = yy_current_state;
+ (yy_last_accepting_cpos) = yy_cp;
+ }
+ while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
+ {
+ yy_current_state = (int) yy_def[yy_current_state];
+ if ( yy_current_state >= 772 )
+ yy_c = yy_meta[(unsigned int) yy_c];
+ }
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_is_jam = (yy_current_state == 771);
+
+ return yy_is_jam ? 0 : yy_current_state;
+}
+
+#ifndef YY_NO_INPUT
+#ifdef __cplusplus
+ static int yyinput (void)
+#else
+ static int input (void)
+#endif
+
+{
+ int c;
+
+ *(yy_c_buf_p) = (yy_hold_char);
+
+ if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
+ {
+ /* yy_c_buf_p now points to the character we want to return.
+ * If this occurs *before* the EOB characters, then it's a
+ * valid NUL; if not, then we've hit the end of the buffer.
+ */
+ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
+ /* This was really a NUL. */
+ *(yy_c_buf_p) = '\0';
+
+ else
+ { /* need more input */
+ int offset = (yy_c_buf_p) - (yytext_ptr);
+ ++(yy_c_buf_p);
+
+ switch ( yy_get_next_buffer( ) )
+ {
+ case EOB_ACT_LAST_MATCH:
+ /* This happens because yy_g_n_b()
+ * sees that we've accumulated a
+ * token and flags that we need to
+ * try matching the token before
+ * proceeding. But for input(),
+ * there's no matching to consider.
+ * So convert the EOB_ACT_LAST_MATCH
+ * to EOB_ACT_END_OF_FILE.
+ */
+
+ /* Reset buffer status. */
+ yyrestart(yyin );
+
+ /*FALLTHROUGH*/
+
+ case EOB_ACT_END_OF_FILE:
+ {
+ if ( yywrap( ) )
+ return EOF;
+
+ if ( ! (yy_did_buffer_switch_on_eof) )
+ YY_NEW_FILE;
+#ifdef __cplusplus
+ return yyinput();
+#else
+ return input();
+#endif
+ }
+
+ case EOB_ACT_CONTINUE_SCAN:
+ (yy_c_buf_p) = (yytext_ptr) + offset;
+ break;
+ }
+ }
+ }
+
+ c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
+ *(yy_c_buf_p) = '\0'; /* preserve yytext */
+ (yy_hold_char) = *++(yy_c_buf_p);
+
+ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol )
+
+ yylineno++;
+;
+
+ return c;
+}
+#endif /* ifndef YY_NO_INPUT */
+
+/** Immediately switch to a different input stream.
+ * @param input_file A readable stream.
+ *
+ * @note This function does not reset the start condition to @c INITIAL .
+ */
+ void yyrestart (FILE * input_file )
+{
+
+ if ( ! YY_CURRENT_BUFFER ){
+ yyensure_buffer_stack ();
+ YY_CURRENT_BUFFER_LVALUE =
+ yy_create_buffer(yyin,YY_BUF_SIZE );
+ }
+
+ yy_init_buffer(YY_CURRENT_BUFFER,input_file );
+ yy_load_buffer_state( );
+}
+
+/** Switch to a different input buffer.
+ * @param new_buffer The new input buffer.
+ *
+ */
+ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
+{
+
+ /* TODO. We should be able to replace this entire function body
+ * with
+ * yypop_buffer_state();
+ * yypush_buffer_state(new_buffer);
+ */
+ yyensure_buffer_stack ();
+ if ( YY_CURRENT_BUFFER == new_buffer )
+ return;
+
+ if ( YY_CURRENT_BUFFER )
+ {
+ /* Flush out information for old buffer. */
+ *(yy_c_buf_p) = (yy_hold_char);
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+ }
+
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
+ yy_load_buffer_state( );
+
+ /* We don't actually know whether we did this switch during
+ * EOF (yywrap()) processing, but the only time this flag
+ * is looked at is after yywrap() is called, so it's safe
+ * to go ahead and always set it.
+ */
+ (yy_did_buffer_switch_on_eof) = 1;
+}
+
+static void yy_load_buffer_state (void)
+{
+ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
+ (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
+ yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
+ (yy_hold_char) = *(yy_c_buf_p);
+}
+
+/** Allocate and initialize an input buffer state.
+ * @param file A readable stream.
+ * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
+ *
+ * @return the allocated buffer state.
+ */
+ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
+{
+ YY_BUFFER_STATE b;
+
+ b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_buf_size = size;
+
+ /* yy_ch_buf has to be 2 characters longer than the size given because
+ * we need to put in 2 end-of-buffer characters.
+ */
+ b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
+ if ( ! b->yy_ch_buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
+
+ b->yy_is_our_buffer = 1;
+
+ yy_init_buffer(b,file );
+
+ return b;
+}
+
+/** Destroy the buffer.
+ * @param b a buffer created with yy_create_buffer()
+ *
+ */
+ void yy_delete_buffer (YY_BUFFER_STATE b )
+{
+
+ if ( ! b )
+ return;
+
+ if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
+ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
+
+ if ( b->yy_is_our_buffer )
+ yyfree((void *) b->yy_ch_buf );
+
+ yyfree((void *) b );
+}
+
+#ifndef __cplusplus
+extern int isatty (int );
+#endif /* __cplusplus */
+
+/* Initializes or reinitializes a buffer.
+ * This function is sometimes called more than once on the same buffer,
+ * such as during a yyrestart() or at EOF.
+ */
+ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
+
+{
+ int oerrno = errno;
+
+ yy_flush_buffer(b );
+
+ b->yy_input_file = file;
+ b->yy_fill_buffer = 1;
+
+ /* If b is the current buffer, then yy_init_buffer was _probably_
+ * called from yyrestart() or through yy_get_next_buffer.
+ * In that case, we don't want to reset the lineno or column.
+ */
+ if (b != YY_CURRENT_BUFFER){
+ b->yy_bs_lineno = 1;
+ b->yy_bs_column = 0;
+ }
+
+ b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
+
+ errno = oerrno;
+}
+
+/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
+ * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
+ *
+ */
+ void yy_flush_buffer (YY_BUFFER_STATE b )
+{
+ if ( ! b )
+ return;
+
+ b->yy_n_chars = 0;
+
+ /* We always need two end-of-buffer characters. The first causes
+ * a transition to the end-of-buffer state. The second causes
+ * a jam in that state.
+ */
+ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
+ b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
+
+ b->yy_buf_pos = &b->yy_ch_buf[0];
+
+ b->yy_at_bol = 1;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ if ( b == YY_CURRENT_BUFFER )
+ yy_load_buffer_state( );
+}
+
+/** Pushes the new state onto the stack. The new state becomes
+ * the current state. This function will allocate the stack
+ * if necessary.
+ * @param new_buffer The new state.
+ *
+ */
+void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
+{
+ if (new_buffer == NULL)
+ return;
+
+ yyensure_buffer_stack();
+
+ /* This block is copied from yy_switch_to_buffer. */
+ if ( YY_CURRENT_BUFFER )
+ {
+ /* Flush out information for old buffer. */
+ *(yy_c_buf_p) = (yy_hold_char);
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
+ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
+ }
+
+ /* Only push if top exists. Otherwise, replace top. */
+ if (YY_CURRENT_BUFFER)
+ (yy_buffer_stack_top)++;
+ YY_CURRENT_BUFFER_LVALUE = new_buffer;
+
+ /* copied from yy_switch_to_buffer. */
+ yy_load_buffer_state( );
+ (yy_did_buffer_switch_on_eof) = 1;
+}
+
+/** Removes and deletes the top of the stack, if present.
+ * The next element becomes the new top.
+ *
+ */
+void yypop_buffer_state (void)
+{
+ if (!YY_CURRENT_BUFFER)
+ return;
+
+ yy_delete_buffer(YY_CURRENT_BUFFER );
+ YY_CURRENT_BUFFER_LVALUE = NULL;
+ if ((yy_buffer_stack_top) > 0)
+ --(yy_buffer_stack_top);
+
+ if (YY_CURRENT_BUFFER) {
+ yy_load_buffer_state( );
+ (yy_did_buffer_switch_on_eof) = 1;
+ }
+}
+
+/* Allocates the stack if it does not exist.
+ * Guarantees space for at least one push.
+ */
+static void yyensure_buffer_stack (void)
+{
+ int num_to_alloc;
+
+ if (!(yy_buffer_stack)) {
+
+ /* First allocation is just for 2 elements, since we don't know if this
+ * scanner will even need a stack. We use 2 instead of 1 to avoid an
+ * immediate realloc on the next call.
+ */
+ num_to_alloc = 1;
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
+ (num_to_alloc * sizeof(struct yy_buffer_state*)
+ );
+ if ( ! (yy_buffer_stack) )
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
+
+ memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
+
+ (yy_buffer_stack_max) = num_to_alloc;
+ (yy_buffer_stack_top) = 0;
+ return;
+ }
+
+ if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
+
+ /* Increase the buffer to prepare for a possible push. */
+ int grow_size = 8 /* arbitrary grow size */;
+
+ num_to_alloc = (yy_buffer_stack_max) + grow_size;
+ (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
+ ((yy_buffer_stack),
+ num_to_alloc * sizeof(struct yy_buffer_state*)
+ );
+ if ( ! (yy_buffer_stack) )
+ YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
+
+ /* zero only the new slots.*/
+ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
+ (yy_buffer_stack_max) = num_to_alloc;
+ }
+}
+
+/** Setup the input buffer state to scan directly from a user-specified character buffer.
+ * @param base the character buffer
+ * @param size the size in bytes of the character buffer
+ *
+ * @return the newly allocated buffer state object.
+ */
+YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
+{
+ YY_BUFFER_STATE b;
+
+ if ( size < 2 ||
+ base[size-2] != YY_END_OF_BUFFER_CHAR ||
+ base[size-1] != YY_END_OF_BUFFER_CHAR )
+ /* They forgot to leave room for the EOB's. */
+ return 0;
+
+ b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ if ( ! b )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
+
+ b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
+ b->yy_buf_pos = b->yy_ch_buf = base;
+ b->yy_is_our_buffer = 0;
+ b->yy_input_file = 0;
+ b->yy_n_chars = b->yy_buf_size;
+ b->yy_is_interactive = 0;
+ b->yy_at_bol = 1;
+ b->yy_fill_buffer = 0;
+ b->yy_buffer_status = YY_BUFFER_NEW;
+
+ yy_switch_to_buffer(b );
+
+ return b;
+}
+
+/** Setup the input buffer state to scan a string. The next call to yylex() will
+ * scan from a @e copy of @a str.
+ * @param yystr a NUL-terminated string to scan
+ *
+ * @return the newly allocated buffer state object.
+ * @note If you want to scan bytes that may contain NUL values, then use
+ * yy_scan_bytes() instead.
+ */
+YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
+{
+
+ return yy_scan_bytes(yystr,strlen(yystr) );
+}
+
+/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
+ * scan from a @e copy of @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
+ *
+ * @return the newly allocated buffer state object.
+ */
+YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
+{
+ YY_BUFFER_STATE b;
+ char *buf;
+ yy_size_t n;
+ int i;
+
+ /* Get memory for full buffer, including space for trailing EOB's. */
+ n = _yybytes_len + 2;
+ buf = (char *) yyalloc(n );
+ if ( ! buf )
+ YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
+
+ for ( i = 0; i < _yybytes_len; ++i )
+ buf[i] = yybytes[i];
+
+ buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
+
+ b = yy_scan_buffer(buf,n );
+ if ( ! b )
+ YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
+
+ /* It's okay to grow etc. this buffer, and we should throw it
+ * away when we're done.
+ */
+ b->yy_is_our_buffer = 1;
+
+ return b;
+}
+
+#ifndef YY_EXIT_FAILURE
+#define YY_EXIT_FAILURE 2
+#endif
+
+static void yy_fatal_error (yyconst char* msg )
+{
+ (void) fprintf( stderr, "%s\n", msg );
+ exit( YY_EXIT_FAILURE );
+}
+
+/* Redefine yyless() so it works in section 3 code. */
+
+#undef yyless
+#define yyless(n) \
+ do \
+ { \
+ /* Undo effects of setting up yytext. */ \
+ int yyless_macro_arg = (n); \
+ YY_LESS_LINENO(yyless_macro_arg);\
+ yytext[yyleng] = (yy_hold_char); \
+ (yy_c_buf_p) = yytext + yyless_macro_arg; \
+ (yy_hold_char) = *(yy_c_buf_p); \
+ *(yy_c_buf_p) = '\0'; \
+ yyleng = yyless_macro_arg; \
+ } \
+ while ( 0 )
+
+/* Accessor methods (get/set functions) to struct members. */
+
+/** Get the current line number.
+ *
+ */
+int yyget_lineno (void)
+{
+
+ return yylineno;
+}
+
+/** Get the input stream.
+ *
+ */
+FILE *yyget_in (void)
+{
+ return yyin;
+}
+
+/** Get the output stream.
+ *
+ */
+FILE *yyget_out (void)
+{
+ return yyout;
+}
+
+/** Get the length of the current token.
+ *
+ */
+int yyget_leng (void)
+{
+ return yyleng;
+}
+
+/** Get the current token.
+ *
+ */
+
+char *yyget_text (void)
+{
+ return yytext;
+}
+
+/** Set the current line number.
+ * @param line_number
+ *
+ */
+void yyset_lineno (int line_number )
+{
+
+ yylineno = line_number;
+}
+
+/** Set the input stream. This does not discard the current
+ * input buffer.
+ * @param in_str A readable stream.
+ *
+ * @see yy_switch_to_buffer
+ */
+void yyset_in (FILE * in_str )
+{
+ yyin = in_str ;
+}
+
+void yyset_out (FILE * out_str )
+{
+ yyout = out_str ;
+}
+
+int yyget_debug (void)
+{
+ return yy_flex_debug;
+}
+
+void yyset_debug (int bdebug )
+{
+ yy_flex_debug = bdebug ;
+}
+
+static int yy_init_globals (void)
+{
+ /* Initialization is the same as for the non-reentrant scanner.
+ * This function is called from yylex_destroy(), so don't allocate here.
+ */
+
+ /* We do not touch yylineno unless the option is enabled. */
+ yylineno = 1;
+
+ (yy_buffer_stack) = 0;
+ (yy_buffer_stack_top) = 0;
+ (yy_buffer_stack_max) = 0;
+ (yy_c_buf_p) = (char *) 0;
+ (yy_init) = 0;
+ (yy_start) = 0;
+
+/* Defined in main.c */
+#ifdef YY_STDINIT
+ yyin = stdin;
+ yyout = stdout;
+#else
+ yyin = (FILE *) 0;
+ yyout = (FILE *) 0;
+#endif
+
+ /* For future reference: Set errno on error, since we are called by
+ * yylex_init()
+ */
+ return 0;
+}
+
+/* yylex_destroy is for both reentrant and non-reentrant scanners. */
+int yylex_destroy (void)
+{
+
+ /* Pop the buffer stack, destroying each element. */
+ while(YY_CURRENT_BUFFER){
+ yy_delete_buffer(YY_CURRENT_BUFFER );
+ YY_CURRENT_BUFFER_LVALUE = NULL;
+ yypop_buffer_state();
+ }
+
+ /* Destroy the stack itself. */
+ yyfree((yy_buffer_stack) );
+ (yy_buffer_stack) = NULL;
+
+ /* Reset the globals. This is important in a non-reentrant scanner so the next time
+ * yylex() is called, initialization will occur. */
+ yy_init_globals( );
+
+ return 0;
+}
+
+/*
+ * Internal utility routines.
+ */
+
+#ifndef yytext_ptr
+static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
+{
+ register int i;
+ for ( i = 0; i < n; ++i )
+ s1[i] = s2[i];
+}
+#endif
+
+#ifdef YY_NEED_STRLEN
+static int yy_flex_strlen (yyconst char * s )
+{
+ register int n;
+ for ( n = 0; s[n]; ++n )
+ ;
+
+ return n;
+}
+#endif
+
+void *yyalloc (yy_size_t size )
+{
+ return (void *) malloc( size );
+}
+
+void *yyrealloc (void * ptr, yy_size_t size )
+{
+ /* The cast to (char *) in the following accommodates both
+ * implementations that use char* generic pointers, and those
+ * that use void* generic pointers. It works with the latter
+ * because both ANSI C and C++ allow castless assignment from
+ * any pointer type to void*, and deal with argument conversions
+ * as though doing an assignment.
+ */
+ return (void *) realloc( (char *) ptr, size );
+}
+
+void yyfree (void * ptr )
+{
+ free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
+}
+
+#define YYTABLES_NAME "yytables"
+
+#line 268 "vtkParse.l"
+
+
+
+
--- /dev/null
+These files are pure copy from Paraview sources.
+They need for extractor building.
+Them has to be updated if the corresponded files in paraview will be changed
\ No newline at end of file
--- /dev/null
+/*=========================================================================
+
+ Program: Visualization Toolkit
+ Module: $RCSfile$
+
+ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
+ All rights reserved.
+ See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the above copyright notice for more information.
+
+=========================================================================*/
+#ifndef __vtkParse_h
+#define __vtkParse_h
+
+#if defined(__cplusplus)
+#include <string>
+#include <vector>
+#endif
+
+#define MAX_ARGS 20
+
+typedef struct _FunctionInfo
+ {
+#if defined(__cplusplus)
+ vtkstd::string Name;
+#else
+ char *Name;
+#endif
+ int NumberOfArguments;
+ int ArrayFailure;
+ int IsPureVirtual;
+ int IsPublic;
+ int IsProtected;
+ int IsOperator;
+ int HaveHint;
+ int HintSize;
+ int ArgTypes[MAX_ARGS];
+ int ArgCounts[MAX_ARGS];
+
+#if defined(__cplusplus)
+ vtkstd::string ArgClasses[MAX_ARGS];
+#else
+ char *ArgClasses[MAX_ARGS];
+#endif
+ int ArgExternals[MAX_ARGS];
+ int ReturnType;
+
+#if defined(__cplusplus)
+ vtkstd::string ReturnClass;
+ vtkstd::string Comment;
+ vtkstd::string Signature;
+#else
+ char *ReturnClass;
+ char *Comment;
+ char *Signature;
+#endif
+ int ReturnExternal;
+ int IsLegacy;
+ } FunctionInfo;
+
+#if defined(__cplusplus)
+#else
+typedef struct _FileInfo
+ {
+ int HasDelete;
+ int IsAbstract;
+ int IsConcrete;
+#if defined(__cplusplus)
+ vtkstd::string ClassName;
+ vtkstd::string FileName;
+ vtkstd::string OutputFileName;
+ vtkstd::string SuperClasses[10];
+#else
+ char *ClassName;
+ char *FileName;
+ char *OutputFileName;
+ char *SuperClasses[10];
+#endif
+
+ int NumberOfSuperClasses;
+ int NumberOfFunctions;
+ FunctionInfo Functions[1000];
+#if defined(__cplusplus)
+ vtkstd::string NameComment;
+ vtkstd::string Description;
+ vtkstd::string Caveats;
+ vtkstd::string SeeAlso;
+#else
+ char *NameComment;
+ char *Description;
+ char *Caveats;
+ char *SeeAlso;
+#endif
+
+ } FileInfo;
+
+#endif
+//--------------------------------------------------------------------------nix
+/*
+ * This structure is used internally to sort+collect individual functions.
+ * Polymorphed functions will be combined and can be handeled together.
+ *
+ */
+typedef struct _UniqueFunctionInfo
+{
+#if defined(__cplusplus)
+ vtkstd::string Name;
+#else
+ char *Name;
+#endif
+ int TotalPolymorphTypes;
+#if defined(__cplusplus)
+ vtkstd::vector<FunctionInfo> Function;
+#else
+ FunctionInfo Function[20];
+#endif
+}UniqueFunctionInfo;
+
+
+//--------------------------------------------------------------------------nix
+/*
+ * This structure is used to collect and hold class information. It is a
+ * modified version of FileInfo
+ *
+ */
+typedef struct _ClassInfo
+{
+ int HasDelete;
+ int IsAbstract;
+ int IsConcrete;
+#if defined(__cplusplus)
+ vtkstd::string ClassName;
+ vtkstd::string FileName;
+ vtkstd::string OutputFileName;
+ vtkstd::string SuperClasses[10];
+#else
+ char *ClassName;
+ char *FileName;
+ char *OutputFileName;
+ char *SuperClasses[10];
+#endif
+
+ int NumberOfSuperClasses;
+ int NumberOfFunctions;
+#if defined(__cplusplus)
+ vtkstd::vector<UniqueFunctionInfo> Functions;
+#else
+ UniqueFunctionInfo Functions[1000];
+#endif
+#if defined(__cplusplus)
+ vtkstd::string NameComment;
+ vtkstd::string Description;
+ vtkstd::string Caveats;
+ vtkstd::string SeeAlso;
+#else
+ char *NameComment;
+ char *Description;
+ char *Caveats;
+ char *SeeAlso;
+#endif
+}ClassInfo;
+
+
+#endif //__vtkParse_h
--- /dev/null
+
+/* A Bison parser, made by GNU Bison 2.4.1. */
+
+/* Skeleton implementation for Bison's Yacc-like parsers in C
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+/* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
+
+/* C LALR(1) parser skeleton written by Richard Stallman, by
+ simplifying the original so-called "semantic" parser. */
+
+/* All symbols defined below should begin with yy or YY, to avoid
+ infringing on user name space. This should be done even for local
+ variables, as they might otherwise be expanded by user macros.
+ There are some unavoidable exceptions within include files to
+ define necessary library symbols; they are noted "INFRINGES ON
+ USER NAME SPACE" below. */
+
+/* Identify Bison output. */
+#define YYBISON 1
+
+/* Bison version. */
+#define YYBISON_VERSION "2.4.1"
+
+/* Skeleton name. */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers. */
+#define YYPURE 0
+
+/* Push parsers. */
+#define YYPUSH 0
+
+/* Pull parsers. */
+#define YYPULL 1
+
+/* Using locations. */
+#define YYLSP_NEEDED 0
+
+
+
+/* Copy the first part of user declarations. */
+
+/* Line 189 of yacc.c */
+#line 15 "vtkParse.y"
+
+
+/*
+
+This file must be translated to C and modified to build everywhere.
+
+Run yacc like this:
+
+ yacc -b vtkParse vtkParse.y
+
+Modify vtkParse.tab.c:
+ - remove TABs
+ - remove yyerrorlab stuff in range ["goto yyerrlab1;", "yyerrstatus = 3;")
+
+*/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#define yyerror(a) fprintf(stderr,"%s\n",a)
+#define yywrap() 1
+
+/* Make sure yacc-generated code knows we have included stdlib.h. */
+#ifndef _STDLIB_H
+# define _STDLIB_H
+#endif
+#define YYINCLUDED_STDLIB_H
+
+/* Map from the type enumeration in vtkType.h to the VTK wrapping type
+ system number for the type. Note that the wrapping type system
+ does not enumerate its type values by name. Look in the
+ type_primitive production rule in the grammar for the "official"
+ enumeration. */
+static int vtkParseTypeMap[] =
+ {
+ 0x2, /* VTK_VOID 0 */
+ 0, /* VTK_BIT 1 */
+ 0x3, /* VTK_CHAR 2 */
+ 0x13, /* VTK_UNSIGNED_CHAR 3 */
+ 0x5, /* VTK_SHORT 4 */
+ 0x15, /* VTK_UNSIGNED_SHORT 5 */
+ 0x4, /* VTK_INT 6 */
+ 0x14, /* VTK_UNSIGNED_INT 7 */
+ 0x6, /* VTK_LONG 8 */
+ 0x16, /* VTK_UNSIGNED_LONG 9 */
+ 0x1, /* VTK_FLOAT 10 */
+ 0x7, /* VTK_DOUBLE 11 */
+ 0xA, /* VTK_ID_TYPE 12 */
+ 0, /* VTK_STRING 13 */
+ 0, /* VTK_OPAQUE 14 */
+ 0xD, /* VTK_SIGNED_CHAR 15 */
+ 0xB, /* VTK_LONG_LONG 16 */
+ 0x1B, /* VTK_UNSIGNED_LONG_LONG 17 */
+ 0xC, /* VTK___INT64 18 */
+ 0x1C /* VTK_UNSIGNED___INT64 19 */
+ };
+
+/* Define some constants to simplify references to the table lookup in
+ the type_primitive production rule code. */
+#include "vtkType.h"
+#define VTK_PARSE_INT8 vtkParseTypeMap[VTK_TYPE_INT8]
+#define VTK_PARSE_UINT8 vtkParseTypeMap[VTK_TYPE_UINT8]
+#define VTK_PARSE_INT16 vtkParseTypeMap[VTK_TYPE_INT16]
+#define VTK_PARSE_UINT16 vtkParseTypeMap[VTK_TYPE_UINT16]
+#define VTK_PARSE_INT32 vtkParseTypeMap[VTK_TYPE_INT32]
+#define VTK_PARSE_UINT32 vtkParseTypeMap[VTK_TYPE_UINT32]
+#define VTK_PARSE_INT64 vtkParseTypeMap[VTK_TYPE_INT64]
+#define VTK_PARSE_UINT64 vtkParseTypeMap[VTK_TYPE_UINT64]
+#define VTK_PARSE_FLOAT32 vtkParseTypeMap[VTK_TYPE_FLOAT32]
+#define VTK_PARSE_FLOAT64 vtkParseTypeMap[VTK_TYPE_FLOAT64]
+
+static void vtkParseDebug(const char* s1, const char* s2);
+
+/* Borland and MSVC do not define __STDC__ properly. */
+#if !defined(__STDC__)
+# if (defined(_MSC_VER) && _MSC_VER >= 1200) || defined(__BORLANDC__)
+# define __STDC__ 1
+# endif
+#endif
+
+/* Disable warnings in generated code. */
+#if defined(_MSC_VER)
+# pragma warning (disable: 4127) /* conditional expression is constant */
+# pragma warning (disable: 4244) /* conversion to smaller integer type */
+#endif
+#if defined(__BORLANDC__)
+# pragma warn -8004 /* assigned a value that is never used */
+# pragma warn -8008 /* conditional is always true */
+# pragma warn -8066 /* unreachable code */
+#endif
+
+int yylex(void);
+void output_function(void);
+
+/* vtkstrdup is not part of POSIX so we create our own */
+char *vtkstrdup(const char *in)
+{
+ char *res = malloc(strlen(in)+1);
+ strcpy(res,in);
+ return res;
+}
+
+#include "vtkParse.h"
+
+ FileInfo data;
+ FunctionInfo *currentFunction;
+
+ FILE *fhint;
+ char temps[2048];
+ int in_public;
+ int in_protected;
+ int HaveComment;
+ char CommentText[50000];
+ int CommentState;
+ int openSig;
+ int invertSig;
+ unsigned int sigAllocatedLength;
+
+#define YYMAXDEPTH 1000
+
+ void checkSigSize(const char *arg)
+ {
+ if (strlen(currentFunction->Signature) + strlen(arg) + 3 >
+ sigAllocatedLength)
+ {
+ currentFunction->Signature = (char *)
+ realloc(currentFunction->Signature, sigAllocatedLength*2);
+ sigAllocatedLength = sigAllocatedLength*2;
+ }
+ }
+ void preSig(const char *arg)
+ {
+ if (!currentFunction->Signature)
+ {
+ currentFunction->Signature = (char*)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"%s",arg);
+ }
+ else if (openSig)
+ {
+ char *tmp;
+ checkSigSize(arg);
+ tmp = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"%s%s",arg,tmp);
+ free(tmp);
+ }
+ }
+ void postSig(const char *arg)
+ {
+ if (!currentFunction->Signature)
+ {
+ currentFunction->Signature = (char*)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"%s",arg);
+ }
+ else if (openSig)
+ {
+ char *tmp;
+ checkSigSize(arg);
+ tmp = vtkstrdup(currentFunction->Signature);
+ if (invertSig)
+ {
+ sprintf(currentFunction->Signature,"%s%s",arg,tmp);
+ }
+ else
+ {
+ sprintf(currentFunction->Signature,"%s%s",tmp,arg);
+ }
+ free(tmp);
+ }
+ }
+ void delSig(void)
+ {
+ if (currentFunction->Signature)
+ {
+ free(currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ }
+ }
+ void legacySig(void)
+ {
+ currentFunction->IsLegacy = 1;
+ }
+
+
+/* Line 189 of yacc.c */
+#line 259 "vtkParse.tab.c"
+
+/* Enabling traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 0
+#endif
+
+/* Enabling verbose error messages. */
+#ifdef YYERROR_VERBOSE
+# undef YYERROR_VERBOSE
+# define YYERROR_VERBOSE 1
+#else
+# define YYERROR_VERBOSE 0
+#endif
+
+/* Enabling the token table. */
+#ifndef YYTOKEN_TABLE
+# define YYTOKEN_TABLE 0
+#endif
+
+
+/* Tokens. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
+ know about them. */
+ enum yytokentype {
+ CLASS = 258,
+ PUBLIC = 259,
+ PRIVATE = 260,
+ PROTECTED = 261,
+ VIRTUAL = 262,
+ STRING = 263,
+ NUM = 264,
+ ID = 265,
+ INT = 266,
+ FLOAT = 267,
+ SHORT = 268,
+ LONG = 269,
+ LONG_LONG = 270,
+ INT64__ = 271,
+ DOUBLE = 272,
+ VOID = 273,
+ CHAR = 274,
+ SIGNED_CHAR = 275,
+ BOOL = 276,
+ CLASS_REF = 277,
+ OTHER = 278,
+ CONST = 279,
+ OPERATOR = 280,
+ UNSIGNED = 281,
+ FRIEND = 282,
+ VTK_ID = 283,
+ STATIC = 284,
+ VAR_FUNCTION = 285,
+ ARRAY_NUM = 286,
+ VTK_LEGACY = 287,
+ TypeInt8 = 288,
+ TypeUInt8 = 289,
+ TypeInt16 = 290,
+ TypeUInt16 = 291,
+ TypeInt32 = 292,
+ TypeUInt32 = 293,
+ TypeInt64 = 294,
+ TypeUInt64 = 295,
+ TypeFloat32 = 296,
+ TypeFloat64 = 297,
+ IdType = 298,
+ StdString = 299,
+ SetMacro = 300,
+ GetMacro = 301,
+ SetStringMacro = 302,
+ GetStringMacro = 303,
+ SetClampMacro = 304,
+ SetObjectMacro = 305,
+ SetReferenceCountedObjectMacro = 306,
+ GetObjectMacro = 307,
+ BooleanMacro = 308,
+ SetVector2Macro = 309,
+ SetVector3Macro = 310,
+ SetVector4Macro = 311,
+ SetVector6Macro = 312,
+ GetVector2Macro = 313,
+ GetVector3Macro = 314,
+ GetVector4Macro = 315,
+ GetVector6Macro = 316,
+ SetVectorMacro = 317,
+ GetVectorMacro = 318,
+ ViewportCoordinateMacro = 319,
+ WorldCoordinateMacro = 320,
+ TypeMacro = 321,
+ VTK_WRAP_EXTERN = 322
+ };
+#endif
+
+
+
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
+typedef union YYSTYPE
+{
+
+/* Line 214 of yacc.c */
+#line 200 "vtkParse.y"
+
+ char *str;
+ int integer;
+ struct {
+ char* name;
+ int external;
+ } vtkid;
+
+
+
+/* Line 214 of yacc.c */
+#line 373 "vtkParse.tab.c"
+} YYSTYPE;
+# define YYSTYPE_IS_TRIVIAL 1
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+#endif
+
+
+/* Copy the second part of user declarations. */
+
+
+/* Line 264 of yacc.c */
+#line 385 "vtkParse.tab.c"
+
+#ifdef short
+# undef short
+#endif
+
+#ifdef YYTYPE_UINT8
+typedef YYTYPE_UINT8 yytype_uint8;
+#else
+typedef unsigned char yytype_uint8;
+#endif
+
+#ifdef YYTYPE_INT8
+typedef YYTYPE_INT8 yytype_int8;
+#elif (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+typedef signed char yytype_int8;
+#else
+typedef short int yytype_int8;
+#endif
+
+#ifdef YYTYPE_UINT16
+typedef YYTYPE_UINT16 yytype_uint16;
+#else
+typedef unsigned short int yytype_uint16;
+#endif
+
+#ifdef YYTYPE_INT16
+typedef YYTYPE_INT16 yytype_int16;
+#else
+typedef short int yytype_int16;
+#endif
+
+#ifndef YYSIZE_T
+# ifdef __SIZE_TYPE__
+# define YYSIZE_T __SIZE_TYPE__
+# elif defined size_t
+# define YYSIZE_T size_t
+# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# else
+# define YYSIZE_T unsigned int
+# endif
+#endif
+
+#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
+
+#ifndef YY_
+# if YYENABLE_NLS
+# if ENABLE_NLS
+# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
+# define YY_(msgid) dgettext ("bison-runtime", msgid)
+# endif
+# endif
+# ifndef YY_
+# define YY_(msgid) msgid
+# endif
+#endif
+
+/* Suppress unused-variable warnings by "using" E. */
+#if ! defined lint || defined __GNUC__
+# define YYUSE(e) ((void) (e))
+#else
+# define YYUSE(e) /* empty */
+#endif
+
+/* Identity function, used to suppress warnings about constant conditions. */
+#ifndef lint
+# define YYID(n) (n)
+#else
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static int
+YYID (int yyi)
+#else
+static int
+YYID (yyi)
+ int yyi;
+#endif
+{
+ return yyi;
+}
+#endif
+
+#if ! defined yyoverflow || YYERROR_VERBOSE
+
+/* The parser invokes alloca or malloc; define the necessary symbols. */
+
+# ifdef YYSTACK_USE_ALLOCA
+# if YYSTACK_USE_ALLOCA
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# elif defined __BUILTIN_VA_ARG_INCR
+# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
+# elif defined _AIX
+# define YYSTACK_ALLOC __alloca
+# elif defined _MSC_VER
+# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
+# define alloca _alloca
+# else
+# define YYSTACK_ALLOC alloca
+# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+# ifndef YYSTACK_ALLOC_MAXIMUM
+ /* The OS might guarantee only one guard page at the bottom of the stack,
+ and a page size can be as small as 4096 bytes. So we cannot safely
+ invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
+ to allow for a few compiler-allocated temporary stack slots. */
+# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
+# endif
+# else
+# define YYSTACK_ALLOC YYMALLOC
+# define YYSTACK_FREE YYFREE
+# ifndef YYSTACK_ALLOC_MAXIMUM
+# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
+# endif
+# if (defined __cplusplus && ! defined _STDLIB_H \
+ && ! ((defined YYMALLOC || defined malloc) \
+ && (defined YYFREE || defined free)))
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
+# endif
+# endif
+# ifndef YYMALLOC
+# define YYMALLOC malloc
+# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# ifndef YYFREE
+# define YYFREE free
+# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+void free (void *); /* INFRINGES ON USER NAME SPACE */
+# endif
+# endif
+# endif
+#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
+
+
+#if (! defined yyoverflow \
+ && (! defined __cplusplus \
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+
+/* A type that is properly aligned for any stack member. */
+union yyalloc
+{
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
+};
+
+/* The size of the maximum gap between one aligned stack and the next. */
+# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
+
+/* The size of an array large to enough to hold all stacks, each with
+ N elements. */
+# define YYSTACK_BYTES(N) \
+ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ + YYSTACK_GAP_MAXIMUM)
+
+/* Copy COUNT objects from FROM to TO. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if defined __GNUC__ && 1 < __GNUC__
+# define YYCOPY(To, From, Count) \
+ __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+# else
+# define YYCOPY(To, From, Count) \
+ do \
+ { \
+ YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (To)[yyi] = (From)[yyi]; \
+ } \
+ while (YYID (0))
+# endif
+# endif
+
+/* Relocate STACK from its old location to the new one. The
+ local variables YYSIZE and YYSTACKSIZE give the old and new number of
+ elements in the stack, and YYPTR gives the new location of the
+ stack. Advance YYPTR to a properly aligned location for the next
+ stack. */
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (YYID (0))
+
+#endif
+
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL 63
+/* YYLAST -- Last index in YYTABLE. */
+#define YYLAST 891
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 83
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 75
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 197
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 370
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 322
+
+#define YYTRANSLATE(YYX) \
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+static const yytype_uint8 yytranslate[] =
+{
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 79, 2,
+ 72, 73, 80, 2, 76, 81, 82, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 70, 71,
+ 2, 75, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 77, 2, 78, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 68, 2, 69, 74, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
+ 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
+ 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
+ 65, 66, 67
+};
+
+#if YYDEBUG
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+ YYRHS. */
+static const yytype_uint16 yyprhs[] =
+{
+ 0, 0, 3, 7, 10, 12, 13, 21, 23, 26,
+ 29, 31, 33, 36, 39, 43, 46, 49, 51, 56,
+ 59, 63, 65, 68, 72, 77, 81, 84, 86, 89,
+ 93, 98, 102, 105, 109, 110, 111, 116, 120, 121,
+ 123, 124, 130, 132, 134, 136, 138, 140, 145, 149,
+ 153, 154, 156, 158, 159, 164, 166, 167, 172, 174,
+ 175, 178, 182, 185, 188, 189, 190, 194, 199, 202,
+ 204, 207, 211, 213, 216, 218, 220, 223, 226, 228,
+ 230, 232, 235, 238, 239, 243, 245, 247, 249, 251,
+ 253, 255, 257, 259, 261, 263, 265, 267, 269, 271,
+ 273, 275, 277, 279, 281, 283, 285, 287, 289, 291,
+ 293, 294, 297, 300, 301, 307, 309, 311, 313, 316,
+ 318, 320, 324, 326, 327, 335, 336, 337, 346, 347,
+ 353, 354, 360, 361, 362, 373, 374, 382, 383, 391,
+ 392, 393, 402, 403, 411, 412, 420, 421, 429, 430,
+ 438, 439, 447, 448, 456, 457, 465, 466, 474, 475,
+ 483, 484, 494, 495, 505, 510, 515, 522, 530, 531,
+ 534, 535, 538, 540, 542, 544, 546, 548, 550, 552,
+ 554, 556, 558, 560, 562, 564, 566, 568, 570, 572,
+ 574, 576, 578, 580, 582, 584, 588, 592
+};
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yytype_int16 yyrhs[] =
+{
+ 84, 0, -1, 151, 86, 151, -1, 28, 67, -1,
+ 28, -1, -1, 3, 28, 87, 122, 68, 88, 69,
+ -1, 89, -1, 89, 88, -1, 125, 70, -1, 110,
+ -1, 92, -1, 27, 92, -1, 91, 103, -1, 27,
+ 91, 103, -1, 90, 103, -1, 128, 71, -1, 128,
+ -1, 32, 72, 91, 73, -1, 74, 94, -1, 7,
+ 74, 94, -1, 94, -1, 114, 94, -1, 114, 24,
+ 94, -1, 7, 114, 24, 94, -1, 7, 114, 94,
+ -1, 7, 94, -1, 93, -1, 114, 93, -1, 114,
+ 24, 93, -1, 7, 114, 24, 93, -1, 7, 114,
+ 93, -1, 7, 93, -1, 25, 152, 71, -1, -1,
+ -1, 98, 95, 97, 96, -1, 98, 75, 9, -1,
+ -1, 24, -1, -1, 102, 72, 99, 104, 73, -1,
+ 24, -1, 29, -1, 85, -1, 10, -1, 71, -1,
+ 68, 151, 69, 71, -1, 68, 151, 69, -1, 70,
+ 152, 71, -1, -1, 105, -1, 107, -1, -1, 107,
+ 106, 76, 105, -1, 114, -1, -1, 114, 111, 108,
+ 109, -1, 30, -1, -1, 75, 126, -1, 114, 111,
+ 71, -1, 30, 71, -1, 102, 112, -1, -1, -1,
+ 31, 113, 112, -1, 77, 152, 78, 112, -1, 100,
+ 115, -1, 115, -1, 101, 115, -1, 101, 100, 115,
+ -1, 119, -1, 119, 118, -1, 116, -1, 117, -1,
+ 117, 79, -1, 117, 80, -1, 44, -1, 79, -1,
+ 80, -1, 79, 118, -1, 80, 118, -1, -1, 26,
+ 120, 121, -1, 121, -1, 33, -1, 34, -1, 35,
+ -1, 36, -1, 37, -1, 38, -1, 39, -1, 40,
+ -1, 41, -1, 42, -1, 12, -1, 18, -1, 19,
+ -1, 11, -1, 13, -1, 14, -1, 17, -1, 10,
+ -1, 85, -1, 43, -1, 15, -1, 16, -1, 20,
+ -1, 21, -1, -1, 70, 123, -1, 125, 28, -1,
+ -1, 125, 28, 124, 76, 123, -1, 4, -1, 5,
+ -1, 6, -1, 81, 127, -1, 127, -1, 9, -1,
+ 9, 82, 9, -1, 102, -1, -1, 45, 72, 102,
+ 76, 129, 119, 73, -1, -1, -1, 46, 72, 130,
+ 102, 76, 131, 119, 73, -1, -1, 47, 72, 132,
+ 102, 73, -1, -1, 48, 72, 133, 102, 73, -1,
+ -1, -1, 49, 72, 102, 76, 134, 119, 135, 76,
+ 152, 73, -1, -1, 50, 72, 102, 76, 136, 119,
+ 73, -1, -1, 51, 72, 102, 76, 137, 119, 73,
+ -1, -1, -1, 52, 72, 138, 102, 76, 139, 119,
+ 73, -1, -1, 53, 72, 102, 140, 76, 119, 73,
+ -1, -1, 54, 72, 102, 76, 141, 119, 73, -1,
+ -1, 58, 72, 102, 76, 142, 119, 73, -1, -1,
+ 55, 72, 102, 76, 143, 119, 73, -1, -1, 59,
+ 72, 102, 76, 144, 119, 73, -1, -1, 56, 72,
+ 102, 76, 145, 119, 73, -1, -1, 60, 72, 102,
+ 76, 146, 119, 73, -1, -1, 57, 72, 102, 76,
+ 147, 119, 73, -1, -1, 61, 72, 102, 76, 148,
+ 119, 73, -1, -1, 62, 72, 102, 76, 149, 119,
+ 76, 126, 73, -1, -1, 63, 72, 102, 76, 150,
+ 119, 76, 126, 73, -1, 64, 72, 102, 73, -1,
+ 65, 72, 102, 73, -1, 66, 72, 102, 76, 102,
+ 73, -1, 66, 72, 102, 76, 102, 76, 73, -1,
+ -1, 153, 151, -1, -1, 154, 152, -1, 71, -1,
+ 154, -1, 23, -1, 155, -1, 156, -1, 80, -1,
+ 75, -1, 70, -1, 76, -1, 82, -1, 8, -1,
+ 119, -1, 117, -1, 9, -1, 22, -1, 79, -1,
+ 157, -1, 24, -1, 25, -1, 81, -1, 74, -1,
+ 29, -1, 31, -1, 68, 151, 69, -1, 72, 151,
+ 73, -1, 77, 151, 78, -1
+};
+
+/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+static const yytype_uint16 yyrline[] =
+{
+ 0, 281, 281, 283, 288, 295, 294, 300, 300, 302,
+ 302, 303, 304, 305, 306, 307, 308, 309, 311, 313,
+ 314, 315, 316, 320, 324, 329, 334, 340, 344, 349,
+ 354, 360, 366, 372, 378, 378, 378, 384, 393, 393,
+ 395, 395, 397, 399, 401, 401, 403, 404, 405, 406,
+ 408, 408, 410, 411, 411, 413, 419, 418, 425, 432,
+ 432, 434, 434, 436, 444, 445, 445, 448, 451, 452,
+ 453, 454, 456, 457, 459, 461, 462, 463, 465, 475,
+ 476, 477, 478, 480, 480, 482, 485, 486, 487, 488,
+ 489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
+ 499, 500, 501, 502, 507, 527, 528, 529, 530, 531,
+ 533, 533, 535, 541, 540, 546, 547, 548, 550, 550,
+ 552, 553, 553, 557, 556, 568, 568, 568, 577, 577,
+ 588, 588, 598, 599, 597, 630, 629, 642, 641, 653,
+ 654, 653, 663, 662, 680, 679, 710, 709, 727, 726,
+ 759, 758, 776, 775, 810, 809, 827, 826, 865, 864,
+ 882, 881, 900, 899, 916, 963, 1012, 1063, 1119, 1119,
+ 1120, 1120, 1122, 1122, 1124, 1124, 1124, 1124, 1124, 1124,
+ 1124, 1124, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1126,
+ 1126, 1126, 1126, 1126, 1126, 1128, 1129, 1130
+};
+#endif
+
+#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
+/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+ First, the terminals, then, starting at YYNTOKENS, nonterminals. */
+static const char *const yytname[] =
+{
+ "$end", "error", "$undefined", "CLASS", "PUBLIC", "PRIVATE",
+ "PROTECTED", "VIRTUAL", "STRING", "NUM", "ID", "INT", "FLOAT", "SHORT",
+ "LONG", "LONG_LONG", "INT64__", "DOUBLE", "VOID", "CHAR", "SIGNED_CHAR",
+ "BOOL", "CLASS_REF", "OTHER", "CONST", "OPERATOR", "UNSIGNED", "FRIEND",
+ "VTK_ID", "STATIC", "VAR_FUNCTION", "ARRAY_NUM", "VTK_LEGACY",
+ "TypeInt8", "TypeUInt8", "TypeInt16", "TypeUInt16", "TypeInt32",
+ "TypeUInt32", "TypeInt64", "TypeUInt64", "TypeFloat32", "TypeFloat64",
+ "IdType", "StdString", "SetMacro", "GetMacro", "SetStringMacro",
+ "GetStringMacro", "SetClampMacro", "SetObjectMacro",
+ "SetReferenceCountedObjectMacro", "GetObjectMacro", "BooleanMacro",
+ "SetVector2Macro", "SetVector3Macro", "SetVector4Macro",
+ "SetVector6Macro", "GetVector2Macro", "GetVector3Macro",
+ "GetVector4Macro", "GetVector6Macro", "SetVectorMacro", "GetVectorMacro",
+ "ViewportCoordinateMacro", "WorldCoordinateMacro", "TypeMacro",
+ "VTK_WRAP_EXTERN", "'{'", "'}'", "':'", "';'", "'('", "')'", "'~'",
+ "'='", "','", "'['", "']'", "'&'", "'*'", "'-'", "'.'", "$accept",
+ "strt", "vtk_id", "class_def", "$@1", "class_def_body", "class_def_item",
+ "legacy_function", "function", "operator", "operator_sig", "func", "$@2",
+ "$@3", "maybe_const", "func_sig", "$@4", "const_mod", "static_mod",
+ "any_id", "func_body", "args_list", "more_args", "$@5", "arg", "$@6",
+ "opt_var_assign", "var", "var_id", "var_array", "$@7", "type",
+ "type_red1", "type_string1", "type_string2", "type_indirection",
+ "type_red2", "$@8", "type_primitive", "optional_scope", "scope_list",
+ "$@9", "scope_type", "float_num", "float_prim", "macro", "$@10", "$@11",
+ "$@12", "$@13", "$@14", "$@15", "$@16", "$@17", "$@18", "$@19", "$@20",
+ "$@21", "$@22", "$@23", "$@24", "$@25", "$@26", "$@27", "$@28", "$@29",
+ "$@30", "$@31", "maybe_other", "maybe_other_no_semi", "other_stuff",
+ "other_stuff_no_semi", "braces", "parens", "brackets", 0
+};
+#endif
+
+# ifdef YYPRINT
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+ token YYLEX-NUM. */
+static const yytype_uint16 yytoknum[] =
+{
+ 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
+ 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
+ 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
+ 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
+ 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
+ 315, 316, 317, 318, 319, 320, 321, 322, 123, 125,
+ 58, 59, 40, 41, 126, 61, 44, 91, 93, 38,
+ 42, 45, 46
+};
+# endif
+
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint8 yyr1[] =
+{
+ 0, 83, 84, 85, 85, 87, 86, 88, 88, 89,
+ 89, 89, 89, 89, 89, 89, 89, 89, 90, 91,
+ 91, 91, 91, 91, 91, 91, 91, 92, 92, 92,
+ 92, 92, 92, 93, 95, 96, 94, 94, 97, 97,
+ 99, 98, 100, 101, 102, 102, 103, 103, 103, 103,
+ 104, 104, 105, 106, 105, 107, 108, 107, 107, 109,
+ 109, 110, 110, 111, 112, 113, 112, 112, 114, 114,
+ 114, 114, 115, 115, 115, 116, 116, 116, 117, 118,
+ 118, 118, 118, 120, 119, 119, 121, 121, 121, 121,
+ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
+ 121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
+ 122, 122, 123, 124, 123, 125, 125, 125, 126, 126,
+ 127, 127, 127, 129, 128, 130, 131, 128, 132, 128,
+ 133, 128, 134, 135, 128, 136, 128, 137, 128, 138,
+ 139, 128, 140, 128, 141, 128, 142, 128, 143, 128,
+ 144, 128, 145, 128, 146, 128, 147, 128, 148, 128,
+ 149, 128, 150, 128, 128, 128, 128, 128, 151, 151,
+ 152, 152, 153, 153, 154, 154, 154, 154, 154, 154,
+ 154, 154, 154, 154, 154, 154, 154, 154, 154, 154,
+ 154, 154, 154, 154, 154, 155, 156, 157
+};
+
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 3, 2, 1, 0, 7, 1, 2, 2,
+ 1, 1, 2, 2, 3, 2, 2, 1, 4, 2,
+ 3, 1, 2, 3, 4, 3, 2, 1, 2, 3,
+ 4, 3, 2, 3, 0, 0, 4, 3, 0, 1,
+ 0, 5, 1, 1, 1, 1, 1, 4, 3, 3,
+ 0, 1, 1, 0, 4, 1, 0, 4, 1, 0,
+ 2, 3, 2, 2, 0, 0, 3, 4, 2, 1,
+ 2, 3, 1, 2, 1, 1, 2, 2, 1, 1,
+ 1, 2, 2, 0, 3, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 0, 2, 2, 0, 5, 1, 1, 1, 2, 1,
+ 1, 3, 1, 0, 7, 0, 0, 8, 0, 5,
+ 0, 5, 0, 0, 10, 0, 7, 0, 7, 0,
+ 0, 8, 0, 7, 0, 7, 0, 7, 0, 7,
+ 0, 7, 0, 7, 0, 7, 0, 7, 0, 7,
+ 0, 9, 0, 9, 4, 4, 6, 7, 0, 2,
+ 0, 2, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 3, 3, 3
+};
+
+/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
+ STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+ means the default is an error. */
+static const yytype_uint8 yydefact[] =
+{
+ 168, 182, 185, 103, 99, 96, 100, 101, 106, 107,
+ 102, 97, 98, 108, 109, 186, 174, 189, 190, 83,
+ 4, 193, 194, 86, 87, 88, 89, 90, 91, 92,
+ 93, 94, 95, 105, 78, 168, 179, 172, 168, 192,
+ 178, 180, 168, 187, 177, 191, 181, 0, 104, 184,
+ 183, 85, 0, 168, 173, 175, 176, 188, 0, 3,
+ 0, 0, 0, 1, 0, 168, 169, 84, 195, 196,
+ 197, 5, 2, 110, 0, 0, 115, 116, 117, 111,
+ 0, 0, 112, 0, 103, 42, 170, 0, 43, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 104, 0, 7, 0, 0, 11,
+ 27, 21, 34, 0, 0, 0, 10, 0, 69, 74,
+ 75, 72, 0, 17, 0, 0, 32, 26, 0, 0,
+ 170, 0, 12, 0, 62, 0, 0, 125, 128, 130,
+ 0, 0, 0, 139, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 45, 44,
+ 19, 6, 8, 168, 170, 46, 15, 13, 0, 38,
+ 68, 0, 70, 40, 0, 28, 22, 64, 0, 76,
+ 77, 79, 80, 73, 9, 16, 0, 20, 0, 31,
+ 25, 33, 171, 14, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 142, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 37, 39, 35, 71, 50, 29, 23, 65, 170,
+ 63, 61, 81, 82, 114, 30, 24, 0, 18, 0,
+ 123, 0, 0, 0, 132, 135, 137, 0, 0, 144,
+ 148, 152, 156, 146, 150, 154, 158, 160, 162, 164,
+ 165, 0, 48, 49, 36, 58, 0, 51, 52, 55,
+ 64, 0, 0, 0, 126, 129, 131, 0, 0, 0,
+ 140, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 47, 41, 0, 64, 56, 66, 64,
+ 0, 0, 133, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 166, 0, 0,
+ 59, 67, 124, 0, 0, 136, 138, 0, 143, 145,
+ 149, 153, 157, 147, 151, 155, 159, 0, 0, 167,
+ 54, 0, 57, 127, 170, 141, 120, 0, 122, 0,
+ 119, 0, 60, 0, 0, 118, 161, 163, 134, 121
+};
+
+/* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
+{
+ -1, 47, 169, 65, 73, 115, 116, 117, 118, 119,
+ 120, 121, 179, 274, 233, 122, 235, 123, 124, 125,
+ 176, 276, 277, 305, 278, 330, 352, 126, 188, 240,
+ 280, 127, 128, 129, 49, 193, 50, 58, 51, 75,
+ 79, 134, 80, 359, 360, 133, 283, 208, 311, 209,
+ 210, 287, 334, 288, 289, 214, 315, 258, 292, 296,
+ 293, 297, 294, 298, 295, 299, 300, 301, 52, 139,
+ 53, 54, 55, 56, 57
+};
+
+/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+#define YYPACT_NINF -274
+static const yytype_int16 yypact[] =
+{
+ 322, -274, -274, -274, -274, -274, -274, -274, -274, -274,
+ -274, -274, -274, -274, -274, -274, -274, -274, -274, -274,
+ -44, -274, -274, -274, -274, -274, -274, -274, -274, -274,
+ -274, -274, -274, -274, -274, 322, -274, -274, 322, -274,
+ -274, -274, 322, -274, -274, -274, -274, 37, -274, -274,
+ -274, -274, 46, 322, -274, -274, -274, -274, 848, -274,
+ -3, -17, 4, -274, 56, 322, -274, -274, -274, -274,
+ -274, -274, -274, 29, 131, 39, -274, -274, -274, -274,
+ 77, 476, 32, 625, 38, -274, 397, 541, -274, 41,
+ 45, 47, 49, 50, 58, 59, 61, 67, 69, 71,
+ 72, 74, 75, 76, 80, 81, 83, 85, 93, 94,
+ 95, 96, 97, 22, 98, 102, 476, -46, -46, -274,
+ -274, -274, 53, 779, 744, 100, -274, 66, -274, -274,
+ -51, -2, 68, 79, 73, 22, -274, -274, 78, 88,
+ 397, -46, -274, 66, -274, 583, 22, -274, -274, -274,
+ 22, 22, 22, -274, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, -274, -274,
+ -274, -274, -274, 322, 397, -274, -274, -274, 166, 152,
+ -274, 779, -274, -274, 44, -274, -274, -13, 106, -274,
+ -274, -2, -2, -274, -274, -274, 131, -274, 44, -274,
+ -274, -274, -274, -274, 667, 105, 87, 103, 22, 22,
+ 22, 107, 111, 126, 22, -274, 127, 132, 133, 137,
+ 149, 150, 151, 153, 154, 155, 109, 159, 157, 167,
+ 170, -274, -274, -274, -274, 709, -274, -274, -274, 397,
+ -274, -274, -274, -274, -274, -274, -274, 90, -274, 22,
+ -274, 161, 172, 173, -274, -274, -274, 171, 174, -274,
+ -274, -274, -274, -274, -274, -274, -274, -274, -274, -274,
+ -274, 22, 178, -274, -274, -274, 180, -274, 175, 22,
+ -10, 177, 22, 814, -274, -274, -274, 814, 814, 814,
+ -274, 814, 814, 814, 814, 814, 814, 814, 814, 814,
+ 814, 814, -43, -274, -274, 182, -10, -274, -274, -10,
+ 183, 814, -274, 186, 187, 814, 188, 189, 190, 191,
+ 192, 193, 194, 195, 197, 196, 198, -274, 200, 709,
+ 201, -274, -274, 202, 203, -274, -274, 204, -274, -274,
+ -274, -274, -274, -274, -274, -274, -274, 17, 17, -274,
+ -274, 17, -274, -274, 397, -274, 199, 52, -274, 205,
+ -274, 207, -274, 209, 262, -274, -274, -274, -274, -274
+};
+
+/* YYPGOTO[NTERM-NUM]. */
+static const yytype_int16 yypgoto[] =
+{
+ -274, -274, 0, -274, -274, 168, -274, -274, -70, 215,
+ -64, -42, -274, -274, -274, -274, -274, 162, -274, 34,
+ -84, -274, -39, -274, -274, -274, -274, -274, 6, -273,
+ -274, -75, -121, -274, -72, -66, -77, -274, 245, -274,
+ 108, -274, -76, -256, -50, -274, -274, -274, -274, -274,
+ -274, -274, -274, -274, -274, -274, -274, -274, -274, -274,
+ -274, -274, -274, -274, -274, -274, -274, -274, -22, -126,
+ -274, -85, -274, -274, -274
+};
+
+/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule which
+ number is the opposite. If zero, do what YYDEFACT says.
+ If YYTABLE_NINF, syntax error. */
+#define YYTABLE_NINF -114
+static const yytype_int16 yytable[] =
+{
+ 48, 140, 180, 182, 131, 132, 131, 308, 138, 130,
+ 131, 130, 143, 60, 202, 130, 61, 141, 238, 136,
+ 62, 238, 173, 59, 174, 175, 356, 168, 189, 190,
+ 327, 66, 168, 328, 177, 48, 331, 63, 48, 131,
+ 132, 137, 48, 72, 130, 20, 131, 131, 230, 64,
+ 20, 130, 130, 48, 168, 140, 69, 203, 48, 183,
+ 234, 356, 168, 185, 239, 48, 68, 239, 131, 86,
+ 206, 170, 20, 130, 199, 205, 168, 191, 192, 185,
+ 20, 114, 70, 114, 71, 186, 48, 114, 168, 140,
+ 184, 86, 361, 197, 20, 362, 200, 168, 357, 74,
+ 168, 186, 198, 86, 131, 82, 20, 81, -113, 130,
+ -45, 249, 144, 281, 282, 20, 114, 145, 20, 146,
+ 236, 147, 148, 48, 48, 242, 243, 131, 178, 247,
+ 149, 150, 130, 151, 245, 76, 77, 78, 194, 152,
+ 48, 153, 237, 154, 155, 114, 156, 157, 158, 196,
+ 195, 229, 159, 160, 140, 161, 246, 162, 131, 201,
+ 279, 187, 137, 130, 186, 163, 164, 165, 166, 167,
+ -44, 171, 183, 48, 48, 231, 232, 241, 248, 250,
+ 207, 48, 269, 254, 211, 212, 213, 255, 215, 216,
+ 217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
+ 227, 228, 256, 259, 114, 200, 310, 237, 260, 261,
+ 312, 313, 314, 262, 316, 317, 318, 319, 320, 321,
+ 322, 323, 324, 325, 326, 263, 264, 265, 363, 266,
+ 267, 268, 270, 271, 333, 48, 272, 284, 337, 48,
+ 246, 273, 251, 252, 253, 285, 286, 290, 257, 303,
+ 291, -53, 131, 304, 279, 309, 332, 130, 329, 335,
+ 336, 338, 339, 340, 341, 342, 343, 344, 345, 140,
+ 346, 369, 347, 349, 348, 353, 351, 355, 366, 354,
+ 367, 364, 368, 48, 172, 307, 181, 48, 48, 48,
+ 350, 48, 48, 48, 48, 48, 48, 48, 48, 48,
+ 48, 48, 142, 67, 244, 302, 0, 365, 0, 0,
+ 0, 48, 0, 306, 0, 48, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 48,
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
+ 11, 12, 13, 14, 15, 16, 17, 18, 19, 0,
+ 20, 21, 0, 22, 48, 23, 24, 25, 26, 27,
+ 28, 29, 30, 31, 32, 33, 34, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 358, 358, 0, 0, 358, 0, 0, 0, 0,
+ 35, 358, 36, 37, 38, 0, 39, 40, 41, 42,
+ 0, 43, 44, 45, 46, 1, 2, 3, 4, 5,
+ 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 19, 0, 20, 21, 0, 22, 0,
+ 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 35, 0, 36, 0, 38,
+ 0, 39, 40, 41, 42, 0, 43, 44, 45, 46,
+ 76, 77, 78, 83, 0, 0, 84, 4, 5, 6,
+ 7, 8, 9, 10, 11, 12, 13, 14, 0, 0,
+ 85, 86, 19, 87, 20, 88, 89, 0, 90, 23,
+ 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
+ 34, 91, 92, 93, 94, 95, 96, 97, 98, 99,
+ 100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
+ 110, 111, 112, 0, 0, 0, 0, 0, 83, 0,
+ 113, 84, 4, 5, 6, 7, 8, 9, 10, 11,
+ 12, 13, 14, 0, 0, 85, 86, 19, 0, 20,
+ 88, 0, 0, 0, 23, 24, 25, 26, 27, 28,
+ 29, 30, 31, 32, 33, 34, 0, 0, 0, 0,
+ 204, 0, 0, 84, 4, 5, 6, 7, 8, 9,
+ 10, 11, 12, 13, 14, 0, 0, 85, 0, 19,
+ 0, 20, 88, 0, 0, 113, 23, 24, 25, 26,
+ 27, 28, 29, 30, 31, 32, 33, 34, 0, 0,
+ 0, 0, 0, 0, 0, 84, 4, 5, 6, 7,
+ 8, 9, 10, 11, 12, 13, 14, 0, 0, 85,
+ 86, 19, 0, 20, 88, 0, 0, 113, 23, 24,
+ 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
+ 0, 0, 0, 0, 0, 0, 0, 84, 4, 5,
+ 6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
+ 0, 85, 0, 19, 0, 20, 88, 0, 0, 135,
+ 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
+ 33, 34, 0, 0, 0, 0, 0, 0, 0, 3,
+ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
+ 14, 0, 0, 85, 0, 19, 0, 20, 88, 275,
+ 0, 135, 23, 24, 25, 26, 27, 28, 29, 30,
+ 31, 32, 33, 34, 3, 4, 5, 6, 7, 8,
+ 9, 10, 11, 12, 13, 14, 0, 0, 85, 0,
+ 19, 0, 20, 0, 0, 0, 0, 23, 24, 25,
+ 26, 27, 28, 29, 30, 31, 32, 33, 34, 3,
+ 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
+ 14, 0, 0, 0, 0, 19, 0, 20, 0, 0,
+ 0, 0, 23, 24, 25, 26, 27, 28, 29, 30,
+ 31, 32, 33, 34, 3, 4, 5, 6, 7, 8,
+ 9, 10, 11, 12, 13, 14, 0, 0, 0, 0,
+ 19, 0, 20, 0, 0, 0, 0, 23, 24, 25,
+ 26, 27, 28, 29, 30, 31, 32, 33, 3, 4,
+ 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
+ 0, 0, 0, 0, 0, 0, 20, 0, 0, 0,
+ 0, 23, 24, 25, 26, 27, 28, 29, 30, 31,
+ 32, 33
+};
+
+static const yytype_int16 yycheck[] =
+{
+ 0, 86, 123, 124, 81, 81, 83, 280, 83, 81,
+ 87, 83, 87, 35, 140, 87, 38, 87, 31, 83,
+ 42, 31, 68, 67, 70, 71, 9, 10, 79, 80,
+ 73, 53, 10, 76, 118, 35, 309, 0, 38, 116,
+ 116, 83, 42, 65, 116, 28, 123, 124, 174, 3,
+ 28, 123, 124, 53, 10, 140, 73, 141, 58, 72,
+ 181, 9, 10, 127, 77, 65, 69, 77, 145, 25,
+ 145, 113, 28, 145, 138, 145, 10, 79, 80, 143,
+ 28, 81, 78, 83, 28, 127, 86, 87, 10, 174,
+ 24, 25, 348, 135, 28, 351, 138, 10, 81, 70,
+ 10, 143, 24, 25, 181, 28, 28, 68, 76, 181,
+ 72, 24, 71, 239, 24, 28, 116, 72, 28, 72,
+ 184, 72, 72, 123, 124, 191, 192, 204, 75, 204,
+ 72, 72, 204, 72, 198, 4, 5, 6, 70, 72,
+ 140, 72, 184, 72, 72, 145, 72, 72, 72, 76,
+ 71, 173, 72, 72, 239, 72, 198, 72, 235, 71,
+ 235, 127, 204, 235, 206, 72, 72, 72, 72, 72,
+ 72, 69, 72, 173, 174, 9, 24, 71, 73, 76,
+ 146, 181, 73, 76, 150, 151, 152, 76, 154, 155,
+ 156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
+ 166, 167, 76, 76, 204, 247, 283, 249, 76, 76,
+ 287, 288, 289, 76, 291, 292, 293, 294, 295, 296,
+ 297, 298, 299, 300, 301, 76, 76, 76, 354, 76,
+ 76, 76, 73, 76, 311, 235, 69, 76, 315, 239,
+ 282, 71, 208, 209, 210, 73, 73, 76, 214, 71,
+ 76, 76, 329, 73, 329, 78, 73, 329, 76, 73,
+ 73, 73, 73, 73, 73, 73, 73, 73, 73, 354,
+ 73, 9, 76, 73, 76, 73, 75, 73, 73, 76,
+ 73, 82, 73, 283, 116, 279, 124, 287, 288, 289,
+ 329, 291, 292, 293, 294, 295, 296, 297, 298, 299,
+ 300, 301, 87, 58, 196, 271, -1, 357, -1, -1,
+ -1, 311, -1, 279, -1, 315, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 329,
+ 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
+ 18, 19, 20, 21, 22, 23, 24, 25, 26, -1,
+ 28, 29, -1, 31, 354, 33, 34, 35, 36, 37,
+ 38, 39, 40, 41, 42, 43, 44, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 347, 348, -1, -1, 351, -1, -1, -1, -1,
+ 68, 357, 70, 71, 72, -1, 74, 75, 76, 77,
+ -1, 79, 80, 81, 82, 8, 9, 10, 11, 12,
+ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
+ 23, 24, 25, 26, -1, 28, 29, -1, 31, -1,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
+ 43, 44, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 68, -1, 70, -1, 72,
+ -1, 74, 75, 76, 77, -1, 79, 80, 81, 82,
+ 4, 5, 6, 7, -1, -1, 10, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 20, 21, -1, -1,
+ 24, 25, 26, 27, 28, 29, 30, -1, 32, 33,
+ 34, 35, 36, 37, 38, 39, 40, 41, 42, 43,
+ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 66, -1, -1, -1, -1, -1, 7, -1,
+ 74, 10, 11, 12, 13, 14, 15, 16, 17, 18,
+ 19, 20, 21, -1, -1, 24, 25, 26, -1, 28,
+ 29, -1, -1, -1, 33, 34, 35, 36, 37, 38,
+ 39, 40, 41, 42, 43, 44, -1, -1, -1, -1,
+ 7, -1, -1, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, -1, -1, 24, -1, 26,
+ -1, 28, 29, -1, -1, 74, 33, 34, 35, 36,
+ 37, 38, 39, 40, 41, 42, 43, 44, -1, -1,
+ -1, -1, -1, -1, -1, 10, 11, 12, 13, 14,
+ 15, 16, 17, 18, 19, 20, 21, -1, -1, 24,
+ 25, 26, -1, 28, 29, -1, -1, 74, 33, 34,
+ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
+ -1, -1, -1, -1, -1, -1, -1, 10, 11, 12,
+ 13, 14, 15, 16, 17, 18, 19, 20, 21, -1,
+ -1, 24, -1, 26, -1, 28, 29, -1, -1, 74,
+ 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
+ 43, 44, -1, -1, -1, -1, -1, -1, -1, 10,
+ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
+ 21, -1, -1, 24, -1, 26, -1, 28, 29, 30,
+ -1, 74, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 19, 20, 21, -1, -1, 24, -1,
+ 26, -1, 28, -1, -1, -1, -1, 33, 34, 35,
+ 36, 37, 38, 39, 40, 41, 42, 43, 44, 10,
+ 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
+ 21, -1, -1, -1, -1, 26, -1, 28, -1, -1,
+ -1, -1, 33, 34, 35, 36, 37, 38, 39, 40,
+ 41, 42, 43, 44, 10, 11, 12, 13, 14, 15,
+ 16, 17, 18, 19, 20, 21, -1, -1, -1, -1,
+ 26, -1, 28, -1, -1, -1, -1, 33, 34, 35,
+ 36, 37, 38, 39, 40, 41, 42, 43, 10, 11,
+ 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
+ -1, -1, -1, -1, -1, -1, 28, -1, -1, -1,
+ -1, 33, 34, 35, 36, 37, 38, 39, 40, 41,
+ 42, 43
+};
+
+/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
+static const yytype_uint8 yystos[] =
+{
+ 0, 8, 9, 10, 11, 12, 13, 14, 15, 16,
+ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
+ 28, 29, 31, 33, 34, 35, 36, 37, 38, 39,
+ 40, 41, 42, 43, 44, 68, 70, 71, 72, 74,
+ 75, 76, 77, 79, 80, 81, 82, 84, 85, 117,
+ 119, 121, 151, 153, 154, 155, 156, 157, 120, 67,
+ 151, 151, 151, 0, 3, 86, 151, 121, 69, 73,
+ 78, 28, 151, 87, 70, 122, 4, 5, 6, 123,
+ 125, 68, 28, 7, 10, 24, 25, 27, 29, 30,
+ 32, 45, 46, 47, 48, 49, 50, 51, 52, 53,
+ 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
+ 64, 65, 66, 74, 85, 88, 89, 90, 91, 92,
+ 93, 94, 98, 100, 101, 102, 110, 114, 115, 116,
+ 117, 119, 125, 128, 124, 74, 93, 94, 114, 152,
+ 154, 91, 92, 114, 71, 72, 72, 72, 72, 72,
+ 72, 72, 72, 72, 72, 72, 72, 72, 72, 72,
+ 72, 72, 72, 72, 72, 72, 72, 72, 10, 85,
+ 94, 69, 88, 68, 70, 71, 103, 103, 75, 95,
+ 115, 100, 115, 72, 24, 93, 94, 102, 111, 79,
+ 80, 79, 80, 118, 70, 71, 76, 94, 24, 93,
+ 94, 71, 152, 103, 7, 91, 114, 102, 130, 132,
+ 133, 102, 102, 102, 138, 102, 102, 102, 102, 102,
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 151,
+ 152, 9, 24, 97, 115, 99, 93, 94, 31, 77,
+ 112, 71, 118, 118, 123, 93, 94, 114, 73, 24,
+ 76, 102, 102, 102, 76, 76, 76, 102, 140, 76,
+ 76, 76, 76, 76, 76, 76, 76, 76, 76, 73,
+ 73, 76, 69, 71, 96, 30, 104, 105, 107, 114,
+ 113, 152, 24, 129, 76, 73, 73, 134, 136, 137,
+ 76, 76, 141, 143, 145, 147, 142, 144, 146, 148,
+ 149, 150, 102, 71, 73, 106, 102, 111, 112, 78,
+ 119, 131, 119, 119, 119, 139, 119, 119, 119, 119,
+ 119, 119, 119, 119, 119, 119, 119, 73, 76, 76,
+ 108, 112, 73, 119, 135, 73, 73, 119, 73, 73,
+ 73, 73, 73, 73, 73, 73, 73, 76, 76, 73,
+ 105, 75, 109, 73, 76, 73, 9, 81, 102, 126,
+ 127, 126, 126, 152, 82, 127, 73, 73, 73, 9
+};
+
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
+
+
+/* Like YYERROR except do call yyerror. This remains here temporarily
+ to ease the transition to the new meaning of YYERROR, for GCC.
+ Once GCC version 2 has supplanted version 1, this can go. */
+
+#define YYFAIL goto yyerrlab
+
+#define YYRECOVERING() (!!yyerrstatus)
+
+#define YYBACKUP(Token, Value) \
+do \
+ if (yychar == YYEMPTY && yylen == 1) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ yytoken = YYTRANSLATE (yychar); \
+ YYPOPSTACK (1); \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
+while (YYID (0))
+
+
+#define YYTERROR 1
+#define YYERRCODE 256
+
+
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (YYID (N)) \
+ { \
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
+ } \
+ else \
+ { \
+ (Current).first_line = (Current).last_line = \
+ YYRHSLOC (Rhs, 0).last_line; \
+ (Current).first_column = (Current).last_column = \
+ YYRHSLOC (Rhs, 0).last_column; \
+ } \
+ while (YYID (0))
+#endif
+
+
+/* YY_LOCATION_PRINT -- Print the location on the stream.
+ This macro was not mandated originally: define only if we know
+ we won't break user code: when these are the locations we know. */
+
+#ifndef YY_LOCATION_PRINT
+# if YYLTYPE_IS_TRIVIAL
+# define YY_LOCATION_PRINT(File, Loc) \
+ fprintf (File, "%d.%d-%d.%d", \
+ (Loc).first_line, (Loc).first_column, \
+ (Loc).last_line, (Loc).last_column)
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
+#endif
+
+
+/* YYLEX -- calling `yylex' with the right arguments. */
+
+#ifdef YYLEX_PARAM
+# define YYLEX yylex (YYLEX_PARAM)
+#else
+# define YYLEX yylex ()
+#endif
+
+/* Enable debugging if requested. */
+#if YYDEBUG
+
+# ifndef YYFPRINTF
+# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
+# define YYFPRINTF fprintf
+# endif
+
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (YYID (0))
+
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Type, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (YYID (0))
+
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_value_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
+{
+ if (!yyvaluep)
+ return;
+# ifdef YYPRINT
+ if (yytype < YYNTOKENS)
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# else
+ YYUSE (yyoutput);
+# endif
+ switch (yytype)
+ {
+ default:
+ break;
+ }
+}
+
+
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
+{
+ if (yytype < YYNTOKENS)
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+
+ yy_symbol_value_print (yyoutput, yytype, yyvaluep);
+ YYFPRINTF (yyoutput, ")");
+}
+
+/*------------------------------------------------------------------.
+| yy_stack_print -- Print the state stack from its BOTTOM up to its |
+| TOP (included). |
+`------------------------------------------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
+#else
+static void
+yy_stack_print (yybottom, yytop)
+ yytype_int16 *yybottom;
+ yytype_int16 *yytop;
+#endif
+{
+ YYFPRINTF (stderr, "Stack now");
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
+ YYFPRINTF (stderr, "\n");
+}
+
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (YYID (0))
+
+
+/*------------------------------------------------.
+| Report that the YYRULE is going to be reduced. |
+`------------------------------------------------*/
+
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
+#else
+static void
+yy_reduce_print (yyvsp, yyrule)
+ YYSTYPE *yyvsp;
+ int yyrule;
+#endif
+{
+ int yynrhs = yyr2[yyrule];
+ int yyi;
+ unsigned long int yylno = yyrline[yyrule];
+ YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
+ yyrule - 1, yylno);
+ /* The symbols being reduced. */
+ for (yyi = 0; yyi < yynrhs; yyi++)
+ {
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
+ &(yyvsp[(yyi + 1) - (yynrhs)])
+ );
+ YYFPRINTF (stderr, "\n");
+ }
+}
+
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyvsp, Rule); \
+} while (YYID (0))
+
+/* Nonzero means print parse trace. It is left uninitialized so that
+ multiple parsers can coexist. */
+int yydebug;
+#else /* !YYDEBUG */
+# define YYDPRINTF(Args)
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location)
+# define YY_STACK_PRINT(Bottom, Top)
+# define YY_REDUCE_PRINT(Rule)
+#endif /* !YYDEBUG */
+
+
+/* YYINITDEPTH -- initial size of the parser's stacks. */
+#ifndef YYINITDEPTH
+# define YYINITDEPTH 200
+#endif
+
+/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
+ if the built-in stack extension method is used).
+
+ Do not make this value too large; the results are undefined if
+ YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
+ evaluated with infinite-precision integer arithmetic. */
+
+#ifndef YYMAXDEPTH
+# define YYMAXDEPTH 10000
+#endif
+
+\f
+
+#if YYERROR_VERBOSE
+
+# ifndef yystrlen
+# if defined __GLIBC__ && defined _STRING_H
+# define yystrlen strlen
+# else
+/* Return the length of YYSTR. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static YYSIZE_T
+yystrlen (const char *yystr)
+#else
+static YYSIZE_T
+yystrlen (yystr)
+ const char *yystr;
+#endif
+{
+ YYSIZE_T yylen;
+ for (yylen = 0; yystr[yylen]; yylen++)
+ continue;
+ return yylen;
+}
+# endif
+# endif
+
+# ifndef yystpcpy
+# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
+# define yystpcpy stpcpy
+# else
+/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
+ YYDEST. */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static char *
+yystpcpy (char *yydest, const char *yysrc)
+#else
+static char *
+yystpcpy (yydest, yysrc)
+ char *yydest;
+ const char *yysrc;
+#endif
+{
+ char *yyd = yydest;
+ const char *yys = yysrc;
+
+ while ((*yyd++ = *yys++) != '\0')
+ continue;
+
+ return yyd - 1;
+}
+# endif
+# endif
+
+# ifndef yytnamerr
+/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
+ quotes and backslashes, so that it's suitable for yyerror. The
+ heuristic is that double-quoting is unnecessary unless the string
+ contains an apostrophe, a comma, or backslash (other than
+ backslash-backslash). YYSTR is taken from yytname. If YYRES is
+ null, do not copy; instead, return the length of what the result
+ would have been. */
+static YYSIZE_T
+yytnamerr (char *yyres, const char *yystr)
+{
+ if (*yystr == '"')
+ {
+ YYSIZE_T yyn = 0;
+ char const *yyp = yystr;
+
+ for (;;)
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
+ do_not_strip_quotes: ;
+ }
+
+ if (! yyres)
+ return yystrlen (yystr);
+
+ return yystpcpy (yyres, yystr) - yyres;
+}
+# endif
+
+/* Copy into YYRESULT an error message about the unexpected token
+ YYCHAR while in state YYSTATE. Return the number of bytes copied,
+ including the terminating null byte. If YYRESULT is null, do not
+ copy anything; just return the number of bytes that would be
+ copied. As a special case, return 0 if an ordinary "syntax error"
+ message will do. Return YYSIZE_MAXIMUM if overflow occurs during
+ size calculation. */
+static YYSIZE_T
+yysyntax_error (char *yyresult, int yystate, int yychar)
+{
+ int yyn = yypact[yystate];
+
+ if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
+ return 0;
+ else
+ {
+ int yytype = YYTRANSLATE (yychar);
+ YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
+ YYSIZE_T yysize = yysize0;
+ YYSIZE_T yysize1;
+ int yysize_overflow = 0;
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ int yyx;
+
+# if 0
+ /* This is so xgettext sees the translatable formats that are
+ constructed on the fly. */
+ YY_("syntax error, unexpected %s");
+ YY_("syntax error, unexpected %s, expecting %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
+# endif
+ char *yyfmt;
+ char const *yyf;
+ static char const yyunexpected[] = "syntax error, unexpected %s";
+ static char const yyexpecting[] = ", expecting %s";
+ static char const yyor[] = " or %s";
+ char yyformat[sizeof yyunexpected
+ + sizeof yyexpecting - 1
+ + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
+ * (sizeof yyor - 1))];
+ char const *yyprefix = yyexpecting;
+
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yycount = 1;
+
+ yyarg[0] = yytname[yytype];
+ yyfmt = yystpcpy (yyformat, yyunexpected);
+
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ yysize = yysize0;
+ yyformat[sizeof yyunexpected - 1] = '\0';
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ yysize1 = yysize + yytnamerr (0, yytname[yyx]);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+ yyfmt = yystpcpy (yyfmt, yyprefix);
+ yyprefix = yyor;
+ }
+
+ yyf = YY_(yyformat);
+ yysize1 = yysize + yystrlen (yyf);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+
+ if (yysize_overflow)
+ return YYSIZE_MAXIMUM;
+
+ if (yyresult)
+ {
+ /* Avoid sprintf, as that infringes on the user's name space.
+ Don't have undefined behavior even if the translation
+ produced a string with the wrong number of "%s"s. */
+ char *yyp = yyresult;
+ int yyi = 0;
+ while ((*yyp = *yyf) != '\0')
+ {
+ if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
+ {
+ yyp += yytnamerr (yyp, yyarg[yyi++]);
+ yyf += 2;
+ }
+ else
+ {
+ yyp++;
+ yyf++;
+ }
+ }
+ }
+ return yysize;
+ }
+}
+#endif /* YYERROR_VERBOSE */
+\f
+
+/*-----------------------------------------------.
+| Release the memory associated to this symbol. |
+`-----------------------------------------------*/
+
+/*ARGSUSED*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
+#else
+static void
+yydestruct (yymsg, yytype, yyvaluep)
+ const char *yymsg;
+ int yytype;
+ YYSTYPE *yyvaluep;
+#endif
+{
+ YYUSE (yyvaluep);
+
+ if (!yymsg)
+ yymsg = "Deleting";
+ YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
+
+ switch (yytype)
+ {
+
+ default:
+ break;
+ }
+}
+
+/* Prevent warnings from -Wmissing-prototypes. */
+#ifdef YYPARSE_PARAM
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void *YYPARSE_PARAM);
+#else
+int yyparse ();
+#endif
+#else /* ! YYPARSE_PARAM */
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
+
+
+/* The lookahead symbol. */
+int yychar;
+
+/* The semantic value of the lookahead symbol. */
+YYSTYPE yylval;
+
+/* Number of syntax errors so far. */
+int yynerrs;
+
+
+
+/*-------------------------.
+| yyparse or yypush_parse. |
+`-------------------------*/
+
+#ifdef YYPARSE_PARAM
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void *YYPARSE_PARAM)
+#else
+int
+yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+#endif
+#else /* ! YYPARSE_PARAM */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void)
+#else
+int
+yyparse ()
+
+#endif
+#endif
+{
+
+
+ int yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+
+ /* The stacks and their tools:
+ `yyss': related to states.
+ `yyvs': related to semantic values.
+
+ Refer to the stacks thru separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss;
+ yytype_int16 *yyssp;
+
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs;
+ YYSTYPE *yyvsp;
+
+ YYSIZE_T yystacksize;
+
+ int yyn;
+ int yyresult;
+ /* Lookahead token as an internal (translated) token number. */
+ int yytoken;
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+
+#if YYERROR_VERBOSE
+ /* Buffer for error messages, and its allocated size. */
+ char yymsgbuf[128];
+ char *yymsg = yymsgbuf;
+ YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
+#endif
+
+#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
+
+ /* The number of symbols on the RHS of the reduced rule.
+ Keep to zero when no symbol should be popped. */
+ int yylen = 0;
+
+ yytoken = 0;
+ yyss = yyssa;
+ yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
+
+ YYDPRINTF ((stderr, "Starting parse\n"));
+
+ yystate = 0;
+ yyerrstatus = 0;
+ yynerrs = 0;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+ Waste one element of value and location stack
+ so that they stay on the same level as the state stack.
+ The wasted elements are never initialized. */
+ yyssp = yyss;
+ yyvsp = yyvs;
+
+ goto yysetstate;
+
+/*------------------------------------------------------------.
+| yynewstate -- Push a new state, which is found in yystate. |
+`------------------------------------------------------------*/
+ yynewstate:
+ /* In all cases, when you get here, the value and location stacks
+ have just been pushed. So pushing a state here evens the stacks. */
+ yyssp++;
+
+ yysetstate:
+ *yyssp = yystate;
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ {
+ /* Get the current used size of the three stacks, in elements. */
+ YYSIZE_T yysize = yyssp - yyss + 1;
+
+#ifdef yyoverflow
+ {
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ yytype_int16 *yyss1 = yyss;
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow (YY_("memory exhausted"),
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+ &yystacksize);
+
+ yyss = yyss1;
+ yyvs = yyvs1;
+ }
+#else /* no yyoverflow */
+# ifndef YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+# else
+ /* Extend the stack our own way. */
+ if (YYMAXDEPTH <= yystacksize)
+ goto yyexhaustedlab;
+ yystacksize *= 2;
+ if (YYMAXDEPTH < yystacksize)
+ yystacksize = YYMAXDEPTH;
+
+ {
+ yytype_int16 *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
+ }
+# endif
+#endif /* no yyoverflow */
+
+ yyssp = yyss + yysize - 1;
+ yyvsp = yyvs + yysize - 1;
+
+ YYDPRINTF ((stderr, "Stack size increased to %lu\n",
+ (unsigned long int) yystacksize));
+
+ if (yyss + yystacksize - 1 <= yyssp)
+ YYABORT;
+ }
+
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+
+ if (yystate == YYFINAL)
+ YYACCEPT;
+
+ goto yybackup;
+
+/*-----------.
+| yybackup. |
+`-----------*/
+yybackup:
+
+ /* Do appropriate processing given the current state. Read a
+ lookahead token if we need one and don't already have one. */
+
+ /* First try to decide what to do without reference to lookahead token. */
+ yyn = yypact[yystate];
+ if (yyn == YYPACT_NINF)
+ goto yydefault;
+
+ /* Not known => get a lookahead token if don't already have one. */
+
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
+ if (yychar == YYEMPTY)
+ {
+ YYDPRINTF ((stderr, "Reading a token: "));
+ yychar = YYLEX;
+ }
+
+ if (yychar <= YYEOF)
+ {
+ yychar = yytoken = YYEOF;
+ YYDPRINTF ((stderr, "Now at end of input.\n"));
+ }
+ else
+ {
+ yytoken = YYTRANSLATE (yychar);
+ YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
+ }
+
+ /* If the proper action on seeing token YYTOKEN is to reduce or to
+ detect an error, take that action. */
+ yyn += yytoken;
+ if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
+ goto yydefault;
+ yyn = yytable[yyn];
+ if (yyn <= 0)
+ {
+ if (yyn == 0 || yyn == YYTABLE_NINF)
+ goto yyerrlab;
+ yyn = -yyn;
+ goto yyreduce;
+ }
+
+ /* Count tokens shifted since error; after three, turn off error
+ status. */
+ if (yyerrstatus)
+ yyerrstatus--;
+
+ /* Shift the lookahead token. */
+ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
+
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
+
+ yystate = yyn;
+ *++yyvsp = yylval;
+
+ goto yynewstate;
+
+
+/*-----------------------------------------------------------.
+| yydefault -- do the default action for the current state. |
+`-----------------------------------------------------------*/
+yydefault:
+ yyn = yydefact[yystate];
+ if (yyn == 0)
+ goto yyerrlab;
+ goto yyreduce;
+
+
+/*-----------------------------.
+| yyreduce -- Do a reduction. |
+`-----------------------------*/
+yyreduce:
+ /* yyn is the number of a rule to reduce with. */
+ yylen = yyr2[yyn];
+
+ /* If YYLEN is nonzero, implement the default value of the action:
+ `$$ = $1'.
+
+ Otherwise, the following line sets YYVAL to garbage.
+ This behavior is undocumented and Bison
+ users should not rely upon it. Assigning to YYVAL
+ unconditionally makes the parser a bit smaller, and it avoids a
+ GCC warning that YYVAL may be used uninitialized. */
+ yyval = yyvsp[1-yylen];
+
+
+ YY_REDUCE_PRINT (yyn);
+ switch (yyn)
+ {
+ case 3:
+
+/* Line 1455 of yacc.c */
+#line 284 "vtkParse.y"
+ {
+ ((yyval.vtkid)).name = (yyvsp[(1) - (2)].str);
+ ((yyval.vtkid)).external = 1;
+ ;}
+ break;
+
+ case 4:
+
+/* Line 1455 of yacc.c */
+#line 289 "vtkParse.y"
+ {
+ ((yyval.vtkid)).name = (yyvsp[(1) - (1)].str);
+ ((yyval.vtkid)).external = 0;
+ ;}
+ break;
+
+ case 5:
+
+/* Line 1455 of yacc.c */
+#line 295 "vtkParse.y"
+ {
+ data.ClassName = vtkstrdup((yyvsp[(2) - (2)].str));
+ ;}
+ break;
+
+ case 13:
+
+/* Line 1455 of yacc.c */
+#line 305 "vtkParse.y"
+ { output_function(); ;}
+ break;
+
+ case 14:
+
+/* Line 1455 of yacc.c */
+#line 306 "vtkParse.y"
+ { output_function(); ;}
+ break;
+
+ case 15:
+
+/* Line 1455 of yacc.c */
+#line 307 "vtkParse.y"
+ { legacySig(); output_function(); ;}
+ break;
+
+ case 19:
+
+/* Line 1455 of yacc.c */
+#line 313 "vtkParse.y"
+ { preSig("~"); ;}
+ break;
+
+ case 20:
+
+/* Line 1455 of yacc.c */
+#line 314 "vtkParse.y"
+ { preSig("virtual ~"); ;}
+ break;
+
+ case 22:
+
+/* Line 1455 of yacc.c */
+#line 317 "vtkParse.y"
+ {
+ currentFunction->ReturnType = (yyvsp[(1) - (2)].integer);
+ ;}
+ break;
+
+ case 23:
+
+/* Line 1455 of yacc.c */
+#line 321 "vtkParse.y"
+ {
+ currentFunction->ReturnType = (yyvsp[(1) - (3)].integer);
+ ;}
+ break;
+
+ case 24:
+
+/* Line 1455 of yacc.c */
+#line 325 "vtkParse.y"
+ {
+ preSig("virtual ");
+ currentFunction->ReturnType = (yyvsp[(2) - (4)].integer);
+ ;}
+ break;
+
+ case 25:
+
+/* Line 1455 of yacc.c */
+#line 330 "vtkParse.y"
+ {
+ preSig("virtual ");
+ currentFunction->ReturnType = (yyvsp[(2) - (3)].integer);
+ ;}
+ break;
+
+ case 26:
+
+/* Line 1455 of yacc.c */
+#line 335 "vtkParse.y"
+ {
+ preSig("virtual ");
+ ;}
+ break;
+
+ case 27:
+
+/* Line 1455 of yacc.c */
+#line 341 "vtkParse.y"
+ {
+ output_function();
+ ;}
+ break;
+
+ case 28:
+
+/* Line 1455 of yacc.c */
+#line 345 "vtkParse.y"
+ {
+ currentFunction->ReturnType = (yyvsp[(1) - (2)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 29:
+
+/* Line 1455 of yacc.c */
+#line 350 "vtkParse.y"
+ {
+ currentFunction->ReturnType = (yyvsp[(1) - (3)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 30:
+
+/* Line 1455 of yacc.c */
+#line 355 "vtkParse.y"
+ {
+ preSig("virtual ");
+ currentFunction->ReturnType = (yyvsp[(2) - (4)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 31:
+
+/* Line 1455 of yacc.c */
+#line 361 "vtkParse.y"
+ {
+ preSig("virtual ");
+ currentFunction->ReturnType = (yyvsp[(2) - (3)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 32:
+
+/* Line 1455 of yacc.c */
+#line 367 "vtkParse.y"
+ {
+ preSig("virtual ");
+ output_function();
+ ;}
+ break;
+
+ case 33:
+
+/* Line 1455 of yacc.c */
+#line 373 "vtkParse.y"
+ {
+ currentFunction->IsOperator = 1;
+ vtkParseDebug("Converted operator", 0);
+ ;}
+ break;
+
+ case 34:
+
+/* Line 1455 of yacc.c */
+#line 378 "vtkParse.y"
+ { postSig(")"); ;}
+ break;
+
+ case 35:
+
+/* Line 1455 of yacc.c */
+#line 378 "vtkParse.y"
+ { postSig(";"); openSig = 0; ;}
+ break;
+
+ case 36:
+
+/* Line 1455 of yacc.c */
+#line 379 "vtkParse.y"
+ {
+ openSig = 1;
+ currentFunction->Name = (yyvsp[(1) - (4)].str);
+ vtkParseDebug("Parsed func", (yyvsp[(1) - (4)].str));
+ ;}
+ break;
+
+ case 37:
+
+/* Line 1455 of yacc.c */
+#line 385 "vtkParse.y"
+ {
+ postSig(") = 0;");
+ currentFunction->Name = (yyvsp[(1) - (3)].str);
+ vtkParseDebug("Parsed func", (yyvsp[(1) - (3)].str));
+ currentFunction->IsPureVirtual = 1;
+ data.IsAbstract = 1;
+ ;}
+ break;
+
+ case 39:
+
+/* Line 1455 of yacc.c */
+#line 393 "vtkParse.y"
+ {postSig(" const");;}
+ break;
+
+ case 40:
+
+/* Line 1455 of yacc.c */
+#line 395 "vtkParse.y"
+ {postSig(" ("); ;}
+ break;
+
+ case 42:
+
+/* Line 1455 of yacc.c */
+#line 397 "vtkParse.y"
+ {postSig("const ");;}
+ break;
+
+ case 43:
+
+/* Line 1455 of yacc.c */
+#line 399 "vtkParse.y"
+ {postSig("static ");;}
+ break;
+
+ case 44:
+
+/* Line 1455 of yacc.c */
+#line 401 "vtkParse.y"
+ {postSig(((yyvsp[(1) - (1)].vtkid)).name);;}
+ break;
+
+ case 45:
+
+/* Line 1455 of yacc.c */
+#line 401 "vtkParse.y"
+ {postSig((yyvsp[(1) - (1)].str));;}
+ break;
+
+ case 52:
+
+/* Line 1455 of yacc.c */
+#line 410 "vtkParse.y"
+ { currentFunction->NumberOfArguments++;;}
+ break;
+
+ case 53:
+
+/* Line 1455 of yacc.c */
+#line 411 "vtkParse.y"
+ { currentFunction->NumberOfArguments++; postSig(", ");;}
+ break;
+
+ case 55:
+
+/* Line 1455 of yacc.c */
+#line 414 "vtkParse.y"
+ {
+ currentFunction->ArgCounts[currentFunction->NumberOfArguments] = 0;
+ currentFunction->ArgTypes[currentFunction->NumberOfArguments] =
+ (yyvsp[(1) - (1)].integer);;}
+ break;
+
+ case 56:
+
+/* Line 1455 of yacc.c */
+#line 419 "vtkParse.y"
+ {
+ currentFunction->ArgCounts[currentFunction->NumberOfArguments] =
+ (yyvsp[(2) - (2)].integer) / 0x10000;
+ currentFunction->ArgTypes[currentFunction->NumberOfArguments] =
+ (yyvsp[(1) - (2)].integer) + (yyvsp[(2) - (2)].integer) % 0x10000;
+ ;}
+ break;
+
+ case 58:
+
+/* Line 1455 of yacc.c */
+#line 426 "vtkParse.y"
+ {
+ postSig("void (*func)(void *) ");
+ currentFunction->ArgCounts[currentFunction->NumberOfArguments] = 0;
+ currentFunction->ArgTypes[currentFunction->NumberOfArguments] = 0x5000;
+ ;}
+ break;
+
+ case 61:
+
+/* Line 1455 of yacc.c */
+#line 434 "vtkParse.y"
+ {delSig();;}
+ break;
+
+ case 62:
+
+/* Line 1455 of yacc.c */
+#line 434 "vtkParse.y"
+ {delSig();;}
+ break;
+
+ case 63:
+
+/* Line 1455 of yacc.c */
+#line 436 "vtkParse.y"
+ { (yyval.integer) = (yyvsp[(2) - (2)].integer); ;}
+ break;
+
+ case 64:
+
+/* Line 1455 of yacc.c */
+#line 444 "vtkParse.y"
+ { (yyval.integer) = 0; ;}
+ break;
+
+ case 65:
+
+/* Line 1455 of yacc.c */
+#line 445 "vtkParse.y"
+ { char temp[100]; sprintf(temp,"[%i]",(yyvsp[(1) - (1)].integer));
+ postSig(temp); ;}
+ break;
+
+ case 66:
+
+/* Line 1455 of yacc.c */
+#line 447 "vtkParse.y"
+ { (yyval.integer) = 0x300 + 0x10000 * (yyvsp[(1) - (3)].integer) + (yyvsp[(3) - (3)].integer) % 0x1000; ;}
+ break;
+
+ case 67:
+
+/* Line 1455 of yacc.c */
+#line 449 "vtkParse.y"
+ { postSig("[]"); (yyval.integer) = 0x300 + (yyvsp[(4) - (4)].integer) % 0x1000; ;}
+ break;
+
+ case 68:
+
+/* Line 1455 of yacc.c */
+#line 451 "vtkParse.y"
+ {(yyval.integer) = 0x1000 + (yyvsp[(2) - (2)].integer);;}
+ break;
+
+ case 69:
+
+/* Line 1455 of yacc.c */
+#line 452 "vtkParse.y"
+ {(yyval.integer) = (yyvsp[(1) - (1)].integer);;}
+ break;
+
+ case 70:
+
+/* Line 1455 of yacc.c */
+#line 453 "vtkParse.y"
+ {(yyval.integer) = 0x2000 + (yyvsp[(2) - (2)].integer);;}
+ break;
+
+ case 71:
+
+/* Line 1455 of yacc.c */
+#line 454 "vtkParse.y"
+ {(yyval.integer) = 0x3000 + (yyvsp[(3) - (3)].integer);;}
+ break;
+
+ case 72:
+
+/* Line 1455 of yacc.c */
+#line 456 "vtkParse.y"
+ {(yyval.integer) = (yyvsp[(1) - (1)].integer);;}
+ break;
+
+ case 73:
+
+/* Line 1455 of yacc.c */
+#line 458 "vtkParse.y"
+ {(yyval.integer) = (yyvsp[(1) - (2)].integer) + (yyvsp[(2) - (2)].integer);;}
+ break;
+
+ case 74:
+
+/* Line 1455 of yacc.c */
+#line 459 "vtkParse.y"
+ {(yyval.integer) = (yyvsp[(1) - (1)].integer);;}
+ break;
+
+ case 75:
+
+/* Line 1455 of yacc.c */
+#line 461 "vtkParse.y"
+ {(yyval.integer) = (yyvsp[(1) - (1)].integer);;}
+ break;
+
+ case 76:
+
+/* Line 1455 of yacc.c */
+#line 462 "vtkParse.y"
+ { postSig("&"); (yyval.integer) = (yyvsp[(1) - (2)].integer);;}
+ break;
+
+ case 77:
+
+/* Line 1455 of yacc.c */
+#line 463 "vtkParse.y"
+ { postSig("*"); (yyval.integer) = 0x400 + (yyvsp[(1) - (2)].integer);;}
+ break;
+
+ case 78:
+
+/* Line 1455 of yacc.c */
+#line 465 "vtkParse.y"
+ { postSig("vtkStdString "); (yyval.integer) = 0x1303; ;}
+ break;
+
+ case 79:
+
+/* Line 1455 of yacc.c */
+#line 475 "vtkParse.y"
+ { postSig("&"); (yyval.integer) = 0x100;;}
+ break;
+
+ case 80:
+
+/* Line 1455 of yacc.c */
+#line 476 "vtkParse.y"
+ { postSig("*"); (yyval.integer) = 0x300;;}
+ break;
+
+ case 81:
+
+/* Line 1455 of yacc.c */
+#line 477 "vtkParse.y"
+ { (yyval.integer) = 0x100 + (yyvsp[(2) - (2)].integer);;}
+ break;
+
+ case 82:
+
+/* Line 1455 of yacc.c */
+#line 478 "vtkParse.y"
+ { (yyval.integer) = 0x400 + (yyvsp[(2) - (2)].integer);;}
+ break;
+
+ case 83:
+
+/* Line 1455 of yacc.c */
+#line 480 "vtkParse.y"
+ {postSig("unsigned ");;}
+ break;
+
+ case 84:
+
+/* Line 1455 of yacc.c */
+#line 481 "vtkParse.y"
+ { (yyval.integer) = 0x10 + (yyvsp[(3) - (3)].integer);;}
+ break;
+
+ case 85:
+
+/* Line 1455 of yacc.c */
+#line 482 "vtkParse.y"
+ { (yyval.integer) = (yyvsp[(1) - (1)].integer);;}
+ break;
+
+ case 86:
+
+/* Line 1455 of yacc.c */
+#line 485 "vtkParse.y"
+ { postSig("vtkTypeInt8 "); (yyval.integer) = VTK_PARSE_INT8; ;}
+ break;
+
+ case 87:
+
+/* Line 1455 of yacc.c */
+#line 486 "vtkParse.y"
+ { postSig("vtkTypeUInt8 "); (yyval.integer) = VTK_PARSE_UINT8; ;}
+ break;
+
+ case 88:
+
+/* Line 1455 of yacc.c */
+#line 487 "vtkParse.y"
+ { postSig("vtkTypeInt16 "); (yyval.integer) = VTK_PARSE_INT16; ;}
+ break;
+
+ case 89:
+
+/* Line 1455 of yacc.c */
+#line 488 "vtkParse.y"
+ { postSig("vtkTypeUInt16 "); (yyval.integer) = VTK_PARSE_UINT16; ;}
+ break;
+
+ case 90:
+
+/* Line 1455 of yacc.c */
+#line 489 "vtkParse.y"
+ { postSig("vtkTypeInt32 "); (yyval.integer) = VTK_PARSE_INT32; ;}
+ break;
+
+ case 91:
+
+/* Line 1455 of yacc.c */
+#line 490 "vtkParse.y"
+ { postSig("vtkTypeUInt32 "); (yyval.integer) = VTK_PARSE_UINT32; ;}
+ break;
+
+ case 92:
+
+/* Line 1455 of yacc.c */
+#line 491 "vtkParse.y"
+ { postSig("vtkTypeInt64 "); (yyval.integer) = VTK_PARSE_INT64; ;}
+ break;
+
+ case 93:
+
+/* Line 1455 of yacc.c */
+#line 492 "vtkParse.y"
+ { postSig("vtkTypeUInt64 "); (yyval.integer) = VTK_PARSE_UINT64; ;}
+ break;
+
+ case 94:
+
+/* Line 1455 of yacc.c */
+#line 493 "vtkParse.y"
+ { postSig("vtkTypeFloat32 "); (yyval.integer) = VTK_PARSE_FLOAT32; ;}
+ break;
+
+ case 95:
+
+/* Line 1455 of yacc.c */
+#line 494 "vtkParse.y"
+ { postSig("vtkTypeFloat64 "); (yyval.integer) = VTK_PARSE_FLOAT64; ;}
+ break;
+
+ case 96:
+
+/* Line 1455 of yacc.c */
+#line 495 "vtkParse.y"
+ { postSig("float "); (yyval.integer) = 0x1;;}
+ break;
+
+ case 97:
+
+/* Line 1455 of yacc.c */
+#line 496 "vtkParse.y"
+ { postSig("void "); (yyval.integer) = 0x2;;}
+ break;
+
+ case 98:
+
+/* Line 1455 of yacc.c */
+#line 497 "vtkParse.y"
+ { postSig("char "); (yyval.integer) = 0x3;;}
+ break;
+
+ case 99:
+
+/* Line 1455 of yacc.c */
+#line 498 "vtkParse.y"
+ { postSig("int "); (yyval.integer) = 0x4;;}
+ break;
+
+ case 100:
+
+/* Line 1455 of yacc.c */
+#line 499 "vtkParse.y"
+ { postSig("short "); (yyval.integer) = 0x5;;}
+ break;
+
+ case 101:
+
+/* Line 1455 of yacc.c */
+#line 500 "vtkParse.y"
+ { postSig("long "); (yyval.integer) = 0x6;;}
+ break;
+
+ case 102:
+
+/* Line 1455 of yacc.c */
+#line 501 "vtkParse.y"
+ { postSig("double "); (yyval.integer) = 0x7;;}
+ break;
+
+ case 103:
+
+/* Line 1455 of yacc.c */
+#line 502 "vtkParse.y"
+ {
+ char ctmpid[2048];
+ sprintf(ctmpid,"%s ",(yyvsp[(1) - (1)].str));
+ postSig(ctmpid);
+ (yyval.integer) = 0x8;;}
+ break;
+
+ case 104:
+
+/* Line 1455 of yacc.c */
+#line 508 "vtkParse.y"
+ {
+ char ctmpid[2048];
+ sprintf(ctmpid,"%s ",((yyvsp[(1) - (1)].vtkid)).name);
+ postSig(ctmpid);
+ (yyval.integer) = 0x9;
+ currentFunction->ArgClasses[currentFunction->NumberOfArguments] =
+ vtkstrdup(((yyvsp[(1) - (1)].vtkid)).name);
+ currentFunction->ArgExternals[currentFunction->NumberOfArguments] =
+ ((yyvsp[(1) - (1)].vtkid)).external;
+ /* store the string into the return value just in case we need it */
+ /* this is a parsing hack because the first "type" parser will */
+ /* possibly be ht ereturn type of the first argument */
+ if ((!currentFunction->ReturnClass) &&
+ (!currentFunction->NumberOfArguments))
+ {
+ currentFunction->ReturnClass = vtkstrdup(((yyvsp[(1) - (1)].vtkid)).name);
+ currentFunction->ReturnExternal = ((yyvsp[(1) - (1)].vtkid)).external;
+ }
+ ;}
+ break;
+
+ case 105:
+
+/* Line 1455 of yacc.c */
+#line 527 "vtkParse.y"
+ { postSig("vtkIdType "); (yyval.integer) = 0xA;;}
+ break;
+
+ case 106:
+
+/* Line 1455 of yacc.c */
+#line 528 "vtkParse.y"
+ { postSig("long long "); (yyval.integer) = 0xB;;}
+ break;
+
+ case 107:
+
+/* Line 1455 of yacc.c */
+#line 529 "vtkParse.y"
+ { postSig("__int64 "); (yyval.integer) = 0xC;;}
+ break;
+
+ case 108:
+
+/* Line 1455 of yacc.c */
+#line 530 "vtkParse.y"
+ { postSig("signed char "); (yyval.integer) = 0xD;;}
+ break;
+
+ case 109:
+
+/* Line 1455 of yacc.c */
+#line 531 "vtkParse.y"
+ { postSig("bool "); (yyval.integer) = 0xE;;}
+ break;
+
+ case 112:
+
+/* Line 1455 of yacc.c */
+#line 536 "vtkParse.y"
+ {
+ data.SuperClasses[data.NumberOfSuperClasses] = vtkstrdup((yyvsp[(2) - (2)].str));
+ data.NumberOfSuperClasses++;
+ ;}
+ break;
+
+ case 113:
+
+/* Line 1455 of yacc.c */
+#line 541 "vtkParse.y"
+ {
+ data.SuperClasses[data.NumberOfSuperClasses] = vtkstrdup((yyvsp[(2) - (2)].str));
+ data.NumberOfSuperClasses++;
+ ;}
+ break;
+
+ case 115:
+
+/* Line 1455 of yacc.c */
+#line 546 "vtkParse.y"
+ {in_public = 1; in_protected = 0;;}
+ break;
+
+ case 116:
+
+/* Line 1455 of yacc.c */
+#line 547 "vtkParse.y"
+ {in_public = 0; in_protected = 0;;}
+ break;
+
+ case 117:
+
+/* Line 1455 of yacc.c */
+#line 548 "vtkParse.y"
+ {in_public = 0; in_protected = 1;;}
+ break;
+
+ case 120:
+
+/* Line 1455 of yacc.c */
+#line 552 "vtkParse.y"
+ {(yyval.integer) = (yyvsp[(1) - (1)].integer);;}
+ break;
+
+ case 121:
+
+/* Line 1455 of yacc.c */
+#line 553 "vtkParse.y"
+ {(yyval.integer) = -1;;}
+ break;
+
+ case 122:
+
+/* Line 1455 of yacc.c */
+#line 553 "vtkParse.y"
+ {(yyval.integer) = -1;;}
+ break;
+
+ case 123:
+
+/* Line 1455 of yacc.c */
+#line 557 "vtkParse.y"
+ {preSig("void Set"); postSig(" ("); ;}
+ break;
+
+ case 124:
+
+/* Line 1455 of yacc.c */
+#line 558 "vtkParse.y"
+ {
+ postSig(");");
+ sprintf(temps,"Set%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+ ;}
+ break;
+
+ case 125:
+
+/* Line 1455 of yacc.c */
+#line 568 "vtkParse.y"
+ {postSig("Get");;}
+ break;
+
+ case 126:
+
+/* Line 1455 of yacc.c */
+#line 568 "vtkParse.y"
+ {postSig(" ();"); invertSig = 1;;}
+ break;
+
+ case 127:
+
+/* Line 1455 of yacc.c */
+#line 570 "vtkParse.y"
+ {
+ sprintf(temps,"Get%s",(yyvsp[(4) - (8)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = (yyvsp[(7) - (8)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 128:
+
+/* Line 1455 of yacc.c */
+#line 577 "vtkParse.y"
+ {preSig("void Set");;}
+ break;
+
+ case 129:
+
+/* Line 1455 of yacc.c */
+#line 578 "vtkParse.y"
+ {
+ postSig(" (char *);");
+ sprintf(temps,"Set%s",(yyvsp[(4) - (5)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x303;
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+ ;}
+ break;
+
+ case 130:
+
+/* Line 1455 of yacc.c */
+#line 588 "vtkParse.y"
+ {preSig("char *Get");;}
+ break;
+
+ case 131:
+
+/* Line 1455 of yacc.c */
+#line 589 "vtkParse.y"
+ {
+ postSig(" ();");
+ sprintf(temps,"Get%s",(yyvsp[(4) - (5)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x303;
+ output_function();
+ ;}
+ break;
+
+ case 132:
+
+/* Line 1455 of yacc.c */
+#line 598 "vtkParse.y"
+ {preSig("void Set"); postSig(" ("); ;}
+ break;
+
+ case 133:
+
+/* Line 1455 of yacc.c */
+#line 599 "vtkParse.y"
+ {postSig(");"); openSig = 0;;}
+ break;
+
+ case 134:
+
+/* Line 1455 of yacc.c */
+#line 600 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sscanf (currentFunction->Signature, "%*s %*s (%s);", local);
+ sprintf(temps,"Set%s",(yyvsp[(3) - (10)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = (yyvsp[(6) - (10)].integer);
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"%s Get%sMinValue ();",local,(yyvsp[(3) - (10)].str));
+ sprintf(temps,"Get%sMinValue",(yyvsp[(3) - (10)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = (yyvsp[(6) - (10)].integer);
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"%s Get%sMaxValue ();",local,(yyvsp[(3) - (10)].str));
+ sprintf(temps,"Get%sMaxValue",(yyvsp[(3) - (10)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = (yyvsp[(6) - (10)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 135:
+
+/* Line 1455 of yacc.c */
+#line 630 "vtkParse.y"
+ {preSig("void Set"); postSig(" ("); ;}
+ break;
+
+ case 136:
+
+/* Line 1455 of yacc.c */
+#line 631 "vtkParse.y"
+ {
+ postSig("*);");
+ sprintf(temps,"Set%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x309;
+ currentFunction->ArgCounts[0] = 1;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+ ;}
+ break;
+
+ case 137:
+
+/* Line 1455 of yacc.c */
+#line 642 "vtkParse.y"
+ {preSig("void Set"); postSig(" ("); ;}
+ break;
+
+ case 138:
+
+/* Line 1455 of yacc.c */
+#line 643 "vtkParse.y"
+ {
+ postSig("*);");
+ sprintf(temps,"Set%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x309;
+ currentFunction->ArgCounts[0] = 1;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+ ;}
+ break;
+
+ case 139:
+
+/* Line 1455 of yacc.c */
+#line 653 "vtkParse.y"
+ {postSig("*Get");;}
+ break;
+
+ case 140:
+
+/* Line 1455 of yacc.c */
+#line 654 "vtkParse.y"
+ {postSig(" ();"); invertSig = 1;;}
+ break;
+
+ case 141:
+
+/* Line 1455 of yacc.c */
+#line 655 "vtkParse.y"
+ {
+ sprintf(temps,"Get%s",(yyvsp[(4) - (8)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x309;
+ output_function();
+ ;}
+ break;
+
+ case 142:
+
+/* Line 1455 of yacc.c */
+#line 663 "vtkParse.y"
+ {preSig("void "); postSig("On ();"); openSig = 0; ;}
+ break;
+
+ case 143:
+
+/* Line 1455 of yacc.c */
+#line 665 "vtkParse.y"
+ {
+ sprintf(temps,"%sOn",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void %sOff ();",(yyvsp[(3) - (7)].str));
+ sprintf(temps,"%sOff",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ output_function();
+ ;}
+ break;
+
+ case 144:
+
+/* Line 1455 of yacc.c */
+#line 680 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 145:
+
+/* Line 1455 of yacc.c */
+#line 685 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"void Set%s (%s, %s);",(yyvsp[(3) - (7)].str),
+ local, local);
+ sprintf(temps,"Set%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 2;
+ currentFunction->ArgTypes[0] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ArgTypes[1] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[1] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (%s a[2]);",(yyvsp[(3) - (7)].str),
+ local);
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 0x2;
+ output_function();
+ ;}
+ break;
+
+ case 146:
+
+/* Line 1455 of yacc.c */
+#line 710 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 147:
+
+/* Line 1455 of yacc.c */
+#line 715 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"%s *Get%s ();",local, (yyvsp[(3) - (7)].str));
+ sprintf(temps,"Get%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = 2;
+ output_function();
+ ;}
+ break;
+
+ case 148:
+
+/* Line 1455 of yacc.c */
+#line 727 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 149:
+
+/* Line 1455 of yacc.c */
+#line 732 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"void Set%s (%s, %s, %s);",
+ (yyvsp[(3) - (7)].str), local, local, local);
+ sprintf(temps,"Set%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 3;
+ currentFunction->ArgTypes[0] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ArgTypes[1] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[1] = 0;
+ currentFunction->ArgTypes[2] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[2] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (%s a[3]);",(yyvsp[(3) - (7)].str),
+ local);
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 3;
+ output_function();
+ ;}
+ break;
+
+ case 150:
+
+/* Line 1455 of yacc.c */
+#line 759 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 151:
+
+/* Line 1455 of yacc.c */
+#line 764 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"%s *Get%s ();",local, (yyvsp[(3) - (7)].str));
+ sprintf(temps,"Get%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = 3;
+ output_function();
+ ;}
+ break;
+
+ case 152:
+
+/* Line 1455 of yacc.c */
+#line 776 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 153:
+
+/* Line 1455 of yacc.c */
+#line 781 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"void Set%s (%s, %s, %s, %s);",
+ (yyvsp[(3) - (7)].str), local, local, local, local);
+ sprintf(temps,"Set%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 4;
+ currentFunction->ArgTypes[0] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ArgTypes[1] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[1] = 0;
+ currentFunction->ArgTypes[2] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[2] = 0;
+ currentFunction->ArgTypes[3] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[3] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (%s a[4]);",(yyvsp[(3) - (7)].str),
+ local);
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 4;
+ output_function();
+ ;}
+ break;
+
+ case 154:
+
+/* Line 1455 of yacc.c */
+#line 810 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 155:
+
+/* Line 1455 of yacc.c */
+#line 815 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"%s *Get%s ();",local, (yyvsp[(3) - (7)].str));
+ sprintf(temps,"Get%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = 4;
+ output_function();
+ ;}
+ break;
+
+ case 156:
+
+/* Line 1455 of yacc.c */
+#line 827 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 157:
+
+/* Line 1455 of yacc.c */
+#line 832 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"void Set%s (%s, %s, %s, %s, %s, %s);",
+ (yyvsp[(3) - (7)].str), local, local, local, local, local, local);
+ sprintf(temps,"Set%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 6;
+ currentFunction->ArgTypes[0] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ArgTypes[1] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[1] = 0;
+ currentFunction->ArgTypes[2] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[2] = 0;
+ currentFunction->ArgTypes[3] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[3] = 0;
+ currentFunction->ArgTypes[4] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[4] = 0;
+ currentFunction->ArgTypes[5] = (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[5] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (%s a[6]);",(yyvsp[(3) - (7)].str),
+ local);
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->ArgCounts[0] = 6;
+ output_function();
+ ;}
+ break;
+
+ case 158:
+
+/* Line 1455 of yacc.c */
+#line 865 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 159:
+
+/* Line 1455 of yacc.c */
+#line 870 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"%s *Get%s ();",local, (yyvsp[(3) - (7)].str));
+ sprintf(temps,"Get%s",(yyvsp[(3) - (7)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x300 + (yyvsp[(6) - (7)].integer);
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = 6;
+ output_function();
+ ;}
+ break;
+
+ case 160:
+
+/* Line 1455 of yacc.c */
+#line 882 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 161:
+
+/* Line 1455 of yacc.c */
+#line 887 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"void Set%s (%s [%i]);",(yyvsp[(3) - (9)].str),
+ local, (yyvsp[(8) - (9)].integer));
+ sprintf(temps,"Set%s",(yyvsp[(3) - (9)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->ReturnType = 0x2;
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x300 + (yyvsp[(6) - (9)].integer);
+ currentFunction->ArgCounts[0] = (yyvsp[(8) - (9)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 162:
+
+/* Line 1455 of yacc.c */
+#line 900 "vtkParse.y"
+ {
+ free (currentFunction->Signature);
+ currentFunction->Signature = NULL;
+ ;}
+ break;
+
+ case 163:
+
+/* Line 1455 of yacc.c */
+#line 905 "vtkParse.y"
+ {
+ char *local = vtkstrdup(currentFunction->Signature);
+ sprintf(currentFunction->Signature,"%s *Get%s ();",local, (yyvsp[(3) - (9)].str));
+ sprintf(temps,"Get%s",(yyvsp[(3) - (9)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x300 + (yyvsp[(6) - (9)].integer);
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = (yyvsp[(8) - (9)].integer);
+ output_function();
+ ;}
+ break;
+
+ case 164:
+
+/* Line 1455 of yacc.c */
+#line 917 "vtkParse.y"
+ {
+ sprintf(currentFunction->Signature,"vtkCoordinate *Get%sCoordinate ();",
+ (yyvsp[(3) - (4)].str));
+
+ sprintf(temps,"Get%sCoordinate",(yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x309;
+ currentFunction->ReturnClass = vtkstrdup("vtkCoordinate");
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (double, double);",
+ (yyvsp[(3) - (4)].str));
+ sprintf(temps,"Set%s",(yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 2;
+ currentFunction->ArgTypes[0] = 0x7;
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ArgTypes[1] = 0x7;
+ currentFunction->ArgCounts[1] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (double a[2]);",
+ (yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x307;
+ currentFunction->ArgCounts[0] = 2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"double *Get%s ();", (yyvsp[(3) - (4)].str));
+ sprintf(temps,"Get%s",(yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x307;
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = 2;
+ output_function();
+ ;}
+ break;
+
+ case 165:
+
+/* Line 1455 of yacc.c */
+#line 964 "vtkParse.y"
+ {
+ sprintf(currentFunction->Signature,"vtkCoordinate *Get%sCoordinate ();",
+ (yyvsp[(3) - (4)].str));
+
+ sprintf(temps,"Get%sCoordinate",(yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x309;
+ currentFunction->ReturnClass = vtkstrdup("vtkCoordinate");
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (double, double, double);",
+ (yyvsp[(3) - (4)].str));
+ sprintf(temps,"Set%s",(yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 3;
+ currentFunction->ArgTypes[0] = 0x7;
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ArgTypes[1] = 0x7;
+ currentFunction->ArgCounts[1] = 0;
+ currentFunction->ArgTypes[2] = 0x7;
+ currentFunction->ArgCounts[2] = 0;
+ currentFunction->ReturnType = 0x2;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"void Set%s (double a[3]);",
+ (yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x307;
+ currentFunction->ArgCounts[0] = 3;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,"double *Get%s ();", (yyvsp[(3) - (4)].str));
+ sprintf(temps,"Get%s",(yyvsp[(3) - (4)].str));
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x307;
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = 3;
+ output_function();
+ ;}
+ break;
+
+ case 166:
+
+/* Line 1455 of yacc.c */
+#line 1013 "vtkParse.y"
+ {
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature, "const char *GetClassName ();");
+ sprintf(temps,"GetClassName");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x1303;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,
+ "int IsA (const char *name);");
+ sprintf(temps,"IsA");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x1303;
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ReturnType = 0x4;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature, "%s *NewInstance ();",
+ (yyvsp[(3) - (6)].str));
+ sprintf(temps,"NewInstance");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x309;
+ currentFunction->ReturnClass = vtkstrdup((yyvsp[(3) - (6)].str));
+ output_function();
+
+ if ( data.IsConcrete )
+ {
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature, "%s *SafeDownCast (vtkObject* o);",
+ (yyvsp[(3) - (6)].str));
+ sprintf(temps,"SafeDownCast");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x309;
+ currentFunction->ArgCounts[0] = 1;
+ currentFunction->ArgClasses[0] = vtkstrdup("vtkObject");
+ currentFunction->ReturnType = 0x2309;
+ currentFunction->ReturnClass = vtkstrdup((yyvsp[(3) - (6)].str));
+ output_function();
+ }
+ ;}
+ break;
+
+ case 167:
+
+/* Line 1455 of yacc.c */
+#line 1064 "vtkParse.y"
+ {
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature, "const char *GetClassName ();");
+ sprintf(temps,"GetClassName");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x1303;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature,
+ "int IsA (const char *name);");
+ sprintf(temps,"IsA");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x1303;
+ currentFunction->ArgCounts[0] = 0;
+ currentFunction->ReturnType = 0x4;
+ output_function();
+
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature, "%s *NewInstance ();",
+ (yyvsp[(3) - (7)].str));
+ sprintf(temps,"NewInstance");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 0;
+ currentFunction->ReturnType = 0x309;
+ currentFunction->ReturnClass = vtkstrdup((yyvsp[(3) - (7)].str));
+ output_function();
+
+ if ( data.IsConcrete )
+ {
+ currentFunction->Signature = (char *)malloc(2048);
+ sigAllocatedLength = 2048;
+ sprintf(currentFunction->Signature, "%s *SafeDownCast (vtkObject* o);",
+ (yyvsp[(3) - (7)].str));
+ sprintf(temps,"SafeDownCast");
+ currentFunction->Name = vtkstrdup(temps);
+ currentFunction->NumberOfArguments = 1;
+ currentFunction->ArgTypes[0] = 0x309;
+ currentFunction->ArgCounts[0] = 1;
+ currentFunction->ArgClasses[0] = vtkstrdup("vtkObject");
+ currentFunction->ReturnType = 0x2309;
+ currentFunction->ReturnClass = vtkstrdup((yyvsp[(3) - (7)].str));
+ output_function();
+ }
+ ;}
+ break;
+
+
+
+/* Line 1455 of yacc.c */
+#line 3573 "vtkParse.tab.c"
+ default: break;
+ }
+ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
+
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+
+ *++yyvsp = yyval;
+
+ /* Now `shift' the result of the reduction. Determine what state
+ that goes to, based on the state we popped back to and the rule
+ number reduced by. */
+
+ yyn = yyr1[yyn];
+
+ yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
+ if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
+ yystate = yytable[yystate];
+ else
+ yystate = yydefgoto[yyn - YYNTOKENS];
+
+ goto yynewstate;
+
+
+/*------------------------------------.
+| yyerrlab -- here on detecting error |
+`------------------------------------*/
+yyerrlab:
+ /* If not already recovering from an error, report this error. */
+ if (!yyerrstatus)
+ {
+ ++yynerrs;
+#if ! YYERROR_VERBOSE
+ yyerror (YY_("syntax error"));
+#else
+ {
+ YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
+ if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
+ {
+ YYSIZE_T yyalloc = 2 * yysize;
+ if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
+ yyalloc = YYSTACK_ALLOC_MAXIMUM;
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+ yymsg = (char *) YYSTACK_ALLOC (yyalloc);
+ if (yymsg)
+ yymsg_alloc = yyalloc;
+ else
+ {
+ yymsg = yymsgbuf;
+ yymsg_alloc = sizeof yymsgbuf;
+ }
+ }
+
+ if (0 < yysize && yysize <= yymsg_alloc)
+ {
+ (void) yysyntax_error (yymsg, yystate, yychar);
+ yyerror (yymsg);
+ }
+ else
+ {
+ yyerror (YY_("syntax error"));
+ if (yysize != 0)
+ goto yyexhaustedlab;
+ }
+ }
+#endif
+ }
+
+
+
+ if (yyerrstatus == 3)
+ {
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
+
+ if (yychar <= YYEOF)
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
+ else
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
+ }
+
+ /* Else will try to reuse lookahead token after shifting the error
+ token. */
+ goto yyerrlab1;
+
+
+/*---------------------------------------------------.
+| yyerrorlab -- error raised explicitly by YYERROR. |
+`---------------------------------------------------*/
+yyerrorlab:
+
+ /* Pacify compilers like GCC when the user code never invokes
+ YYERROR and the label yyerrorlab therefore never appears in user
+ code. */
+ if (/*CONSTCOND*/ 0)
+ goto yyerrorlab;
+
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYERROR. */
+ YYPOPSTACK (yylen);
+ yylen = 0;
+ YY_STACK_PRINT (yyss, yyssp);
+ yystate = *yyssp;
+ goto yyerrlab1;
+
+
+/*-------------------------------------------------------------.
+| yyerrlab1 -- common code for both syntax error and YYERROR. |
+`-------------------------------------------------------------*/
+yyerrlab1:
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
+
+ for (;;)
+ {
+ yyn = yypact[yystate];
+ if (yyn != YYPACT_NINF)
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
+
+ /* Pop the current state because it cannot handle the error token. */
+ if (yyssp == yyss)
+ YYABORT;
+
+
+ yydestruct ("Error: popping",
+ yystos[yystate], yyvsp);
+ YYPOPSTACK (1);
+ yystate = *yyssp;
+ YY_STACK_PRINT (yyss, yyssp);
+ }
+
+ *++yyvsp = yylval;
+
+
+ /* Shift the error token. */
+ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
+
+ yystate = yyn;
+ goto yynewstate;
+
+
+/*-------------------------------------.
+| yyacceptlab -- YYACCEPT comes here. |
+`-------------------------------------*/
+yyacceptlab:
+ yyresult = 0;
+ goto yyreturn;
+
+/*-----------------------------------.
+| yyabortlab -- YYABORT comes here. |
+`-----------------------------------*/
+yyabortlab:
+ yyresult = 1;
+ goto yyreturn;
+
+#if !defined(yyoverflow) || YYERROR_VERBOSE
+/*-------------------------------------------------.
+| yyexhaustedlab -- memory exhaustion comes here. |
+`-------------------------------------------------*/
+yyexhaustedlab:
+ yyerror (YY_("memory exhausted"));
+ yyresult = 2;
+ /* Fall through. */
+#endif
+
+yyreturn:
+ if (yychar != YYEMPTY)
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval);
+ /* Do not reclaim the symbols of the rule which action triggered
+ this YYABORT or YYACCEPT. */
+ YYPOPSTACK (yylen);
+ YY_STACK_PRINT (yyss, yyssp);
+ while (yyssp != yyss)
+ {
+ yydestruct ("Cleanup: popping",
+ yystos[*yyssp], yyvsp);
+ YYPOPSTACK (1);
+ }
+#ifndef yyoverflow
+ if (yyss != yyssa)
+ YYSTACK_FREE (yyss);
+#endif
+#if YYERROR_VERBOSE
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+#endif
+ /* Make sure YYID is used. */
+ return YYID (yyresult);
+}
+
+
+
+/* Line 1675 of yacc.c */
+#line 1132 "vtkParse.y"
+
+#include <string.h>
+#include "lex.yy.c"
+
+static void vtkParseDebug(const char* s1, const char* s2)
+{
+ if ( getenv("DEBUG") )
+ {
+ fprintf(stderr, " %s", s1);
+ if ( s2 )
+ {
+ fprintf(stderr, " %s", s2);
+ }
+ fprintf(stderr, "\n");
+ }
+}
+
+/* initialize the structure */
+void InitFunction(FunctionInfo *func)
+{
+ func->Name = NULL;
+ func->NumberOfArguments = 0;
+ func->ArrayFailure = 0;
+ func->IsPureVirtual = 0;
+ func->IsPublic = 0;
+ func->IsOperator = 0;
+ func->HaveHint = 0;
+ func->HintSize = 0;
+ func->ReturnType = 0x2;
+ func->ReturnClass = NULL;
+ func->Comment = NULL;
+ func->Signature = NULL;
+ func->IsLegacy = 0;
+ sigAllocatedLength = 0;
+ openSig = 1;
+ invertSig = 0;
+}
+
+/* when the cpp file doesn't have enough info use the hint file */
+void look_for_hint(void)
+{
+ char h_cls[80];
+ char h_func[80];
+ unsigned int h_type;
+ int h_value;
+
+ /* reset the position */
+ if (!fhint)
+ {
+ return;
+ }
+ rewind(fhint);
+
+ /* first find a hint */
+ while (fscanf(fhint,"%s %s %x %i",h_cls,h_func,&h_type,&h_value) != EOF)
+ {
+ if ((!strcmp(h_cls,data.ClassName))&&
+ currentFunction->Name &&
+ (!strcmp(h_func,currentFunction->Name))&&
+ ((int)h_type == currentFunction->ReturnType))
+ {
+ currentFunction->HaveHint = 1;
+ currentFunction->HintSize = h_value;
+ }
+ }
+}
+
+/* a simple routine that updates a few variables */
+void output_function()
+{
+ int i;
+
+ /* a void argument is the same as no arguements */
+ if (currentFunction->ArgTypes[0] % 0x1000 == 0x2)
+ {
+ currentFunction->NumberOfArguments = 0;
+ }
+
+ currentFunction->IsPublic = in_public;
+ currentFunction->IsProtected = in_protected;
+
+ /* look for VAR FUNCTIONS */
+ if (currentFunction->NumberOfArguments
+ && (currentFunction->ArgTypes[0] == 0x5000))
+ {
+ if (currentFunction->NumberOfArguments == 2)
+ {
+ currentFunction->NumberOfArguments = 1;
+ }
+ else
+ {
+ currentFunction->ArrayFailure = 1;
+ }
+ }
+
+ /* is it a delete function */
+ if (currentFunction->Name && !strcmp("Delete",currentFunction->Name))
+ {
+ data.HasDelete = 1;
+ }
+
+
+ /* if we need a return type hint and dont currently have one */
+ /* then try to find one */
+ if (!currentFunction->HaveHint)
+ {
+ switch (currentFunction->ReturnType % 0x1000)
+ {
+ case 0x301: case 0x302: case 0x307: case 0x30A: case 0x30B: case 0x30C:
+ case 0x304: case 0x305: case 0x306: case 0x313:
+ look_for_hint();
+ break;
+ }
+ }
+
+ /* reject multi-dimensional arrays from wrappers */
+ for (i = 0; i < currentFunction->NumberOfArguments; i++)
+ {
+ if ((currentFunction->ArgTypes[i] % 0x1000)/0x100 == 0x6 ||
+ (currentFunction->ArgTypes[i] % 0x1000)/0x100 == 0x9)
+ {
+ currentFunction->ArrayFailure = 1;
+ }
+ }
+
+ if (HaveComment)
+ {
+ currentFunction->Comment = vtkstrdup(CommentText);
+ }
+
+ data.NumberOfFunctions++;
+ currentFunction = data.Functions + data.NumberOfFunctions;
+ InitFunction(currentFunction);
+}
+
+extern void vtkParseOutput(FILE *,FileInfo *);
+
+int main(int argc,char *argv[])
+{
+ FILE *fin;
+ int ret;
+ FILE *fout;
+
+ if (argc < 4 || argc > 5)
+ {
+ fprintf(stderr,
+ "Usage: %s input_file <hint_file> is_concrete output_file\n",argv[0]);
+ exit(1);
+ }
+
+ if (!(fin = fopen(argv[1],"r")))
+ {
+ fprintf(stderr,"Error opening input file %s\n",argv[1]);
+ exit(1);
+ }
+
+ fhint = 0;
+ data.FileName = argv[1];
+ data.NameComment = NULL;
+ data.Description = NULL;
+ data.Caveats = NULL;
+ data.SeeAlso = NULL;
+ CommentState = 0;
+
+ if (argc == 5)
+ {
+ if (!(fhint = fopen(argv[2],"r")))
+ {
+ fprintf(stderr,"Error opening hint file %s\n",argv[2]);
+ exit(1);
+ }
+ data.IsConcrete = atoi(argv[3]);
+ }
+ else
+ {
+ data.IsConcrete = atoi(argv[2]);
+ }
+
+ currentFunction = data.Functions;
+ InitFunction(currentFunction);
+
+ yyin = fin;
+ yyout = stdout;
+ ret = yyparse();
+ if (ret)
+ {
+ fprintf(stdout,
+ "*** SYNTAX ERROR found in parsing the header file %s before line %d ***\n",
+ argv[1], yylineno);
+ return ret;
+ }
+
+ if (argc == 5)
+ {
+ fout = fopen(argv[4],"w");
+ data.OutputFileName = argv[4];
+ }
+ else
+ {
+ fout = fopen(argv[3],"w");
+ data.OutputFileName = argv[3];
+ }
+
+ if (!fout)
+ {
+ fprintf(stderr,"Error opening output file %s\n",argv[3]);
+ exit(1);
+ }
+ vtkParseOutput(fout,&data);
+ fclose (fout);
+
+ return 0;
+}
+
+
+
INSTALL(
TARGETS SMSampleFilter
- DESTINATION .
+ DESTINATION lib/paraview
)
INSTALL(
TARGETS GUISampleToolBar
- DESTINATION .
+ DESTINATION lib/paraview
)
INSTALL(
TARGETS GUISampleView SMSampleView
- DESTINATION .
+ DESTINATION lib/paraview
)
--- /dev/null
+ADD_CUSTOM_COMMAND(
+ OUTPUT wrapfiles.txt
+ COMMAND pvpython ${CMAKE_SOURCE_DIR}/getwrapclasses.py
+ DEPENDS ${CMAKE_SOURCE_DIR}/getwrapclasses.py ${PARAVIEW_PYTHON_EXECUTABLE}
+)