15 #ifndef BORNAGAIN_CORE_EXPORT_SAMPLETOPYTHON_H
16 #define BORNAGAIN_CORE_EXPORT_SAMPLETOPYTHON_H
33 std::string generateSampleCode(
const MultiLayer& multilayer);
38 std::string defineGetSample()
const;
39 std::string defineMaterials()
const;
40 std::string defineLayers()
const;
41 std::string defineFormFactors()
const;
42 std::string defineParticles()
const;
43 std::string defineCoreShellParticles()
const;
44 std::string defineParticleDistributions()
const;
45 std::string defineParticleCompositions()
const;
46 std::string defineLattices()
const;
47 std::string defineCrystals()
const;
48 std::string defineMesoCrystals()
const;
49 std::string defineInterferenceFunctions()
const;
50 std::string defineParticleLayouts()
const;
51 std::string defineRoughnesses()
const;
52 std::string addLayoutsToLayers()
const;
53 std::string defineMultiLayers()
const;
55 std::string indent()
const;
57 void setRotationInformation(
const IParticle* particle, std::string particle_name,
58 std::ostringstream& result)
const;
59 void setPositionInformation(
const IParticle* particle, std::string particle_name,
60 std::ostringstream& result)
const;
62 std::unique_ptr<SampleLabelHandler> m_label;
Pure virtual base class for Particle, ParticleComposition, ParticleCoreShell, MesoCrystal.
Our sample model: a stack of layers one below the other.
The handler which construct labels for sample variables during python script generation.
Generates Python code snippet from domain (C++) objects representing sample construction.