mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-03-15 01:31:17 +05:00
Using LightApp_SelectionMgr instead SalomeApp_SelectionMgr, and
LightApp_DataOwner instead SalomeApp_DataOwner.
This commit is contained in:
parent
0bc3884084
commit
0c20b44be3
@ -1,7 +1,7 @@
|
||||
#include "GEOM_OCCFilter.h"
|
||||
|
||||
#include <SalomeApp_SelectionMgr.h>
|
||||
#include <SalomeApp_DataOwner.h>
|
||||
#include <LightApp_SelectionMgr.h>
|
||||
#include <LightApp_DataOwner.h>
|
||||
|
||||
#include <SALOME_InteractiveObject.hxx>
|
||||
|
||||
@ -15,7 +15,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GEOM_OCCFilter, SelectMgr_Filter)
|
||||
// function : GEOM_OCCFilter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
GEOM_OCCFilter::GEOM_OCCFilter( SalomeApp_SelectionMgr* theSelMgr )
|
||||
GEOM_OCCFilter::GEOM_OCCFilter( LightApp_SelectionMgr* theSelMgr )
|
||||
: SelectMgr_Filter()
|
||||
{
|
||||
mySelMgr = theSelMgr;
|
||||
@ -42,5 +42,5 @@ Standard_Boolean GEOM_OCCFilter::IsOk( const Handle(SelectMgr_EntityOwner)& anOb
|
||||
Handle(SALOME_InteractiveObject) anIO = Handle(SALOME_InteractiveObject)::DownCast(anAIS->GetOwner());
|
||||
if ( anIO.IsNull() ) return false;
|
||||
|
||||
return mySelMgr->isOk( new SalomeApp_DataOwner( QString( anIO->getEntry() ) ) );
|
||||
return mySelMgr->isOk( new LightApp_DataOwner( QString( anIO->getEntry() ) ) );
|
||||
}
|
||||
|
@ -5,18 +5,18 @@
|
||||
|
||||
#include <Standard_DefineHandle.hxx>
|
||||
|
||||
class SalomeApp_SelectionMgr;
|
||||
class LightApp_SelectionMgr;
|
||||
|
||||
class GEOM_OCCFilter : public SelectMgr_Filter
|
||||
{
|
||||
public:
|
||||
Standard_EXPORT GEOM_OCCFilter( SalomeApp_SelectionMgr* theSelMgr);
|
||||
Standard_EXPORT GEOM_OCCFilter( LightApp_SelectionMgr* theSelMgr);
|
||||
Standard_EXPORT ~GEOM_OCCFilter();
|
||||
|
||||
Standard_EXPORT virtual Standard_Boolean IsOk( const Handle(SelectMgr_EntityOwner)& anObj ) const;
|
||||
|
||||
private:
|
||||
SalomeApp_SelectionMgr* mySelMgr;
|
||||
LightApp_SelectionMgr* mySelMgr;
|
||||
|
||||
public:
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "GEOM_PreviewFilter.h"
|
||||
|
||||
#include <SalomeApp_DataOwner.h>
|
||||
#include <LightApp_DataOwner.h>
|
||||
|
||||
//=======================================================================
|
||||
// function : GEOM_SelectionFilter
|
||||
@ -25,7 +25,7 @@ GEOM_PreviewFilter::~GEOM_PreviewFilter()
|
||||
//=======================================================================
|
||||
bool GEOM_PreviewFilter::isOk( const SUIT_DataOwner* sOwner ) const
|
||||
{
|
||||
const SalomeApp_DataOwner* owner = dynamic_cast<const SalomeApp_DataOwner*> ( sOwner );
|
||||
const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*> ( sOwner );
|
||||
return ( owner && strstr( owner->entry(), "TEMP" ) );
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "GEOM_Client.hxx"
|
||||
|
||||
#include <SalomeApp_DataOwner.h>
|
||||
#include <LightApp_DataOwner.h>
|
||||
#include <SalomeApp_Study.h>
|
||||
#include <SalomeApp_Application.h>
|
||||
|
||||
@ -58,7 +58,7 @@ GEOM::GEOM_Object_ptr GEOM_SelectionFilter::getObject (const SUIT_DataOwner* sOw
|
||||
{
|
||||
GEOM::GEOM_Object_var anObj;
|
||||
|
||||
const SalomeApp_DataOwner* owner = dynamic_cast<const SalomeApp_DataOwner*>(sOwner);
|
||||
const LightApp_DataOwner* owner = dynamic_cast<const LightApp_DataOwner*>(sOwner);
|
||||
SalomeApp_Study* appStudy = getStudy();
|
||||
if (owner && appStudy)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user