00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 00023 // VISU VISUGUI : GUI of VISU component 00024 // File : VisuGUI_Selection.h 00025 // Author : Sergey Anikin 00026 // Module : VISU 00027 // 00028 #ifndef VisuGUI_Selection_HeaderFile 00029 #define VisuGUI_Selection_HeaderFile 00030 00031 #include <LightApp_Selection.h> 00032 00034 // Class: VisuGUI_Selection 00036 00037 class SalomeApp_Module; 00038 class SalomeApp_Study; 00039 00040 class VisuGUI_Selection : public LightApp_Selection 00041 { 00042 public: 00043 VisuGUI_Selection( SalomeApp_Module* theModule ) 00044 : LightApp_Selection(), myModule( theModule ) {}; 00045 virtual ~VisuGUI_Selection() {}; 00046 00047 virtual QVariant parameter( const int, const QString& ) const; 00048 00049 private: 00050 QString type( const int ) const; 00051 bool isFieldPrs( const int ) const; 00052 QString nbComponents( const int ) const; 00053 QString medEntity( const int ) const; 00054 QString medSource( const int ) const; 00055 QString nbTimeStamps( const int ) const; 00056 QString representation( const int ) const; 00057 int nbChildren( const int ) const; 00058 int nbNamedChildren( const int ) const; 00059 QString isVisible( const int ) const; 00060 QString isShrunk( const int ) const; 00061 bool hasActor( const int ) const; 00062 QString isShading( const int ) const; 00063 QString isScalarMapAct( const int ) const; 00064 QString isGaussPtsAct( const int ) const; 00065 bool isScalarBarVisible( const int ) const; 00066 bool isVisuComponent( const int ) const; 00067 QString isValuesLabeled( const int ) const; 00068 00069 QString fullResolution( const int ) const; 00070 QString mediumResolution( const int ) const; 00071 QString lowResolution( const int ) const; 00072 QString resolutionState( const int ) const; 00073 00074 QString quadratic2DMode( const int ) const; 00075 00076 private: 00077 bool findDisplayedCurves( const int, bool ) const; 00078 bool hasCurves( const int ) const; 00079 bool Plot2dViewerType( const int ) const; 00080 00081 int nbChild( const int, const bool ) const; 00082 SalomeApp_Study* GetStudy() const; 00083 00084 QString resolutions( const int ) const; 00085 QString resolution( const int, char theResoltuion ) const; 00086 00087 private: 00088 SalomeApp_Module* myModule; 00089 }; 00090 00091 #endif