From 91940fb24d170bbc0d40d65cf74ea75ef2b00372 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 2 Nov 2009 07:51:30 +0000 Subject: [PATCH] untabify --- src/SVTK/SVTK_Selector.cxx | 40 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/SVTK/SVTK_Selector.cxx b/src/SVTK/SVTK_Selector.cxx index 6bbf7d15e..bbb584540 100644 --- a/src/SVTK/SVTK_Selector.cxx +++ b/src/SVTK/SVTK_Selector.cxx @@ -52,8 +52,8 @@ GetLastSALOMEActor(vtkActorCollection* theCollection) if (theCollection) { for (int i = theCollection->GetNumberOfItems() - 1; i >= 0; i--) { if (SALOME_Actor* anActor = dynamic_cast(theCollection->GetItemAsObject(i))) - if (anActor->hasIO()) - return anActor; + if (anActor->hasIO()) + return anActor; } } return NULL; @@ -287,7 +287,7 @@ SVTK_SelectorDef void SVTK_SelectorDef ::GetIndex( const Handle(SALOME_InteractiveObject)& theIO, - TColStd_IndexedMapOfInteger& theIndex) + TColStd_IndexedMapOfInteger& theIndex) { TMapIOSubIndex::const_iterator anIter = myMapIOSubIndex.find(theIO); if(anIter != myMapIOSubIndex.end()) @@ -304,7 +304,7 @@ SVTK_SelectorDef bool SVTK_SelectorDef ::IsIndexSelected(const Handle(SALOME_InteractiveObject)& theIO, - int theIndex) const + int theIndex) const { TMapIOSubIndex::const_iterator anIter = myMapIOSubIndex.find(theIO); if(anIter != myMapIOSubIndex.end()){ @@ -346,8 +346,8 @@ static bool removeIndex(TColStd_IndexedMapOfInteger& theMapIndex, const int theI bool SVTK_SelectorDef ::AddOrRemoveIndex( const Handle(SALOME_InteractiveObject)& theIO, - const TColStd_IndexedMapOfInteger& theIndices, - bool theIsModeShift) + const TColStd_IndexedMapOfInteger& theIndices, + bool theIsModeShift) { TMapIOSubIndex::iterator aMapIter = myMapIOSubIndex.find(theIO); if(aMapIter == myMapIOSubIndex.end()){ @@ -381,8 +381,8 @@ SVTK_SelectorDef bool SVTK_SelectorDef ::AddOrRemoveIndex( const Handle(SALOME_InteractiveObject)& theIO, - const TColStd_MapOfInteger& theIndices, - bool theIsModeShift) + const TColStd_MapOfInteger& theIndices, + bool theIsModeShift) { TMapIOSubIndex::iterator aMapIter = myMapIOSubIndex.find(theIO); if(aMapIter == myMapIOSubIndex.end()){ @@ -417,8 +417,8 @@ SVTK_SelectorDef bool SVTK_SelectorDef ::AddOrRemoveIndex( const Handle(SALOME_InteractiveObject)& theIO, - int theIndex, - bool theIsModeShift) + int theIndex, + bool theIsModeShift) { TMapIOSubIndex::iterator anIter = myMapIOSubIndex.find(theIO); if(anIter == myMapIOSubIndex.end()){ @@ -453,7 +453,7 @@ SVTK_SelectorDef void SVTK_SelectorDef ::RemoveIndex( const Handle(SALOME_InteractiveObject)& theIO, - int theIndex) + int theIndex) { if(IsIndexSelected(theIO,theIndex)){ TMapIOSubIndex::iterator anIter = myMapIOSubIndex.find(theIO); @@ -515,8 +515,8 @@ SVTK_SelectorDef bool SVTK_SelectorDef ::IsValid(SALOME_Actor* theActor, - const TFilterID theId, - const bool theIsNode) const + const TFilterID theId, + const bool theIsNode) const { TFilters::const_iterator anIter = myFilters.begin(); for(; anIter != myFilters.end(); ++anIter){ @@ -557,9 +557,9 @@ SVTK_SelectorDef vtkActorCollection* aListActors = NULL; if ( anAdvancedSelectionAlgorithm ) { myCellPicker->Pick(theEvent->myX, - theEvent->myY, - 0.0, - theRenderer); + theEvent->myY, + 0.0, + theRenderer); aListActors = myCellPicker->GetActors(); anActor = GetLastSALOMEActor(aListActors); @@ -567,9 +567,9 @@ SVTK_SelectorDef if ( !anActor ) { myPicker->Pick(theEvent->myX, - theEvent->myY, - 0.0, - theRenderer); + theEvent->myY, + 0.0, + theRenderer); aListActors = myPicker->GetActors(); anActor = GetLastSALOMEActor(aListActors); } @@ -581,6 +581,6 @@ void SVTK_SelectorDef ::SetTolerance(const double& theTolerance) { - myPicker->SetTolerance(theTolerance); + myPicker->SetTolerance(theTolerance); myCellPicker->SetTolerance(theTolerance); } -- 2.39.2