GConnectorController.h

Go to the documentation of this file.
00001 /*=========================================================================                                                                               
00002 Program:   bbtk
00003 Module:    $RCSfile: GConnectorController.h,v $
00004 Language:  C++
00005 Date:      $Date: 2012/05/22 15:13:36 $
00006 Version:   $Revision: 1.6 $
00007 =========================================================================*/
00008 
00009 /* ---------------------------------------------------------------------
00010 
00011 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
00012 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
00013 *
00014 *  This software is governed by the CeCILL-B license under French law and 
00015 *  abiding by the rules of distribution of free software. You can  use, 
00016 *  modify and/ or redistribute the software under the terms of the CeCILL-B 
00017 *  license as circulated by CEA, CNRS and INRIA at the following URL 
00018 *  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
00019 *  or in the file LICENSE.txt.
00020 *
00021 *  As a counterpart to the access to the source code and  rights to copy,
00022 *  modify and redistribute granted by the license, users are provided only
00023 *  with a limited warranty  and the software's author,  the holder of the
00024 *  economic rights,  and the successive licensors  have only  limited
00025 *  liability. 
00026 *
00027 *  The fact that you are presently reading this means that you have had
00028 *  knowledge of the CeCILL-B license and that you accept its terms.
00029 * ------------------------------------------------------------------------ */                                                                         
00030 
00031 
00032 
00038 /****
00039 * Design and Developpement of BBTK GEditor
00040 * Ricardo A Corredor J <ra.corredor67@uniandes.edu.co>
00041 * RaC - 2010
00042 ****/
00043 
00044 #ifndef __GConnectorController_h__
00045 #define __GConnectorController_h__
00046 
00047 //Includes same project
00048 #include "GConnectorModel.h"
00049 #include "GObjectController.h"
00050 #include "manualConnectorContourView.h"
00051 #include "manualConnectorContourController.h"
00052 
00053 //Includes creaMaracasVisu
00054 
00055 //Includes std
00056 #include <iostream>
00057 
00058 
00059 
00060 namespace bbtk
00061 {
00062 
00063         class GConnectorController : public GObjectController
00064         {
00065 
00066         public: 
00067 
00068                 //Constructors
00069                 GConnectorController();
00070                 ~GConnectorController();
00071                 
00072                 //Public methods
00073 
00074                 // Methods from InteractorStyleMaracas
00075                 virtual bool  OnMouseMove();
00076                 virtual bool  OnLeftButtonDown(); 
00077                 virtual bool  OnLeftButtonUp();
00078                 virtual bool  OnLeftDClick();
00079                 virtual bool  OnRightButtonDown();
00080                 virtual bool  OnRightButtonUp();
00081                 virtual bool  OnMiddleButtonDown();
00082                 virtual bool  OnMiddleButtonUp();
00083 
00084                 // Implementation of the creaMaracasVisu controller
00085                 manualConnectorContourController* getManualContourController();
00086                 void setManualContourController(manualConnectorContourController* controller);
00087 
00088                 virtual void removeFromScene();
00089 
00090                 // Reports the end in the contour creation
00091                 void endContourCreation();
00092 
00093         private:
00094 
00095                 //Attributes
00096 
00097                 // Implementation of the creaMaracasVisu contour (manualContourControler) controller
00098                 manualConnectorContourController* _controller;
00099 
00100                 //Private Methods
00101 
00102         protected:
00103                 //Protected methods
00104                 
00105         };
00106 
00107 
00108 }
00109 // namespace bbtk
00110 #endif
00111 

Generated on Thu May 31 15:12:19 2012 for bbtkGEditor by  doxygen 1.5.7.1