]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkOutputWindow.cxx
#2817 creaVtk Feature New Normal - avoid vtk messages OutputWindwo box (vtkOutputWindow)
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkOutputWindow.cxx
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #include "bbcreaVtkOutputWindow.h"
5 #include "bbcreaVtkPackage.h"
6 namespace bbcreaVtk
7 {
8
9 vtkOutputWindowBBTK::vtkOutputWindowBBTK() {}
10 void vtkOutputWindowBBTK::DisplayDebugText (const char *) {}
11 void vtkOutputWindowBBTK::DisplayText (const char *) {}
12 void vtkOutputWindowBBTK::DisplayErrorText (const char *) {}
13 void vtkOutputWindowBBTK::DisplayWarningText (const char *) {}
14 void vtkOutputWindowBBTK::DisplayGenericWarningText (const char *) {}
15
16
17
18 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,OutputWindow)
19 BBTK_BLACK_BOX_IMPLEMENTATION(OutputWindow,bbtk::AtomicBlackBox);
20 //===== 
21 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
22 //===== 
23 void OutputWindow::Process()
24 {
25 // THE MAIN PROCESSING METHOD BODY
26 //   Here we simply set the input 'In' value to the output 'Out'
27 //   And print out the output value
28 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
29 //    void bbSet{Input|Output}NAME(const TYPE&)
30 //    const TYPE& bbGet{Input|Output}NAME() const 
31 //    Where :
32 //    * NAME is the name of the input/output
33 //      (the one provided in the attribute 'name' of the tag 'input')
34 //    * TYPE is the C++ type of the input/output
35 //      (the one provided in the attribute 'type' of the tag 'input')
36
37 //    bbSetOutputOut( bbGetInputIn() );
38 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
39   
40         if (firsttime==true)
41         {
42                 firsttime=false;
43                 vtkOutputWindowBBTK *w= vtkOutputWindowBBTK::New();
44                 vtkOutputWindow::SetInstance( w );
45                 w->Delete();
46         }
47 }
48 //===== 
49 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
50 //===== 
51 void OutputWindow::bbUserSetDefaultValues()
52 {
53
54 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
55 //    Here we initialize the input 'In' to 0
56
57     firsttime=true;
58 //   bbSetInputIn(0);
59 }
60 //===== 
61 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
62 //===== 
63 void OutputWindow::bbUserInitializeProcessing()
64 {
65
66 //  THE INITIALIZATION METHOD BODY :
67 //    Here does nothing 
68 //    but this is where you should allocate the internal/output pointers 
69 //    if any 
70
71   
72 }
73 //===== 
74 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
75 //===== 
76 void OutputWindow::bbUserFinalizeProcessing()
77 {
78
79 //  THE FINALIZATION METHOD BODY :
80 //    Here does nothing 
81 //    but this is where you should desallocate the internal/output pointers 
82 //    if any
83   
84 }
85 }
86 // EO namespace bbcreaVtk
87
88