From: apo Date: Wed, 11 Jan 2006 08:20:11 +0000 (+0000) Subject: Merge with OCC_development_generic_2006 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=67839e1d4fe0b13272eb3f5d6ec3252ce9dca257;p=modules%2Fgui.git Merge with OCC_development_generic_2006 --- diff --git a/doc/salome/tui/SUIT/doxyfile b/doc/salome/tui/SUIT/doxyfile index 15f59d894..87b647b83 100755 --- a/doc/salome/tui/SUIT/doxyfile +++ b/doc/salome/tui/SUIT/doxyfile @@ -3,7 +3,7 @@ #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- -PROJECT_NAME = "SALOME v.3.1.0a" +PROJECT_NAME = "SALOME v.3.1.0" PROJECT_NUMBER = id#1.1 OUTPUT_DIRECTORY = ../ CREATE_SUBDIRS = NO diff --git a/src/DDS/DDS_DicGroup.cxx b/src/DDS/DDS_DicGroup.cxx index ac7f4ad6b..40f42a317 100644 --- a/src/DDS/DDS_DicGroup.cxx +++ b/src/DDS/DDS_DicGroup.cxx @@ -110,7 +110,7 @@ void DDS_DicGroup::FillDataMap( const LDOM_Element& theComponentData, const LDOM Handle(DDS_DicItem) aDicItem = new DDS_DicItem(); aDicItem->myComponent = this; - aDicItem->FillDataMap( anID, aQuantity, theComponentData, theDocElement, unitSystems ); + aDicItem->FillDataMap( anID, aQuantity, theDocElement, unitSystems ); myDataMap.Add( anID, aDicItem ); } } diff --git a/src/DDS/DDS_DicItem.cxx b/src/DDS/DDS_DicItem.cxx index fd59f3cd6..68e19dfd2 100644 --- a/src/DDS/DDS_DicItem.cxx +++ b/src/DDS/DDS_DicItem.cxx @@ -309,8 +309,7 @@ Standard_Real DDS_DicItem::FromSI( const Standard_Real theVal, const UnitSystem& Parse record in XML file and retrieve information relevant for this data dic item */ void DDS_DicItem::FillDataMap( TCollection_AsciiString theID, const LDOM_Element& theDatum, - const LDOM_Element& theCompElement, const LDOM_Element& theDocElement, - const TColStd_SequenceOfAsciiString& theSystems ) + const LDOM_Element& theDocElement, const TColStd_SequenceOfAsciiString& theSystems ) { TCollection_AsciiString aLabel = theDatum.getAttribute( DDS_Dictionary::KeyWord( "DATUM_LABEL" ) ); TCollection_AsciiString aFormat = theDatum.getAttribute( DDS_Dictionary::KeyWord( "DATUM_FORMAT" ) ); @@ -463,43 +462,32 @@ void DDS_DicItem::FillDataMap( TCollection_AsciiString theID, const LDOM_Element LDOMString aListId = aListRef.getAttribute( DDS_Dictionary::KeyWord( "VLR_LIST" ) ); aDefV = aListRef.getAttribute( DDS_Dictionary::KeyWord( "VD_DEFV" ) ); aDefV.RemoveAll( ' ' ); - LDOM_Element foundListItem; - for ( LDOM_Element aListItem = theCompElement.GetChildByTagName( DDS_Dictionary::KeyWord( "VALUE_LIST" ) ); - aListItem != NULL && foundListItem == NULL; aListItem = aListItem.GetSiblingByTagName() ) + for ( LDOM_Element aListItem = theDocElement.GetChildByTagName( DDS_Dictionary::KeyWord( "VALUE_LIST" ) ); + aListItem != NULL; aListItem = aListItem.GetSiblingByTagName() ) { if ( aListItem.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_ID" ) ).equals( aListId ) ) - foundListItem = aListItem; - - } - for ( LDOM_Element aLstItem = theDocElement.GetChildByTagName( DDS_Dictionary::KeyWord( "VALUE_LIST" ) ); - aLstItem != NULL && foundListItem == NULL; aLstItem = aLstItem.GetSiblingByTagName() ) - { - if ( aLstItem.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_ID" ) ).equals( aListId ) ) - foundListItem = aLstItem; - } - - if ( foundListItem != NULL ) - { - // The appropriate list of values is found: store the list name - aListName = foundListItem.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_NAME" ) ); - // Iteration through the list of values - LDOM_Element aListItemValue = foundListItem.GetChildByTagName( DDS_Dictionary::KeyWord( "VALUE_LIST_VALUE" ) ); - while ( aListItemValue != NULL ) { - // read value ID - TCollection_AsciiString aListValueID = aListItemValue.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_VALUEID" ) ); - if ( aListValueID.IsIntegerValue() ) + // The appropriate list of values is found: store the list name + aListName = aListItem.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_NAME" ) ); + // Iteration through the list of values + LDOM_Element aListItemValue = aListItem.GetChildByTagName( DDS_Dictionary::KeyWord( "VALUE_LIST_VALUE" ) ); + while ( aListItemValue != NULL ) { - // Read the text in the element "value" - LDOM_Text aListItemTxt = (const LDOM_Text&)aListItemValue.getFirstChild(); - if ( !aListItemTxt.isNull() ) + // read value ID + TCollection_AsciiString aListValueID = aListItemValue.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_VALUEID" ) ); + if ( aListValueID.IsIntegerValue() ) { - // adding ID and text value to sequence - aSeqOfValueID.Append( aListValueID.IntegerValue() ); - aSeqOfValue.Append( aListItemTxt.getData() ); - // adding icon file name (optional) to sequence - TCollection_ExtendedString aListValueIcon = aListItemValue.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_VALUEICON" ) ); - aSeqOfValueIconName.Append( aListValueIcon ); + // Read the text in the element "value" + LDOM_Text aListItemTxt = (const LDOM_Text&)aListItemValue.getFirstChild(); + if ( !aListItemTxt.isNull() ) + { + // adding ID and text value to sequence + aSeqOfValueID.Append( aListValueID.IntegerValue() ); + aSeqOfValue.Append( aListItemTxt.getData() ); + // adding icon file name (optional) to sequence + TCollection_ExtendedString aListValueIcon = aListItemValue.getAttribute( DDS_Dictionary::KeyWord( "VALUE_LIST_VALUEICON" ) ); + aSeqOfValueIconName.Append( aListValueIcon ); + } } aListItemValue = aListItemValue.GetSiblingByTagName(); } diff --git a/src/DDS/DDS_DicItem.h b/src/DDS/DDS_DicItem.h index 871149407..d57eaf068 100644 --- a/src/DDS/DDS_DicItem.h +++ b/src/DDS/DDS_DicItem.h @@ -141,8 +141,8 @@ private: void operator=( const DDS_DicItem& ); // Assignment operator - void FillDataMap( TCollection_AsciiString, const LDOM_Element&, - const LDOM_Element&, const LDOM_Element&, + void FillDataMap( TCollection_AsciiString, + const LDOM_Element&,const LDOM_Element&, const TColStd_SequenceOfAsciiString& ); // prepares formants for each unit systems diff --git a/src/LightApp/LightApp_Module.cxx b/src/LightApp/LightApp_Module.cxx index 8db02d3be..6b4de40b6 100644 --- a/src/LightApp/LightApp_Module.cxx +++ b/src/LightApp/LightApp_Module.cxx @@ -136,12 +136,18 @@ bool LightApp_Module::activateModule( SUIT_Study* study ) } /*!Deactivate module.*/ -bool LightApp_Module::deactivateModule( SUIT_Study* ) +bool LightApp_Module::deactivateModule( SUIT_Study* study ) { delete mySwitchOp; mySwitchOp = 0; - return true; + // abort all operations + MapOfOperation::const_iterator anIt; + for( anIt = myOperations.begin(); anIt != myOperations.end(); anIt++ ) { + anIt.data()->abort(); + } + + return CAM_Module::activateModule( study ); } /*!NOT IMPLEMENTED*/ diff --git a/src/LightApp/LightApp_OBSelector.cxx b/src/LightApp/LightApp_OBSelector.cxx index a2c7dba9f..ebe8571b4 100644 --- a/src/LightApp/LightApp_OBSelector.cxx +++ b/src/LightApp/LightApp_OBSelector.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "LightApp_OBSelector.h" #include "LightApp_DataOwner.h" @@ -6,6 +24,7 @@ #include #include +#include /*! Constructor @@ -41,22 +60,25 @@ OB_Browser* LightApp_OBSelector::browser() const */ void LightApp_OBSelector::getSelection( SUIT_DataOwnerPtrList& theList ) const { - if ( !myBrowser ) - return; - - DataObjectList objlist; - myBrowser->getSelected( objlist ); - for ( DataObjectListIterator it( objlist ); it.current(); ++it ) - { - LightApp_DataObject* obj = dynamic_cast( it.current() ); - if ( obj ) + if (mySelectedList.count() == 0 ) { + if ( !myBrowser ) + return; + DataObjectList objlist; + myBrowser->getSelected( objlist ); + LightApp_OBSelector* that = (LightApp_OBSelector*)this; + for ( DataObjectListIterator it( objlist ); it.current(); ++it ) { - Handle( SALOME_InteractiveObject ) aSObj = new SALOME_InteractiveObject - ( obj->entry(), obj->componentDataType(), obj->name() ); - LightApp_DataOwner* owner = new LightApp_DataOwner( aSObj ); - theList.append( SUIT_DataOwnerPtr( owner ) ); + LightApp_DataObject* obj = dynamic_cast( it.current() ); + if ( obj ) + { + Handle(SALOME_InteractiveObject) aSObj = new SALOME_InteractiveObject + ( obj->entry(), obj->componentDataType(), obj->name() ); + LightApp_DataOwner* owner = new LightApp_DataOwner( aSObj ); + that->mySelectedList.append( SUIT_DataOwnerPtr( owner ) ); + } } } + theList = mySelectedList; } /*!Sets selection.*/ @@ -83,7 +105,11 @@ void LightApp_OBSelector::setSelection( const SUIT_DataOwnerPtrList& theList ) /*!On selection changed.*/ void LightApp_OBSelector::onSelectionChanged() { + QTime t1 = QTime::currentTime(); + mySelectedList.clear(); selectionChanged(); + QTime t2 = QTime::currentTime(); + qDebug( QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ) ); } /*!Fill entries.*/ diff --git a/src/LightApp/LightApp_OBSelector.h b/src/LightApp/LightApp_OBSelector.h index a48432b1e..e8fc44371 100644 --- a/src/LightApp/LightApp_OBSelector.h +++ b/src/LightApp/LightApp_OBSelector.h @@ -1,9 +1,28 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef LIGHTAPP_OBSELECTOR_H #define LIGHTAPP_OBSELECTOR_H #include "LightApp.h" #include +#include class OB_Browser; class LightApp_DataObject; @@ -36,6 +55,7 @@ private: private: OB_Browser* myBrowser; + SUIT_DataOwnerPtrList mySelectedList; QMap myEntries; diff --git a/src/LightApp/LightApp_VTKSelector.cxx b/src/LightApp/LightApp_VTKSelector.cxx index caf33ff5e..b393b3043 100644 --- a/src/LightApp/LightApp_VTKSelector.cxx +++ b/src/LightApp/LightApp_VTKSelector.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "LightApp_VTKSelector.h" #include "LightApp_DataOwner.h" diff --git a/src/LightApp/LightApp_VTKSelector.h b/src/LightApp/LightApp_VTKSelector.h index 5e3073db2..14c6523ce 100644 --- a/src/LightApp/LightApp_VTKSelector.h +++ b/src/LightApp/LightApp_VTKSelector.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef LIGHTAPP_VTKSELECTOR_H #define LIGHTAPP_VTKSELECTOR_H diff --git a/src/OBJECT/Makefile.in b/src/OBJECT/Makefile.in index ca3a3d701..0fb5e50a7 100755 --- a/src/OBJECT/Makefile.in +++ b/src/OBJECT/Makefile.in @@ -50,7 +50,7 @@ LIB_CLIENT_IDL = BIN = BIN_SRC = -CPPFLAGS+=$(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(QT_INCLUDES) $(OGL_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome +CPPFLAGS+=$(PYTHON_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(QT_INCLUDES) $(OGL_INCLUDES) LDFLAGS+= $(PYTHON_LIBS) $(VTK_LIBS) $(QT_LIBS) $(OGL_LIBS) $(CAS_LDPATH) -lTKV3d -lVTKViewer -lsuit diff --git a/src/ObjBrowser/OB_Browser.cxx b/src/ObjBrowser/OB_Browser.cxx index d8ed08c6b..1ae404115 100755 --- a/src/ObjBrowser/OB_Browser.cxx +++ b/src/ObjBrowser/OB_Browser.cxx @@ -530,8 +530,6 @@ void OB_Browser::updateTree( SUIT_DataObject* obj, const bool autoOpen ) if( autoOpen ) autoOpenBranches(); - setModified(); - if ( selNum != numberOfSelected() ) emit selectionChanged(); } diff --git a/src/Qtx/Makefile.in b/src/Qtx/Makefile.in index 0a92974f9..aa682b59d 100755 --- a/src/Qtx/Makefile.in +++ b/src/Qtx/Makefile.in @@ -48,7 +48,8 @@ EXPORT_HEADERS= Qtx.h \ QtxWorkstack.h \ QtxResourceEdit.h \ QtxListView.h \ - QtxDirListEditor.h + QtxDirListEditor.h \ + QtxDblValidator.h # .po files to transform in .qm @@ -95,7 +96,8 @@ LIB_SRC= \ QtxResourceEdit.cxx \ QtxWorkstack.cxx \ QtxListView.cxx \ - QtxDirListEditor.cxx + QtxDirListEditor.cxx \ + QtxDblValidator.cxx LIB_MOC = \ QtxAction.h \ @@ -127,7 +129,8 @@ LIB_MOC = \ QtxWorkstack.h \ QtxListView.h \ QtxListResourceEdit.h \ - QtxDirListEditor.h + QtxDirListEditor.h \ + QtxDblValidator.h RESOURCES_FILES = \ diff --git a/src/Qtx/QtxDblValidator.cxx b/src/Qtx/QtxDblValidator.cxx new file mode 100644 index 000000000..2769fd406 --- /dev/null +++ b/src/Qtx/QtxDblValidator.cxx @@ -0,0 +1,47 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// +// File: QtxDblValidator.cxx +// Author: Alexandre SOLOVYOV + +#include "QtxDblValidator.h" + +QtxDblValidator::QtxDblValidator( const double bot, const double top, const int dec, + QObject* o, const char* name ) +: QDoubleValidator( bot, top, dec, o, name ) +{ +} + +QtxDblValidator::~QtxDblValidator() +{ +} + +void QtxDblValidator::fixup( QString& str ) const +{ + bool ok = false; + double d = str.toDouble( &ok ); + if( ok ) + { + if( dtop() ) + str = QString::number( top() ); + } + else + str = "0"; +} diff --git a/src/Qtx/QtxDblValidator.h b/src/Qtx/QtxDblValidator.h new file mode 100644 index 000000000..bae6c03ea --- /dev/null +++ b/src/Qtx/QtxDblValidator.h @@ -0,0 +1,39 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// +// File: QtxDblValidator.h +// Author: Alexandre SOLOVYOV + +#ifndef QTX_DOUBLE_VALIDATOR +#define QTX_DOUBLE_VALIDATOR + +#include + +class QtxDblValidator : public QDoubleValidator +{ + Q_OBJECT + +public: + QtxDblValidator( const double, const double, const int, + QObject*, const char* = 0 ); + ~QtxDblValidator(); + + virtual void fixup( QString& ) const; +}; + +#endif diff --git a/src/SUIT/SUIT_Operation.cxx b/src/SUIT/SUIT_Operation.cxx index 11beaef40..658ff2017 100755 --- a/src/SUIT/SUIT_Operation.cxx +++ b/src/SUIT/SUIT_Operation.cxx @@ -416,7 +416,7 @@ void SUIT_Operation::start( SUIT_Operation* op, const bool check ) return; if ( study() ) - study()->start( op, false ); + study()->start( op, check ); else { connect( this, SIGNAL( stopped( SUIT_Operation* ) ), op, SLOT( abort() ) ); diff --git a/src/SVTK/Makefile.in b/src/SVTK/Makefile.in index e60c3cc24..0d7920eee 100755 --- a/src/SVTK/Makefile.in +++ b/src/SVTK/Makefile.in @@ -6,7 +6,7 @@ top_srcdir=@top_srcdir@ top_builddir=../.. srcdir=@srcdir@ -VPATH=.:@srcdir@ +VPATH=.:@srcdir@:@srcdir@/resources @COMMENCE@ @@ -37,6 +37,8 @@ EXPORT_HEADERS= \ SVTK_Event.h \ SVTK_ViewModelBase.h +PO_FILES = SVTK_msg_en.po + # Libraries targets LIB = libSVTK.la @@ -81,20 +83,15 @@ CPPFLAGS+= \ $(QT_INCLUDES) \ $(OCC_INCLUDES) \ $(VTK_INCLUDES) \ - $(BOOST_CPPFLAGS) \ - -I$(KERNEL_ROOT_DIR)/include/salome + $(BOOST_CPPFLAGS) LDFLAGS+= \ $(QT_MT_LIBS) \ $(OCC_LIBS) \ - $(VTK_LIBS) \ - -L$(KERNEL_ROOT_DIR)/lib/salome + $(VTK_LIBS) -LIBS+= -lsuit -lCAM -lSalomeObject -lSalomePrs -lVTKViewer -lOpUtil -lToolsGUI -lSalomeDS +LIBS+= -lqtx -lsuit -lstd -lCAM -lSalomeObject -lSalomePrs -lVTKViewer -LDFLAGSFORBIN=$(LDFLAGS) $(LIBS) \ - -lqtx -lstd -lSALOMELocalTrace -lSalomeNS -lTOOLSDS -lSalomeHDFPersist -lSalomeDSImpl \ - -lSalomeGenericObj -lSalomeLifeCycleCORBA -lSALOMEBasics -lSalomeContainer \ - -lSalomeResourcesManager -lRegistry -lSalomeNotification +LDFLAGSFORBIN=$(LDFLAGS) $(LIBS) @CONCLUDE@ diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 15597adce..59c5eaed3 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -62,16 +62,8 @@ #include #include -#include "utilities.h" - using namespace std; -#ifdef _DEBUG_ -static int MYDEBUG = 1; -#else -static int MYDEBUG = 0; -#endif - #if defined __GNUC__ #if __GNUC__ == 2 #define __GNUC_2__ @@ -156,8 +148,6 @@ SALOME_Actor myOutline(vtkOutlineSource::New()), myOutlineActor(VTKViewer_Actor::New()) { - if(MYDEBUG) MESSAGE("SALOME_Actor::SALOME_Actor - this = "< #include @@ -38,19 +36,12 @@ using namespace std; -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - //---------------------------------------------------------------------------- vtkStandardNewMacro(QVTK_GenericRenderWindowInteractor); QVTK_GenericRenderWindowInteractor ::QVTK_GenericRenderWindowInteractor() { - if(MYDEBUG) INFOS("QVTK_GenericRenderWindowInteractor() - "< -#include "utilities.h" - using namespace std; -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - namespace { inline @@ -120,8 +112,6 @@ SVTK_InteractorStyle { myPicker->Delete(); - if(MYDEBUG) INFOS("SVTK_InteractorStyle() - "<MotionFactor = 10.0; this->State = VTK_INTERACTOR_STYLE_CAMERA_NONE; this->RadianToDegree = 180.0 / vtkMath::Pi(); @@ -145,7 +135,6 @@ SVTK_InteractorStyle SVTK_InteractorStyle ::~SVTK_InteractorStyle() { - if(MYDEBUG) INFOS("~SVTK_InteractorStyle() - "< -#include "utilities.h" - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - //---------------------------------------------------------------------------- SVTK_MainWindow @@ -66,8 +58,6 @@ SVTK_MainWindow SUIT_ResourceMgr* theResourceMgr) : QMainWindow(theParent,theName,0) { - if(MYDEBUG) INFOS("SVTK_MainWindow() - "<setCloseMode(QDockWindow::Undocked); myToolBar->setLabel(tr("LBL_TOOLBAR_LABEL")); @@ -96,7 +86,6 @@ SVTK_MainWindow SVTK_MainWindow ::~SVTK_MainWindow() { - if(MYDEBUG) INFOS("~SVTK_MainWindow() - "< #include #include diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index c66e0456f..91d7c0c9d 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -55,18 +55,8 @@ #include #include -#include "utilities.h" - using namespace std; -#ifdef _DEBUG_ -static int MYDEBUG = 0; -static int MYVTKDEBUG = 0; -#else -static int MYDEBUG = 0; -static int MYVTKDEBUG = 0; -#endif - static bool GENERATE_SUIT_EVENTS = false; @@ -77,7 +67,6 @@ QVTK_RenderWindowInteractor QWidget(theParent,theName,Qt::WNoAutoErase), myRenderWindow(vtkRenderWindow::New()) { - if(MYDEBUG) INFOS("QVTK_RenderWindowInteractor() - "<Delete(); @@ -107,8 +96,6 @@ QVTK_RenderWindowInteractor QVTK_RenderWindowInteractor ::~QVTK_RenderWindowInteractor() { - if(MYDEBUG) INFOS("~QVTK_RenderWindowInteractor() - "<isSpaceMouseOn()) aSpaceMouse->close(x11Display()); @@ -392,8 +379,6 @@ SVTK_RenderWindowInteractor QVTK_RenderWindowInteractor(theParent,theName), myEventCallbackCommand(vtkCallbackCommand::New()) { - if(MYDEBUG) INFOS("SVTK_RenderWindowInteractor() - "<Delete(); myEventCallbackCommand->SetClientData(this); @@ -417,20 +402,12 @@ SVTK_RenderWindowInteractor SVTK_RenderWindowInteractor ::~SVTK_RenderWindowInteractor() { - if(MYDEBUG) INFOS("~SVTK_RenderWindowInteractor() - "<DebugOn(); - getRenderer()->DebugOn(); - GetDevice()->DebugOn(); - } GetDevice()->SetInteractorStyle(NULL); while(!myInteractorStyles.empty()){ const PInteractorStyle& aStyle = myInteractorStyles.top(); aStyle->SetInteractor(NULL); - if(MYVTKDEBUG) aStyle->DebugOn(); myInteractorStyles.pop(); } diff --git a/src/SVTK/SVTK_Renderer.cxx b/src/SVTK/SVTK_Renderer.cxx index e0459678b..3a5b42f84 100644 --- a/src/SVTK/SVTK_Renderer.cxx +++ b/src/SVTK/SVTK_Renderer.cxx @@ -54,14 +54,6 @@ #undef min #undef max -#include "utilities.h" - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - //---------------------------------------------------------------------------- vtkStandardNewMacro(SVTK_Renderer); @@ -83,8 +75,6 @@ SVTK_Renderer myTrihedron(SVTK_Trihedron::New()), myTrihedronSize(105) { - if(MYDEBUG) INFOS("SVTK_Renderer() - "<Delete(); myTransform->Delete(); @@ -156,7 +146,6 @@ SVTK_Renderer SVTK_Renderer ::~SVTK_Renderer() { - if(MYDEBUG) INFOS("~SVTK_Renderer() - "<GetActors(); anActors->InitTraversal(); while(vtkActor* anAct = anActors->GetNextActor()){ diff --git a/src/SVTK/SVTK_Selector.cxx b/src/SVTK/SVTK_Selector.cxx index d9ddca887..bc6dad148 100644 --- a/src/SVTK/SVTK_Selector.cxx +++ b/src/SVTK/SVTK_Selector.cxx @@ -31,8 +31,6 @@ #include "SALOME_Actor.h" -#include "utilities.h" - #include #include diff --git a/src/SVTK/SVTK_View.cxx b/src/SVTK/SVTK_View.cxx index 180149fd1..966ff2340 100644 --- a/src/SVTK/SVTK_View.cxx +++ b/src/SVTK/SVTK_View.cxx @@ -40,14 +40,6 @@ #include #include -#include "utilities.h" - -#ifdef _DEBUG_ -static int MYDEBUG = 0; -#else -static int MYDEBUG = 0; -#endif - //---------------------------------------------------------------------------- SVTK_SignalHandler @@ -55,8 +47,6 @@ SVTK_SignalHandler QObject(theMainWindow), myMainWindow(theMainWindow) { - if(MYDEBUG) INFOS("SVTK_SignalHandler() - "<GetInteractor(); connect(anInteractor,SIGNAL(KeyPressed(QKeyEvent*)), @@ -80,7 +70,6 @@ SVTK_SignalHandler SVTK_SignalHandler ::~SVTK_SignalHandler() { - if(MYDEBUG) INFOS("~SVTK_SignalHandler() - "< - int SVTK_ViewManager::_SVTKViewMgr_Id = 0; //*************************************************************** @@ -23,5 +39,5 @@ SVTK_ViewManager::~SVTK_ViewManager() void SVTK_ViewManager::setViewName(SUIT_ViewWindow* theView) { int aPos = myViews.find(theView); - theView->setCaption( VTKViewer_ViewManager::tr( "VTK_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) ); + theView->setCaption( tr( "VTK_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) ); } diff --git a/src/SVTK/SVTK_ViewManager.h b/src/SVTK/SVTK_ViewManager.h index e003d7a12..b200ccc5b 100644 --- a/src/SVTK/SVTK_ViewManager.h +++ b/src/SVTK/SVTK_ViewManager.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef SVTK_VIEWMANAGER_H #define SVTK_VIEWMANAGER_H diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index 2215bdc96..08c2169d5 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include #include @@ -16,8 +34,8 @@ #include "VTKViewer_ViewModel.h" -#include "SALOME_Actor.h" -#include "SALOME_InteractiveObject.hxx" +#include +#include // in order NOT TO link with SalomeApp, here the code returns SALOMEDS_Study. // SalomeApp_Study::studyDS() does it as well, but -- here it is retrieved from diff --git a/src/SVTK/SVTK_ViewModel.h b/src/SVTK/SVTK_ViewModel.h index 03a593f51..5875d465e 100644 --- a/src/SVTK/SVTK_ViewModel.h +++ b/src/SVTK/SVTK_ViewModel.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef SVTK_VIEWMODEL_H #define SVTK_VIEWMODEL_H diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 9e91d02f0..4f2c8841e 100755 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -1,9 +1,24 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "SALOME_Actor.h" #include -#include -#include -#include #include #include @@ -19,6 +34,7 @@ #include "SUIT_Session.h" #include "SUIT_ToolButton.h" #include "SUIT_MessageBox.h" +#include "SUIT_Accel.h" #include "SUIT_Tools.h" #include "SUIT_ResourceMgr.h" diff --git a/src/SVTK/SVTK_ViewWindow.h b/src/SVTK/SVTK_ViewWindow.h index 2aa64c5fa..1fc559c78 100755 --- a/src/SVTK/SVTK_ViewWindow.h +++ b/src/SVTK/SVTK_ViewWindow.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef SVTK_VIEWWINDOW_H #define SVTK_VIEWWINDOW_H diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index 3073e544e..ff766e681 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -195,12 +195,13 @@ bool SalomeApp_Study::saveDocumentAs( const QString& theFileName ) return false; bool isMultiFile = resMgr->booleanValue( "Study", "multi_file", false ), - isAscii = resMgr->booleanValue( "Study", "ascii_file", false ); - isAscii ? SalomeApp_Application::studyMgr()->SaveAsASCII( theFileName.latin1(), studyDS(), isMultiFile ) : - SalomeApp_Application::studyMgr()->SaveAs ( theFileName.latin1(), studyDS(), isMultiFile ); + isAscii = resMgr->booleanValue( "Study", "ascii_file", false ), + res = isAscii ? + SalomeApp_Application::studyMgr()->SaveAsASCII( theFileName.latin1(), studyDS(), isMultiFile ) : + SalomeApp_Application::studyMgr()->SaveAs ( theFileName.latin1(), studyDS(), isMultiFile ) && + CAM_Study::saveDocumentAs( theFileName ) && //SRN: BugID IPAL9377, removed usage of uninitialized variable + saveStudyData(theFileName); - bool res = CAM_Study::saveDocumentAs( theFileName ); //SRN: BugID IPAL9377, removed usage of uninitialized variable - res = res && saveStudyData(theFileName); if ( res ) emit saved( this ); @@ -230,11 +231,10 @@ bool SalomeApp_Study::saveDocument() return false; bool isMultiFile = resMgr->booleanValue( "Study", "multi_file", false ), - isAscii = resMgr->booleanValue( "Study", "ascii_file", false ); - isAscii ? SalomeApp_Application::studyMgr()->SaveASCII( studyDS(), isMultiFile ) : - SalomeApp_Application::studyMgr()->Save ( studyDS(), isMultiFile ); - - bool res = CAM_Study::saveDocument(); + isAscii = resMgr->booleanValue( "Study", "ascii_file", false ), + res = isAscii ? + SalomeApp_Application::studyMgr()->SaveASCII( studyDS(), isMultiFile ) : + SalomeApp_Application::studyMgr()->Save ( studyDS(), isMultiFile ) && CAM_Study::saveDocument(); res = res && saveStudyData(studyName()); if ( res ) diff --git a/src/SalomeApp/resources/SalomeApp.xml b/src/SalomeApp/resources/SalomeApp.xml index 606d4d823..81a5651e9 100644 --- a/src/SalomeApp/resources/SalomeApp.xml +++ b/src/SalomeApp/resources/SalomeApp.xml @@ -16,10 +16,11 @@ + - - + +
@@ -47,11 +48,18 @@ - + +
+
+ +
+
+ +
@@ -80,6 +88,11 @@
+
+ + + +
@@ -88,7 +101,8 @@
- + + @@ -101,8 +115,12 @@
- + +
+
+ +
@@ -139,9 +157,9 @@ - - - + + + @@ -150,19 +168,21 @@ - - + + - + +
- - - + + + + @@ -173,10 +193,10 @@ - - + + - + diff --git a/src/VTKViewer/VTKViewer.h b/src/VTKViewer/VTKViewer.h index 58fc3055b..27934b610 100755 --- a/src/VTKViewer/VTKViewer.h +++ b/src/VTKViewer/VTKViewer.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifdef WNT #ifdef VTKVIEWER_EXPORTS #define VTKVIEWER_EXPORT __declspec( dllexport ) diff --git a/src/VTKViewer/VTKViewer_Actor.cxx b/src/VTKViewer/VTKViewer_Actor.cxx index 5f71ef5dd..7b9e00353 100755 --- a/src/VTKViewer/VTKViewer_Actor.cxx +++ b/src/VTKViewer/VTKViewer_Actor.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "VTKViewer_Actor.h" #include "VTKViewer_Transform.h" #include "VTKViewer_GeometryFilter.h" diff --git a/src/VTKViewer/VTKViewer_Actor.h b/src/VTKViewer/VTKViewer_Actor.h index ad050d321..2a4371200 100755 --- a/src/VTKViewer/VTKViewer_Actor.h +++ b/src/VTKViewer/VTKViewer_Actor.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEVER_ACTOR_H #define VTKVIEVER_ACTOR_H diff --git a/src/VTKViewer/VTKViewer_CellRectPicker.cxx b/src/VTKViewer/VTKViewer_CellRectPicker.cxx index e6647d908..36b1741b5 100755 --- a/src/VTKViewer/VTKViewer_CellRectPicker.cxx +++ b/src/VTKViewer/VTKViewer_CellRectPicker.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include #include "vtkGenericCell.h" diff --git a/src/VTKViewer/VTKViewer_ConvexTool.cxx b/src/VTKViewer/VTKViewer_ConvexTool.cxx index 64e712e97..a4dded2cc 100644 --- a/src/VTKViewer/VTKViewer_ConvexTool.cxx +++ b/src/VTKViewer/VTKViewer_ConvexTool.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// // 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 @@ -14,45 +32,62 @@ #include #include #include +#include #include +#include #include #include #include #include +typedef vtkUnstructuredGrid TInput; + typedef std::set TUIDS; // unique ids typedef std::map TPTOIDS; // id points -> unique ids namespace CONVEX_TOOL { + void + WriteToFile(vtkUnstructuredGrid* theDataSet, const std::string& theFileName) + { + vtkUnstructuredGridWriter* aWriter = vtkUnstructuredGridWriter::New(); + aWriter->SetFileName(theFileName.c_str()); + aWriter->SetInput(theDataSet); + aWriter->Write(); + aWriter->Delete(); + } static float FACE_ANGLE_TOLERANCE=1.5; +#define EPS 1.0e-38 +#define EPS_T 1.0e-3 #ifdef _DEBUG_ static int MYDEBUG = 0; + static int MYDEBUG_REMOVE = 0; #else static int MYDEBUG = 0; + static int MYDEBUG_REMOVE = 0; #endif -/*! \fn static void GetCenter(vtkUnstructuredGrid* theGrid,TCell theptIds,float *center) +/*! \fn static void GetCenter(TInput* theGrid,TCell theptIds,float *center) * \brief Calculation of geometry center. - * \param theGrid - vtkUnstructuredGrid cell. + * \param theGrid - TInput cell. * \param theptIds - point ids. * \retval center - output array[3] with coordinates of geometry center. */ -static void GetCenter(vtkUnstructuredGrid* theGrid,TCell theptIds,float center[3]) +static void GetCenter(vtkPoints* thePoints,float center[3]) { float p[3]; center[0] = center[1] = center[2] = 0.0; - int numIds = theptIds.size(); - if (numIds == 0) return; + int numPts = thePoints->GetNumberOfPoints(); + if (numPts == 0) return; // get the center of the cell - for (int i = 0; i < numIds; i++) + for (int i = 0; i < numPts; i++) { - theGrid->GetPoint(theptIds[i], p); + thePoints->GetPoint(i, p); for (int j = 0; j < 3; j++) { center[j] += p[j]; @@ -60,7 +95,7 @@ static void GetCenter(vtkUnstructuredGrid* theGrid,TCell theptIds,float center[3 } for (int j = 0; j < 3; j++) { - center[j] /= numIds; + center[j] /= numPts; } } @@ -136,16 +171,16 @@ void GetFriends(const TPTOIDS p2faces,const TCellArray f2points,TPTOIDS& face2fa } } -/*! \fn bool IsConnectedFacesOnOnePlane( vtkUnstructuredGrid* theGrid,vtkIdType theFId1, vtkIdType theFId2,TUIDS FpIds1, TUIDS FpIds2 ) +/*! \fn bool IsConnectedFacesOnOnePlane( TInput* theGrid,vtkIdType theFId1, vtkIdType theFId2,TUIDS FpIds1, TUIDS FpIds2 ) * \brief Check is connected faces on one plane. - * \param theGrid - vtkUnstructuredGrid + * \param theGrid - TInput * \param theFId1 - id of first face * \param theFId2 - id of second face * \param FpIds1 - first face points ids. * \param FpIds2 - second face points ids. * \return TRUE if two faces on one plane, else FALSE. */ -bool IsConnectedFacesOnOnePlane( vtkUnstructuredGrid* theGrid, +bool IsConnectedFacesOnOnePlane( TInput* theGrid, vtkIdType theFId1, vtkIdType theFId2, TUIDS FpIds1, TUIDS FpIds2 ) { @@ -234,7 +269,7 @@ bool IsConnectedFacesOnOnePlane( vtkUnstructuredGrid* theGrid, } cout << p[k][2] << ") "; } - cout << "angle="<GetPoint(current_points_ids[0],P[0]); + points->GetPoint(current_points_ids[1],P[1]); + TUIDS::iterator aPointsIter = input_points_ids.begin(); + for(;aPointsIter!=input_points_ids.end();aPointsIter++){ + if(iscurrent_points_changed){ + points->GetPoint(current_points_ids[0],P[0]); + points->GetPoint(current_points_ids[1],P[1]); + iscurrent_points_changed = false; + if (MYDEBUG_REMOVE) + cout << " " << current_points_ids[0] << " " << current_points_ids[1] << endl; + } + // check: is point on line input_two_points_ids + points->GetPoint(*aPointsIter,P[2]); + if (MYDEBUG_REMOVE) { + cout << "\t" << current_points_ids[0] << ":"< coeff[0][0] = (x-x1), coeff[0][1] = x2-x1 + // y-y1=(y2-y1)*t -> coeff[1][0] = (y-y1), coeff[1][1] = y2-y1 + // z-z1=(z2-z1)*t -> coeff[2][0] = (z-z1), coeff[2][1] = z2-z1 + float coeff[3][2]; + for(int i=0;i<3;i++){ + coeff[i][0] = P[2][i]-P[0][i]; + coeff[i][1] = P[1][i]-P[0][i]; + } + bool isok_coord[3]; + bool isok = true; + float t[3]; + for(int i=0;i<3;i++){ + isok_coord[i] = false; + if( fabs(coeff[i][0]) <= EPS && fabs(coeff[i][1]) <= EPS) { + isok_coord[i] = true; + continue; + } + if( fabs(coeff[i][1]) <= EPS && fabs(coeff[i][0]) > EPS) {isok = false;t[i]=1.0/EPS;break;} + t[i] = (coeff[i][0])/(coeff[i][1]); + } + for(int i=0;i<3;i++) + if (MYDEBUG_REMOVE) + cout << __LINE__ << " " + << coeff[i][0] << ","<t[0],t[1],t[2] + // anilize bounds of line + for(int i=0;i<3;i++){ + for(int j=0;j<3;j++) + if(!isok_coord[j]) param[i] = (P[i][j]-P[0][j])/(P[1][j]-P[0][j]); + } + if (MYDEBUG_REMOVE) cout << "Params: " << param[0] << "," << param[1] << "," << param[2] << endl; + vtkIdType imax,imin; + float min,max; + for(vtkIdType i=0;i<3;i++) + if(!isok_coord[i]){ + min = param[0];imin=0; + max = param[0];imax=0; + break; + } + for(vtkIdType i=0;i<3;i++){ + if(min > param[i]) {min = param[i]; imin=i;} + if(max < param[i]) {max = param[i]; imax=i;} + } + if (MYDEBUG_REMOVE) + cout << "\t min="<"< out = vtkConvexPointSet::New(); + + TUIDS two_points,input_points,out_two_points_ids,removed_points_ids,loc_removed_points_ids; + vtkIdList* aPointIds = convex->GetPointIds(); + int numIds = aPointIds->GetNumberOfIds(); + // all pairs + typedef std::pair TPair; + typedef std::set TSet; + TSet good_point_ids; + TSet aLists[numIds-2]; + for(int i=0;iGetId(aFirId) << "," << aSecId <<":"<GetId(aSecId)<< " --- "; + for(vtkIdType k=aSecId+1;kGetId(k) << ","; + } + if (MYDEBUG_REMOVE) { + cout << endl; + cout << "\t"; + for(TUIDS::iterator aDelIter = loc_removed_points_ids.begin();aDelIter!=loc_removed_points_ids.end();aDelIter++) + cout << *aDelIter<<","; + cout << endl; + } + GetAndRemoveIdsOnOneLine(convex->Points, + input_points, + two_points, + out_two_points_ids, + loc_removed_points_ids); + TUIDS::iterator aOutIter = out_two_points_ids.begin(); + vtkIdType aFirst=*aOutIter;aOutIter++;vtkIdType aSecond=*aOutIter; + TPair aPair(aFirst,aSecond); + good_point_ids.insert(aPair); + if (MYDEBUG_REMOVE){ + cout << "Output: "; + TUIDS::iterator aIter = out_two_points_ids.begin(); + for(;aIter!=out_two_points_ids.end();aIter++) + cout << *aIter << ","; + cout << " --- "; + } + TUIDS::iterator aDelIter = loc_removed_points_ids.begin(); + for(;aDelIter!=loc_removed_points_ids.end();aDelIter++){ + removed_points_ids.insert(*aDelIter); + if (MYDEBUG_REMOVE) cout << *aDelIter << ","; + } + if (MYDEBUG_REMOVE) cout << endl; + } + } + if (MYDEBUG_REMOVE) { + cout << "============ Resultat ================" <Points->SetNumberOfPoints(result_ids.size()); + out->PointIds->SetNumberOfIds(result_ids.size()); + int aId=0; + if(MYDEBUG_REMOVE) cout << "Result out:"; + for(TUIDS::iterator aIter=result_ids.begin();aIter!=result_ids.end();aIter++,aId++){ + float P[3]; + convex->Points->GetPoint(*aIter,P); + out->Points->SetPoint(aId,P); + out->PointIds->SetId(aId,aPointIds->GetId(*aIter)); + if (MYDEBUG_REMOVE) cout << *aIter << ":" << aPointIds->GetId(*aIter) << " , "; + } + if(MYDEBUG_REMOVE) cout << endl; + out->Modified(); + out->Initialize(); + + return out.GetPointer(); +} + void GetPolygonalFaces(vtkUnstructuredGrid* theGrid,int cellId,TCellArray &outputCellArray) { if (theGrid->GetCellType(cellId) == VTK_CONVEX_POINT_SET){ // get vtkCell type = VTK_CONVEX_POINT_SET - if(vtkConvexPointSet* convex = static_cast(theGrid->GetCell(cellId))){ + if(vtkConvexPointSet* convex_in = static_cast(theGrid->GetCell(cellId))){ + vtkConvexPointSet* convex = RemoveAllUnneededPoints(convex_in); TCellArray f2points; float convex_center[3]; // convex center point coorinat int aNbFaces = convex->GetNumberOfFaces(); int numPts = convex->GetNumberOfPoints(); - TCell convex_ids; + if(MYDEBUG_REMOVE) cout << "aNbFaces="< diff --git a/src/VTKViewer/VTKViewer_RenderWindow.h b/src/VTKViewer/VTKViewer_RenderWindow.h index e535d3c1d..c83b0307e 100755 --- a/src/VTKViewer/VTKViewer_RenderWindow.h +++ b/src/VTKViewer/VTKViewer_RenderWindow.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_RENDERWINDOW_H #define VTKVIEWER_RENDERWINDOW_H diff --git a/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx b/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx index bba404e1f..db601ab4a 100755 --- a/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx +++ b/src/VTKViewer/VTKViewer_RenderWindowInteractor.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "VTKViewer_RenderWindowInteractor.h" #include "VTKViewer_RenderWindow.h" #include "VTKViewer_InteractorStyle.h" diff --git a/src/VTKViewer/VTKViewer_RenderWindowInteractor.h b/src/VTKViewer/VTKViewer_RenderWindowInteractor.h index 16aa877fd..9d06598b8 100755 --- a/src/VTKViewer/VTKViewer_RenderWindowInteractor.h +++ b/src/VTKViewer/VTKViewer_RenderWindowInteractor.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_RENDERWINDOWINTERACTOR_H #define VTKVIEWER_RENDERWINDOWINTERACTOR_H diff --git a/src/VTKViewer/VTKViewer_ShrinkFilter.h b/src/VTKViewer/VTKViewer_ShrinkFilter.h index 51b4e6624..9b60d4978 100755 --- a/src/VTKViewer/VTKViewer_ShrinkFilter.h +++ b/src/VTKViewer/VTKViewer_ShrinkFilter.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_SHRINKFILTER_H #define VTKVIEWER_SHRINKFILTER_H diff --git a/src/VTKViewer/VTKViewer_Transform.h b/src/VTKViewer/VTKViewer_Transform.h index 25b6d07be..478d982c6 100755 --- a/src/VTKViewer/VTKViewer_Transform.h +++ b/src/VTKViewer/VTKViewer_Transform.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_TRANSFORM_H #define VTKVIEWER_TRANSFORM_H diff --git a/src/VTKViewer/VTKViewer_TransformFilter.h b/src/VTKViewer/VTKViewer_TransformFilter.h index c82b63298..ecc2b3cb2 100755 --- a/src/VTKViewer/VTKViewer_TransformFilter.h +++ b/src/VTKViewer/VTKViewer_TransformFilter.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_TRANSFORMFILTER_H #define VTKVIEWER_TRANSFORMFILTER_H diff --git a/src/VTKViewer/VTKViewer_Trihedron.cxx b/src/VTKViewer/VTKViewer_Trihedron.cxx index 9ff5e6946..a6670cb87 100755 --- a/src/VTKViewer/VTKViewer_Trihedron.cxx +++ b/src/VTKViewer/VTKViewer_Trihedron.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "VTKViewer_Trihedron.h" #include "VTKViewer_Actor.h" diff --git a/src/VTKViewer/VTKViewer_Trihedron.h b/src/VTKViewer/VTKViewer_Trihedron.h index 74aebace8..e40e3bc90 100755 --- a/src/VTKViewer/VTKViewer_Trihedron.h +++ b/src/VTKViewer/VTKViewer_Trihedron.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_TRIHEDRON_H #define VTKVIEWER_TRIHEDRON_H diff --git a/src/VTKViewer/VTKViewer_Utilities.cxx b/src/VTKViewer/VTKViewer_Utilities.cxx index 9ed586d6f..a05b0a36f 100755 --- a/src/VTKViewer/VTKViewer_Utilities.cxx +++ b/src/VTKViewer/VTKViewer_Utilities.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "VTKViewer_Actor.h" // VTK Includes diff --git a/src/VTKViewer/VTKViewer_Utilities.h b/src/VTKViewer/VTKViewer_Utilities.h index d733fc541..6341e885d 100755 --- a/src/VTKViewer/VTKViewer_Utilities.h +++ b/src/VTKViewer/VTKViewer_Utilities.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_UTILITIES_H #define VTKVIEWER_UTILITIES_H diff --git a/src/VTKViewer/VTKViewer_VectorText.cxx b/src/VTKViewer/VTKViewer_VectorText.cxx index 1fd9d6a19..b4e62266a 100755 --- a/src/VTKViewer/VTKViewer_VectorText.cxx +++ b/src/VTKViewer/VTKViewer_VectorText.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// /*========================================================================= Program: Visualization Toolkit diff --git a/src/VTKViewer/VTKViewer_VectorText.h b/src/VTKViewer/VTKViewer_VectorText.h index 15c6a57f3..8ce64cdd4 100755 --- a/src/VTKViewer/VTKViewer_VectorText.h +++ b/src/VTKViewer/VTKViewer_VectorText.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// /*========================================================================= Program: Visualization Toolkit diff --git a/src/VTKViewer/VTKViewer_ViewManager.cxx b/src/VTKViewer/VTKViewer_ViewManager.cxx index 4ce4414ab..2dedb7984 100755 --- a/src/VTKViewer/VTKViewer_ViewManager.cxx +++ b/src/VTKViewer/VTKViewer_ViewManager.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "VTKViewer_ViewManager.h" #include "VTKViewer_ViewModel.h" diff --git a/src/VTKViewer/VTKViewer_ViewManager.h b/src/VTKViewer/VTKViewer_ViewManager.h index 1d23edaca..03f6d21da 100755 --- a/src/VTKViewer/VTKViewer_ViewManager.h +++ b/src/VTKViewer/VTKViewer_ViewManager.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_VIEWMANAGER_H #define VTKVIEWER_VIEWMANAGER_H diff --git a/src/VTKViewer/VTKViewer_ViewModel.cxx b/src/VTKViewer/VTKViewer_ViewModel.cxx index b762a6a5e..f8fd9913e 100755 --- a/src/VTKViewer/VTKViewer_ViewModel.cxx +++ b/src/VTKViewer/VTKViewer_ViewModel.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "VTKViewer_ViewModel.h" #include "VTKViewer_ViewWindow.h" #include "VTKViewer_ViewManager.h" diff --git a/src/VTKViewer/VTKViewer_ViewModel.h b/src/VTKViewer/VTKViewer_ViewModel.h index efd3078a0..0ca65ab79 100755 --- a/src/VTKViewer/VTKViewer_ViewModel.h +++ b/src/VTKViewer/VTKViewer_ViewModel.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_VIEWMODEL_H #define VTKVIEWER_VIEWMODEL_H diff --git a/src/VTKViewer/VTKViewer_ViewWindow.cxx b/src/VTKViewer/VTKViewer_ViewWindow.cxx index 405462b59..d4500095a 100755 --- a/src/VTKViewer/VTKViewer_ViewWindow.cxx +++ b/src/VTKViewer/VTKViewer_ViewWindow.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #include "VTKViewer_ViewWindow.h" #include "VTKViewer_ViewModel.h" #include "VTKViewer_RenderWindow.h" diff --git a/src/VTKViewer/VTKViewer_ViewWindow.h b/src/VTKViewer/VTKViewer_ViewWindow.h index 6b95c671e..951d96d4c 100755 --- a/src/VTKViewer/VTKViewer_ViewWindow.h +++ b/src/VTKViewer/VTKViewer_ViewWindow.h @@ -1,3 +1,21 @@ +// Copyright (C) 2005 OPEN CASCADE, CEA/DEN, EDF R&D, 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/ +// #ifndef VTKVIEWER_VIEWWINDOW_H #define VTKVIEWER_VIEWWINDOW_H