Salome HOME
07fd80242b1eb926117693db5214a121bfced937
[modules/visu.git] / src / VISUGUI / VisuGUI_Selection.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  VISU VISUGUI : GUI of VISU component
23 //  File   : VisuGUI_Selection.h
24 //  Author : Sergey Anikin 
25 //  Module : VISU
26 //
27 #ifndef VisuGUI_Selection_HeaderFile
28 #define VisuGUI_Selection_HeaderFile
29
30 #include <LightApp_Selection.h>
31
32 //////////////////////////////////////////////////
33 // Class: VisuGUI_Selection
34 //////////////////////////////////////////////////
35
36 class SalomeApp_Module;
37 class SalomeApp_Study;
38
39 class VisuGUI_Selection : public LightApp_Selection
40 {
41 public:
42   VisuGUI_Selection( SalomeApp_Module* theModule )
43     : LightApp_Selection(), myModule( theModule ) {};
44   virtual ~VisuGUI_Selection() {};
45
46   virtual QVariant parameter( const int, const QString& ) const;
47
48 private:
49   QString          type( const int ) const;
50   bool             isFieldPrs( const int ) const;
51   QString          nbComponents( const int ) const;
52   QString          medEntity( const int ) const;
53   QString          medSource( const int ) const;
54   QString          nbTimeStamps( const int ) const;
55   QString          representation( const int ) const;
56   int              nbChildren( const int ) const;
57   int              nbNamedChildren( const int ) const;
58   QString          isVisible( const int ) const;
59   QString          isShrunk( const int ) const;
60   bool             hasActor( const int ) const;
61   QString          isShading( const int ) const;
62   QString          isScalarMapAct( const int ) const;
63   QString          isGaussPtsAct( const int ) const;
64   bool             isScalarBarVisible( const int ) const;
65   bool             isVisuComponent( const int ) const;
66   QString          isValuesLabeled( const int ) const;
67
68   QString          fullResolution( const int ) const;
69   QString          mediumResolution( const int ) const;
70   QString          lowResolution( const int ) const;
71   QString          resolutionState( const int ) const;
72
73   QString          quadratic2DMode( const int ) const;
74
75 private:
76   bool             findDisplayedCurves( const int, bool ) const;
77   bool             hasCurves( const int ) const;
78   bool             Plot2dViewerType( const int ) const;
79
80   int              nbChild( const int, const bool ) const;
81   SalomeApp_Study* GetStudy() const;
82
83   QString          resolutions( const int ) const;
84   QString          resolution( const int, char theResoltuion ) const;
85
86 private:
87   SalomeApp_Module* myModule;
88 };
89
90 #endif