Salome HOME
Properties mySelectionEnabled and myMultiSelectionEnabled taked into account now.
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewModel.h
index 08bf29f06db89d9396493f83d76d7f92b103f87b..0779d3aefe9d15f8cb3c333275b5095f9e9b3380 100755 (executable)
@@ -1,3 +1,21 @@
+// Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either 
+// version 2.1 of the License.
+// 
+// This library is distributed in the hope that it will be useful 
+// but WITHOUT ANY WARRANTY; without even the implied warranty of 
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public  
+// License along with this library; if not, write to the Free Software 
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/
+//
 #ifndef OCCVIEWER_VIEWMODEL_H
 #define OCCVIEWER_VIEWMODEL_H
 
@@ -15,6 +33,7 @@
 
 class SUIT_ViewWindow;
 class SUIT_Desktop;
+class OCCViewer_ViewWindow;
 
 struct viewAspect
 {
@@ -115,10 +134,15 @@ public:
   void    setColor( const Handle(AIS_InteractiveObject)&, const QColor&, bool=true );
   void    switchRepresentation( const Handle(AIS_InteractiveObject)&, int, bool=true );
   void    setTransparency( const Handle(AIS_InteractiveObject)&, float, bool=true );
+  void    setIsos( const int u, const int v ); // number of isolines
+  void    isos( int& u, int& v ) const;
 
 signals:
   void selectionChanged();
 
+protected:
+  void initView( OCCViewer_ViewWindow* view );
+
 protected slots:
   void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
   void onMouseMove(SUIT_ViewWindow*, QMouseEvent*);