Skip to content

Commit 7ee1b3b

Browse files
committed
rename namespace RAYX to rayx
1 parent d4b275a commit 7ee1b3b

File tree

158 files changed

+522
-522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+522
-522
lines changed

Intern/rayx-core/src/Angle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "Debug/Instrumentor.h"
77
#include "Shader/Constants.h"
88

9-
namespace RAYX {
9+
namespace rayx {
1010

1111
/// Converts an angle in degrees to radians.
1212
Rad Deg::toRad() const { return Rad(deg * PI / 180); }
@@ -18,4 +18,4 @@ double Rad::sin() const { return std::sin(rad); }
1818
double Rad::cos() const { return std::cos(rad); }
1919
double Rad::tan() const { return std::tan(rad); }
2020

21-
} // namespace RAYX
21+
} // namespace rayx

Intern/rayx-core/src/Angle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "Core.h"
88

9-
namespace RAYX {
9+
namespace rayx {
1010

1111
struct Rad;
1212

@@ -33,4 +33,4 @@ struct RAYX_API Rad {
3333
double rad;
3434
};
3535

36-
} // namespace RAYX
36+
} // namespace rayx

Intern/rayx-core/src/Beamline/Beamline.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "Design/DesignElement.h"
99
#include "Design/DesignSource.h"
1010

11-
namespace RAYX {
11+
namespace rayx {
1212

1313
namespace {
1414
std::string getUniqueUnnamedGroupName() {
@@ -481,4 +481,4 @@ BeamlineNode* Group::findNodeByObjectId(const size_t objectId) {
481481
return const_cast<BeamlineNode*>(constSelf->findNodeByObjectId(objectId));
482482
}
483483

484-
} // namespace RAYX
484+
} // namespace rayx

Intern/rayx-core/src/Beamline/Beamline.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "Design/DesignSource.h"
1212
#include "Node.h"
1313

14-
namespace RAYX {
14+
namespace rayx {
1515

1616
/**
1717
* A beamline group that can contain child nodes (elements, sources, or other groups).
@@ -180,4 +180,4 @@ class RAYX_API Group : public BeamlineNode {
180180

181181
using Beamline = Group; // Conceptually, a Beamline is a Group
182182

183-
} // namespace RAYX
183+
} // namespace rayx

Intern/rayx-core/src/Beamline/DatFile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "Debug/Debug.h"
88
#include "Random.h"
99

10-
namespace RAYX {
10+
namespace rayx {
1111
bool DatFile::load(const std::filesystem::path& filename, DatFile* out) {
1212
try {
1313
std::ifstream s(filename);
@@ -63,4 +63,4 @@ bool DatFile::load(const std::filesystem::path& filename, DatFile* out) {
6363
return s.str();
6464
}
6565

66-
} // namespace RAYX
66+
} // namespace rayx

Intern/rayx-core/src/Beamline/DatFile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include "Core.h"
99

10-
namespace RAYX {
10+
namespace rayx {
1111
/** This struct represents one line of a .DAT file. */
1212
struct DatEntry {
1313
double m_energy;
@@ -34,4 +34,4 @@ struct DatFile {
3434
/** creates a valid .DAT file from this struct (may be used for testing) */
3535
[[maybe_unused]] std::string dump();
3636
};
37-
} // namespace RAYX
37+
} // namespace rayx

Intern/rayx-core/src/Beamline/Definitions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "Debug/Debug.h"
44

5-
namespace RAYX {
5+
namespace rayx {
66
enum class GratingMount { Deviation, Incidence };
77
enum class ParaboloidType { Focussing, Collimate };
88
enum class CurvatureType {
@@ -26,4 +26,4 @@ enum class FigureRotation { Yes, Plane, A11 };
2626
// Thus they need a bit of extra handling to convert them to the shaders XZ plane.
2727
enum class DesignPlane { XY, XZ };
2828

29-
} // namespace RAYX
29+
} // namespace rayx

Intern/rayx-core/src/Beamline/EnergyDistribution.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "Core.h"
66
#include "DatFile.h"
77

8-
namespace RAYX {
8+
namespace rayx {
99

1010
enum class SpreadType { HardEdge, SoftEdge, SeparateEnergies }; // default WhiteBand
1111
enum class EnergyDistributionType { File, Values, Total, Param }; // default ET_VALUES
@@ -48,4 +48,4 @@ struct RAYX_API SeparateEnergies {
4848

4949
using EnergyDistributionVariant = std::variant<DatFile, HardEdge, SoftEdge, SeparateEnergies>;
5050

51-
} // namespace RAYX
51+
} // namespace rayx

Intern/rayx-core/src/Beamline/Node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "Beamline.h"
66

7-
namespace RAYX {
7+
namespace rayx {
88

99
namespace {
1010
std::string getNodeTypeString(const BeamlineNode* node) {
@@ -107,4 +107,4 @@ DesignElement* BeamlineNode::asElement() {
107107
return static_cast<DesignElement*>(this);
108108
}
109109

110-
} // namespace RAYX
110+
} // namespace rayx

Intern/rayx-core/src/Beamline/Node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "Core.h"
88

9-
namespace RAYX {
9+
namespace rayx {
1010

1111
class Group;
1212
class DesignSource;
@@ -117,4 +117,4 @@ class RAYX_API BeamlineNode {
117117
BeamlineNode* m_parent = nullptr;
118118
};
119119

120-
} // namespace RAYX
120+
} // namespace rayx

0 commit comments

Comments
 (0)