]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkStreamLineColorInfo.cxx
#2453 creaVtk Feature New Normal - Stream Lines segmentation by Scalars
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkStreamLineColorInfo.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 "bbcreaVtkStreamLineColorInfo.h"
5 #include "bbcreaVtkPackage.h"
6
7
8 #include "vtkStreamLineCreateColorInfo.h"
9
10 namespace bbcreaVtk
11 {
12
13 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,StreamLineColorInfo)
14 BBTK_BLACK_BOX_IMPLEMENTATION(StreamLineColorInfo,bbtk::AtomicBlackBox);
15 //===== 
16 // 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)
17 //===== 
18 void StreamLineColorInfo::Process()
19 {
20
21 // THE MAIN PROCESSING METHOD BODY
22 //   Here we simply set the input 'In' value to the output 'Out'
23 //   And print out the output value
24 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
25 //    void bbSet{Input|Output}NAME(const TYPE&)
26 //    const TYPE& bbGet{Input|Output}NAME() const 
27 //    Where :
28 //    * NAME is the name of the input/output
29 //      (the one provided in the attribute 'name' of the tag 'input')
30 //    * TYPE is the C++ type of the input/output
31 //      (the one provided in the attribute 'type' of the tag 'input')
32
33 //    bbSetOutputOut( bbGetInputIn() );
34 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
35   
36         vtkStreamLineCreateColorInfo colorinfo;
37         colorinfo.SetStreamLinesIn( bbGetInputIn() );
38         colorinfo.Process();
39         bbSetOutputOut( colorinfo.GetStreamLinesOut() );
40 }
41
42 //===== 
43 // 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)
44 //===== 
45 void StreamLineColorInfo::bbUserSetDefaultValues()
46 {
47
48 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
49 //    Here we initialize the input 'In' to 0
50    bbSetInputIn(NULL);
51   
52 }
53
54 //===== 
55 // 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)
56 //===== 
57 void StreamLineColorInfo::bbUserInitializeProcessing()
58 {
59
60 //  THE INITIALIZATION METHOD BODY :
61 //    Here does nothing 
62 //    but this is where you should allocate the internal/output pointers 
63 //    if any   
64 }
65
66 //===== 
67 // 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)
68 //===== 
69 void StreamLineColorInfo::bbUserFinalizeProcessing()
70 {
71 //  THE FINALIZATION METHOD BODY :
72 //    Here does nothing 
73 //    but this is where you should desallocate the internal/output pointers 
74 //    if any 
75 }
76
77 }
78 // EO namespace bbcreaVtk
79
80