From 429d6955306ecf01ed51e604e3f14dfffc481675 Mon Sep 17 00:00:00 2001 From: vsr Date: Sat, 5 Nov 2011 18:09:38 +0000 Subject: [PATCH] Remove obsolete files --- src/SVTK/SVTK_DialogBase.cxx | 85 ------------------- src/SVTK/SVTK_DialogBase.h | 60 ------------- src/SVTK/SVTK_Extension.cxx | 44 ---------- src/SVTK/SVTK_Extension.h | 39 --------- src/VTKViewer/VTKViewer_PassThroughFilter.cxx | 81 ------------------ src/VTKViewer/VTKViewer_PassThroughFilter.h | 51 ----------- 6 files changed, 360 deletions(-) delete mode 100644 src/SVTK/SVTK_DialogBase.cxx delete mode 100644 src/SVTK/SVTK_DialogBase.h delete mode 100755 src/SVTK/SVTK_Extension.cxx delete mode 100755 src/SVTK/SVTK_Extension.h delete mode 100755 src/VTKViewer/VTKViewer_PassThroughFilter.cxx delete mode 100755 src/VTKViewer/VTKViewer_PassThroughFilter.h diff --git a/src/SVTK/SVTK_DialogBase.cxx b/src/SVTK/SVTK_DialogBase.cxx deleted file mode 100644 index 56eb0ef23..000000000 --- a/src/SVTK/SVTK_DialogBase.cxx +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (C) 2007-2011 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 -// - -// SALOME VTKViewer : build VTK viewer into Salome desktop -// File : -// Author : -// Module : SALOME -// $Header$ -// -#include "SVTK_DialogBase.h" - -#include "QtxAction.h" - -/*! - Constructor -*/ -SVTK_DialogBase -::SVTK_DialogBase(QtxAction* theAction, - QWidget* theParent, - const char* theName, - bool theModal, - Qt::WindowFlags theWFalgs): - QDialog(theParent, - theWFalgs | Qt::WindowTitleHint | Qt::WindowSystemMenuHint), - myAction(theAction) -{ - setObjectName(theName); - setModal(theModal); - - connect(theParent, SIGNAL(Show( QShowEvent * )), this, SLOT(onParentShow())); - connect(theParent, SIGNAL(Hide( QHideEvent * )), this, SLOT(onParentHide())); -} - -/* - * Destroys the object and frees any allocated resources - */ -SVTK_DialogBase -::~SVTK_DialogBase() -{ - // no need to delete child widgets, Qt does it all for us -} - -void -SVTK_DialogBase -::onParentShow() -{ - if(myAction->isChecked()) - show(); - else - hide(); -} - -void -SVTK_DialogBase -::onParentHide() -{ - hide(); -} - -void -SVTK_DialogBase -::done( int r ) -{ - myAction->setChecked( false ); - QDialog::done( r ); -} diff --git a/src/SVTK/SVTK_DialogBase.h b/src/SVTK/SVTK_DialogBase.h deleted file mode 100644 index d5058d65f..000000000 --- a/src/SVTK/SVTK_DialogBase.h +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (C) 2007-2011 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 -// - -// SALOME VTKViewer : build VTK viewer into Salome desktop -// File : -// Author : -// Module : SALOME -// $Header$ -// -#ifndef SVTK_DIALOGBASE_H -#define SVTK_DIALOGBASE_H - -#include "SVTK.h" - -#include - -class QtxAction; - -class SVTK_EXPORT SVTK_DialogBase : public QDialog -{ - Q_OBJECT; - -public: - SVTK_DialogBase(QtxAction* theAction, - QWidget* theParent, - const char* theName = "", - bool theModal = FALSE, - Qt::WindowFlags theWFalgs = 0); - - ~SVTK_DialogBase(); - -protected slots: - void onParentShow(); - void onParentHide(); - virtual void done( int ); - -protected: - QtxAction* myAction; -}; - -#endif // SVTK_DIALOGBASE_H diff --git a/src/SVTK/SVTK_Extension.cxx b/src/SVTK/SVTK_Extension.cxx deleted file mode 100755 index b46239154..000000000 --- a/src/SVTK/SVTK_Extension.cxx +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (C) 2007-2011 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 -// - -// SALOME VTKViewer : build VTK viewer into Salome desktop -// File : SVTK_Extension.cxx -// Author : Sergey ANIKIN -// Module : SALOME -// -#include "SVTK_Extension.h" - -#ifdef WIN32 -#include -#else -#include -#endif - -void* SVTK::getOpenGLExtension( const char* theExtension ) -{ -#ifdef WIN32 - return wglGetProcAddress( theExtension ); -#else - void* OpenGLLibrary = dlopen( "libGL.so", RTLD_LAZY ); - return dlsym( OpenGLLibrary, theExtension ); -#endif -} diff --git a/src/SVTK/SVTK_Extension.h b/src/SVTK/SVTK_Extension.h deleted file mode 100755 index ebbedc3a9..000000000 --- a/src/SVTK/SVTK_Extension.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2007-2011 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 -// - -#ifndef SVTK_Extension_H -#define SVTK_Extension_H - -/*! - \file SVTK_Extension.h - Functions of loading OpenGL extensions. -*/ - -#include "SVTK.h" - -namespace SVTK -{ - SVTK_EXPORT void* getOpenGLExtension( const char* theExtension ); -} - - -#endif diff --git a/src/VTKViewer/VTKViewer_PassThroughFilter.cxx b/src/VTKViewer/VTKViewer_PassThroughFilter.cxx deleted file mode 100755 index 78e89d5f8..000000000 --- a/src/VTKViewer/VTKViewer_PassThroughFilter.cxx +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (C) 2007-2011 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 -// - -// SALOME FILTER : interactive object for VISU entities implementation -// File : SALOME_PassThroughFilter.cxx -// Author : Laurent CORNABE with help of Nicolas REJNERI -// Module : SALOME -// -#include "VTKViewer_PassThroughFilter.h" - -#include -#include -#include -#include -#include -#include - -vtkCxxRevisionMacro(VTKViewer_PassThroughFilter, "$Revision$"); -vtkStandardNewMacro(VTKViewer_PassThroughFilter); - -/*! \class VTKViewer_PassThroughFilter - * Passive filter take a dataset as input and create a dataset as output.\n - * The form of the input geometry is not changed in these filters, \n - * only the point attributes (e.g. scalars, vectors, etc.). - */ - -/*!Execute method.Output calculation.*/ -int VTKViewer_PassThroughFilter::RequestData( - vtkInformation *, - vtkInformationVector **inputVector, - vtkInformationVector *outputVector) -{ - // get the info objects - vtkInformation *inInfo = inputVector[0]->GetInformationObject(0); - vtkInformation *outInfo = outputVector->GetInformationObject(0); - - // get the input and ouptut - vtkDataSet *input = vtkDataSet::SafeDownCast( - inInfo->Get(vtkDataObject::DATA_OBJECT())); - vtkDataSet *output = vtkDataSet::SafeDownCast( - outInfo->Get(vtkDataObject::DATA_OBJECT())); - - // This has to be here because it initialized all field datas. - output->CopyStructure( input ); - - //! Pass all. (data object's field data is passed by the - //! superclass after this method) - output->GetPointData()->PassData( input->GetPointData() ); - output->GetCellData()->PassData( input->GetCellData() ); - - return 1; -} - -/*!Methods invoked by print to print information about the object including superclasses.\n - * Typically not called by the user (use Print() instead) but used in the hierarchical \n - * print process to combine the output of several classes. - *\param os - output stream. - */ -void VTKViewer_PassThroughFilter::PrintSelf(ostream& os, vtkIndent indent) -{ - this->Superclass::PrintSelf(os,indent); -} diff --git a/src/VTKViewer/VTKViewer_PassThroughFilter.h b/src/VTKViewer/VTKViewer_PassThroughFilter.h deleted file mode 100755 index 2c7a90e44..000000000 --- a/src/VTKViewer/VTKViewer_PassThroughFilter.h +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (C) 2007-2011 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 -// - -#ifndef VTKVIEWER_PASSTHROUGHFILTER_H -#define VTKVIEWER_PASSTHROUGHFILTER_H - -#include "VTKViewer.h" - -#include - -class VTKVIEWER_EXPORT VTKViewer_PassThroughFilter : public vtkDataSetToDataSetFilter -{ -public: - vtkTypeRevisionMacro( VTKViewer_PassThroughFilter, vtkDataSetToDataSetFilter ); - void PrintSelf( ostream& os, vtkIndent indent ); - - /*!Create a new VTKViewer_PassThroughFilter.*/ - static VTKViewer_PassThroughFilter *New(); - -protected: - VTKViewer_PassThroughFilter() {};//!< Null body. - virtual ~VTKViewer_PassThroughFilter() {};//!< Null body. - - virtual int RequestData(vtkInformation *, vtkInformationVector **, - vtkInformationVector *); //generate output data - -private: - VTKViewer_PassThroughFilter( const VTKViewer_PassThroughFilter& ); //!< Not implemented. - void operator=( const VTKViewer_PassThroughFilter& ); //!< Not implemented. -}; - -#endif -- 2.39.2