16 #include "Base/Const/Units.h"
17 #include "Base/Util/Assert.h"
19 #include "Sample/Lattice/Lattice2D.h"
24 "Xi",
"Rotation of lattice with respect to x-axis of reference frame (beam direction)", 0.0,
103 m_length.
init(
"LatticeLength",
"Length of first and second lattice vectors", 20.0,
133 m_length.
init(
"LatticeLength",
"Length of first and second lattice vectors", 20.0,
Defines classes Lattice2DItems.
DoubleDescriptor latticeAngle() const
std::unique_ptr< Lattice2D > createLattice() const override
void setLatticeLength2(double length2)
DoubleDescriptor latticeLength2() const
DoubleDescriptor latticeLength1() const
void setLatticeLength1(double length1)
void setLatticeAngle(double angle)
void serialize(Streamer &s) override
Describes properties of a double value which are necessary to allow GUI representation,...
void set(double d)
Set the contained value.
void init(const QString &label, const QString &tooltip, double value, const variant< QString, Unit > &unit, const QString &persistentTag)
DoubleDescriptor latticeLength() const
std::unique_ptr< Lattice2D > createLattice() const override
void serialize(Streamer &s) override
void setLatticeLength(double length)
void setLatticeRotationAngle(double angle)
double unitCellArea() const
virtual std::unique_ptr< Lattice2D > createLattice() const =0
DoubleDescriptor latticeRotationAngle() const
DoubleProperty m_latticeRotationAngle
DoubleDescriptor latticeLength() const
std::unique_ptr< Lattice2D > createLattice() const override
void setLatticeLength(double length)
void serialize(Streamer &s) override
Supports serialization to or deserialization from QXmlStream.
void assertVersion(unsigned expectedVersion) const
As reader, throws DeserializationException unless the expected version is read. As writer,...
void rwProperty(Streamer &s, DoubleProperty &d)