]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Added myIsInitialized flag
authorouv <ouv@opencascade.com>
Thu, 18 Nov 2010 10:44:31 +0000 (10:44 +0000)
committerouv <ouv@opencascade.com>
Thu, 18 Nov 2010 10:44:31 +0000 (10:44 +0000)
src/GraphicsView/GraphicsView_Viewer.cxx
src/GraphicsView/GraphicsView_Viewer.h

index 927a7177ba5b2cc10a8fadbcffc015d929ddffbd..105d7fcb2f898ed9dd44319ce170ead77d09e237 100644 (file)
@@ -43,7 +43,8 @@
 GraphicsView_Viewer::GraphicsView_Viewer( const QString& title )
 : SUIT_ViewModel(),
   mySelector( 0 ),
-  myTransformer( 0 )
+  myTransformer( 0 ),
+  myIsInitialized( false )
 {
 }
 
@@ -168,6 +169,15 @@ void GraphicsView_Viewer::activateTransform( int theType )
   }
 }
 
+//================================================================
+// Function : setIsInitialized
+// Purpose  : 
+//================================================================
+void GraphicsView_Viewer::setIsInitialized( bool theFlag )
+{
+  myIsInitialized = theFlag;
+}
+
 //================================================================
 // Function : createTransformer
 // Purpose  : 
index d5650c8475827d24f1b27c0193f47cc7df049cc6..225a7d708aa0c79471fabe7f45e1655905f42fca 100644 (file)
@@ -72,6 +72,9 @@ public:
 
   void                          activateTransform( int );
 
+  bool                          isInitialized() const { return myIsInitialized; }
+  void                          setIsInitialized( bool );
+
 signals:
   void                          selectionChanged( GV_SelectionChangeStatus );
 
@@ -104,6 +107,8 @@ private:
 protected:
   GraphicsView_Selector*        mySelector;
   GraphicsView_ViewTransformer* myTransformer;
+
+  bool                          myIsInitialized;
 };
 
 #endif