From 2639c7c2742af75da8063521d051e2089a2167d4 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 21 Sep 2005 12:03:57 +0000 Subject: [PATCH] To sinhronize primary and secondary Gauss Viewes --- src/VVTK/VVTK_ViewWindow.cxx | 20 ++++++++++++++++++++ src/VVTK/VVTK_ViewWindow.h | 10 ++++++++++ 2 files changed, 30 insertions(+) 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 -- 2.39.2