fermisurfer  2.0.0
fermisurfer
menu.hpp
Go to the documentation of this file.
1 /*
2 The MIT License (MIT)
3 
4 Copyright (c) 2014 Mitsuaki KAWAMURA
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12 
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15 
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 THE SOFTWARE.
23 */
24 #if ! defined(FERMISURFER_MENU_H)
25 #define FERMISURFER_MENU_H
26 
27 #include "wx/wx.h"
28 #include "operation.hpp"
29 #include "wx/gbsizer.h"
30 #include "wx/splitter.h"
31 
34 
35 // The frame containing the GL canvas
36 class MyFrame : public wxFrame
37 {
38 public:
39  MyFrame(wxFrame* frame,
40  const wxString& title,
41  const wxPoint& pos = wxDefaultPosition,
42  const wxSize& size = wxDefaultSize,
43  long style = wxDEFAULT_FRAME_STYLE);
44 
45  virtual ~MyFrame();
46  void modify_band();
48  wxGridBagSizer* gbsizer;
49  wxScrolledWindow* panel;
50  wxRadioBox* radiobox_color;
51  wxRadioBox* radiobox_tetra;
52  wxSplitterWindow* splitterV;
53  wxSplitterWindow* splitterH;
54  /*
55  Text Box
56 */
57  wxTextCtrl* textbox_scale;
58  wxTextCtrl* textbox_positionx;
59  wxTextCtrl* textbox_positiony;
60  wxTextCtrl* textbox_rotatex;
61  wxTextCtrl* textbox_rotatey;
62  wxTextCtrl* textbox_rotatez;
63  wxTextCtrl* textbox_min;
64  wxTextCtrl* textbox_max;
65  wxTextCtrl* textbox_linewidth;
66  wxTextCtrl* textbox_BackGroundR;
67  wxTextCtrl* textbox_BackGroundG;
68  wxTextCtrl* textbox_BackGroundB;
69  wxTextCtrl* textbox_LineColorR;
70  wxTextCtrl* textbox_LineColorG;
71  wxTextCtrl* textbox_LineColorB;
72  wxTextCtrl* textbox_BZ_number0;
73  wxTextCtrl* textbox_BZ_number1;
74  wxTextCtrl* textbox_BZ_number2;
75  wxTextCtrl* textbox_SectionR;
76  wxTextCtrl* textbox_SectionG;
77  wxTextCtrl* textbox_SectionB;
78  wxTextCtrl* textbox_ArrowStart0;
79  wxTextCtrl* textbox_ArrowStart1;
80  wxTextCtrl* textbox_ArrowStart2;
81  wxTextCtrl* textbox_ArrowEnd0;
82  wxTextCtrl* textbox_ArrowEnd1;
83  wxTextCtrl* textbox_ArrowEnd2;
84  wxTextCtrl* textbox_ArrowDiff0;
85  wxTextCtrl* textbox_ArrowDiff1;
86  wxTextCtrl* textbox_ArrowDiff2;
87  wxTextCtrl* textbox_sphereX;
88  wxTextCtrl* textbox_sphereY;
89  wxTextCtrl* textbox_sphereZ;
90  wxTextCtrl* textbox_sphereR;
91 
92 private:
93  void OnExit(wxCommandEvent& event);
94  void check_band(wxCommandEvent& event);
95  void radio_brillouinzone(wxCommandEvent& event);
96  void textctrl_BackGround(wxCommandEvent& event);
97  void textctrl_LineColor(wxCommandEvent& event);
98  void check_colorbar(wxCommandEvent& event);
99  void radiovalue_colorscale(wxCommandEvent& event);
100  void checkvalue_equator(wxCommandEvent& event);
101  void textctrl_interpol(wxCommandEvent& event);
102  void radio_lighting(wxCommandEvent& event);
103  void textctrl_line(wxCommandEvent& event);
104  void radio_mouse(wxCommandEvent& event);
105  void check_nodeline(wxCommandEvent& event);
106  void radiovalue_section(wxCommandEvent& event);
107  void textctrl_shift(wxCommandEvent& event);
108  void radio_stereo(wxCommandEvent& event);
109  void radio_tetra(wxCommandEvent& event);
110  void textctrl_view(wxCommandEvent& event);
111  void button_refresh(wxCommandEvent& event);
112  void button_compute(wxCommandEvent& event);
113  void radio_BarColor(wxCommandEvent& event);
114  void button_section(wxCommandEvent& event);
115  void textctrl_BZ_number(wxCommandEvent& event);
116  void textctrl_Section(wxCommandEvent& event);
117  void textctrl_Band(wxCommandEvent& event);
118  void textctrl_Arrow(wxCommandEvent& event);
119  void textctrl_sphere(wxCommandEvent& event);
120  //wxDECLARE_EVENT_TABLE();
121 };
122 
123 #endif // FERMISURFER_MENU_H
operation.hpp
MyFrame::textbox_rotatex
wxTextCtrl * textbox_rotatex
Definition: menu.hpp:60
MyFrame::textbox_positiony
wxTextCtrl * textbox_positiony
Definition: menu.hpp:59
MyFrame::textbox_sphereR
wxTextCtrl * textbox_sphereR
Definition: menu.hpp:90
MyFrame::textctrl_Arrow
void textctrl_Arrow(wxCommandEvent &event)
Change arrow (::blackback)
Definition: menu.cpp:205
MyFrame::textbox_LineColorB
wxTextCtrl * textbox_LineColorB
Definition: menu.hpp:71
MyFrame::textbox_ArrowEnd1
wxTextCtrl * textbox_ArrowEnd1
Definition: menu.hpp:82
MyFrame::radio_brillouinzone
void radio_brillouinzone(wxCommandEvent &event)
Change Brillouin zone (fbz)
Definition: menu.cpp:506
MyFrame::radiovalue_colorscale
void radiovalue_colorscale(wxCommandEvent &event)
Change color scale mode (color_scale)
Definition: menu.cpp:579
MyFrame::textbox_SectionG
wxTextCtrl * textbox_SectionG
Definition: menu.hpp:76
MyFrame::textbox_SectionR
wxTextCtrl * textbox_SectionR
Definition: menu.hpp:75
MyFrame::textbox_scale
wxTextCtrl * textbox_scale
Definition: menu.hpp:57
MyFrame::textctrl_interpol
void textctrl_interpol(wxCommandEvent &event)
Modify interpolation ratio.
Definition: menu.cpp:654
MyFrame::radiobox_color
wxRadioBox * radiobox_color
Definition: menu.hpp:50
MyFrame::textctrl_BackGround
void textctrl_BackGround(wxCommandEvent &event)
Change background color (::blackback)
Definition: menu.cpp:428
MyFrame::textctrl_shift
void textctrl_shift(wxCommandEvent &event)
Shift Fermi energy.
Definition: menu.cpp:766
MyFrame::textctrl_sphere
void textctrl_sphere(wxCommandEvent &event)
Change Line color color (::blackback)
Definition: menu.cpp:275
MyFrame::check_band
void check_band(wxCommandEvent &event)
Toggle the appearance of each band (draw_band)
Definition: menu.cpp:490
MyFrame::textbox_BZ_number2
wxTextCtrl * textbox_BZ_number2
Definition: menu.hpp:74
MyFrame::radiovalue_section
void radiovalue_section(wxCommandEvent &event)
Modify and toggle appearance of 2D Fermi lines (lsection)
Definition: menu.cpp:724
MyFrame::textbox_rotatez
wxTextCtrl * textbox_rotatez
Definition: menu.hpp:62
MyFrame::textbox_min
wxTextCtrl * textbox_min
Definition: menu.hpp:63
MyFrame::check_nodeline
void check_nodeline(wxCommandEvent &event)
Toggle apearance of nodale-line.
Definition: menu.cpp:713
MyFrame::textbox_BackGroundG
wxTextCtrl * textbox_BackGroundG
Definition: menu.hpp:67
MyFrame::button_section
void button_section(wxCommandEvent &event)
Definition: menu.cpp:171
MyFrame::textbox_LineColorR
wxTextCtrl * textbox_LineColorR
Definition: menu.hpp:69
MyFrame::textctrl_line
void textctrl_line(wxCommandEvent &event)
Line width.
Definition: menu.cpp:689
MyFrame::radio_tetra
void radio_tetra(wxCommandEvent &event)
Change tetrahedron (itet)
Definition: menu.cpp:790
MyFrame::textbox_SectionB
wxTextCtrl * textbox_SectionB
Definition: menu.hpp:77
MyFrame::modify_band
void modify_band()
Definition: menu.cpp:1271
MyFrame::textbox_sphereZ
wxTextCtrl * textbox_sphereZ
Definition: menu.hpp:89
MyFrame::textbox_ArrowStart1
wxTextCtrl * textbox_ArrowStart1
Definition: menu.hpp:79
compute_patch_segment
void compute_patch_segment()
Definition: menu.cpp:53
MyFrame::textbox_sphereY
wxTextCtrl * textbox_sphereY
Definition: menu.hpp:88
MyFrame::textbox_BZ_number0
wxTextCtrl * textbox_BZ_number0
Definition: menu.hpp:72
MyFrame::textbox_sphereX
wxTextCtrl * textbox_sphereX
Definition: menu.hpp:87
MyFrame::textbox_LineColorG
wxTextCtrl * textbox_LineColorG
Definition: menu.hpp:70
MyFrame::m_canvas
TestGLCanvas * m_canvas
Definition: menu.hpp:47
MyFrame::textbox_BZ_number1
wxTextCtrl * textbox_BZ_number1
Definition: menu.hpp:73
MyFrame::gbsizer
wxGridBagSizer * gbsizer
Definition: menu.hpp:48
MyFrame::textbox_ArrowEnd2
wxTextCtrl * textbox_ArrowEnd2
Definition: menu.hpp:83
MyFrame::textbox_linewidth
wxTextCtrl * textbox_linewidth
Definition: menu.hpp:65
MyFrame
Definition: menu.hpp:36
MyFrame::textctrl_Section
void textctrl_Section(wxCommandEvent &event)
Change section color (::blackback)
Definition: menu.cpp:368
MyFrame::radio_mouse
void radio_mouse(wxCommandEvent &event)
Change the function associated to the mouse movement(::lmouse)
Definition: menu.cpp:701
MyFrame::splitterV
wxSplitterWindow * splitterV
Definition: menu.hpp:52
MyFrame::textctrl_Band
void textctrl_Band(wxCommandEvent &event)
Change band color (::blackback)
Definition: menu.cpp:396
MyFrame::textctrl_view
void textctrl_view(wxCommandEvent &event)
Setting of view.
Definition: menu.cpp:804
MyFrame::button_refresh
void button_refresh(wxCommandEvent &event)
Definition: menu.cpp:158
MyFrame::textbox_max
wxTextCtrl * textbox_max
Definition: menu.hpp:64
MyFrame::textbox_BackGroundB
wxTextCtrl * textbox_BackGroundB
Definition: menu.hpp:68
MyFrame::textbox_ArrowDiff1
wxTextCtrl * textbox_ArrowDiff1
Definition: menu.hpp:85
MyFrame::~MyFrame
virtual ~MyFrame()
Definition: menu.cpp:1259
MyFrame::textbox_ArrowStart0
wxTextCtrl * textbox_ArrowStart0
Definition: menu.hpp:78
MyFrame::textbox_ArrowDiff0
wxTextCtrl * textbox_ArrowDiff0
Definition: menu.hpp:84
MyFrame::radio_lighting
void radio_lighting(wxCommandEvent &event)
Toggle Lighting.
Definition: menu.cpp:668
MyFrame::radio_stereo
void radio_stereo(wxCommandEvent &event)
Tern stereogram (lstereo)
Definition: menu.cpp:779
MyFrame::panel
wxScrolledWindow * panel
Definition: menu.hpp:49
MyFrame::textbox_ArrowStart2
wxTextCtrl * textbox_ArrowStart2
Definition: menu.hpp:80
MyFrame::button_compute
void button_compute(wxCommandEvent &event)
Definition: menu.cpp:164
MyFrame::textbox_ArrowEnd0
wxTextCtrl * textbox_ArrowEnd0
Definition: menu.hpp:81
TestGLCanvas
Definition: operation.hpp:30
MyFrame::radiobox_tetra
wxRadioBox * radiobox_tetra
Definition: menu.hpp:51
MyFrame::textbox_positionx
wxTextCtrl * textbox_positionx
Definition: menu.hpp:58
MyFrame::checkvalue_equator
void checkvalue_equator(wxCommandEvent &event)
Modify and toggle appearance of equator (lequator)
Definition: menu.cpp:614
MyFrame::textctrl_LineColor
void textctrl_LineColor(wxCommandEvent &event)
Change Line color color (::blackback)
Definition: menu.cpp:340
MyFrame::radio_BarColor
void radio_BarColor(wxCommandEvent &event)
Change Brillouin zone (fbz)
Definition: menu.cpp:521
MyFrame::splitterH
wxSplitterWindow * splitterH
Definition: menu.hpp:53
MyFrame::textctrl_BZ_number
void textctrl_BZ_number(wxCommandEvent &event)
Change Number of Brillouin zone.
Definition: menu.cpp:462
MyFrame::OnExit
void OnExit(wxCommandEvent &event)
Definition: menu.cpp:1265
MyFrame::MyFrame
MyFrame(wxFrame *frame, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE)
Definition: menu.cpp:879
MyFrame::check_colorbar
void check_colorbar(wxCommandEvent &event)
Toggle Colorbar (lcolorbar)
Definition: menu.cpp:568
MyFrame::textbox_ArrowDiff2
wxTextCtrl * textbox_ArrowDiff2
Definition: menu.hpp:86
refresh_patch_segment
void refresh_patch_segment()
Definition: menu.cpp:89
MyFrame::textbox_BackGroundR
wxTextCtrl * textbox_BackGroundR
Definition: menu.hpp:66
MyFrame::textbox_rotatey
wxTextCtrl * textbox_rotatey
Definition: menu.hpp:61