From a861566a96ab6d18f9444848374bf2a1a3c24f81 Mon Sep 17 00:00:00 2001 From: Stewart Martin-Haugh <smh@cern.ch> Date: Mon, 26 Mar 2018 18:49:53 +0200 Subject: [PATCH] Remove some emacs temporary files --- .../TestSuiteFixtures/Fixtures1/Readme.txt~ | 2 - .../Fixtures1/cfg/rttUnitTests.xml~ | 51 ----- .../TestSuiteFixtures/Fixtures3/Readme.txt~ | 2 - .../Fixtures3/cfg/rttUnitTests.xml~ | 52 ----- .../Fixtures4/cfg/rttUnitTests.xml~ | 52 ----- .../TestSuiteFixtures/Fixtures5/Readme.txt~ | 2 - .../Fixtures5/cfg/rttUnitTests.xml~ | 51 ----- .../config/ss_file/raw_15x16x188Lbunused.ss~ | 51 ----- .../src/TrackingSurfacesSystem.cxx~ | 185 ------------------ 9 files changed, 448 deletions(-) delete mode 100755 Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/Readme.txt~ delete mode 100755 Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/cfg/rttUnitTests.xml~ delete mode 100755 Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/Readme.txt~ delete mode 100755 Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/cfg/rttUnitTests.xml~ delete mode 100755 Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures4/cfg/rttUnitTests.xml~ delete mode 100755 Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/Readme.txt~ delete mode 100755 Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/cfg/rttUnitTests.xml~ delete mode 100644 Trigger/TrigFTK/TrigFTKSim/config/ss_file/raw_15x16x188Lbunused.ss~ delete mode 100755 graphics/VP1/VP1Systems/VP1TestSystems/src/TrackingSurfacesSystem.cxx~ diff --git a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/Readme.txt~ b/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/Readme.txt~ deleted file mode 100755 index f685b233928..00000000000 --- a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/Readme.txt~ +++ /dev/null @@ -1,2 +0,0 @@ -monolithic builds -RTT provides package conf file diff --git a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/cfg/rttUnitTests.xml~ b/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/cfg/rttUnitTests.xml~ deleted file mode 100755 index 1a67f0efcba..00000000000 --- a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures1/cfg/rttUnitTests.xml~ +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0"?> - - -<!DOCTYPE rttconfig SYSTEM "http://www.hep.ucl.ac.uk/atlas/AtlasTesting/DTD/RTT.dtd"> - - -<!-- <!DOCTYPE rttconfig SYSTEM "RTT.dtd"> --> -<rttconfig> - <mode>PBS</mode> - <release>11.0.0</release> - <refRelease>11.0.0</refRelease> - <build>opt</build> - <branch>N.X.0</branch> - <workBasePath>TESTSUITESCRATCH/Work</workBasePath> - <resultsBasePath>TESTSUITESCRATCH/Results</resultsBasePath> - <site>CERN</site> - <dataSetCatalog>TESTSUITESCRATCH/xml/rttUnitTestDataSetCatalog.xml</dataSetCatalog> - <jobGroupConfig>TESTSUITESCRATCH/xml/rttUnitTestTopLevelJobGroup.xml</jobGroupConfig> - <refDB> - <file>TESTSUITESCRATCH/rttUnitTestRefFile.db</file> - <enable>1</enable> - </refDB> - - - <confFileSrc> - <rttProvides> - <!-- <packageConfFile> --> - <!-- <package>HelloWorld</package> --> - <!-- <pathToFile>/local_disk/sherwood/RTT/HelloWorld_TestConfiguration.xml</pathToFile> --> - <!-- </packageConfFile> --> - <packageConfFile> - <package>Simulation/Atlfast/TestAtlfast</package> - <!-- <pathToFile>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/test/TestAtlfast_TestConfiguration.xml</pathToFile> --> - <pathToFile>TESTSUITESCRATCH/xml/TestAtlfast_TestConfiguration.xml</pathToFile> - <cmtdir>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/</cmtdir> - </packageConfFile> - </rttProvides> - <!-- <localConfFiles> --> - <!-- <package>Simulation/Atlfast/TestAtlfast</package> --> - <!-- </localConfFiles> --> - <!-- <installedConfFiles/> --> - </confFileSrc> - - <!-- <packageAccept>HelloWorld</packageAccept> --> - <!-- <packageVeto>TestAtlfast</packageVeto> --> -<!-- <testMode>NoNewRunDirs</testMode> --> - <maxTime> - <hours>1</hours> - </maxTime> - <!-- <rttKitTest/> --> -</rttconfig> diff --git a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/Readme.txt~ b/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/Readme.txt~ deleted file mode 100755 index 9161d9645a3..00000000000 --- a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/Readme.txt~ +++ /dev/null @@ -1,2 +0,0 @@ -project builds -RTT provides conf files diff --git a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/cfg/rttUnitTests.xml~ b/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/cfg/rttUnitTests.xml~ deleted file mode 100755 index b96a86cc6e2..00000000000 --- a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures3/cfg/rttUnitTests.xml~ +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0"?> - - -<!DOCTYPE rttconfig SYSTEM "http://www.hep.ucl.ac.uk/atlas/AtlasTesting/DTD/RTT.dtd"> - - -<!-- <!DOCTYPE rttconfig SYSTEM "RTT.dtd"> --> -<rttconfig> - <mode>PBS</mode> - <release>11.0.0</release> - <refRelease>11.0.0</refRelease> - <build>opt</build> - <branch>N.X.0</branch> - <workBasePath>TESTSUITESCRATCH/Work</workBasePath> - <resultsBasePath>TESTSUITESCRATCH/Results</resultsBasePath> - <site>CERN</site> - <dataSetCatalog>TESTSUITESCRATCH/xml/rttUnitTestDataSetCatalog.xml</dataSetCatalog> - <jobGroupConfig>TESTSUITESCRATCH/xml/rttUnitTestTopLevelJobGroup.xml</jobGroupConfig> - <refDB> - <file>TESTSUITESCRATCH/rttUnitTestRefFile.db</file> - <enable>1</enable> - </refDB> - - - <confFileSrc> - <rttProvides> - <!-- <packageConfFile> --> - <!-- <package>HelloWorld</package> --> - <!-- <pathToFile>/local_disk/sherwood/RTT/HelloWorld_TestConfiguration.xml</pathToFile> --> - <!-- </packageConfFile> --> - <packageConfFile> - <package>Simulation/Atlfast/TestAtlfast</package> - <!-- <pathToFile>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/test/TestAtlfast_TestConfiguration.xml</pathToFile> --> - <pathToFile>TESTSUITESCRATCH/xml/TestAtlfast_TestConfiguration.xml</pathToFile> - <cmtdir>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/</cmtdir> - </packageConfFile> - </rttProvides> - <!-- <localConfFiles> --> - <!-- <package>Simulation/Atlfast/TestAtlfast</package> --> - <!-- </localConfFiles> --> - <!-- <installedConfFiles/> --> - </confFileSrc> - - <!-- <packageAccept>HelloWorld</packageAccept> --> - <!-- <packageVeto>TestAtlfast</packageVeto> --> -<!-- <testMode>NoNewRunDirs</testMode> --> - <maxTime> - <hours>1</hours> - </maxTime> - <!-- <rttKitTest/> --> - <releaseType>project</releaseType> -</rttconfig> diff --git a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures4/cfg/rttUnitTests.xml~ b/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures4/cfg/rttUnitTests.xml~ deleted file mode 100755 index 1b10a8ffbce..00000000000 --- a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures4/cfg/rttUnitTests.xml~ +++ /dev/null @@ -1,52 +0,0 @@ -<?xml version="1.0"?> - - -<!DOCTYPE rttconfig SYSTEM "http://www.hep.ucl.ac.uk/atlas/AtlasTesting/DTD/RTT.dtd"> - - -<!-- <!DOCTYPE rttconfig SYSTEM "RTT.dtd"> --> -<rttconfig> - <mode>PBS</mode> - <release>11.0.0</release> - <refRelease>11.0.0</refRelease> - <build>opt</build> - <branch>N.X.0</branch> - <workBasePath>TESTSUITESCRATCH/Work</workBasePath> - <resultsBasePath>TESTSUITESCRATCH/Results</resultsBasePath> - <site>CERN</site> - <dataSetCatalog>TESTSUITESCRATCH/xml/rttUnitTestDataSetCatalog.xml</dataSetCatalog> - <jobGroupConfig>TESTSUITESCRATCH/xml/rttUnitTestTopLevelJobGroup.xml</jobGroupConfig> - <refDB> - <file>TESTSUITESCRATCH/rttUnitTestRefFile.db</file> - <enable>1</enable> - </refDB> - - - <confFileSrc> - <rttProvides> - <!-- <packageConfFile> --> - <!-- <package>HelloWorld</package> --> - <!-- <pathToFile>/local_disk/sherwood/RTT/HelloWorld_TestConfiguration.xml</pathToFile> --> - <!-- </packageConfFile> --> - <packageConfFile> - <package>AthenaAtlfast</package> - <!-- <pathToFile>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/test/TestAtlfast_TestConfiguration.xml</pathToFile> --> - <pathToFile>TESTSUITESCRATCH/xml/TestAtlfast_TestConfiguration.xml</pathToFile> - <cmtdir>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/</cmtdir> - </packageConfFile> - </rttProvides> - <!-- <localConfFiles> --> - <!-- <package>Simulation/Atlfast/TestAtlfast</package> --> - <!-- </localConfFiles> --> - <installedConfFiles> - <releaseType>project</releaseType> - </installedConfFiles> - </confFileSrc> - - <!-- <packageAccept>HelloWorld</packageAccept> --> - <!-- <packageVeto>TestAtlfast</packageVeto> --> -<!-- <testMode>NoNewRunDirs</testMode> --> - <maxTime> - <hours>1</hours> - </maxTime> -</rttconfig> diff --git a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/Readme.txt~ b/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/Readme.txt~ deleted file mode 100755 index f685b233928..00000000000 --- a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/Readme.txt~ +++ /dev/null @@ -1,2 +0,0 @@ -monolithic builds -RTT provides package conf file diff --git a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/cfg/rttUnitTests.xml~ b/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/cfg/rttUnitTests.xml~ deleted file mode 100755 index 1a67f0efcba..00000000000 --- a/Tools/RunTimeTester/src/TestSuiteFixtures/Fixtures5/cfg/rttUnitTests.xml~ +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0"?> - - -<!DOCTYPE rttconfig SYSTEM "http://www.hep.ucl.ac.uk/atlas/AtlasTesting/DTD/RTT.dtd"> - - -<!-- <!DOCTYPE rttconfig SYSTEM "RTT.dtd"> --> -<rttconfig> - <mode>PBS</mode> - <release>11.0.0</release> - <refRelease>11.0.0</refRelease> - <build>opt</build> - <branch>N.X.0</branch> - <workBasePath>TESTSUITESCRATCH/Work</workBasePath> - <resultsBasePath>TESTSUITESCRATCH/Results</resultsBasePath> - <site>CERN</site> - <dataSetCatalog>TESTSUITESCRATCH/xml/rttUnitTestDataSetCatalog.xml</dataSetCatalog> - <jobGroupConfig>TESTSUITESCRATCH/xml/rttUnitTestTopLevelJobGroup.xml</jobGroupConfig> - <refDB> - <file>TESTSUITESCRATCH/rttUnitTestRefFile.db</file> - <enable>1</enable> - </refDB> - - - <confFileSrc> - <rttProvides> - <!-- <packageConfFile> --> - <!-- <package>HelloWorld</package> --> - <!-- <pathToFile>/local_disk/sherwood/RTT/HelloWorld_TestConfiguration.xml</pathToFile> --> - <!-- </packageConfFile> --> - <packageConfFile> - <package>Simulation/Atlfast/TestAtlfast</package> - <!-- <pathToFile>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/test/TestAtlfast_TestConfiguration.xml</pathToFile> --> - <pathToFile>TESTSUITESCRATCH/xml/TestAtlfast_TestConfiguration.xml</pathToFile> - <cmtdir>/afs/cern.ch/atlas/software/dist/11.0.0/Simulation/Atlfast/TestAtlfast/TestAtlfast-00-00-55/</cmtdir> - </packageConfFile> - </rttProvides> - <!-- <localConfFiles> --> - <!-- <package>Simulation/Atlfast/TestAtlfast</package> --> - <!-- </localConfFiles> --> - <!-- <installedConfFiles/> --> - </confFileSrc> - - <!-- <packageAccept>HelloWorld</packageAccept> --> - <!-- <packageVeto>TestAtlfast</packageVeto> --> -<!-- <testMode>NoNewRunDirs</testMode> --> - <maxTime> - <hours>1</hours> - </maxTime> - <!-- <rttKitTest/> --> -</rttconfig> diff --git a/Trigger/TrigFTK/TrigFTKSim/config/ss_file/raw_15x16x188Lbunused.ss~ b/Trigger/TrigFTK/TrigFTKSim/config/ss_file/raw_15x16x188Lbunused.ss~ deleted file mode 100644 index 408e57e0139..00000000000 --- a/Trigger/TrigFTK/TrigFTKSim/config/ss_file/raw_15x16x188Lbunused.ss~ +++ /dev/null @@ -1,51 +0,0 @@ -Version 9 -! PIX: 3mm SS, so we use 328/(20mm/3mm)=328/6.6=50 -! SCT: 5mm SS, so we use 768/(60mm/5mm)=768/12=64 -1 0 0 15 328 36 144 -1 0 1 15 328 36 144 -1 0 2 15 328 36 144 -0 0 0 16 768 -0 0 1 4 768 -0 0 2 16 768 -0 0 3 4 768 -0 0 4 16 768 -0 0 5 4 768 -0 0 6 16 768 -0 0 7 4 768 -1 1 0 15 328 36 144 -1 1 1 15 328 36 144 -1 1 2 15 328 36 144 -0 1 0 4 768 -0 1 1 16 768 -0 1 2 4 768 -0 1 3 16 768 -0 1 4 16 768 -0 1 5 4 768 -0 1 6 16 768 -0 1 7 4 768 -0 1 8 4 768 -0 1 9 16 768 -0 1 10 4 768 -0 1 11 16 768 -0 1 12 16 768 -0 1 13 4 768 -0 1 14 16 768 -0 1 15 4 768 -0 1 16 4 768 -0 1 17 16 768 -0 1 18 4 768 -0 1 19 16 768 -0 1 20 16 768 -0 1 21 4 768 -0 1 22 16 768 -0 1 23 4 768 -0 1 16 4 768 -0 1 25 16 768 -0 1 26 4 768 -0 1 27 16 768 -0 1 28 16 768 -0 1 29 4 768 -0 1 30 16 768 -0 1 31 4 768 -0 1 32 4 768 -0 1 33 16 768 diff --git a/graphics/VP1/VP1Systems/VP1TestSystems/src/TrackingSurfacesSystem.cxx~ b/graphics/VP1/VP1Systems/VP1TestSystems/src/TrackingSurfacesSystem.cxx~ deleted file mode 100755 index 5ec7f944b86..00000000000 --- a/graphics/VP1/VP1Systems/VP1TestSystems/src/TrackingSurfacesSystem.cxx~ +++ /dev/null @@ -1,185 +0,0 @@ -///////////////////////////////////////////////////////////////////////// -// // -// Implementation of class TrackingSurfacesSystem // -// // -// Author: Thomas Kittelmann <Thomas.Kittelmann@cern.ch> // -// // -// Initial version: June 2007 // -// // -///////////////////////////////////////////////////////////////////////// - -#include "VP1TestSystems/TrackingSurfacesSystem.h" -#include "ui_trackingsurfacescontrollerform.h" - -#include "StoreGate/StoreGate.h" -#include "TrkSurfaces/Surface.h" -#include "TrkSurfaces/SurfaceCollection.h" -#include "GeoPrimitives/GeoPrimitives.h" -//#include "CLHEP/Units/SystemOfUnits.h" -#include "GaudiKernel/SystemOfUnits.h" - -#include <Inventor/nodes/SoSeparator.h> -#include <Inventor/nodes/SoLineSet.h> -#include <Inventor/nodes/SoVertexProperty.h> -#include <Inventor/nodes/SoSwitch.h> -#include <Inventor/nodes/SoMaterial.h> - -#include "VP1Base/SoCooperativeSelection.h" -#include "VP1Base/VP1CameraHelper.h" -#include "VP1Utils/SurfaceToSoNode.h" - -//_____________________________________________________________________________________ -TrackingSurfacesSystem::TrackingSurfacesSystem() - : IVP13DSystemSimple("TrackingSurfacesSystem","This is an illustration of a very basic 3D system.","edward.moyse@gmail.com"), m_multiselection(0) -{ -} - -//_____________________________________________________________________________________ -void TrackingSurfacesSystem::buildEventSceneGraph(StoreGateSvc* sg, SoSeparator *root) -{ - //Clear maps: - m_nodeToSurface.clear(); - // std::cout<<&m_surfConvertor<<std::endl; - //1) Try to get the collection of (InDet) tracks from storegate: - - //Sanity check: - if (!sg) { - message("Error: Got null storegate pointer"); - return; - } - - - // SurfaceCollection* testsrfcol; - // StatusCode sc2 = evtStore()->retrieve(testsrfcol,"SurfaceCollection"); - // if ( sc2.isFailure() ) - // ATH_MSG_ERROR("Could not retrieve SurfaceCollection in StoreGate"); - // else - // ATH_MSG_INFO("SurfaceCollection with " << testsrfcol->size() << " elements successfully retrieved in StoreGate"); - // - - const SurfaceCollection *surfColl; - std::string surfname="SurfaceCollection"; - StatusCode status = sg->retrieve(surfColl, surfname); - if (status != StatusCode::SUCCESS || !surfColl) { - message("Error: Could not retrieve SurfaceCollection (used key="+QString(surfname.c_str())+")"); - return; - } - message( "Loaded SurfaceCollection with key [" +QString(surfname.c_str())+"] and which contains [" + QString::number(surfColl->size()) + "] surfaces."); - //2) Add SoCooperativeSelection node under which we will put all the - //tracks. Register it and put its policy to TOGGLE (i.e. clicking - //adds or removes tracks from selection). In updateSelectionMode we - //will update its ACTIVE/INERT status depending on whether multiple - //selections are enabled: If ACTIVE, we get lists of selected nodes - //in the userChangedSelection(...) method, otherwise we get single - //nodes in the userPickedNode(...) method as always. We could also - //simply have changed its policy and gotten information about the - //clicks in a userSelectedSingleNode(...) method instead (the - //reason for the two available ways of doing this is that you might - //want to have several different selection nodes in your graph in - //the case where you have different types of physics objects - //displayed from the same system): - m_multiselection = new SoCooperativeSelection; - m_multiselection->policy = SoCooperativeSelection::TOGGLE; - registerSelectionNode(m_multiselection);//Always do this for SoCooperativeSelection nodes in your graph. - updateSelectionMode( true );//Since our controller starts with the single mode selected, we init like that also. - - //2) Loop over the tracks and construct a relevant 3D object for each of them (a SoLineSet): - - SurfaceCollection::const_iterator surfItr, surfItrEnd = surfColl->end(); - SurfaceToSoNode surfCnv; - for ( surfItr = surfColl->begin() ; surfItr != surfItrEnd; ++surfItr) { - const Trk::Surface* surf = (*surfItr); - - SoNode* node = surfCnv.translateSurface(*surf, false); - SoMaterial *material = new SoMaterial; - if(surf->isActive()){ - material->diffuseColor.setValue(0.6, 0., 0.6); - } else { - material->diffuseColor.setValue(1., 0., 1.); - } - - m_multiselection->addChild(node); - m_multiselection->addChild(material); - - //Bookkeep which track this 3D object corresponds to (we will need this to display surface info when the user clicks): - m_nodeToSurface[node] = surf; - - //To avoid GUI freeze-ups: - updateGUI(); - } - - //Add the selection node under the root: - root->addChild(m_multiselection); - - -} - -//_____________________________________________________________________________________ -void TrackingSurfacesSystem::userPickedNode(SoNode* pickedNode, SoPath * /*pickedPath*/) { - - //User clicked on "pickedNode". We should know which track this belongs to: - - messageDebug("TrackingSurfacesSystem::userPickedNode - have been passed node ["+QString("0x%1").arg((quintptr)pickedNode, - QT_POINTER_SIZE * 2, 16, QChar('0'))+"] and have ["+QString::number(m_nodeToSurface.size())+"] nodes."); - - if (m_nodeToSurface.find(pickedNode)==m_nodeToSurface.end()) { - message("Error: Do not have surface information for picked node"); - return; - } - const Trk::Surface * matchedSurface=m_nodeToSurface.find(pickedNode)->second; - - //Show some interesting information (from the first surface): - message("===> Surface info:"); - QStringList l; - std::ostringstream s; - s << *(matchedSurface); - l << QString(s.str().c_str()).split('\n'); - message(l); - - //Zoom to surf: - CamList cameras = getCameraList(); - for (CamListItr itCam = cameras.begin(); itCam!=cameras.end(); ++itCam) { - VP1CameraHelper::animatedZoomToSubTree(*itCam,m_multiselection,pickedNode,2.0,1.0); - } -} - -//_____________________________________________________________________________________ -void TrackingSurfacesSystem::userChangedSelection(SoCooperativeSelection*, QSet<SoNode*> nodes, QSet<SoPath*>) -{ - foreach (SoNode * node, nodes) { - //Surface pointer: - if (m_nodeToSurface.find(node)==m_nodeToSurface.end()) { - message("Error: Does not have surface information for all nodes"); - return; - } - } -} - -//_____________________________________________________________________________________ -QWidget * TrackingSurfacesSystem::buildController() -{ - QWidget * controller = new QWidget(0); - Ui::TrackingSurfacesControllerForm ui; - ui.setupUi(controller); - - connect(ui.radioButton_select_single,SIGNAL(toggled(bool)),this,SLOT(updateSelectionMode(bool))); - - return controller; -} - -//_____________________________________________________________________________________ -void TrackingSurfacesSystem::updateSelectionMode( bool single ) -{ - //If multiselection not created or if we dont need to change anything - abort: - if ( !m_multiselection || single == (m_multiselection->activePolicy.getValue()==SoCooperativeSelection::INERT) ) - return; - - //When we change selection mode we deselect everything - always a good idea to avoid hard to debug problems later: - deselectAll(); - - if (single) - m_multiselection->activePolicy = SoCooperativeSelection::INERT; - else - m_multiselection->activePolicy = SoCooperativeSelection::ACTIVE; - -} -- GitLab