From 11de4ef0777e7ceb5c1d0b1c85d576ec2929664f Mon Sep 17 00:00:00 2001 From: F Zotter Date: Tue, 24 Sep 2024 16:21:13 +0200 Subject: [PATCH] load energy dat file earlier and catch faulty file, rename Folder Data->Rml --- .../src/{Data => Beamline}/DatFile.cpp | 86 +++++++++--------- .../src/{Data => Beamline}/DatFile.h | 0 .../src/Beamline/EnergyDistribution.h | 2 +- Intern/rayx-core/src/Beamline/LightSource.h | 4 +- .../src/Beamline/Objects/CircleSource.cpp | 2 +- .../src/Beamline/Objects/DipoleSource.cpp | 2 +- .../src/Beamline/Objects/MatrixSource.cpp | 2 +- .../src/Beamline/Objects/PixelSource.cpp | 2 +- .../src/Beamline/Objects/PointSource.h | 2 +- .../Objects/SimpleUndulatorSource.cpp | 2 +- Intern/rayx-core/src/Design/DesignSource.cpp | 5 +- Intern/rayx-core/src/Design/DesignSource.h | 2 + Intern/rayx-core/src/Design/Value.h | 4 +- Intern/rayx-core/src/Element/Element.h | 2 +- .../src/{Data => Element}/Strings.cpp | 0 .../rayx-core/src/{Data => Element}/Strings.h | 0 Intern/rayx-core/src/Material/NffTable.cpp | 2 +- Intern/rayx-core/src/Material/PalikTable.cpp | 2 +- .../src/{Data => Rml}/DesignElementWriter.h | 0 .../src/{Data => Rml}/DesignSourceWriter.h | 10 +- .../rayx-core/src/{Data => Rml}/Importer.cpp | 4 +- Intern/rayx-core/src/{Data => Rml}/Importer.h | 0 Intern/rayx-core/src/{Data => Rml}/Locate.cpp | 0 Intern/rayx-core/src/{Data => Rml}/Locate.h | 0 Intern/rayx-core/src/{Data => Rml}/xml.cpp | 2 +- Intern/rayx-core/src/{Data => Rml}/xml.h | 0 Intern/rayx-core/src/Shader/Behave.cpp | 2 +- Intern/rayx-core/tests/input/loadDatFile.h5 | Bin 0 -> 34058 bytes Intern/rayx-core/tests/input/loadDatFile.rml | 2 +- Intern/rayx-core/tests/setupTests.h | 2 +- Intern/rayx-ui/src/Application.cpp | 2 +- Intern/rayx-ui/src/GraphicsCore/Texture.cpp | 2 +- .../src/RenderSystem/GridRenderSystem.cpp | 2 +- .../src/RenderSystem/ObjectRenderSystem.cpp | 2 +- .../src/RenderSystem/RayRenderSystem.cpp | 2 +- .../UserInterface/BeamlineDesignHandler.cpp | 4 +- .../src/UserInterface/BeamlineOutliner.cpp | 2 +- .../rayx-ui/src/UserInterface/UIHandler.cpp | 2 +- Intern/rayx/src/TerminalApp.cpp | 4 +- 39 files changed, 87 insertions(+), 78 deletions(-) rename Intern/rayx-core/src/{Data => Beamline}/DatFile.cpp (53%) rename Intern/rayx-core/src/{Data => Beamline}/DatFile.h (100%) rename Intern/rayx-core/src/{Data => Element}/Strings.cpp (100%) rename Intern/rayx-core/src/{Data => Element}/Strings.h (100%) rename Intern/rayx-core/src/{Data => Rml}/DesignElementWriter.h (100%) rename Intern/rayx-core/src/{Data => Rml}/DesignSourceWriter.h (93%) rename Intern/rayx-core/src/{Data => Rml}/Importer.cpp (99%) rename Intern/rayx-core/src/{Data => Rml}/Importer.h (100%) rename Intern/rayx-core/src/{Data => Rml}/Locate.cpp (100%) rename Intern/rayx-core/src/{Data => Rml}/Locate.h (100%) rename Intern/rayx-core/src/{Data => Rml}/xml.cpp (99%) rename Intern/rayx-core/src/{Data => Rml}/xml.h (100%) create mode 100644 Intern/rayx-core/tests/input/loadDatFile.h5 diff --git a/Intern/rayx-core/src/Data/DatFile.cpp b/Intern/rayx-core/src/Beamline/DatFile.cpp similarity index 53% rename from Intern/rayx-core/src/Data/DatFile.cpp rename to Intern/rayx-core/src/Beamline/DatFile.cpp index d98dd1cb1..7f989913e 100644 --- a/Intern/rayx-core/src/Data/DatFile.cpp +++ b/Intern/rayx-core/src/Beamline/DatFile.cpp @@ -9,46 +9,53 @@ namespace RAYX { bool DatFile::load(const std::filesystem::path& filename, DatFile* out) { - std::ifstream s(filename); - RAYX_VERB << filename; - std::string line; - - // line 1 - std::getline(s, out->m_title); - - // line 2 - std::getline(s, line); -#if defined(WIN32) - if (sscanf_s(line.c_str(), "%u %le %le %le", &out->m_lineCount, &out->m_start, &out->m_end, &out->m_step) != 4) { -#else - if (sscanf(line.c_str(), "%u %le %le %le", &out->m_lineCount, &out->m_start, &out->m_end, &out->m_step) != 4) { -#endif - RAYX_EXIT << "Failed to parse DatFile \"" << filename << "\", at line 2: \"" << line << "\""; - return false; - } - out->m_Lines.reserve(out->m_lineCount); - - // line 3..EOF - out->m_weightSum = 0; - for (uint32_t lineidx = 3; std::getline(s, line); lineidx++) { - if (line.empty()) { - continue; + try + { + std::ifstream s(filename); + RAYX_VERB << filename; + std::string line; + + // line 1 + std::getline(s, out->m_title); + + // line 2 + std::getline(s, line); + #if defined(WIN32) + if (sscanf_s(line.c_str(), "%u %le %le %le", &out->m_lineCount, &out->m_start, &out->m_end, &out->m_step) != 4) { + #else + if (sscanf(line.c_str(), "%u %le %le %le", &out->m_lineCount, &out->m_start, &out->m_end, &out->m_step) != 4) { + #endif + RAYX_D_ERR << "Failed to parse DatFile \"" << filename << "\", at line 2: \"" << line << "\""; + return false; } + out->m_Lines.reserve(out->m_lineCount); - DatEntry e{}; -#if defined(WIN32) - if (sscanf_s(line.c_str(), "%le %le", &e.m_energy, &e.m_weight) != 2) { -#else - if (sscanf(line.c_str(), "%le %le", &e.m_energy, &e.m_weight) != 2) { -#endif - RAYX_EXIT << "Failed to parse DatFile \"" << filename << "\", at line " << lineidx << ": \"" << line << "\""; - return false; + // line 3..EOF + out->m_weightSum = 0; + for (uint32_t lineidx = 3; std::getline(s, line); lineidx++) { + if (line.empty()) { + continue; + } + + DatEntry e{}; + #if defined(WIN32) + if (sscanf_s(line.c_str(), "%le %le", &e.m_energy, &e.m_weight) != 2) { + #else + if (sscanf(line.c_str(), "%le %le", &e.m_energy, &e.m_weight) != 2) { + #endif + RAYX_D_ERR << "Failed to parse DatFile \"" << filename << "\", at line " << lineidx << ": \"" << line << "\""; + return false; + } + out->m_Lines.push_back(e); + out->m_weightSum += e.m_weight; } - out->m_Lines.push_back(e); - out->m_weightSum += e.m_weight; - } - return true; + return true; + + } catch (const std::exception& e) { + RAYX_D_ERR << "Exception caught while loading DatFile \"" << filename << "\": " << e.what(); + return false; + } } [[maybe_unused]] std::string DatFile::dump() { @@ -64,12 +71,7 @@ bool DatFile::load(const std::filesystem::path& filename, DatFile* out) { double DatFile::selectEnergy() const { // runs either continuous Energydistribution from DataFile or just the specific energies - // provisionally set to true because EnergyDistibution ended support for this choice - // TODO: Fanny find a way to get a choise for DataFile Distribution back if (m_continuous) { - if (m_Lines.size() == 1) { // weird edge case, which would crash the code below - return m_Lines[0].m_energy; - } // find the index `idx`, s.t. // we will return an energy between lines[idx].energy and // lines[idx+1].energy @@ -79,7 +81,7 @@ double DatFile::selectEnergy() const { double counter = 0; uint32_t idx = 0; - for (; idx < m_Lines.size() - 2; idx++) { + for (; idx <= m_Lines.size() - 1; idx++) { counter += (m_Lines[idx].m_weight + m_Lines[idx + 1].m_weight) / 2; if (counter >= w) { break; diff --git a/Intern/rayx-core/src/Data/DatFile.h b/Intern/rayx-core/src/Beamline/DatFile.h similarity index 100% rename from Intern/rayx-core/src/Data/DatFile.h rename to Intern/rayx-core/src/Beamline/DatFile.h diff --git a/Intern/rayx-core/src/Beamline/EnergyDistribution.h b/Intern/rayx-core/src/Beamline/EnergyDistribution.h index 95bff0a4a..a18c2ab55 100644 --- a/Intern/rayx-core/src/Beamline/EnergyDistribution.h +++ b/Intern/rayx-core/src/Beamline/EnergyDistribution.h @@ -3,7 +3,7 @@ #include #include "Core.h" -#include "Data/DatFile.h" +#include "DatFile.h" namespace RAYX { diff --git a/Intern/rayx-core/src/Beamline/LightSource.h b/Intern/rayx-core/src/Beamline/LightSource.h index f267f29c8..70087835d 100644 --- a/Intern/rayx-core/src/Beamline/LightSource.h +++ b/Intern/rayx-core/src/Beamline/LightSource.h @@ -7,8 +7,8 @@ #include #include "Core.h" -#include "Data/Strings.h" -#include "Data/xml.h" +#include "Element/Strings.h" +#include "Rml/xml.h" #include "EnergyDistribution.h" #include "Shader/Ray.h" diff --git a/Intern/rayx-core/src/Beamline/Objects/CircleSource.cpp b/Intern/rayx-core/src/Beamline/Objects/CircleSource.cpp index 8f6c53bcd..7063fae8c 100644 --- a/Intern/rayx-core/src/Beamline/Objects/CircleSource.cpp +++ b/Intern/rayx-core/src/Beamline/Objects/CircleSource.cpp @@ -1,7 +1,7 @@ #include "CircleSource.h" -#include "Data/xml.h" +#include "Rml/xml.h" #include "Debug/Debug.h" #include "Debug/Instrumentor.h" #include "Design/DesignSource.h" diff --git a/Intern/rayx-core/src/Beamline/Objects/DipoleSource.cpp b/Intern/rayx-core/src/Beamline/Objects/DipoleSource.cpp index c51caec25..e61d18041 100644 --- a/Intern/rayx-core/src/Beamline/Objects/DipoleSource.cpp +++ b/Intern/rayx-core/src/Beamline/Objects/DipoleSource.cpp @@ -2,7 +2,7 @@ #include -#include "Data/xml.h" +#include "Rml/xml.h" #include "Debug/Debug.h" #include "Debug/Instrumentor.h" #include "Design/DesignSource.h" diff --git a/Intern/rayx-core/src/Beamline/Objects/MatrixSource.cpp b/Intern/rayx-core/src/Beamline/Objects/MatrixSource.cpp index 968a476ec..391381c5a 100644 --- a/Intern/rayx-core/src/Beamline/Objects/MatrixSource.cpp +++ b/Intern/rayx-core/src/Beamline/Objects/MatrixSource.cpp @@ -1,6 +1,6 @@ #include "MatrixSource.h" -#include "Data/xml.h" +#include "Rml/xml.h" #include "Debug/Debug.h" #include "Debug/Instrumentor.h" #include "Design/DesignSource.h" diff --git a/Intern/rayx-core/src/Beamline/Objects/PixelSource.cpp b/Intern/rayx-core/src/Beamline/Objects/PixelSource.cpp index 8ab3063c3..3e1b4b429 100644 --- a/Intern/rayx-core/src/Beamline/Objects/PixelSource.cpp +++ b/Intern/rayx-core/src/Beamline/Objects/PixelSource.cpp @@ -1,6 +1,6 @@ #include "PixelSource.h" -#include "Data/xml.h" +#include "Rml/xml.h" #include "Debug/Debug.h" #include "Debug/Instrumentor.h" #include "Design/DesignElement.h" diff --git a/Intern/rayx-core/src/Beamline/Objects/PointSource.h b/Intern/rayx-core/src/Beamline/Objects/PointSource.h index 798c7a038..eab3d2078 100644 --- a/Intern/rayx-core/src/Beamline/Objects/PointSource.h +++ b/Intern/rayx-core/src/Beamline/Objects/PointSource.h @@ -1,7 +1,7 @@ #pragma once #include "Beamline/LightSource.h" -#include "Data/xml.h" +#include "Rml/xml.h" namespace RAYX { struct DesignSource; diff --git a/Intern/rayx-core/src/Beamline/Objects/SimpleUndulatorSource.cpp b/Intern/rayx-core/src/Beamline/Objects/SimpleUndulatorSource.cpp index 3a0d61d1b..befe70608 100644 --- a/Intern/rayx-core/src/Beamline/Objects/SimpleUndulatorSource.cpp +++ b/Intern/rayx-core/src/Beamline/Objects/SimpleUndulatorSource.cpp @@ -1,6 +1,6 @@ #include "SimpleUndulatorSource.h" -#include "Data/xml.h" +#include "Rml/xml.h" #include "Debug/Debug.h" #include "Debug/Instrumentor.h" #include "Design/DesignSource.h" diff --git a/Intern/rayx-core/src/Design/DesignSource.cpp b/Intern/rayx-core/src/Design/DesignSource.cpp index 10550a424..9f2ea225c 100644 --- a/Intern/rayx-core/src/Design/DesignSource.cpp +++ b/Intern/rayx-core/src/Design/DesignSource.cpp @@ -194,6 +194,8 @@ void DesignSource::setEnergySpreadUnit(EnergySpreadUnit value) { m_elementParame EnergySpreadUnit DesignSource::getEnergySpreadUnit() const { return m_elementParameters["energySpreadUnit"].as_energySpreadUnit(); } void DesignSource::setEnergyDistributionType(EnergyDistributionType value) { m_elementParameters["energyDistributionType"] = value; } +EnergyDistributionType DesignSource::getEnergyDistributionType() const { return m_elementParameters["energyDistributionType"].as_energyDistributionType(); } + void DesignSource::setEnergyDistributionFile(std::string value) { m_elementParameters["photonEnergyDistributionFile"] = value; } void DesignSource::setEnergySpreadType(SpreadType value) { m_elementParameters["energyDistribution"] = value; } @@ -207,12 +209,11 @@ double DesignSource::getPhotonFlux() const { return m_elementParameters["photonF EnergyDistribution DesignSource::getEnergyDistribution() const { EnergyDistribution en; SpreadType spreadType = m_elementParameters["energyDistribution"].as_energySpreadType(); - EnergyDistributionType energyDistributionType = m_elementParameters["energyDistributionType"].as_energyDistType(); + EnergyDistributionType energyDistributionType = m_elementParameters["energyDistributionType"].as_energyDistributionType(); if (energyDistributionType == EnergyDistributionType::File) { std::string filename = m_elementParameters["photonEnergyDistributionFile"].as_string(); - std::cout << std::filesystem::current_path() << std::endl; DatFile df; DatFile::load(filename, &df); diff --git a/Intern/rayx-core/src/Design/DesignSource.h b/Intern/rayx-core/src/Design/DesignSource.h index bd04f04e1..fc8026ae0 100644 --- a/Intern/rayx-core/src/Design/DesignSource.h +++ b/Intern/rayx-core/src/Design/DesignSource.h @@ -59,6 +59,8 @@ struct RAYX_API DesignSource { SpreadType getEnergySpreadType() const; void setEnergyDistributionType(EnergyDistributionType value); + EnergyDistributionType getEnergyDistributionType() const; + void setEnergyDistributionFile(std::string value); void setEnergySpreadUnit(EnergySpreadUnit value); diff --git a/Intern/rayx-core/src/Design/Value.h b/Intern/rayx-core/src/Design/Value.h index 7acf62fe9..b432f08a3 100644 --- a/Intern/rayx-core/src/Design/Value.h +++ b/Intern/rayx-core/src/Design/Value.h @@ -254,9 +254,9 @@ class DesignMap { return *x; } - inline EnergyDistributionType as_energyDistType() const { + inline EnergyDistributionType as_energyDistributionType() const { auto* x = std::get_if(&m_variant); - if (!x) throw std::runtime_error("as_energyDistType() called on non-energyDistType!"); + if (!x) throw std::runtime_error("as_energyDistributionType() called on non-energyDistributionType!"); return *x; } diff --git a/Intern/rayx-core/src/Element/Element.h b/Intern/rayx-core/src/Element/Element.h index 5858d33cb..f9828a1fe 100644 --- a/Intern/rayx-core/src/Element/Element.h +++ b/Intern/rayx-core/src/Element/Element.h @@ -7,7 +7,7 @@ #include "Behaviour.h" #include "Core.h" #include "Cutout.h" -#include "Data/xml.h" +#include "Rml/xml.h" #include "Shader/SlopeError.h" #include "Surface.h" diff --git a/Intern/rayx-core/src/Data/Strings.cpp b/Intern/rayx-core/src/Element/Strings.cpp similarity index 100% rename from Intern/rayx-core/src/Data/Strings.cpp rename to Intern/rayx-core/src/Element/Strings.cpp diff --git a/Intern/rayx-core/src/Data/Strings.h b/Intern/rayx-core/src/Element/Strings.h similarity index 100% rename from Intern/rayx-core/src/Data/Strings.h rename to Intern/rayx-core/src/Element/Strings.h diff --git a/Intern/rayx-core/src/Material/NffTable.cpp b/Intern/rayx-core/src/Material/NffTable.cpp index 00b3d82e5..dbb87a272 100644 --- a/Intern/rayx-core/src/Material/NffTable.cpp +++ b/Intern/rayx-core/src/Material/NffTable.cpp @@ -4,7 +4,7 @@ #include #include -#include "Data/Locate.h" +#include "Rml/Locate.h" #include "Debug/Debug.h" namespace RAYX { diff --git a/Intern/rayx-core/src/Material/PalikTable.cpp b/Intern/rayx-core/src/Material/PalikTable.cpp index bc0ba5d3d..5db83d4a2 100644 --- a/Intern/rayx-core/src/Material/PalikTable.cpp +++ b/Intern/rayx-core/src/Material/PalikTable.cpp @@ -3,7 +3,7 @@ #include #include -#include "Data/Locate.h" +#include "Rml/Locate.h" #include "Debug/Debug.h" namespace RAYX { diff --git a/Intern/rayx-core/src/Data/DesignElementWriter.h b/Intern/rayx-core/src/Rml/DesignElementWriter.h similarity index 100% rename from Intern/rayx-core/src/Data/DesignElementWriter.h rename to Intern/rayx-core/src/Rml/DesignElementWriter.h diff --git a/Intern/rayx-core/src/Data/DesignSourceWriter.h b/Intern/rayx-core/src/Rml/DesignSourceWriter.h similarity index 93% rename from Intern/rayx-core/src/Data/DesignSourceWriter.h rename to Intern/rayx-core/src/Rml/DesignSourceWriter.h index 44cc122c7..68c42bad8 100644 --- a/Intern/rayx-core/src/Data/DesignSourceWriter.h +++ b/Intern/rayx-core/src/Rml/DesignSourceWriter.h @@ -23,11 +23,15 @@ void setAllMandatory(xml::Parser parser, DesignSource* ds) { } void setDefaultEnergy(xml::Parser parser, DesignSource* ds) { - ds->setEnergy(parser.parsePhotonEnergy()); - ds->setEnergyDistributionFile(parser.parseEnergyDistributionFile().generic_string()); ds->setEnergyDistributionType(parser.parseEnergyDistributionType()); - ds->setEnergySpread(parser.parseEnergySpread()); ds->setEnergySpreadType(parser.parseEnergySpreadType()); + + if (ds->getEnergyDistributionType() == EnergyDistributionType::File) { + ds->setEnergyDistributionFile(parser.parseEnergyDistributionFile().generic_string()); + } else { + ds->setEnergy(parser.parsePhotonEnergy()); + ds->setEnergySpread(parser.parseEnergySpread()); + } } void setDefaultOrientation(xml::Parser parser, DesignSource* ds) { diff --git a/Intern/rayx-core/src/Data/Importer.cpp b/Intern/rayx-core/src/Rml/Importer.cpp similarity index 99% rename from Intern/rayx-core/src/Data/Importer.cpp rename to Intern/rayx-core/src/Rml/Importer.cpp index 481c15835..77197c2ba 100644 --- a/Intern/rayx-core/src/Data/Importer.cpp +++ b/Intern/rayx-core/src/Rml/Importer.cpp @@ -8,13 +8,13 @@ #include "Beamline/Beamline.h" #include "Beamline/Objects/Objects.h" -#include "Data/xml.h" +#include "Rml/xml.h" #include "Debug/Debug.h" #include "Debug/Instrumentor.h" #include "Design/DesignElement.h" #include "DesignElementWriter.h" #include "DesignSourceWriter.h" -#include "Strings.h" +#include "Element/Strings.h" using RAYX::ElementType; diff --git a/Intern/rayx-core/src/Data/Importer.h b/Intern/rayx-core/src/Rml/Importer.h similarity index 100% rename from Intern/rayx-core/src/Data/Importer.h rename to Intern/rayx-core/src/Rml/Importer.h diff --git a/Intern/rayx-core/src/Data/Locate.cpp b/Intern/rayx-core/src/Rml/Locate.cpp similarity index 100% rename from Intern/rayx-core/src/Data/Locate.cpp rename to Intern/rayx-core/src/Rml/Locate.cpp diff --git a/Intern/rayx-core/src/Data/Locate.h b/Intern/rayx-core/src/Rml/Locate.h similarity index 100% rename from Intern/rayx-core/src/Data/Locate.h rename to Intern/rayx-core/src/Rml/Locate.h diff --git a/Intern/rayx-core/src/Data/xml.cpp b/Intern/rayx-core/src/Rml/xml.cpp similarity index 99% rename from Intern/rayx-core/src/Data/xml.cpp rename to Intern/rayx-core/src/Rml/xml.cpp index b4b979508..fd611b96f 100644 --- a/Intern/rayx-core/src/Data/xml.cpp +++ b/Intern/rayx-core/src/Rml/xml.cpp @@ -10,7 +10,7 @@ #include "Beamline/LightSource.h" #include "Debug/Debug.h" #include "Shader/Constants.h" -#include "Strings.h" +#include "Element/Strings.h" namespace RAYX::xml { diff --git a/Intern/rayx-core/src/Data/xml.h b/Intern/rayx-core/src/Rml/xml.h similarity index 100% rename from Intern/rayx-core/src/Data/xml.h rename to Intern/rayx-core/src/Rml/xml.h diff --git a/Intern/rayx-core/src/Shader/Behave.cpp b/Intern/rayx-core/src/Shader/Behave.cpp index 3b35e0b8a..4635158e3 100644 --- a/Intern/rayx-core/src/Shader/Behave.cpp +++ b/Intern/rayx-core/src/Shader/Behave.cpp @@ -136,4 +136,4 @@ Ray behaveImagePlane(Ray r, [[maybe_unused]] int id, [[maybe_unused]] Collision return r; } -} // namespace RAYX +} // namespace RAYX \ No newline at end of file diff --git a/Intern/rayx-core/tests/input/loadDatFile.h5 b/Intern/rayx-core/tests/input/loadDatFile.h5 new file mode 100644 index 0000000000000000000000000000000000000000..93a000f2bbc1a1c20a80c063389887f2c6ec3817 GIT binary patch literal 34058 zcmeI5c{mnt`~L?ONkt@ONwyZ1JzKhN`;vXnmMs+#t=jMQoupkPS|}xDDawc}ZIUfp z2w4(FQB?9XTr=~0Ki}hc<{8KF`|J7o9LI-oPWSb?-{*3j*EKV@<0b}1Q+em`BKQ{% z4>AGaAN`T|-!S~*Jv{as;+U{|!XG%`_hayT0_WHd90>j&f{4K13&7X^=Xv(FhK9(< znZ)Z8-{C()6eo=R#6$ez|GxiMDPUr#YmL8QXZWs(cq)Q%Mu@S=YsY5%XGQo6A}(3* znCUkTWYTE-j{Ogh&;_F}!NEE9%0=)6h2Zyp9&?REK7OWvBtXVumxZWKK~#si#{R*? zk>BEWPR_9xtAMj3C5!t`Ws?3;&3qV`q#h`)}e0R&3%G z#aKSL3 zlW zI6(VS_&Wc&f6orjx&2(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U*nuwpIjg{`J5L31|7IE;QTvi*2<^=MtFHcH(t5i1lcf0kvzF-X zP^>2Twnx7xW$6!)eBnWYtD{e7gB5Adf^fdRqs8<4Q=Fll`TS8X#Li8kn}1mppLc}Y zvxmBW;dlsgpr>@(+R-JX6rXpvT9J zEaFMvWWdZ=6o$J$FD8;H~VX*fnICZSa0wOTJ!$^QE?8+ literal 0 HcmV?d00001 diff --git a/Intern/rayx-core/tests/input/loadDatFile.rml b/Intern/rayx-core/tests/input/loadDatFile.rml index 03e60f79f..24234e2bc 100644 --- a/Intern/rayx-core/tests/input/loadDatFile.rml +++ b/Intern/rayx-core/tests/input/loadDatFile.rml @@ -20,7 +20,7 @@ 0 0 0 - loadDatFile.DAT + loadDatFie.DAT 100 0 0 diff --git a/Intern/rayx-core/tests/setupTests.h b/Intern/rayx-core/tests/setupTests.h index 35d284774..880bc2ee1 100644 --- a/Intern/rayx-core/tests/setupTests.h +++ b/Intern/rayx-core/tests/setupTests.h @@ -8,7 +8,7 @@ #include "Beamline/Objects/Objects.h" #include "CanonicalizePath.h" #include "Core.h" -#include "Data/Importer.h" +#include "Rml/Importer.h" #include "Debug/Debug.h" #include "Design/DesignElement.h" #include "Design/DesignSource.h" diff --git a/Intern/rayx-ui/src/Application.cpp b/Intern/rayx-ui/src/Application.cpp index 302103a46..f9d411e53 100644 --- a/Intern/rayx-ui/src/Application.cpp +++ b/Intern/rayx-ui/src/Application.cpp @@ -5,7 +5,7 @@ #include "CanonicalizePath.h" #include "Colors.h" -#include "Data/Importer.h" +#include "Rml/Importer.h" #include "Debug/Debug.h" #include "Debug/Instrumentor.h" #include "FrameInfo.h" diff --git a/Intern/rayx-ui/src/GraphicsCore/Texture.cpp b/Intern/rayx-ui/src/GraphicsCore/Texture.cpp index 62250ea7b..10a236eba 100644 --- a/Intern/rayx-ui/src/GraphicsCore/Texture.cpp +++ b/Intern/rayx-ui/src/GraphicsCore/Texture.cpp @@ -8,7 +8,7 @@ #include #include "Buffer.h" -#include "Data/Locate.h" +#include "Rml/Locate.h" #include "Debug/Instrumentor.h" Texture::Texture(const Device& device) diff --git a/Intern/rayx-ui/src/RenderSystem/GridRenderSystem.cpp b/Intern/rayx-ui/src/RenderSystem/GridRenderSystem.cpp index 5957bf202..74b048624 100644 --- a/Intern/rayx-ui/src/RenderSystem/GridRenderSystem.cpp +++ b/Intern/rayx-ui/src/RenderSystem/GridRenderSystem.cpp @@ -1,6 +1,6 @@ #include "GridRenderSystem.h" -#include "Data/Locate.h" +#include "Rml/Locate.h" GridRenderSystem::GridRenderSystem(Device& device, VkRenderPass renderPass, const std::vector& setLayouts) : RenderSystem(device, fillInput(renderPass), setLayouts) {} diff --git a/Intern/rayx-ui/src/RenderSystem/ObjectRenderSystem.cpp b/Intern/rayx-ui/src/RenderSystem/ObjectRenderSystem.cpp index cd0b7028d..9892621c9 100644 --- a/Intern/rayx-ui/src/RenderSystem/ObjectRenderSystem.cpp +++ b/Intern/rayx-ui/src/RenderSystem/ObjectRenderSystem.cpp @@ -2,7 +2,7 @@ #include -#include "Data/Locate.h" +#include "Rml/Locate.h" #include "Vertex.h" ObjectRenderSystem::ObjectRenderSystem(Device& device, VkRenderPass renderPass, const std::vector& setLayouts) diff --git a/Intern/rayx-ui/src/RenderSystem/RayRenderSystem.cpp b/Intern/rayx-ui/src/RenderSystem/RayRenderSystem.cpp index b9553926f..77880a29e 100644 --- a/Intern/rayx-ui/src/RenderSystem/RayRenderSystem.cpp +++ b/Intern/rayx-ui/src/RenderSystem/RayRenderSystem.cpp @@ -1,6 +1,6 @@ #include "RayRenderSystem.h" -#include "Data/Locate.h" +#include "Rml/Locate.h" #include "RenderObject.h" #include "Vertex.h" diff --git a/Intern/rayx-ui/src/UserInterface/BeamlineDesignHandler.cpp b/Intern/rayx-ui/src/UserInterface/BeamlineDesignHandler.cpp index 652014ebc..f98b5429f 100644 --- a/Intern/rayx-ui/src/UserInterface/BeamlineDesignHandler.cpp +++ b/Intern/rayx-ui/src/UserInterface/BeamlineDesignHandler.cpp @@ -10,7 +10,7 @@ #include #include "Beamline/StringConversion.h" -#include "Data/Strings.cpp" +#include "Element/Strings.cpp" #include "Debug/Instrumentor.h" void BeamlineDesignHandler::showBeamlineDesignWindow(UIBeamlineInfo& uiBeamlineInfo) { @@ -321,7 +321,7 @@ void BeamlineDesignHandler::createInputField(const std::string& key, RAYX::Desig break; } case RAYX::ValueType::EnergyDistributionType: { - auto currentValue = element.as_energyDistType(); + auto currentValue = element.as_energyDistributionType(); if (ImGui::BeginCombo("##energydisttype", RAYX::EnergyDistributionTypeToString.at(currentValue).c_str())) { for (const auto& [value, name] : RAYX::EnergyDistributionTypeToString) { bool isSelected = (currentValue == value); diff --git a/Intern/rayx-ui/src/UserInterface/BeamlineOutliner.cpp b/Intern/rayx-ui/src/UserInterface/BeamlineOutliner.cpp index 6852b1018..404caf933 100644 --- a/Intern/rayx-ui/src/UserInterface/BeamlineOutliner.cpp +++ b/Intern/rayx-ui/src/UserInterface/BeamlineOutliner.cpp @@ -4,7 +4,7 @@ #include -#include "Data/Strings.h" +#include "Element/Strings.h" BeamlineOutliner::BeamlineOutliner(/* args */) {} diff --git a/Intern/rayx-ui/src/UserInterface/UIHandler.cpp b/Intern/rayx-ui/src/UserInterface/UIHandler.cpp index f2bb6a9ad..f9ed5ff56 100644 --- a/Intern/rayx-ui/src/UserInterface/UIHandler.cpp +++ b/Intern/rayx-ui/src/UserInterface/UIHandler.cpp @@ -9,7 +9,7 @@ #include #include -#include "Data/Locate.h" +#include "Rml/Locate.h" #include "Colors.h" #include "Debug/Instrumentor.h" #include "RayProcessing.h" diff --git a/Intern/rayx/src/TerminalApp.cpp b/Intern/rayx/src/TerminalApp.cpp index 6da1987be..7a6074ec1 100644 --- a/Intern/rayx/src/TerminalApp.cpp +++ b/Intern/rayx/src/TerminalApp.cpp @@ -5,8 +5,8 @@ #include #include "Debug/Debug.h" -#include "Data/Importer.h" -#include "Data/Locate.h" +#include "Rml/Importer.h" +#include "Rml/Locate.h" #include "Random.h" #include "Tracer/Tracer.h" #include "Writer/Writer.h"