Skip to content
Snippets Groups Projects

rm node visitor

Merged Wuttke, Joachim requested to merge rmNodeVisitor into develop
1 file
+ 36
5
Compare changes
  • Side-by-side
  • Inline
@@ -32,6 +32,7 @@
@@ -32,6 +32,7 @@
#include "Sample/Particle/ParticleComposition.h"
#include "Sample/Particle/ParticleComposition.h"
#include "Sample/Particle/ParticleCoreShell.h"
#include "Sample/Particle/ParticleCoreShell.h"
#include "Sample/Scattering/IFormFactor.h"
#include "Sample/Scattering/IFormFactor.h"
 
#include <iostream>
#include <iomanip>
#include <iomanip>
#include <map>
#include <map>
#include <memory>
#include <memory>
@@ -95,7 +96,9 @@ void setPositionInformation(const IParticle* particle, std::string name, std::os
@@ -95,7 +96,9 @@ void setPositionInformation(const IParticle* particle, std::string name, std::os
std::string SampleToPython::sampleCode(const MultiLayer& multilayer)
std::string SampleToPython::sampleCode(const MultiLayer& multilayer)
{
{
 
std::cout << "STP begin" << std::endl;
initLabels(multilayer);
initLabels(multilayer);
 
std::cout << "STP initialized" << std::endl;
return defineGetSample();
return defineGetSample();
}
}
@@ -140,11 +143,39 @@ SampleToPython::~SampleToPython() = default;
@@ -140,11 +143,39 @@ SampleToPython::~SampleToPython() = default;
std::string SampleToPython::defineGetSample() const
std::string SampleToPython::defineGetSample() const
{
{
return "def get_sample():\n" + defineMaterials() + defineFormFactors() + defineParticles()
std::cout << "STP DEB 11" << std::endl;
+ defineCoreShellParticles() + defineParticleCompositions() + defineLattices2D()
std::string ret = "def get_sample():\n";
+ defineLattices3D() + defineCrystals() + defineMesoCrystals() + defineInterferences()
std::cout << "STP DEB 12" << std::endl;
+ defineParticleLayouts() + defineRoughnesses() + defineLayers() + defineMultiLayers()
ret += defineMaterials();
+ "\n\n";
std::cout << "STP DEB 12" << std::endl;
 
ret += defineFormFactors();
 
std::cout << "STP DEB 13" << std::endl;
 
ret += defineParticles();
 
std::cout << "STP DEB 14" << std::endl;
 
ret += defineCoreShellParticles();
 
std::cout << "STP DEB 15" << std::endl;
 
ret += defineParticleCompositions();
 
std::cout << "STP DEB 16" << std::endl;
 
ret += defineLattices2D();
 
std::cout << "STP DEB 17" << std::endl;
 
ret += defineLattices3D();
 
std::cout << "STP DEB 18" << std::endl;
 
ret += defineCrystals();
 
std::cout << "STP DEB 19" << std::endl;
 
ret += defineMesoCrystals();
 
std::cout << "STP DEB 20" << std::endl;
 
ret += defineInterferences();
 
std::cout << "STP DEB 21" << std::endl;
 
ret += defineParticleLayouts();
 
std::cout << "STP DEB 22" << std::endl;
 
ret += defineRoughnesses();
 
std::cout << "STP DEB 23" << std::endl;
 
ret += defineLayers();
 
std::cout << "STP DEB 24" << std::endl;
 
ret += defineMultiLayers();
 
ret += "\n\n";
 
std::cout << "STP DEB 25" << std::endl;
 
return ret;
}
}
const std::map<MATERIAL_TYPES, std::string> factory_names{
const std::map<MATERIAL_TYPES, std::string> factory_names{
Loading