]> Creatis software - bbtkGEditor.git/blob - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/InterpreterBBS.h
f23756e66bfae3cb54e3fe1348e0519ac5c47294
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / InterpreterBBS.h
1 /*=========================================================================                                                                               
2 Program:   bbtk
3 Module:    $RCSfile$
4 Language:  C++
5 Date:      $Date$
6 Version:   $Revision$
7 =========================================================================*/
8
9 /* ---------------------------------------------------------------------
10
11 * Copyright (c) CREATIS-LRMN (Centre de Recherche en Imagerie Medicale)
12 * Authors : Eduardo Davila, Laurent Guigues, Jean-Pierre Roux
13 *
14 *  This software is governed by the CeCILL-B license under French law and 
15 *  abiding by the rules of distribution of free software. You can  use, 
16 *  modify and/ or redistribute the software under the terms of the CeCILL-B 
17 *  license as circulated by CEA, CNRS and INRIA at the following URL 
18 *  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
19 *  or in the file LICENSE.txt.
20 *
21 *  As a counterpart to the access to the source code and  rights to copy,
22 *  modify and redistribute granted by the license, users are provided only
23 *  with a limited warranty  and the software's author,  the holder of the
24 *  economic rights,  and the successive licensors  have only  limited
25 *  liability. 
26 *
27 *  The fact that you are presently reading this means that you have had
28 *  knowledge of the CeCILL-B license and that you accept its terms.
29 * ------------------------------------------------------------------------ */                                                                         
30
31
32 /****
33 * Design and Developpement of BBTK GEditor
34 * Ricardo A Corredor J <eduardo.davila@creatis.insa-lyon.fr>
35 * RaC - 2010
36 ****/
37
38 #ifndef __ExecuterBBSG_h__
39 #define __ExecuterBBSG_h__
40
41 //Includes same project
42 #include "wxVtkSceneManager.h"
43
44 //Includes bbtk
45 #include "bbtkInterpreterVirtual.h"
46
47 //Includes std
48 #include <iostream>
49
50
51 //#include "bbtkSystem.h"
52 //#include "bbtkComplexBlackBox.h"
53 #include "bbtkFactory.h"
54
55 namespace bbtk
56 {
57         class InterpreterBBS : public InterpreterVirtual
58         {
59                 public:
60                 static Pointer New( wxVtkSceneManager* sceneManager, Factory::Pointer factory );
61                 InterpreterBBS( wxVtkSceneManager* sceneManager, Factory::Pointer factory );
62                 ~InterpreterBBS();
63                 
64                 //Public methods
65
66                 virtual void commandNew( const std::string& boxType, const std::string& boxName);
67                 
68                 virtual void commandConnection (const std::string &boxfrom,
69                                      const std::string &output,
70                                      const std::string &boxto,
71                                      const std::string &input);
72                 virtual void commandSet(const std::string &box,const std::string &input,const std::string &value);
73
74
75                 virtual void commandDefine(const std::string &name,const std::string &pack,const std::string &scriptfilename);
76                 virtual void commandEndDefine();
77                 
78                 virtual void commandExec(const std::string &word);
79                 
80                 virtual void commandAuthor(const std::string &author);
81                 virtual void commandCategory(const std::string &categorytype);
82                 virtual void commandDescription(const std::string &description);
83                 
84                 virtual void commandInput(const std::string &name,const std::string &box,const std::string &input,const std::string  &help);
85                 virtual void commandOutput(const std::string &name,const std::string &box,const std::string &output,const std::string  &help);
86
87
88                 double              _xGeneral;
89                 double              _yGeneral;
90                 double              _zGeneral;
91                 int                                     _countInputs;
92                 int                                     _countOutputs;
93                 int                                     _countBoxes;
94                 wxVtkSceneManager   *_sceneManager;
95                 Factory::Pointer    _factory;
96                 
97         private:
98
99                 //Private Attributes
100
101                 //Private Methods
102
103         protected:
104
105                 //Protected Attributes
106
107                 //Protected methods
108                 
109         };
110 }
111 // namespace bbtk
112 #endif
113