#include <lattice.h>
Inheritance diagram for Lattice:

Public Methods | |
| Lattice () | |
| Lattice (Layer *pLayer, Int_t Nx, Int_t Ny, Double_t c) | |
| virtual | ~Lattice () |
| virtual void | CreateLattice ()=0 |
| Create the lattice in memory (atoms). | |
| virtual Atom * | GetAtomNeighbor (Atom *)=0 |
| Getting a neighbor wich is not a defect. | |
| Int_t | GetAtomIndex (Atom *atom) |
| UChar_t | GetAtomPos (Atom *atom) |
| UChar_t | GetAtomType (Atom *atom) |
| Double_t | GetCellSize () |
| Double_t | GetWidth () |
| Double_t | GetHeight () |
| void | SetBorderMode (Atom *, Atom *, UChar_t) |
| Setting special behaviour for atoms. | |
| void | SetCornerMode (Atom *, Atom *, Atom *, Atom *, UChar_t) |
| void | SetAtomType (Atom *atom, UChar_t type) |
| void | SetInfo (Bool_t fl) |
| virtual void | ShowLattice () |
| Draws every atom. | |
| TObjArray * | GetDefects () |
| Returning a pointer to the defects. | |
| Atom ** | GetAtoms () |
| Int_t | GetNAtoms () |
| Int_t | GetNUniqueAtoms () |
| Int_t | GetNUniqueDefects () |
| void | SetAtomStyle (Style_t, Size_t, Color_t) |
| Setting the style of the atoms. | |
| void | SetDefectStyle (Style_t, Size_t, Color_t) |
| Setting the style of the defects. | |
| void | RndInsertDefect () |
| random insert of defects | |
| void | RndRemoveDefect () |
| random remove of defects | |
| void | RemoveAllDefects () |
| Remove all defects. | |
| Atom *& | operator[] (Int_t i) |
| Quick access to atoms over an index. | |
Protected Attributes | |
| Int_t | Nx |
| Int_t | Ny |
| Int_t | N |
| Int_t | Nu |
| Int_t | defCount |
| Int_t | defArrayCount |
| Double_t | c |
| Layer * | pLayer |
| Atom ** | atoms |
| TObjArray * | defects |
| Bool_t | bInfo |
| Style_t | atomShape |
| Style_t | defectShape |
| Size_t | atomSize |
| Size_t | defectSize |
| Color_t | atomColor |
| Color_t | defectColor |
Friends | |
| class | Atom |
Definition at line 136 of file lattice.h.
|
|
Definition at line 123 of file lattice.cpp. References atomColor, atoms, atomShape, atomSize, bInfo, c, defArrayCount, defCount, defectColor, defects, defectShape, defectSize, N, Nu, Nx, Ny, and pLayer. |
|
||||||||||||||||||||
|
Definition at line 138 of file lattice.cpp. References atomColor, atoms, atomShape, atomSize, bInfo, c, defArrayCount, defCount, defectColor, defects, defectShape, defectSize, Configuration::GetAtomColor(), Configuration::GetAtomShape(), Configuration::GetAtomSize(), Layer::GetConfig(), Configuration::GetDefectColor(), Configuration::GetDefectShape(), Configuration::GetDefectSize(), Nu, Nx, and Ny. |
|
|
Definition at line 160 of file lattice.cpp. |
|
|
Create the lattice in memory (atoms).
Implemented in SquareLattice, and HexLattice. |
|
|
Definition at line 150 of file lattice.h. References Atom::index. Referenced by HexLattice::GetAtomNeighbor(), and SquareLattice::GetAtomNeighbor(). |
|
|
Getting a neighbor wich is not a defect.
Implemented in SquareLattice, and HexLattice. Referenced by Layer::MoveDefect(). |
|
|
Definition at line 151 of file lattice.h. References Atom::pos. Referenced by HexLattice::GetAtomNeighbor(), and SquareLattice::GetAtomNeighbor(). |
|
|
Definition at line 166 of file lattice.h. References atoms. Referenced by Layer::UndoMoveDefect(). |
|
|
Definition at line 152 of file lattice.h. References Atom::type. Referenced by HexLattice::GetAtomNeighbor(). |
|
|
Definition at line 153 of file lattice.h. References c. Referenced by MainFrame::HandleMenu(), and SimulationDialog::SimulationDialog(). |
|
|
Returning a pointer to the defects.
Definition at line 165 of file lattice.h. References defects. Referenced by Layer::CompEnergy(), Layer::CompPartEnergy(), and Layer::MoveDefect(). |
|
|
Definition at line 155 of file lattice.h. References pLayer. Referenced by SimulationDialog::SimulationDialog(). |
|
|
Definition at line 167 of file lattice.h. References N. Referenced by Layer::MoveDefect(). |
|
|
Definition at line 168 of file lattice.h. References Nu. Referenced by MainFrame::HandleMenu(). |
|
|
Definition at line 169 of file lattice.h. References defArrayCount. Referenced by MainFrame::HandleMenu(), Atom::InsertDefect(), and Atom::RemoveDefect(). |
|
|
Definition at line 154 of file lattice.h. References pLayer. Referenced by SimulationDialog::SimulationDialog(). |
|
|
Quick access to atoms over an index.
|
|
|
Remove all defects.
Definition at line 258 of file lattice.cpp. References defects, and pLayer. Referenced by MainFrame::HandleMenu(). |
|
|
random insert of defects
Definition at line 235 of file lattice.cpp. References atoms, Atom::bDefect, defCount, Atom::InsertDefect(), and N. Referenced by MainFrame::HandleMenu(). |
|
|
random remove of defects
Definition at line 248 of file lattice.cpp. References defCount, and defects. Referenced by MainFrame::HandleMenu(). |
|
||||||||||||||||
|
Setting the style of the atoms.
Definition at line 196 of file lattice.cpp. References atomColor, atoms, atomShape, atomSize, N, and pLayer. Referenced by SimulationDialog::DoCancel(), and SimulationDialog::DoTabButtons(). |
|
||||||||||||
|
Definition at line 159 of file lattice.h. References Atom::type. Referenced by HexLattice::CreateLattice(). |
|
||||||||||||||||
|
Setting special behaviour for atoms.
Definition at line 171 of file lattice.cpp. References Atom::bBorderAtom, Atom::linkedAtom, and Atom::pos. Referenced by HexLattice::CreateLattice(), and SquareLattice::CreateLattice(). |
|
||||||||||||||||||||||||
|
Definition at line 178 of file lattice.cpp. References Atom::bCornerAtom, Atom::linkedAtoms, and Atom::pos. Referenced by SquareLattice::CreateLattice(). |
|
||||||||||||||||
|
Setting the style of the defects.
Definition at line 214 of file lattice.cpp. References defectColor, defects, defectShape, defectSize, and pLayer. Referenced by SimulationDialog::DoCancel(), and SimulationDialog::DoTabButtons(). |
|
|
Definition at line 160 of file lattice.h. References bInfo. Referenced by MainFrame::HandleMenu(), and Layer::MonteCarlo(). |
|
|
Draws every atom.
Definition at line 188 of file lattice.cpp. References atoms, N, and pLayer. Referenced by HexLattice::HexLattice(), and SquareLattice::SquareLattice(). |
|
|
Definition at line 139 of file lattice.h. Referenced by HexLattice::CreateLattice(), and SquareLattice::CreateLattice(). |
|
|
Definition at line 199 of file lattice.h. Referenced by Lattice(), Atom::RemoveDefect(), and SetAtomStyle(). |
|
|
All atoms, which build the lattice Definition at line 192 of file lattice.h. Referenced by HexLattice::CreateLattice(), SquareLattice::CreateLattice(), HexLattice::GetAtomNeighbor(), SquareLattice::GetAtomNeighbor(), GetAtoms(), Lattice(), RndInsertDefect(), SetAtomStyle(), ShowLattice(), and ~Lattice(). |
|
|
Definition at line 195 of file lattice.h. Referenced by Atom::Atom(), Lattice(), Atom::RemoveDefect(), and SetAtomStyle(). |
|
|
Definition at line 197 of file lattice.h. Referenced by Atom::Atom(), Lattice(), Atom::RemoveDefect(), and SetAtomStyle(). |
|
|
update the defect number in info panel? Definition at line 194 of file lattice.h. Referenced by Atom::InsertDefect(), Lattice(), Atom::RemoveDefect(), and SetInfo(). |
|
|
Typical size parameter for one cell Definition at line 190 of file lattice.h. Referenced by HexLattice::CreateLattice(), SquareLattice::CreateLattice(), GetCellSize(), HexLattice::HexLattice(), Lattice(), and SquareLattice::SquareLattice(). |
|
|
Number of unique defects Definition at line 189 of file lattice.h. Referenced by GetNUniqueDefects(), Atom::InsertDefect(), Lattice(), and Atom::RemoveDefect(). |
|
|
Number of drawn defects Definition at line 188 of file lattice.h. Referenced by Atom::InsertDefect(), Lattice(), Atom::RemoveDefect(), RndInsertDefect(), and RndRemoveDefect(). |
|
|
Definition at line 200 of file lattice.h. Referenced by Atom::InsertDefect(), Lattice(), and SetDefectStyle(). |
|
|
All defects, for faster calculation Definition at line 193 of file lattice.h. Referenced by HexLattice::CreateLattice(), SquareLattice::CreateLattice(), GetDefects(), Atom::InsertDefect(), Lattice(), RemoveAllDefects(), Atom::RemoveDefect(), RndRemoveDefect(), SetDefectStyle(), and ~Lattice(). |
|
|
Definition at line 196 of file lattice.h. Referenced by Atom::InsertDefect(), Lattice(), and SetDefectStyle(). |
|
|
Definition at line 198 of file lattice.h. Referenced by Atom::InsertDefect(), Lattice(), and SetDefectStyle(). |
|
|
Total number of atoms Definition at line 186 of file lattice.h. Referenced by HexLattice::CreateLattice(), SquareLattice::CreateLattice(), HexLattice::GetAtomNeighbor(), SquareLattice::GetAtomNeighbor(), GetNAtoms(), HexLattice::HexLattice(), Lattice(), RndInsertDefect(), SetAtomStyle(), ShowLattice(), SquareLattice::SquareLattice(), and ~Lattice(). |
|
|
Number of unique atoms Definition at line 187 of file lattice.h. Referenced by GetNUniqueAtoms(), HexLattice::HexLattice(), Lattice(), and SquareLattice::SquareLattice(). |
|
|
Number of cells in x direction Definition at line 184 of file lattice.h. Referenced by HexLattice::CreateLattice(), SquareLattice::CreateLattice(), HexLattice::GetAtomNeighbor(), SquareLattice::GetAtomNeighbor(), HexLattice::HexLattice(), Lattice(), and SquareLattice::SquareLattice(). |
|
|
Number of cells in y direction Definition at line 185 of file lattice.h. Referenced by HexLattice::CreateLattice(), SquareLattice::CreateLattice(), HexLattice::HexLattice(), Lattice(), and SquareLattice::SquareLattice(). |
|
|
The layer, on which the lattice is drawn Definition at line 191 of file lattice.h. Referenced by Atom::CompPartEnergy(), GetHeight(), GetWidth(), Atom::InsertDefect(), Lattice(), RemoveAllDefects(), Atom::RemoveDefect(), SetAtomStyle(), SetDefectStyle(), and ShowLattice(). |
1.2.16