20 const QString axis_rotation_tooltip =
21 "Rotation of lattice with respect to x-axis of reference frame \n"
22 "(beam direction) in degrees";
42 ->
setToolTip(
"Length of first lattice vector in nanometers");
44 ->
setToolTip(
"Length of second lattice vector in nanometers");
51 return std::make_unique<BasicLattice2D>(
64 ->
setToolTip(
"Length of first and second lattice vectors in nanometers");
70 return std::make_unique<SquareLattice2D>(
82 ->
setToolTip(
"Length of first and second lattice vectors in nanometers");
88 return std::make_unique<HexagonalLattice2D>(
Defines classes Lattice2DItems.
Defines classes of Lattice2D family.
Defines some unit conversion factors and other constants in namespace Units.
std::unique_ptr< Lattice2D > createLattice() const
static const QString P_LATTICE_ANGLE
static const QString P_LATTICE_LENGTH2
static const QString P_LATTICE_LENGTH1
static const QString P_LATTICE_LENGTH
std::unique_ptr< Lattice2D > createLattice() const
static const QString P_LATTICE_ROTATION_ANGLE
Lattice2DItem(const QString &modelType)
double unitCellArea() const
virtual std::unique_ptr< Lattice2D > createLattice() const =0
SessionItem * addProperty(const QString &name, const QVariant &variant)
Add new property item and register new tag.
QVariant getItemValue(const QString &tag) const
Directly access value of item under given tag.
SessionItem & setToolTip(const QString &tooltip)
std::unique_ptr< Lattice2D > createLattice() const
static const QString P_LATTICE_LENGTH
double deg2rad(double angle)