]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h
Feature #1674 . RaC
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / Observable.h
index a55b17de2f01fead3dbf9a05a6afda2eb1df143c..0377134cbcbd753b8519a9f2b10693a2088ee59d 100644 (file)
@@ -40,6 +40,12 @@ Version:   $Revision$
 * \brief 
 */
 
+/****
+* Design and Developpement of BBTK GEditor
+* Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
+* RaC - 2010
+****/
+
 #ifndef __Observable_h__
 #define __Observable_h__
 
@@ -69,17 +75,13 @@ namespace bbtk
                //Public methods
                void addObserver(Observer *observer);
 
-               bool hasChanged();
-
-               void notifyObservers(int command=REPAINT);
-                    
-               void setChanged();
+               // It is possible to notify the observers with an specific command (See GlobalConstants.h), for example, 
+               // to initialize the contour creation INIT_CREATION_CONTOUR
+               void notifyObservers(int idCaller,int command=NO_COMMAND);
 
        private:
 
-               //Private Attributes
-               bool _changed;
-               
+               //Private Attributes            
                std::vector<Observer*>  _observers;
                
                //Private Methods