]> Creatis software - bbtkGEditor.git/blob - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/ExecuterBBSG.cxx
no message
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / ExecuterBBSG.cxx
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 *  \file 
33 *  \brief Class bbtk::GConnectorModel 
34 */
35
36
37 #include "ExecuterBBSG.h"
38
39 #include "bbtkExecuter.h"
40 #include "bbtkMessageManager.h"
41 #include "bbtkFactory.h"
42 #include "bbtkUtilities.h"
43
44
45
46 namespace bbtk
47 {
48
49         
50
51         EExecuterBBSG::Pointer EExecuterBBSG::New( wxVtkSceneManager* sceneManager,  Factory::Pointer factory )
52         {
53                      return MakePointer( new EExecuterBBSG( sceneManager, factory) );
54         }
55
56         
57         //=========================================================================
58
59         EExecuterBBSG::EExecuterBBSG( wxVtkSceneManager* sceneManager, Factory::Pointer factory )
60         {               
61                 _factory                = factory;
62                 _sceneManager   = sceneManager;
63                 
64                 _xGeneral               = 10;
65                 _yGeneral               = 10;
66                 _zGeneral               = 900;   //  ?????
67                 
68         }
69
70         //=========================================================================
71
72         EExecuterBBSG::~EExecuterBBSG()
73         {
74         }
75
76         //=========================================================================
77         
78         
79         
80 //--EED
81     /// Sets the inputs of the workspace : 
82     void EExecuterBBSG::SetInputs(const std::map<std::string,std::string>& m)
83         {
84         }
85         
86     /// Puts the executer in "no exec" mode, 
87     /// which creates but does not execute pipelines 
88     void EExecuterBBSG::SetNoExecMode(bool b)
89         {
90         }
91         
92     bool EExecuterBBSG::GetNoExecMode() const
93         {
94                 return true;
95         }
96         
97     /// Sets the mode of dialog of the executer for Root inputs 
98     void EExecuterBBSG::SetDialogMode(DialogModeType t)
99         {
100         }
101         
102     /// Puts the executer in "no error" mode, 
103     /// Errors do not stop execution (but warnings are produced)
104     void EExecuterBBSG::SetNoErrorMode(bool b)
105         {
106         }
107         
108     bool EExecuterBBSG::GetNoErrorMode() const  
109         {
110                 return true;
111         }
112         
113     //=================================================================
114         /// Loads a package
115     void EExecuterBBSG::LoadPackage(const std::string &name )
116         {
117         }
118         
119     /// Unloads a package
120     void EExecuterBBSG::UnLoadPackage(const std::string &name )
121         {
122         }
123         
124     /// Starts a package block  
125     void EExecuterBBSG::BeginPackage (const std::string &name )
126         {
127         }
128         
129     /// Ends a package block
130     void EExecuterBBSG::EndPackage ()
131         {
132         }
133         
134     /// Starts the definition of a new ComplexBlackBox in package pack
135     /// scriptfilename is the file from which the def is read
136     void EExecuterBBSG::Define (const std::string &name,
137                                                  const std::string& pack,
138                                                  const std::string &scriptfilename)
139         {
140         }
141         
142     /// Sets the file name to use for the current definition
143     /// (Used to set it after the Define command)
144     void EExecuterBBSG::SetCurrentFileName (const std::string &name )
145         {
146         }
147         
148     /// End the definition of a ComplexBlackBox
149     void EExecuterBBSG::EndDefine ()
150         {
151         }
152         
153     /// Sets the kind of the currently defined ComplexBlackBox
154     void EExecuterBBSG::Kind(const std::string& kind)
155         {
156         }
157         
158     /// Creates a new black box in current complex box
159     void EExecuterBBSG::Create ( const std::string& boxType, const std::string& boxName)
160         {
161                 std::string packagename = _factory->GetPackageNameOfaBlackBox(boxType);
162 //              int idBox                               = _sceneManager->createGBlackBox( 0,0, packagename ,boxType);
163 //              _sceneManager->configGBlackBox(idBox, _xGeneral,_yGeneral,_zGeneral,boxName, false , _xGeneral+100, _yGeneral-10 , _zGeneral );
164                 _yGeneral = _yGeneral + 30;
165                 printf("EED EExecuterBBSG::Create  packagename=%s    boxtype=%s   boxname=%s \n", packagename.c_str(), boxType.c_str(), boxName.c_str() );      
166         }
167         
168     /// Destroys a black box
169     void EExecuterBBSG::Destroy (const std::string &boxName)
170         {
171         }
172         
173     /// Clears the currently defined ComplexBlackBox
174     void EExecuterBBSG::Clear()
175         {
176         }
177         
178     /// Connects the output boxOutput to the input boxInput
179     void EExecuterBBSG::Connect (const std::string &boxfrom,
180                                                   const std::string &output,
181                                                   const std::string &boxto,
182                                                   const std::string &input)
183         {
184                 printf("EED EExecuterBBSG::Connect\n");
185         }
186         
187     /// Executes the box 
188     void EExecuterBBSG::Execute (const std::string &box)
189         {
190         }
191         
192     /// Defines an input of the current complex box
193     void EExecuterBBSG::DefineInput (const std::string &name,
194                                                           const std::string &box,
195                                                           const std::string &input,
196                                                           const std::string &help)
197         {
198         }
199         
200     /// Defines an output of the current complex box
201     void EExecuterBBSG::DefineOutput (const std::string &name,
202                                                            const std::string &box,
203                                                            const std::string &output,
204                                                            const std::string &help)
205         {
206         }
207         
208     /// sets the input of the box with the value
209     void EExecuterBBSG::Set (const std::string &box, 
210                                           const std::string &input, 
211                                           const std::string &value)
212         {
213                 printf("EED EExecuterBBSG::Set\n");
214         }
215         
216     /// gets the output of the box
217     std::string EExecuterBBSG::Get (const std::string &box, 
218                                                          const std::string &output)
219         {
220                 return "";
221         }
222         
223     /// changes the workspace name
224     void EExecuterBBSG::SetWorkspaceName( const std::string& n )
225         {
226         }
227         
228     ///Adds the authorName to the Box author list
229     void EExecuterBBSG::Author(const std::string &authorName)
230         {
231         }
232         
233     ///Adds the categories to the Box categoris list
234     void EExecuterBBSG::Category(const std::string &categories)
235         {
236         }
237         
238     /// The description string which explains what does the ComplexBox
239     void EExecuterBBSG::Description(const std::string &d)
240         {
241         }
242         
243     /// prints the list of the boxes of the current box
244     void EExecuterBBSG::PrintHelpListBoxes()
245         {
246         }
247         
248         /// Generate a HTML file with a gif file with the actual pipeline (Graphviz-dot needed). Returns the file path
249     std::string EExecuterBBSG::ShowGraph(const std::string &nameblackbox, 
250                                                                   const std::string &detailStr, 
251                                                                   const std::string &levelStr,
252                                                                   const std::string &output_file,
253                                                                   const std::string &custom_header,
254                                                                   const std::string &custom_title,
255                                                                   bool system_display)
256         {
257                 return "";
258         }
259         
260         /// Generate a HTML with a gif file with the actual pipeline (Graphviz-dot needed). Returns the file path
261     std::string EExecuterBBSG::ShowGraphInstances(const std::string &nameblackbox, int detail, int level, bool system_display)
262         {
263                 return "";
264         }
265         
266     /// Prints help on a black box
267     void EExecuterBBSG::PrintHelpBlackBox(const std::string &nameblackbox, const std::string &detailStr, const std::string &levelStr)
268         {
269         }
270         
271     void EExecuterBBSG::Reset()
272         {
273         }
274         
275     /// Sets the level of message for kind
276     void EExecuterBBSG::SetMessageLevel(const std::string &kind, int level)
277         {
278         }
279         
280     /// Prints help on the messages
281     void EExecuterBBSG::HelpMessages()
282         {
283         }
284         
285     /// Prints the string ... MORE : TO EXPLAIN 
286     void EExecuterBBSG::Print(const std::string & message)
287         {
288         }
289         
290 //--EED
291         
292
293 }  // EO namespace bbtk
294
295 // EOF
296