From: apo Date: Wed, 21 Sep 2005 12:03:57 +0000 (+0000) Subject: To sinhronize primary and secondary Gauss Viewes X-Git-Tag: BR-D5-38-2003_D2005-12-10~171 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2639c7c2742af75da8063521d051e2089a2167d4;p=modules%2Fvisu.git To sinhronize primary and secondary Gauss Viewes --- diff --git a/src/VVTK/VVTK_ViewWindow.cxx b/src/VVTK/VVTK_ViewWindow.cxx index 5a662979..e5ffb4e1 100755 --- a/src/VVTK/VVTK_ViewWindow.cxx +++ b/src/VVTK/VVTK_ViewWindow.cxx @@ -168,6 +168,26 @@ VVTK_ViewWindow myMainWindow2->Repaint(theUpdateTrihedron); } +//---------------------------------------------------------------- +void +VVTK_ViewWindow +::unHighlightAll() +{ + myView1->unHighlightAll(); + myView2->unHighlightAll(); +} + +//---------------------------------------------------------------- +void +VVTK_ViewWindow +::highlight(const Handle(SALOME_InteractiveObject)& theIO, + bool theIsHighlight, + bool theIsUpdate ) +{ + myView1->highlight( theIO, theIsHighlight, theIsUpdate ); + myView2->highlight( theIO, theIsHighlight, theIsUpdate ); +} + //---------------------------------------------------------------- void VVTK_ViewWindow diff --git a/src/VVTK/VVTK_ViewWindow.h b/src/VVTK/VVTK_ViewWindow.h index 90134e22..472420f8 100755 --- a/src/VVTK/VVTK_ViewWindow.h +++ b/src/VVTK/VVTK_ViewWindow.h @@ -40,6 +40,16 @@ public: void Repaint(bool theUpdateTrihedron = true); + /* interactive object management */ + virtual + void + highlight(const Handle(SALOME_InteractiveObject)& theIO, + bool theIsHighlight = true, + bool theIsUpdate = true); + virtual + void + unHighlightAll(); + public slots: virtual void