X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FObservable.h;h=0377134cbcbd753b8519a9f2b10693a2088ee59d;hb=de7c0454ab8fc1b0b97dcd7112dfdb4a55ac0215;hp=a55b17de2f01fead3dbf9a05a6afda2eb1df143c;hpb=0b3b25440d23eabf549ebdfa0a4a39ea91ea2f23;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h index a55b17d..0377134 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.h @@ -40,6 +40,12 @@ Version: $Revision$ * \brief */ +/**** +* Design and Developpement of BBTK GEditor +* Ricardo A Corredor J +* 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 _observers; //Private Methods