Quantum Fog  0.9.3
SG_MAGNET.h
1 #pragma once
2 #include "QFog_constants.h"
3 #include "VECTOR.h"
4 #include "STRINGY.h"
5 #include "NODE.h"
6 #include "STRETCH_OR_FOLD.h"
7 
8 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\.
9  class QB_NET;
10  class C_PI_WIND;
11  class C_SG_MAGNET_AMP_GEN;
12 #endif //_mac_gui_app \\............................................//
13 
14 
15 //SG = Stern-Gerlach
16 //******************************************
17 class SG_MAGNET: public NODE
18 {
19 private:
20 
21 public:
22 
23  SG_MAGNET();
24  virtual ~SG_MAGNET();
25 
26 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\.
27 
28 
29 private:
30 
31  // The node has one s/d port that can carry unlimited s and d loads.
32  // loc = the center of the icon,
33  // greeting_rad = sel_rad
34  // docking_rad = mask_rad
35 public:
36  SG_MAGNET( const Point & m_down_pt);
37 
38  STRINGY get_class_str();
39  ND_CLASS_ID get_class_id();
40 
41  VOID set_st_names_to_default();
42 
43  VOID draw();
44 
45 
46  virtual VOID add_in_nd(USHORT nd_id, USHORT nd_degen);
47  virtual VOID del_in_nd(USHORT nd_id);
48  virtual VOID reorder_in_nds(const UI_MAP & map, BOOLEAN touch_tm);
49 
50  VOID call_amp_gen(QB_NET * net_p, C_PI_WIND * pi_wind_p);
51  VOID obey_amp_gen(const USHORT * in_sums_p, const USHORT * in_rows_p, const SHORT * in_spins_p);
52 
53 #endif //_mac_gui_app \\............................................//
54 
55 
56 };
57 #pragma mark -
58 
59 
60 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\.
61 
62 //******************************************
63 inline
64 STRINGY SG_MAGNET::get_class_str()
65 {
66  return "SG_MAGNET";
67 }
68 //******************************************
69 inline
70 ND_CLASS_ID SG_MAGNET::get_class_id()
71 {
72  return SG_MAGNET_id;
73 }
74 
75 #endif //_mac_gui_app \\............................................//
76 
77 
78 
Definition: STRINGY.h:22
Definition: C_SG_MAGNET_AMP_GEN.h:20
Definition: QB_NET.h:34
Definition: NODE.h:52
Definition: SG_MAGNET.h:17
Definition: C_PI_WIND.h:18
Definition: UI_MAP.h:7