InterpreterBBS.h

Go to the documentation of this file.
00001 /*=========================================================================                                                                               
00002 Program:   bbtk
00003 Module:    $RCSfile: InterpreterBBS.h,v $
00004 Language:  C++
00005 Date:      $Date: 2010/06/22 09:17:27 $
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 /****
00033 * Design and Developpement of BBTK GEditor
00034 * Ricardo A Corredor J <eduardo.davila@creatis.insa-lyon.fr>
00035 * RaC - 2010
00036 ****/
00037 
00038 #ifndef __ExecuterBBSG_h__
00039 #define __ExecuterBBSG_h__
00040 
00041 //Includes same project
00042 #include "wxVtkSceneManager.h"
00043 
00044 //Includes bbtk
00045 #include "bbtkInterpreterVirtual.h"
00046 
00047 //Includes std
00048 #include <iostream>
00049 
00050 
00051 //#include "bbtkSystem.h"
00052 //#include "bbtkComplexBlackBox.h"
00053 #include "bbtkFactory.h"
00054 
00055 namespace bbtk
00056 {
00057         class InterpreterBBS : public InterpreterVirtual
00058         {
00059                 public:
00060                 static Pointer New( wxVtkSceneManager* sceneManager, Factory::Pointer factory );
00061                 InterpreterBBS( wxVtkSceneManager* sceneManager, Factory::Pointer factory );
00062                 ~InterpreterBBS();
00063                 
00064                 //Public methods
00065 
00066                 virtual void commandNew( const std::string& boxType, const std::string& boxName);
00067                 
00068                 virtual void commandConnection (const std::string &boxfrom,
00069                                      const std::string &output,
00070                                      const std::string &boxto,
00071                                      const std::string &input);
00072                 virtual void commandSet(const std::string &box,const std::string &input,const std::string &value);
00073 
00074 
00075                 virtual void commandDefine(const std::string &name,const std::string &pack,const std::string &scriptfilename);
00076                 virtual void commandEndDefine();
00077                 
00078                 virtual void commandExec(const std::string &word);
00079                 
00080                 virtual void commandAuthor(const std::string &author);
00081                 virtual void commandCategory(const std::string &categorytype);
00082                 virtual void commandDescription(const std::string &description);
00083                 
00084                 virtual void commandInput(const std::string &name,const std::string &box,const std::string &input,const std::string  &help);
00085                 virtual void commandOutput(const std::string &name,const std::string &box,const std::string &output,const std::string  &help);
00086 
00087 
00088                 double              _xGeneral;
00089                 double              _yGeneral;
00090                 double              _zGeneral;
00091                 int                                     _countInputs;
00092                 int                                     _countOutputs;
00093                 int                                     _countBoxes;
00094                 wxVtkSceneManager   *_sceneManager;
00095                 Factory::Pointer    _factory;
00096                 
00097         private:
00098 
00099                 //Private Attributes
00100 
00101                 //Private Methods
00102 
00103         protected:
00104 
00105                 //Protected Attributes
00106 
00107                 //Protected methods
00108                 
00109         };
00110 }
00111 // namespace bbtk
00112 #endif
00113 

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