From: abn Date: Wed, 10 Sep 2014 11:46:59 +0000 (+0200) Subject: All plugins except TableReader ported. Legacy plugins removed. X-Git-Tag: V7_5_0a1~1^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=27c3880f2408576c5f42319f84e49345cb139f0c;p=modules%2Fparavis.git All plugins except TableReader ported. Legacy plugins removed. Plugins removed: Filter, NavigationMode, ToolBar. --- diff --git a/src/Plugins/CMakeLists.txt b/src/Plugins/CMakeLists.txt index d0aecd68..52b6e529 100755 --- a/src/Plugins/CMakeLists.txt +++ b/src/Plugins/CMakeLists.txt @@ -27,11 +27,8 @@ IF(WIN32) ENDIF() SET(_subdirs - #Filter - #ToolBar -# MEDReader -# TableReader -# NavigationMode + MEDReader +# TableReader ElevationSurface ScaleVector EllipseBuilder diff --git a/src/Plugins/Filter/CMakeLists.txt b/src/Plugins/Filter/CMakeLists.txt deleted file mode 100755 index af2a8203..00000000 --- a/src/Plugins/Filter/CMakeLists.txt +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# create a paraview plugin containing server manager xml and the server -# manager classes to build -# this plugin can be loaded on the server side - -ADD_PARAVIEW_PLUGIN(SMSampleFilter "1.0" - SERVER_MANAGER_XML SampleFilter.xml - SERVER_MANAGER_SOURCES vtkMySampleFilter.cxx) - -INSTALL( - TARGETS SMSampleFilter - DESTINATION lib/paraview -) diff --git a/src/Plugins/Filter/SampleFilter.xml b/src/Plugins/Filter/SampleFilter.xml deleted file mode 100755 index 9d7d4ca0..00000000 --- a/src/Plugins/Filter/SampleFilter.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - -Documentation text - - - - - - - - - - - - - - diff --git a/src/Plugins/Filter/vtkMySampleFilter.cxx b/src/Plugins/Filter/vtkMySampleFilter.cxx deleted file mode 100644 index 3acb9f41..00000000 --- a/src/Plugins/Filter/vtkMySampleFilter.cxx +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// - -#include "vtkMySampleFilter.h" - -#include - -//vtkCxxRevisionMacro(vtkMySampleFilter, "$Revision$"); -vtkStandardNewMacro(vtkMySampleFilter); - -//---------------------------------------------------------------------------- -vtkMySampleFilter::vtkMySampleFilter() -{ -} - -//---------------------------------------------------------------------------- -vtkMySampleFilter::~vtkMySampleFilter() -{ -} - -//---------------------------------------------------------------------------- -void vtkMySampleFilter::PrintSelf(ostream& os, vtkIndent indent) -{ - this->Superclass::PrintSelf(os,indent); -} - diff --git a/src/Plugins/Filter/vtkMySampleFilter.h b/src/Plugins/Filter/vtkMySampleFilter.h deleted file mode 100644 index a13a6c40..00000000 --- a/src/Plugins/Filter/vtkMySampleFilter.h +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// - -#ifndef __vtkMySampleFilter_h -#define __vtkMySampleFilter_h - -#include - -class vtkMySampleFilter : public vtkExtractEdges -{ -public: - static vtkMySampleFilter* New(); - vtkTypeMacro(vtkMySampleFilter, vtkExtractEdges); - void PrintSelf(ostream& os, vtkIndent indent); - -protected: - vtkMySampleFilter(); - ~vtkMySampleFilter(); - -private: - vtkMySampleFilter(const vtkMySampleFilter&); // Not implemented. - void operator=(const vtkMySampleFilter&); // Not implemented. -}; - -#endif diff --git a/src/Plugins/NavigationMode/CMakeLists.txt b/src/Plugins/NavigationMode/CMakeLists.txt deleted file mode 100644 index 7742acc4..00000000 --- a/src/Plugins/NavigationMode/CMakeLists.txt +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# NavigationMode plugin. -# This is auto-start plugin providing navigation -# mode in 3D viewer in Post-Pro style. - -CMAKE_MINIMUM_REQUIRED(VERSION 2.4) -if(COMMAND cmake_policy) - cmake_policy(SET CMP0003 NEW) -endif(COMMAND cmake_policy) - -project(NavigationMode) - -# Find ParaView -FIND_PACKAGE(ParaView REQUIRED) -if(NOT ParaView_FOUND) - MESSAGE(FATAL_ERROR "Please locate ParaView." ) -ENDIF(NOT ParaView_FOUND) -INCLUDE(${PARAVIEW_USE_FILE}) - -# Standard CMake option for building libraries shared or static by default. -OPTION(BUILD_SHARED_LIBS - "Build with shared libraries." - ${VTK_BUILD_SHARED_LIBS}) - -QT4_WRAP_CPP(MOC_SRCS pqSetModeStarter.h) - -ADD_PARAVIEW_AUTO_START(IFACES IFACE_SRCS CLASS_NAME pqSetModeStarter - STARTUP onStartup) - -ADD_PARAVIEW_PLUGIN(NavigationMode "1.0" - GUI_INTERFACES ${IFACES} - SOURCES pqSetModeStarter.cxx ${MOC_SRCS} ${RCS_SRCS} ${IFACE_SRCS}) - -# Install -INSTALL( - TARGETS NavigationMode - RUNTIME DESTINATION lib/paraview - LIBRARY DESTINATION lib/paraview - ARCHIVE DESTINATION lib/paraview -) \ No newline at end of file diff --git a/src/Plugins/NavigationMode/pqSetModeStarter.cxx b/src/Plugins/NavigationMode/pqSetModeStarter.cxx deleted file mode 100644 index 59553fe8..00000000 --- a/src/Plugins/NavigationMode/pqSetModeStarter.cxx +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// - -#include "pqSetModeStarter.h" - -#include - -#include -#include -#include - - -//----------------------------------------------------------------------------- -pqSetModeStarter::pqSetModeStarter(QObject* p/*=0*/) -: QObject(p) -{ -} - -//----------------------------------------------------------------------------- -pqSetModeStarter::~pqSetModeStarter() -{ -} - - -//----------------------------------------------------------------------------- -void pqSetModeStarter::onStartup() -{ - this->setStandardMode(); -} - -//----------------------------------------------------------------------------- -void pqSetModeStarter::setStandardMode() -{ - pqSettings* settings = pqApplicationCore::instance()->settings(); - settings->beginGroup("renderModule"); - if (!settings->contains("InteractorStyle/CameraManipulators")) { - // Set Post-Pro-like settings - QStringList strs; - pqRenderView::ManipulatorType manips[9]; - const pqRenderView::ManipulatorType* default3DManips = pqRenderView::getDefault3DManipulatorTypes(); - - // Copy default settings, make changes for Ctrl+MB and MB modes - for(int i=0; i<9; i++) - { - manips[i] = default3DManips[i]; - - // Ctrl+MB - if (manips[i].Shift == 0 && manips[i].Control == 1) { - if (manips[i].Mouse == 1) - manips[i].Name = QByteArray("Zoom"); - else if (manips[i].Mouse == 2) - manips[i].Name = QByteArray("Pan"); - else if (manips[i].Mouse == 3) - manips[i].Name = QByteArray("Rotate"); - } - - // MB only - if (manips[i].Shift == 0 && manips[i].Control == 0) { - if (manips[i].Mouse == 1) - manips[i].Name = QByteArray("Rotate"); - else if (manips[i].Mouse == 2) - manips[i].Name = QByteArray("Pan"); - else if (manips[i].Mouse == 3) - manips[i].Name = QByteArray("Zoom"); - } - } - - // Save settings - for(int i=0; i<9; i++) - { - strs << QString("Manipulator%1Mouse%2Shift%3Control%4Name%5") - .arg(i+1) - .arg(manips[i].Mouse) - .arg(manips[i].Shift) - .arg(manips[i].Control) - .arg(QString(manips[i].Name)); - } - - settings->setValue("InteractorStyle/CameraManipulators", strs); - } - settings->endGroup(); - - // Loop through render views and apply the settings - QList views = - pqApplicationCore::instance()->getServerManagerModel()-> - findItems(); - - foreach(pqRenderViewBase* view, views) { - view->restoreSettings(true); - } -} diff --git a/src/Plugins/NavigationMode/pqSetModeStarter.h b/src/Plugins/NavigationMode/pqSetModeStarter.h deleted file mode 100644 index 098446f9..00000000 --- a/src/Plugins/NavigationMode/pqSetModeStarter.h +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// - -#ifndef __pqSetModeStarter_h -#define __pqSetModeStarter_h - -#include - -class pqSetModeStarter : public QObject -{ - Q_OBJECT - typedef QObject Superclass; -public: - pqSetModeStarter(QObject* p=0); - ~pqSetModeStarter(); - - // Callback for startup. - void onStartup(); - - // Callback for shutdown. - void shutdown() {} - -private: - void setStandardMode(); - -private: - pqSetModeStarter(const pqSetModeStarter&); // Not implemented. - void operator=(const pqSetModeStarter&); // Not implemented. -}; - -#endif - - diff --git a/src/Plugins/ToolBar/CMakeLists.txt b/src/Plugins/ToolBar/CMakeLists.txt deleted file mode 100755 index af3d1f4c..00000000 --- a/src/Plugins/ToolBar/CMakeLists.txt +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Lesser General Public License for more details. -# -# You should have received a copy of the GNU Lesser General Public -# License along with this library; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# -# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -# - -# create a plugin that implements a sample toolbar action - -QT4_WRAP_CPP(MOC_SRCS MyToolBarActions.h) - -# we implement a pqConePanel.h for the ConeSource -ADD_PARAVIEW_ACTION_GROUP(IFACES IFACE_SRCS CLASS_NAME MyToolBarActions - GROUP_NAME "ToolBar/MyActions") - -# create a plugin for this panel -ADD_PARAVIEW_PLUGIN(GUISampleToolBar "1.0" - GUI_INTERFACES ${IFACES} - SOURCES MyToolBarActions.cxx ${MOC_SRCS} ${IFACE_SRCS}) - -INSTALL( - TARGETS GUISampleToolBar - DESTINATION lib/paraview -) diff --git a/src/Plugins/ToolBar/MyToolBarActions.cxx b/src/Plugins/ToolBar/MyToolBarActions.cxx deleted file mode 100755 index 201842f4..00000000 --- a/src/Plugins/ToolBar/MyToolBarActions.cxx +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// - -#include "MyToolBarActions.h" - -#include -#include -#include - -MyToolBarActions::MyToolBarActions(QObject* p) - : QActionGroup(p) -{ - QIcon icon = qApp->style()->standardIcon(QStyle::SP_MessageBoxCritical); - - QAction* a = this->addAction(new QAction(icon, "MyAction", this)); - QObject::connect(a, SIGNAL(triggered(bool)), this, SLOT(onAction())); -} - -MyToolBarActions::~MyToolBarActions() -{ -} - -void MyToolBarActions::onAction() -{ - QMessageBox::information(NULL, "MyAction", "MyAction was invoked\n"); -} - diff --git a/src/Plugins/ToolBar/MyToolBarActions.h b/src/Plugins/ToolBar/MyToolBarActions.h deleted file mode 100755 index f641299e..00000000 --- a/src/Plugins/ToolBar/MyToolBarActions.h +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF 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, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// - -#include - -class MyToolBarActions : public QActionGroup -{ - Q_OBJECT -public: - MyToolBarActions(QObject* p); - ~MyToolBarActions(); - -public slots: - void onAction(); - -}; -