Plugins removed: Filter, NavigationMode, ToolBar.
ENDIF()
SET(_subdirs
- #Filter
- #ToolBar
-# MEDReader
-# TableReader
-# NavigationMode
+ MEDReader
+# TableReader
ElevationSurface
ScaleVector
EllipseBuilder
+++ /dev/null
-# 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
-)
+++ /dev/null
-<ServerManagerConfiguration>
- <ProxyGroup name="filters">
- <SourceProxy name="SampleFilter" class="vtkMySampleFilter" label="SampleFilter">
- <Documentation
- long_help="Long help"
- short_help="Short help">
-Documentation text
- </Documentation>
- <InputProperty
- name="Input"
- command="SetInputConnection">
- <ProxyGroupDomain name="groups">
- <Group name="sources"/>
- <Group name="filters"/>
- </ProxyGroupDomain>
- <DataTypeDomain name="input_type">
- <DataType value="vtkDataSet"/>
- </DataTypeDomain>
- </InputProperty>
- </SourceProxy>
- </ProxyGroup>
-</ServerManagerConfiguration>
-
+++ /dev/null
-// 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 <vtkObjectFactory.h>
-
-//vtkCxxRevisionMacro(vtkMySampleFilter, "$Revision$");
-vtkStandardNewMacro(vtkMySampleFilter);
-
-//----------------------------------------------------------------------------
-vtkMySampleFilter::vtkMySampleFilter()
-{
-}
-
-//----------------------------------------------------------------------------
-vtkMySampleFilter::~vtkMySampleFilter()
-{
-}
-
-//----------------------------------------------------------------------------
-void vtkMySampleFilter::PrintSelf(ostream& os, vtkIndent indent)
-{
- this->Superclass::PrintSelf(os,indent);
-}
-
+++ /dev/null
-// 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 <vtkExtractEdges.h>
-
-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
+++ /dev/null
-# 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
+++ /dev/null
-// 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 <pqServerManagerModel.h>
-
-#include <pqApplicationCore.h>
-#include <pqRenderView.h>
-#include <pqSettings.h>
-
-
-//-----------------------------------------------------------------------------
-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<pqRenderViewBase*> views =
- pqApplicationCore::instance()->getServerManagerModel()->
- findItems<pqRenderViewBase*>();
-
- foreach(pqRenderViewBase* view, views) {
- view->restoreSettings(true);
- }
-}
+++ /dev/null
-// 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 <QObject>
-
-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
-
-
+++ /dev/null
-# 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
-)
+++ /dev/null
-// 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 <QApplication>
-#include <QStyle>
-#include <QMessageBox>
-
-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");
-}
-
+++ /dev/null
-// 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 <QActionGroup>
-
-class MyToolBarActions : public QActionGroup
-{
- Q_OBJECT
-public:
- MyToolBarActions(QObject* p);
- ~MyToolBarActions();
-
-public slots:
- void onAction();
-
-};
-