1 // Copyright (C) 2023-2024 CEA, EDF
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef LIGHTAPP_PV3DSELECTOR_H
21 #define LIGHTAPP_PV3DSELECTOR_H
25 #include <SUIT_Selector.h>
26 #include <SUIT_DataOwner.h>
31 #ifndef DISABLE_PV3DVIEWER
32 #ifndef DISABLE_SALOMEOBJECT
33 #include "SALOME_InteractiveObject.hxx"
35 class SPV3D_ViewModel;
40 \class LightApp_PV3DSelector
41 Custom selector to get/set selection from PV3D viewer
43 class LIGHTAPP_EXPORT LightApp_PV3DSelector : public QObject, public SUIT_Selector
48 virtual ~LightApp_PV3DSelector() {};
49 #ifndef DISABLE_PV3DVIEWER
50 LightApp_PV3DSelector( SPV3D_ViewModel*, SUIT_SelectionMgr* );
52 SPV3D_ViewModel* viewer() const;
54 virtual QString type() const;
56 LightApp_PV3DSelector( SUIT_SelectionMgr* );
60 void onSelectionChanged();
62 #ifndef DISABLE_PV3DVIEWER
64 virtual void getSelection( SUIT_DataOwnerPtrList& ) const;
65 virtual void setSelection( const SUIT_DataOwnerPtrList& );
68 SPV3D_ViewModel* myViewer;