]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h
v1.1.0 Feature 1407
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / Observable.h
index 72e1e80cb6b50b8f6c4f30daae39d4660b57ac70..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__
 
@@ -47,6 +53,9 @@ Version:   $Revision$
 
 #include "Observer.h"
 
+//Includes same project
+#include "GlobalConstants.h"
+
 //Includes std
 #include <iostream>
 #include <vector>
@@ -66,17 +75,13 @@ namespace bbtk
                //Public methods
                void addObserver(Observer *observer);
 
-               bool hasChanged();
-
-               void notifyObservers();
-                    
-               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