xmsinterp  1.0
InterpSignals.cpp
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
8 //------------------------------------------------------------------------------
9 
10 //----- Included files ---------------------------------------------------------
11 
12 // 1. Precompiled header
13 
14 // 2. My header
16 
17 // 3. Standard Library Headers
18 
19 // 4. External Library Headers
20 
21 // 5. Shared Headers
22 
23 // 6. Non-shared Headers
24 
25 //----- Forward declarations ---------------------------------------------------
26 
27 //----- External globals -------------------------------------------------------
28 
29 //----- Namespace declaration --------------------------------------------------
30 namespace xms
31 {
32 //----- Constants / Enumerations -----------------------------------------------
33 
34 //----- Classes / Structs ------------------------------------------------------
35 
36 //----- Internal functions -----------------------------------------------------
37 namespace interp
38 {
39 namespace connectGet
40 {
41 boost::signals2::signal<void(int)>& SetDataIndex();
42 boost::signals2::signal<void(int, double)>& FillWtArray();
43 }
44 }
45 
46 //----- Class / Function definitions -------------------------------------------
47 
48 //------------------------------------------------------------------------------
50 //------------------------------------------------------------------------------
51 boost::signals2::signal<void(int)>& interp::connectGet::SetDataIndex()
52 {
53  static boost::signals2::signal<void(int)> con;
54  return con;
55 } // interp::connectGet::SetDataIndex
56 //------------------------------------------------------------------------------
58 //------------------------------------------------------------------------------
59 boost::signals2::signal<void(int, double)>& interp::connectGet::FillWtArray()
60 {
61  static boost::signals2::signal<void(int, double)> con;
62  return con;
63 } // interp::connectGet::SetDataIndex
64 //------------------------------------------------------------------------------
68 //------------------------------------------------------------------------------
69 boost::signals2::connection interp::connectSet::SetDataIndex(
70  const boost::signals2::signal<void(int)>::slot_type& a_slot)
71 {
72  return (interp::connectGet::SetDataIndex().connect(a_slot));
73 } // interp::connectSet::SetDataIndex
74 //------------------------------------------------------------------------------
78 //------------------------------------------------------------------------------
79 boost::signals2::connection interp::connectSet::FillWtArray(
80  const boost::signals2::signal<void(int, double)>::slot_type& a_slot)
81 {
82  return (interp::connectGet::FillWtArray().connect(a_slot));
83 } // interp::connectSet::FillWtArray
84 //------------------------------------------------------------------------------
87 //------------------------------------------------------------------------------
88 void inSetDataIndex(int val)
89 {
90  interp::connectGet::SetDataIndex()(val);
91 } // inSetDataIndex
92 //------------------------------------------------------------------------------
96 //------------------------------------------------------------------------------
97 void inFillWtArray(int id, double wt)
98 {
99  interp::connectGet::FillWtArray()(id, wt);
100 } // inFillWtArray
101 
102 } // namespace xms
Signals that can be called when performing idw or kriging interpolation. Used by GMS with Pilot Point...
boost::signals2::signal< void(int, double)> & FillWtArray()
static file variable
boost::signals2::signal< void(int)> & SetDataIndex()
static file variable
void inSetDataIndex(int val)
Calls the SetDataIndex signal.
void inFillWtArray(int id, double wt)
calls the FillWtArray signal