Repaint();
}
+/*!
+ Display object
+ \param theEntry - entry that corresponds to intractive objects
+*/
+Handle(SALOME_InteractiveObject)
+SVTK_View
+::FindIObject(const char* theEntry)
+{
+ using namespace SVTK;
+ SALOME_Actor* anActor =
+ Find<SALOME_Actor>(getRenderer()->GetActors(),
+ TIsSameEntry<SALOME_Actor>(theEntry));
+ if(anActor != NULL)
+ return anActor->getIO();
+
+ return NULL;
+}
+
/*!
Redirect the request to #SVTK_Renderer::SetPreselectionProp
*/
void
unHighlightAll();
- /* Selection Management */
+ //! Try to find a SALOME_InteractiveObject in the view that corresponds to the entry
Handle(SALOME_InteractiveObject)
FindIObject(const char* Entry);
return myView->isVisible( theIO );
}
+/*!
+ Display object
+ \param theEntry - entry that corresponds to intractive objects
+*/
+Handle(SALOME_InteractiveObject)
+SVTK_ViewWindow
+::FindIObject(const char* theEntry)
+{
+ return myView->FindIObject(theEntry);
+}
+
/*!
Display object
\param theIO - object
bool
isVisible(const Handle(SALOME_InteractiveObject)& theIObject);
- /* selection */
+ //! Redirect the request to #SVTK_View::FindIObject (to support old code)
//----------------------------------------------------------------------------
Handle(SALOME_InteractiveObject)
FindIObject(const char* theEntry);