Mantid
Loading...
Searching...
No Matches
Framework
Geometry
inc
MantidGeometry
Instrument
SolidAngleParams.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2023 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
8
#pragma once
9
10
#include "MantidGeometry/DllConfig.h"
11
#include "
MantidKernel/V3D.h
"
12
13
namespace
Mantid
{
14
namespace
Geometry {
15
16
class
MANTID_GEOMETRY_DLL
SolidAngleParams
{
17
public
:
18
SolidAngleParams
(
Kernel::V3D
observer,
int
numberOfCylinderSlices = 10)
19
: m_observer(
std
::move(observer)), m_numberOfCylinderSlices(numberOfCylinderSlices) {}
20
inline
const
Kernel::V3D
&
observer
()
const
{
return
m_observer; }
21
inline
int
cylinderSlices
()
const
{
return
m_numberOfCylinderSlices; }
22
inline
const
SolidAngleParams
copyWithNewObserver
(
Kernel::V3D
newObserver)
const
{
23
return
SolidAngleParams
(std::move(newObserver), m_numberOfCylinderSlices);
24
}
25
26
private
:
27
Kernel::V3D
m_observer
;
28
int
m_numberOfCylinderSlices
;
29
};
30
31
}
// namespace Geometry
32
}
// namespace Mantid
V3D.h
Mantid::Geometry::SolidAngleParams
Definition
SolidAngleParams.h:16
Mantid::Geometry::SolidAngleParams::m_numberOfCylinderSlices
int m_numberOfCylinderSlices
Definition
SolidAngleParams.h:28
Mantid::Geometry::SolidAngleParams::SolidAngleParams
SolidAngleParams(Kernel::V3D observer, int numberOfCylinderSlices=10)
Definition
SolidAngleParams.h:18
Mantid::Geometry::SolidAngleParams::m_observer
Kernel::V3D m_observer
Definition
SolidAngleParams.h:27
Mantid::Geometry::SolidAngleParams::cylinderSlices
int cylinderSlices() const
Definition
SolidAngleParams.h:21
Mantid::Geometry::SolidAngleParams::copyWithNewObserver
const SolidAngleParams copyWithNewObserver(Kernel::V3D newObserver) const
Definition
SolidAngleParams.h:22
Mantid::Geometry::SolidAngleParams::observer
const Kernel::V3D & observer() const
Definition
SolidAngleParams.h:20
Mantid::Kernel::V3D
Class for 3D vectors.
Definition
V3D.h:34
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
std
STL namespace.
Generated by
1.9.8