Quantum Fog  0.9.3
CUSTOM_ND.h
1 #pragma once
2 
3 
4 
5 #include "QFog_constants.h"
6 
7 
8 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\.
9 
10  #include "C_COLORS.h"
11  class C_MAIN_VIEW;
12  class QB_NET;
13  class C_PI_WIND;
14  class C_BEAM_SPL_AMP_GEN;
15 
16 #endif //_mac_gui_app \\............................................//
17 
18 
19 
20 #include "VECTOR.h"
21 #include "STRINGY.h"
22 #include "NODE.h"
23 #include "STRETCH_OR_FOLD.h"
24 
25 
26 //******************************************
27 class CUSTOM_ND : public NODE
28 {
29 private:
30 public:
31 
32  CUSTOM_ND();
33  virtual ~CUSTOM_ND();
34 
35 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\.
36 
37 private:
38  // The node has one s/d port that can carry unlimited s and d loads.
39  // loc = the center of the icon,
40  // greeting_rad = sel_rad
41  // docking_rad = mask_rad
42  RGBColor its_color;
43 public:
44  CUSTOM_ND( const Point & m_down_pt);
45 
46  STRINGY get_class_str();
47  ND_CLASS_ID get_class_id();
48 
49  virtual VOID set_st_names_to_default();
50 
51  const RGBColor & get_color() const;
52  BOOLEAN has_color();
53  VOID set_color(const RGBColor & color);
54 
55  VOID draw();
56  VOID call_amp_gen(QB_NET * net_p, C_PI_WIND * pi_wind_p){};
57 
58 #endif //_mac_gui_app \\............................................//
59 
60 };
61 #pragma mark -
62 
63 
64 #ifdef _mac_gui_app //''''''''''''''''''''''''''''''''''''''''''''\\.
65 
66 //******************************************
67 inline
68 STRINGY CUSTOM_ND::get_class_str()
69 {
70  return "CUSTOM_ND";
71 }
72 //******************************************
73 inline
74 ND_CLASS_ID CUSTOM_ND::get_class_id()
75 {
76  return CUSTOM_ND_id;
77 }
78 //******************************************
79 inline
80 VOID CUSTOM_ND::set_st_names_to_default()
81 {
82  set_st_names_to_monotone_seq(1);
83 }
84 //******************************************
85 inline
86 const RGBColor & CUSTOM_ND::get_color() const
87 {
88  return its_color;
89 }
90 //******************************************
91 inline
92 BOOLEAN CUSTOM_ND::has_color()
93 {
94  return true;
95 }
96 //******************************************
97 inline
98 VOID CUSTOM_ND::set_color(
99 const RGBColor & color) //in
100 {
101  its_color = color;
102 }
103 #endif //_mac_gui_app \\............................................//
104 
105 
Definition: C_MAIN_VIEW.h:24
Definition: STRINGY.h:22
Definition: C_BEAM_SPL_AMP_GEN.h:11
Definition: QB_NET.h:34
Definition: NODE.h:52
Definition: CUSTOM_ND.h:27
Definition: C_PI_WIND.h:18