15 #ifndef BORNAGAIN_GUI_MODEL_SAMPLE_PARTICLELAYOUTITEM_H
16 #define BORNAGAIN_GUI_MODEL_SAMPLE_PARTICLELAYOUTITEM_H
51 QVector<ItemWithParticles*>
particles()
const;
Defines class DoubleProperty.
Defines InterferenceItems's classes.
Defines class SelectionProperty.
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 ownDensity() const
The density value which belonging only to the layout.
QVector< ItemWithParticles * > m_particles
SelectionProperty< InterferenceItem * > m_interference
const MaterialItems * m_materials
void addParticle(ItemWithParticles *particle)
DoubleProperty m_ownDensity
void removeParticle(ItemWithParticles *particle)
ParticleLayoutItem(const MaterialItems *materials)
bool totalDensityIsDefinedByInterference() const
Returns whether total density is defined by the currently selected interference.
QVector< ItemWithParticles * > containedItemsWithParticles() const
Return full hierarchical contained items with particles.
DoubleDescriptor weight() const
DoubleDescriptor totalDensity() const
The real density.
double totalDensityValue() const
QVector< ItemWithParticles * > particles() const
The particles this layout contains.
SelectionDescriptor< InterferenceItem * > interference() const
void serialize(Streamer &s)
void setInterference(InterferenceItem *interference)
void removeInterference()
Describes a selection (various possibilities and the current one).
Supports serialization to or deserialization from QXmlStream.