fermisurfer  2.0.0
fermisurfer
Public Member Functions | Public Attributes | Private Member Functions | List of all members
MyFrame Class Reference

#include <menu.hpp>

Inheritance diagram for MyFrame:
Inheritance graph
[legend]
Collaboration diagram for MyFrame:
Collaboration graph
[legend]

Public Member Functions

 MyFrame (wxFrame *frame, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE)
 
virtual ~MyFrame ()
 
void modify_band ()
 

Public Attributes

TestGLCanvasm_canvas
 
wxGridBagSizer * gbsizer
 
wxScrolledWindow * panel
 
wxRadioBox * radiobox_color
 
wxRadioBox * radiobox_tetra
 
wxSplitterWindow * splitterV
 
wxSplitterWindow * splitterH
 
wxTextCtrl * textbox_scale
 
wxTextCtrl * textbox_positionx
 
wxTextCtrl * textbox_positiony
 
wxTextCtrl * textbox_rotatex
 
wxTextCtrl * textbox_rotatey
 
wxTextCtrl * textbox_rotatez
 
wxTextCtrl * textbox_min
 
wxTextCtrl * textbox_max
 
wxTextCtrl * textbox_linewidth
 
wxTextCtrl * textbox_BackGroundR
 
wxTextCtrl * textbox_BackGroundG
 
wxTextCtrl * textbox_BackGroundB
 
wxTextCtrl * textbox_LineColorR
 
wxTextCtrl * textbox_LineColorG
 
wxTextCtrl * textbox_LineColorB
 
wxTextCtrl * textbox_BZ_number0
 
wxTextCtrl * textbox_BZ_number1
 
wxTextCtrl * textbox_BZ_number2
 
wxTextCtrl * textbox_SectionR
 
wxTextCtrl * textbox_SectionG
 
wxTextCtrl * textbox_SectionB
 
wxTextCtrl * textbox_ArrowStart0
 
wxTextCtrl * textbox_ArrowStart1
 
wxTextCtrl * textbox_ArrowStart2
 
wxTextCtrl * textbox_ArrowEnd0
 
wxTextCtrl * textbox_ArrowEnd1
 
wxTextCtrl * textbox_ArrowEnd2
 
wxTextCtrl * textbox_ArrowDiff0
 
wxTextCtrl * textbox_ArrowDiff1
 
wxTextCtrl * textbox_ArrowDiff2
 
wxTextCtrl * textbox_sphereX
 
wxTextCtrl * textbox_sphereY
 
wxTextCtrl * textbox_sphereZ
 
wxTextCtrl * textbox_sphereR
 

Private Member Functions

void OnExit (wxCommandEvent &event)
 
void check_band (wxCommandEvent &event)
 Toggle the appearance of each band (draw_band) More...
 
void radio_brillouinzone (wxCommandEvent &event)
 Change Brillouin zone (fbz) More...
 
void textctrl_BackGround (wxCommandEvent &event)
 Change background color (::blackback) More...
 
void textctrl_LineColor (wxCommandEvent &event)
 Change Line color color (::blackback) More...
 
void check_colorbar (wxCommandEvent &event)
 Toggle Colorbar (lcolorbar) More...
 
void radiovalue_colorscale (wxCommandEvent &event)
 Change color scale mode (color_scale) More...
 
void checkvalue_equator (wxCommandEvent &event)
 Modify and toggle appearance of equator (lequator) More...
 
void textctrl_interpol (wxCommandEvent &event)
 Modify interpolation ratio. More...
 
void radio_lighting (wxCommandEvent &event)
 Toggle Lighting. More...
 
void textctrl_line (wxCommandEvent &event)
 Line width. More...
 
void radio_mouse (wxCommandEvent &event)
 Change the function associated to the mouse movement(::lmouse) More...
 
void check_nodeline (wxCommandEvent &event)
 Toggle apearance of nodale-line. More...
 
void radiovalue_section (wxCommandEvent &event)
 Modify and toggle appearance of 2D Fermi lines (lsection) More...
 
void textctrl_shift (wxCommandEvent &event)
 Shift Fermi energy. More...
 
void radio_stereo (wxCommandEvent &event)
 Tern stereogram (lstereo) More...
 
void radio_tetra (wxCommandEvent &event)
 Change tetrahedron (itet) More...
 
void textctrl_view (wxCommandEvent &event)
 Setting of view. More...
 
void button_refresh (wxCommandEvent &event)
 
void button_compute (wxCommandEvent &event)
 
void radio_BarColor (wxCommandEvent &event)
 Change Brillouin zone (fbz) More...
 
void button_section (wxCommandEvent &event)
 
void textctrl_BZ_number (wxCommandEvent &event)
 Change Number of Brillouin zone. More...
 
void textctrl_Section (wxCommandEvent &event)
 Change section color (::blackback) More...
 
void textctrl_Band (wxCommandEvent &event)
 Change band color (::blackback) More...
 
void textctrl_Arrow (wxCommandEvent &event)
 Change arrow (::blackback) More...
 
void textctrl_sphere (wxCommandEvent &event)
 Change Line color color (::blackback) More...
 

Detailed Description

Definition at line 36 of file menu.hpp.

Constructor & Destructor Documentation

◆ MyFrame()

MyFrame::MyFrame ( wxFrame *  frame,
const wxString &  title,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxDEFAULT_FRAME_STYLE 
)

Definition at line 879 of file menu.cpp.

◆ ~MyFrame()

MyFrame::~MyFrame ( )
virtual

Definition at line 1259 of file menu.cpp.

References m_canvas.

Member Function Documentation

◆ button_compute()

void MyFrame::button_compute ( wxCommandEvent &  event)
private
Parameters
[in]event[in] Selected menu

Definition at line 164 of file menu.cpp.

References compute_patch_segment(), and free_patch().

Here is the call graph for this function:

◆ button_refresh()

void MyFrame::button_refresh ( wxCommandEvent &  event)
private
Parameters
[in]event[in] Selected menu

Definition at line 158 of file menu.cpp.

◆ button_section()

void MyFrame::button_section ( wxCommandEvent &  event)
private
Parameters
[in]event[in] Selected menu

Definition at line 171 of file menu.cpp.

References bzl2d_proj, draw_band, kv2d, n2d, nb, nbzl2d, and terminal.

◆ check_band()

void MyFrame::check_band ( wxCommandEvent &  event)
private

Toggle the appearance of each band (draw_band)

Parameters
[in]event[in] Selected menu

Definition at line 490 of file menu.cpp.

References draw_band, and icheck_band.

Referenced by modify_band().

Here is the caller graph for this function:

◆ check_colorbar()

void MyFrame::check_colorbar ( wxCommandEvent &  event)
private

Toggle Colorbar (lcolorbar)

Parameters
[in]event[in] Selected menu

Definition at line 568 of file menu.cpp.

References lcolorbar.

◆ check_nodeline()

void MyFrame::check_nodeline ( wxCommandEvent &  event)
private

Toggle apearance of nodale-line.

Parameters
[in]event[in] Selected menu

Definition at line 713 of file menu.cpp.

References nodeline.

◆ checkvalue_equator()

void MyFrame::checkvalue_equator ( wxCommandEvent &  event)
private

Modify and toggle appearance of equator (lequator)

Parameters
[in]event[in] Selected menu

Definition at line 614 of file menu.cpp.

References bvec, eqvec, eqvec_fr, icheck_equator, itext_equatorx, itext_equatory, itext_equatorz, lequator, and refresh_equator.

◆ modify_band()

void MyFrame::modify_band ( )

Definition at line 1271 of file menu.cpp.

References blue, check_band(), color_scale, cyan, gbsizer, green, icheck_band, itet, lbatch, nb, panel, radiobox_color, radiobox_tetra, red, rgb_band, splitterH, splitterV, textctrl_Band(), and yellow.

Referenced by MyApp::OnInit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnExit()

void MyFrame::OnExit ( wxCommandEvent &  event)
private

Definition at line 1265 of file menu.cpp.

◆ radio_BarColor()

void MyFrame::radio_BarColor ( wxCommandEvent &  event)
private

Change Brillouin zone (fbz)

Parameters
[in]event[in] Selected menu

Definition at line 521 of file menu.cpp.

References BarColor, blue, cyan, green, magenta, paint(), red, wgray, and yellow.

Here is the call graph for this function:

◆ radio_brillouinzone()

void MyFrame::radio_brillouinzone ( wxCommandEvent &  event)
private

Change Brillouin zone (fbz)

Parameters
[in]event[in] Selected menu

Definition at line 506 of file menu.cpp.

References fbz, and refresh_patch.

◆ radio_lighting()

void MyFrame::radio_lighting ( wxCommandEvent &  event)
private

Toggle Lighting.

Parameters
[in]event[in] Selected menu

Definition at line 668 of file menu.cpp.

References side.

◆ radio_mouse()

void MyFrame::radio_mouse ( wxCommandEvent &  event)
private

Change the function associated to the mouse movement(::lmouse)

Parameters
[in]event[in] Selected menu

Definition at line 701 of file menu.cpp.

References lmouse.

◆ radio_stereo()

void MyFrame::radio_stereo ( wxCommandEvent &  event)
private

Tern stereogram (lstereo)

Parameters
[in]event[in] Selected menu

Definition at line 779 of file menu.cpp.

References lstereo.

◆ radio_tetra()

void MyFrame::radio_tetra ( wxCommandEvent &  event)
private

Change tetrahedron (itet)

Parameters
[in]event[in] Selected menu

Definition at line 790 of file menu.cpp.

References init_corner(), itet, and refresh_patch.

Here is the call graph for this function:

◆ radiovalue_colorscale()

void MyFrame::radiovalue_colorscale ( wxCommandEvent &  event)
private

Change color scale mode (color_scale)

Parameters
[in]event[in] Selected menu

Definition at line 579 of file menu.cpp.

References color_scale, itext_colorscalemax, itext_colorscalemin, patch_max, patch_min, refresh_color, and skip_minmax.

◆ radiovalue_section()

void MyFrame::radiovalue_section ( wxCommandEvent &  event)
private

Modify and toggle appearance of 2D Fermi lines (lsection)

Parameters
[in]event[in] Selected menu

Definition at line 724 of file menu.cpp.

References bvec, icheck_gamma, icheck_section, itext_sectionx, itext_sectiony, itext_sectionz, lsection, refresh_section, secscale, secvec, and secvec_fr.

◆ textctrl_Arrow()

void MyFrame::textctrl_Arrow ( wxCommandEvent &  event)
private

◆ textctrl_BackGround()

void MyFrame::textctrl_BackGround ( wxCommandEvent &  event)
private

Change background color (::blackback)

Parameters
[in]event[in] Selected menu

Definition at line 428 of file menu.cpp.

References BackGroundColor, itext_BackGroundB, itext_BackGroundG, and itext_BackGroundR.

◆ textctrl_Band()

void MyFrame::textctrl_Band ( wxCommandEvent &  event)
private

Change band color (::blackback)

Parameters
[in]event[in] Selected menu

Definition at line 396 of file menu.cpp.

References icheck_band, paint(), and rgb_band.

Referenced by modify_band().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ textctrl_BZ_number()

void MyFrame::textctrl_BZ_number ( wxCommandEvent &  event)
private

Change Number of Brillouin zone.

Parameters
[in]event[in] Selected menu

Definition at line 462 of file menu.cpp.

References BZ_number, itext_BZ_number0, itext_BZ_number1, and itext_BZ_number2.

◆ textctrl_interpol()

void MyFrame::textctrl_interpol ( wxCommandEvent &  event)
private

Modify interpolation ratio.

This routine modify interpolation ratio (interpol) then compute Fermi surfaces, etc.

Parameters
[in]event[in] Selected menu

Definition at line 654 of file menu.cpp.

References interpol, and refresh_interpol.

◆ textctrl_line()

void MyFrame::textctrl_line ( wxCommandEvent &  event)
private

Line width.

Parameters
[in]event[in] Selected menu

Definition at line 689 of file menu.cpp.

References linewidth.

◆ textctrl_LineColor()

void MyFrame::textctrl_LineColor ( wxCommandEvent &  event)
private

Change Line color color (::blackback)

Parameters
[in]event[in] Selected menu

Definition at line 340 of file menu.cpp.

References itext_LineColorB, itext_LineColorG, itext_LineColorR, and LineColor.

◆ textctrl_Section()

void MyFrame::textctrl_Section ( wxCommandEvent &  event)
private

Change section color (::blackback)

Parameters
[in]event[in] Selected menu

Definition at line 368 of file menu.cpp.

References itext_SectionB, itext_SectionG, itext_SectionR, and SectionColor.

◆ textctrl_shift()

void MyFrame::textctrl_shift ( wxCommandEvent &  event)
private

Shift Fermi energy.

Parameters
[in]event[in] Selected menu

Definition at line 766 of file menu.cpp.

References EF, and refresh_patch.

◆ textctrl_sphere()

void MyFrame::textctrl_sphere ( wxCommandEvent &  event)
private

Change Line color color (::blackback)

Parameters
[in]event[in] Selected menu

Definition at line 275 of file menu.cpp.

References itext_sphereR, itext_sphereX, itext_sphereY, itext_sphereZ, sphere_c, sphere_r, and sphere_v.

◆ textctrl_view()

void MyFrame::textctrl_view ( wxCommandEvent &  event)
private

Setting of view.

This modify scale (scl) & tarnslation (trans) & rotation (thetax, thetay, thetaz, rot),

Parameters
[in]event[in] Selected menu

Definition at line 804 of file menu.cpp.

References ibutton_rotate, itext_positionx, itext_positiony, itext_rotx, itext_roty, itext_rotz, itext_scale, linewidth, rot, scl, textbox_linewidth, thetax, thetay, thetaz, and trans.

Member Data Documentation

◆ gbsizer

wxGridBagSizer* MyFrame::gbsizer

Definition at line 48 of file menu.hpp.

Referenced by modify_band().

◆ m_canvas

TestGLCanvas* MyFrame::m_canvas

Definition at line 47 of file menu.hpp.

Referenced by ~MyFrame().

◆ panel

wxScrolledWindow* MyFrame::panel

Definition at line 49 of file menu.hpp.

Referenced by modify_band().

◆ radiobox_color

wxRadioBox* MyFrame::radiobox_color

Definition at line 50 of file menu.hpp.

Referenced by modify_band().

◆ radiobox_tetra

wxRadioBox* MyFrame::radiobox_tetra

Definition at line 51 of file menu.hpp.

Referenced by modify_band().

◆ splitterH

wxSplitterWindow* MyFrame::splitterH

Definition at line 53 of file menu.hpp.

Referenced by modify_band().

◆ splitterV

wxSplitterWindow* MyFrame::splitterV

Definition at line 52 of file menu.hpp.

Referenced by modify_band().

◆ textbox_ArrowDiff0

wxTextCtrl* MyFrame::textbox_ArrowDiff0

Definition at line 84 of file menu.hpp.

Referenced by textctrl_Arrow().

◆ textbox_ArrowDiff1

wxTextCtrl* MyFrame::textbox_ArrowDiff1

Definition at line 85 of file menu.hpp.

Referenced by textctrl_Arrow().

◆ textbox_ArrowDiff2

wxTextCtrl* MyFrame::textbox_ArrowDiff2

Definition at line 86 of file menu.hpp.

Referenced by textctrl_Arrow().

◆ textbox_ArrowEnd0

wxTextCtrl* MyFrame::textbox_ArrowEnd0

Definition at line 81 of file menu.hpp.

Referenced by textctrl_Arrow().

◆ textbox_ArrowEnd1

wxTextCtrl* MyFrame::textbox_ArrowEnd1

Definition at line 82 of file menu.hpp.

Referenced by textctrl_Arrow().

◆ textbox_ArrowEnd2

wxTextCtrl* MyFrame::textbox_ArrowEnd2

Definition at line 83 of file menu.hpp.

Referenced by textctrl_Arrow().

◆ textbox_ArrowStart0

wxTextCtrl* MyFrame::textbox_ArrowStart0

Definition at line 78 of file menu.hpp.

◆ textbox_ArrowStart1

wxTextCtrl* MyFrame::textbox_ArrowStart1

Definition at line 79 of file menu.hpp.

◆ textbox_ArrowStart2

wxTextCtrl* MyFrame::textbox_ArrowStart2

Definition at line 80 of file menu.hpp.

◆ textbox_BackGroundB

wxTextCtrl* MyFrame::textbox_BackGroundB

Definition at line 68 of file menu.hpp.

◆ textbox_BackGroundG

wxTextCtrl* MyFrame::textbox_BackGroundG

Definition at line 67 of file menu.hpp.

◆ textbox_BackGroundR

wxTextCtrl* MyFrame::textbox_BackGroundR

Definition at line 66 of file menu.hpp.

◆ textbox_BZ_number0

wxTextCtrl* MyFrame::textbox_BZ_number0

Definition at line 72 of file menu.hpp.

◆ textbox_BZ_number1

wxTextCtrl* MyFrame::textbox_BZ_number1

Definition at line 73 of file menu.hpp.

◆ textbox_BZ_number2

wxTextCtrl* MyFrame::textbox_BZ_number2

Definition at line 74 of file menu.hpp.

◆ textbox_LineColorB

wxTextCtrl* MyFrame::textbox_LineColorB

Definition at line 71 of file menu.hpp.

◆ textbox_LineColorG

wxTextCtrl* MyFrame::textbox_LineColorG

Definition at line 70 of file menu.hpp.

◆ textbox_LineColorR

wxTextCtrl* MyFrame::textbox_LineColorR

Definition at line 69 of file menu.hpp.

◆ textbox_linewidth

wxTextCtrl* MyFrame::textbox_linewidth

Definition at line 65 of file menu.hpp.

Referenced by allocate_griddata(), TestGLCanvas::OnMouseEvent(), and textctrl_view().

◆ textbox_max

wxTextCtrl* MyFrame::textbox_max

Definition at line 64 of file menu.hpp.

Referenced by max_and_min().

◆ textbox_min

wxTextCtrl* MyFrame::textbox_min

Definition at line 63 of file menu.hpp.

Referenced by max_and_min().

◆ textbox_positionx

wxTextCtrl* MyFrame::textbox_positionx

Definition at line 58 of file menu.hpp.

Referenced by TestGLCanvas::OnChar(), and TestGLCanvas::OnMouseEvent().

◆ textbox_positiony

wxTextCtrl* MyFrame::textbox_positiony

Definition at line 59 of file menu.hpp.

Referenced by TestGLCanvas::OnChar(), and TestGLCanvas::OnMouseEvent().

◆ textbox_rotatex

wxTextCtrl* MyFrame::textbox_rotatex

Definition at line 60 of file menu.hpp.

Referenced by TestGLCanvas::OnMouseEvent().

◆ textbox_rotatey

wxTextCtrl* MyFrame::textbox_rotatey

Definition at line 61 of file menu.hpp.

Referenced by TestGLCanvas::OnMouseEvent().

◆ textbox_rotatez

wxTextCtrl* MyFrame::textbox_rotatez

Definition at line 62 of file menu.hpp.

Referenced by TestGLCanvas::OnMouseEvent().

◆ textbox_scale

wxTextCtrl* MyFrame::textbox_scale

Definition at line 57 of file menu.hpp.

Referenced by allocate_griddata(), and TestGLCanvas::OnMouseEvent().

◆ textbox_SectionB

wxTextCtrl* MyFrame::textbox_SectionB

Definition at line 77 of file menu.hpp.

◆ textbox_SectionG

wxTextCtrl* MyFrame::textbox_SectionG

Definition at line 76 of file menu.hpp.

◆ textbox_SectionR

wxTextCtrl* MyFrame::textbox_SectionR

Definition at line 75 of file menu.hpp.

◆ textbox_sphereR

wxTextCtrl* MyFrame::textbox_sphereR

Definition at line 90 of file menu.hpp.

◆ textbox_sphereX

wxTextCtrl* MyFrame::textbox_sphereX

Definition at line 87 of file menu.hpp.

◆ textbox_sphereY

wxTextCtrl* MyFrame::textbox_sphereY

Definition at line 88 of file menu.hpp.

◆ textbox_sphereZ

wxTextCtrl* MyFrame::textbox_sphereZ

Definition at line 89 of file menu.hpp.


The documentation for this class was generated from the following files: