15 #ifndef BORNAGAIN_GUI_MODEL_SAMPLE_LATTICE2DITEMS_H
16 #define BORNAGAIN_GUI_MODEL_SAMPLE_LATTICE2DITEMS_H
53 if (withRotationAngle)
82 if (withRotationAngle)
103 if (withRotationAngle)
QList< DoubleDescriptor > DoubleDescriptors
Defines class DoubleProperty.
DoubleDescriptor latticeAngle() const
DoubleDescriptors geometryValues(bool withRotationAngle) const override
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,...
Class for representing a double value, its attributes and its accessors.
DoubleDescriptor latticeLength() const
std::unique_ptr< Lattice2D > createLattice() const override
void serialize(Streamer &s) override
DoubleDescriptors geometryValues(bool withRotationAngle) const override
void setLatticeLength(double length)
void setLatticeRotationAngle(double angle)
virtual ~Lattice2DItem()=default
virtual void serialize(Streamer &s)=0
virtual DoubleDescriptors geometryValues(bool withRotationAngle) const =0
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
DoubleDescriptors geometryValues(bool withRotationAngle) const override
Supports serialization to or deserialization from QXmlStream.