Version: 6.3.1

src/GEOMGUI/GEOMGUI_Selection.h

Go to the documentation of this file.
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 // File   : GEOMGUI_Selection.h
00024 // Author : Alexander SOLOVYOV, Open CASCADE S.A.S. (alexander.solovyov@opencascade.com)
00025 //
00026 #ifndef GEOMGUI_SELECTION_H
00027 #define GEOMGUI_SELECTION_H
00028 
00029 #include "GEOM_GEOMGUI.hxx"
00030 
00031 #include <LightApp_Selection.h>
00032 #include <SALOMEDSClient.hxx>
00033 
00034 #include <SALOMEconfig.h>
00035 #include CORBA_SERVER_HEADER(GEOM_Gen)
00036 
00037 class LightApp_SelectionMgr;
00038 class LightApp_DataOwner;
00039 
00040 class GEOMGUI_EXPORT GEOMGUI_Selection : public LightApp_Selection
00041 {
00042 public:
00043   GEOMGUI_Selection();
00044   virtual ~GEOMGUI_Selection();
00045 
00046   virtual QVariant      parameter( const int, const QString& ) const;
00047   virtual QVariant      parameter( const QString& ) const;
00048   
00049   virtual bool          processOwner( const LightApp_DataOwner* );
00050 
00051   static bool           hasChildren( const _PTR(SObject)& );
00052   static bool           expandable( const _PTR(SObject)& );
00053   static bool           isCompoundOfVertices( GEOM::GEOM_Object_ptr );
00054 
00055 private:
00056   bool                  isVisible( const int ) const;
00057   bool                  isAutoColor( const int ) const;
00058   QString               typeName( const int ) const;  
00059   int                   typeId( const int ) const;  
00060   QString               displayMode( const int ) const;
00061   QString               selectionMode() const;
00062   bool                  isVectorsMode( const int ) const;
00063   bool                  hasHiddenChildren( const int ) const;
00064   bool                  hasShownChildren( const int ) const;
00065   bool                  compoundOfVertices( const int ) const;
00066 
00067   bool                  isComponent( const int ) const;
00068   GEOM::GEOM_Object_ptr getObject( const int ) const;
00069 };
00070 
00071 #endif // GEOMGUI_SELECTION_H
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS