cctw  0.2.1
cctwunitcell.h
Go to the documentation of this file.
1 #ifndef CCTWUNITCELL_H
2 #define CCTWUNITCELL_H
3 
4 #include "cctwvector3d.h"
5 
6 #include <QSettings>
7 #include <QString>
8 
10 {
11 public:
12  CctwUnitCell();
13  CctwUnitCell(double a, double b, double c, double alpha, double beta, double gamma);
15 
16  double a() const;
17  double& a();
18 
19  double b() const;
20  double& b();
21 
22  double c() const;
23  double& c();
24 
25  double alpha() const;
26  double& alpha();
27 
28  double beta() const;
29  double& beta();
30 
31  double gamma() const;
32  double& gamma();
33 
34  void setValue(double a, double b, double c, double alpha, double beta, double gamma);
35  void setValue(CctwDoubleVector3D lengths, CctwDoubleVector3D angles);
36 
38  CctwDoubleVector3D angles() const;
39 
40  bool operator == (const CctwUnitCell &cell) const;
41  bool operator != (const CctwUnitCell &cell) const;
42 
43  void setSettingsValue(QSettings *settings, QString name);
44  static void customSaver(const QVariant &val, QSettings *settings, QString name);
45 
46 private:
47  double m_A;
48  double m_B;
49  double m_C;
50  double m_Alpha;
51  double m_Beta;
52  double m_Gamma;
53 };
54 
55 Q_DECLARE_METATYPE(CctwUnitCell)
56 
57 #endif // CCTWUNITCELL_H
void setValue(double a, double b, double c, double alpha, double beta, double gamma)
bool operator==(const CctwUnitCell &cell) const
double beta() const
double b() const
double m_Alpha
Definition: cctwunitcell.h:50
double a() const
double alpha() const
void setSettingsValue(QSettings *settings, QString name)
CctwDoubleVector3D angles() const
double m_Beta
Definition: cctwunitcell.h:51
CctwDoubleVector3D lengths() const
bool operator!=(const CctwUnitCell &cell) const
double gamma() const
static void customSaver(const QVariant &val, QSettings *settings, QString name)
double c() const
double m_Gamma
Definition: cctwunitcell.h:52