Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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