Back to index

salome-geom  6.5.0
Public Member Functions | Private Attributes
GEOM_OCCFilter Class Reference

#include <GEOM_OCCFilter.h>

List of all members.

Public Member Functions

Standard_EXPORT GEOM_OCCFilter (LightApp_SelectionMgr *theSelMgr)
Standard_EXPORT ~GEOM_OCCFilter ()
virtual Standard_EXPORT
IsOk (const Handle(SelectMgr_EntityOwner)&anObj) const

Private Attributes

LightApp_SelectionMgr * mySelMgr

Detailed Description

Definition at line 32 of file GEOM_OCCFilter.h.

Constructor & Destructor Documentation

GEOM_OCCFilter::GEOM_OCCFilter ( LightApp_SelectionMgr *  theSelMgr)

Definition at line 40 of file GEOM_OCCFilter.cxx.

  : SelectMgr_Filter()
  mySelMgr = theSelMgr;

Definition at line 50 of file GEOM_OCCFilter.cxx.


Member Function Documentation

Standard_Boolean GEOM_OCCFilter::IsOk ( const Handle(SelectMgr_EntityOwner)&  anObj) const [virtual]

Definition at line 58 of file GEOM_OCCFilter.cxx.

  Handle(AIS_InteractiveObject) anAIS = Handle(AIS_InteractiveObject)::DownCast( anObj->Selectable() );
  if ( anAIS.IsNull() || !anAIS->HasOwner() )
    return false;
  Handle(SALOME_InteractiveObject) anIO = Handle(SALOME_InteractiveObject)::DownCast(anAIS->GetOwner()); 
  if ( anIO.IsNull() ) return false;
  return mySelMgr->isOk( new LightApp_DataOwner( QString( anIO->getEntry() ) ) );

Here is the call graph for this function:

Member Data Documentation

LightApp_SelectionMgr* GEOM_OCCFilter::mySelMgr [private]

Definition at line 41 of file GEOM_OCCFilter.h.

The documentation for this class was generated from the following files: