Quantum Fog  0.9.3
C_SG_MAGNET_TABLE.h
1 #pragma once
2 
3 #include "QFog_constants.h"
4 #include "C_EDIT_TABLE.h"
5 #include "VECTOR.h"
6 class QB_NET;
8 
9 
10 //******************************************
12 {
13 protected:
14  USHORT its_nd;
15  QB_NET * its_net_p;
16  C_SG_MAGNET_AMP_GEN * its_amp_gen_p;
17  //these vectors are initially of zero length:
18  VECTOR<SHORT> its_spins; // 0 for -+, 1 for +, -1 for -; in 1-1 correspodence with its_in_nds
19  VECTOR<DOUBLE> its_thetas;// in degrees; in 1-1 correspodence with its_in_nds
20  VECTOR<DOUBLE> its_phis; // in degrees; in 1-1 correspodence with its_in_nds
21 
22 public:
23 
24  C_SG_MAGNET_TABLE(LStream * inStream);
25  virtual ~C_SG_MAGNET_TABLE();
26  VOID init(USHORT nd_id, QB_NET * net_p, C_SG_MAGNET_AMP_GEN * amp_gen);
27 
28  VOID get_cell_data(const STableCell & cell, LStr255 & str);
29  VOID set_cell_data(const STableCell & cell, const LStr255 & str);
30  VOID DrawCell(const STableCell & inCell, const Rect & inLocalRect);
31  BOOLEAN str_is_valid_cell_entry(const STableCell & cell, Str255 pstr);
32  VOID ClickCell(const STableCell & inCell, const SMouseDownEvent & inMouseDown);
33 
34  VOID get_spin_theta_phi_vecs(VECTOR<SHORT> & spins, VECTOR<DOUBLE> & thetas, VECTOR<DOUBLE> & phis); //out
35 
36 };
Definition: C_SG_MAGNET_AMP_GEN.h:20
Definition: QB_NET.h:34
Definition: C_SG_MAGNET_TABLE.h:11
Definition: C_EDIT_TABLE.h:8