}
+//==========================================================
+bool
+VVTK_Viewer
+::isVisible( const Handle(SALOME_InteractiveObject)& io )
+{
+ QPtrVector<SUIT_ViewWindow> aViews = myViewManager->getViews();
+ for(int i = 0, iEnd = aViews.size(); i < iEnd; i++)
+ if(SUIT_ViewWindow* aViewWindow = aViews.at(i))
+ if(TViewWindow* aView = dynamic_cast<TViewWindow*>(aViewWindow))
+ if(!aView->getView()->isVisible( io ))
+ return false;
+
+ return true;
+}
+
+
//==========================================================
void
VVTK_Viewer
#include "VVTK.h"
#include "SVTK_ViewModelBase.h"
+#include "SALOME_Prs.h"
+#include "SALOME_InteractiveObject.hxx"
+
class VVTK_ViewWindow;
-class VVTK_EXPORT VVTK_Viewer : public SVTK_ViewModelBase
+class VVTK_EXPORT VVTK_Viewer : public SVTK_ViewModelBase, public SALOME_View
{
Q_OBJECT;
virtual void Repaint();
+ virtual bool isVisible( const Handle(SALOME_InteractiveObject)& );
+
QColor backgroundColor() const;
void setBackgroundColor( const QColor& );