8 #include <VTKViewer_Functor.h>
10 #include "SALOME_InteractiveObject.hxx"
14 template<class TActor> struct TIsSameEntry
17 TIsSameEntry(const char* theEntry): myEntry(theEntry) {}
18 bool operator()(TActor* theActor)
20 if ( theActor->hasIO() )
22 Handle(SALOME_InteractiveObject) anIO = theActor->getIO();
23 if ( anIO->hasEntry() )
24 return myEntry == anIO->getEntry();
30 template<class TActor> struct TIsSameIObject
32 Handle(SALOME_InteractiveObject) myIObject;
33 TIsSameIObject(const Handle(SALOME_InteractiveObject)& theIObject):
36 bool operator()(TActor* theActor)
40 Handle(SALOME_InteractiveObject) anIO = theActor->getIO();
41 return myIObject->isSame(anIO);