Skip to content
Snippets Groups Projects
Commit 1860f247 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

[m.1] Improve initialization of vector properties ()

Merging branch 'm.1'  into 'main'.

See merge request !2758
parents e1334e8e d2eca62d
No related branches found
No related tags found
1 merge request!2758Improve initialization of vector properties
Pipeline #171085 failed
...@@ -53,11 +53,11 @@ MesocrystalItem::MesocrystalItem(const MaterialsSet* materials) ...@@ -53,11 +53,11 @@ MesocrystalItem::MesocrystalItem(const MaterialsSet* materials)
, m_materials(materials) , m_materials(materials)
{ {
m_vectorA.init("First lattice vector (nm)", "Coordinates of the first lattice vector", m_vectorA.init("First lattice vector (nm)", "Coordinates of the first lattice vector",
"vectorA"); R3(5, 0, 0), 3, 0.01, RealLimits::limitless(), "vectorA");
m_vectorB.init("Second lattice vector (nm)", "Coordinates of the second lattice vector", m_vectorB.init("Second lattice vector (nm)", "Coordinates of the second lattice vector",
"vectorB"); R3(0, 5, 0), 3, 0.01, RealLimits::limitless(), "vectorB");
m_vectorC.init("Third lattice vector (nm)", "Coordinates of the third lattice vector", m_vectorC.init("Third lattice vector (nm)", "Coordinates of the third lattice vector",
"vectorC"); R3(0, 0, 5), 3, 0.01, RealLimits::limitless(), "vectorC");
m_outer_shape.simpleInit("Outer Shape", "", FormfactorCatalog::Type::Box); m_outer_shape.simpleInit("Outer Shape", "", FormfactorCatalog::Type::Box);
m_basis_particle.simpleInit("Basis", "", ParticleCatalog::Type::Particle); m_basis_particle.simpleInit("Basis", "", ParticleCatalog::Type::Particle);
......
...@@ -92,11 +92,11 @@ InstrumentItem::InstrumentItem() ...@@ -92,11 +92,11 @@ InstrumentItem::InstrumentItem()
{ {
m_id = QUuid::createUuid().toString(); m_id = QUuid::createUuid().toString();
m_polarizer_bloch_vector.init("Polarizer Bloch vector", m_polarizer_bloch_vector.init("Polarizer Bloch vector",
"Beam polarizer direction times efficiency", "Beam polarizer direction times efficiency", R3(), 3, 0.01,
"polarizerBlochVector"); RealLimits::limited(-1, 1), "polarizerBlochVector");
m_analyzer_bloch_vector.init("Analyzer Bloch vector", m_analyzer_bloch_vector.init("Analyzer Bloch vector",
"Polarization analyzer direction times efficiency", "Polarization analyzer direction times efficiency", R3(), 3, 0.01,
"analyzerBlochVector"); RealLimits::limited(-1, 1), "analyzerBlochVector");
m_background.simpleInit("Background", "", BackgroundCatalog::Type::Constant); m_background.simpleInit("Background", "", BackgroundCatalog::Type::Constant);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment