8 #include <VTKViewer_Functor.h>
10 #include "SALOME_InteractiveObject.hxx"
14 template<class TActor>
18 TIsSameEntry(const char* theEntry): myEntry(theEntry) {}
19 bool operator()(TActor* theActor)
21 if ( theActor->hasIO() )
23 Handle(SALOME_InteractiveObject) anIO = theActor->getIO();
24 if ( anIO->hasEntry() )
25 return myEntry == anIO->getEntry();
32 //----------------------------------------------------------------
33 template<class TActor>
36 Handle(SALOME_InteractiveObject) myIObject;
37 TIsSameIObject(const Handle(SALOME_InteractiveObject)& theIObject):
40 bool operator()(TActor* theActor)
44 Handle(SALOME_InteractiveObject) anIO = theActor->getIO();
45 return myIObject->isSame(anIO);
52 //----------------------------------------------------------------
53 template<class TActor>
57 THighlight(bool theIsHighlight): myIsHighlight( theIsHighlight ) {}
58 void operator()(TActor* theActor)
60 if(theActor->GetVisibility() && theActor->GetMapper())
61 theActor->highlight( myIsHighlight );