Mantid
Loading...
Searching...
No Matches
Framework
Geometry
inc
MantidGeometry
MDGeometry
MDBoxImplicitFunction.h
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2011 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
#pragma once
8
9
#include "
MantidGeometry/MDGeometry/MDImplicitFunction.h
"
10
#include "
MantidGeometry/MDGeometry/MDTypes.h
"
11
#include "
MantidKernel/VMD.h
"
12
#include <boost/tuple/tuple.hpp>
13
#include <vector>
14
15
namespace
Mantid
{
16
namespace
Geometry {
17
25
class
MANTID_GEOMETRY_DLL
MDBoxImplicitFunction
:
public
MDImplicitFunction
{
26
public
:
27
MDBoxImplicitFunction
(
const
Mantid::Kernel::VMD
&min,
const
Mantid::Kernel::VMD
&max);
28
29
MDBoxImplicitFunction
(
const
std::vector<coord_t> &min,
const
std::vector<coord_t> &max);
30
31
double
volume()
const
;
32
33
double
fraction(
const
std::vector<boost::tuple<Mantid::coord_t, Mantid::coord_t>> &boxExtents)
const
;
34
35
private
:
36
void
construct(
const
Mantid::Kernel::VMD
&min,
const
Mantid::Kernel::VMD
&max);
37
39
const
Mantid::Kernel::VMD
m_max
;
41
const
Mantid::Kernel::VMD
m_min
;
43
double
m_volume
;
44
};
45
46
}
// namespace Geometry
47
}
// namespace Mantid
MDImplicitFunction.h
MDTypes.h
VMD.h
Mantid::Geometry::MDBoxImplicitFunction
General N-dimensional box implicit function: Defines a cuboid in N dimensions that is aligned with th...
Definition
MDBoxImplicitFunction.h:25
Mantid::Geometry::MDBoxImplicitFunction::m_max
const Mantid::Kernel::VMD m_max
Maximum extents of MDBox.
Definition
MDBoxImplicitFunction.h:39
Mantid::Geometry::MDBoxImplicitFunction::m_min
const Mantid::Kernel::VMD m_min
Minimum extents of MDBox.
Definition
MDBoxImplicitFunction.h:41
Mantid::Geometry::MDBoxImplicitFunction::m_volume
double m_volume
Box volume.
Definition
MDBoxImplicitFunction.h:43
Mantid::Geometry::MDImplicitFunction
An "ImplicitFunction" defining a hyper-cuboid-shaped region in N dimensions.
Definition
MDImplicitFunction.h:44
Mantid::Kernel::VMDBase< VMD_t >
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Generated by
1.9.8