Mantid
Loading...
Searching...
No Matches
NullImplicitFunction.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//----------------------------------------------------------------------
10// Includes
11//----------------------------------------------------------------------
13#include <gsl/gsl_blas.h>
14#include <vector>
15
16namespace Mantid {
17namespace Geometry {
28public:
29 std::string getName() const override;
30 std::string toXMLString() const override;
31 //----------------------MDImplicit function methods ------------
32 bool isPointContained(const coord_t *) override { return true; }
33 bool isPointContained(const std::vector<coord_t> &) override { return true; }
34 // Unhide base class methods (avoids Intel compiler warning)
35 using MDImplicitFunction::isPointContained;
36 //---------------------------------------------------------------
37 static std::string functionName() { return "NullImplicitFunction"; }
38};
39} // namespace Geometry
40} // namespace Mantid
std::string getName(const IMDDimension &self)
An "ImplicitFunction" defining a hyper-cuboid-shaped region in N dimensions.
This class represents a Null Implicit function.
bool isPointContained(const std::vector< coord_t > &) override
Is a point in MDimensions contained by this ImplicitFunction? If the point is bounded by ALL planes c...
bool isPointContained(const coord_t *) override
Is a point in MDimensions contained by this ImplicitFunction? If the point is bounded by ALL planes c...
Helper class which provides the Collimation Length for SANS instruments.
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...
Definition: MDTypes.h:27