Mantid
Loading...
Searching...
No Matches
ComponentHelper.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 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/DllConfig.h"
11
12namespace Mantid {
13namespace Kernel {
14// Forward declarations
15class Quat;
16class V3D;
17} // namespace Kernel
18
19namespace Geometry {
20// Forward declarations
21class CSGObject;
22class IComponent;
23class ParameterMap;
24
29namespace ComponentHelper {
36 Relative = 1
37};
38
40 const Mantid::Kernel::V3D &samplePos,
41 const Mantid::Kernel::V3D &detectorPos);
42
43MANTID_GEOMETRY_DLL Geometry::Instrument_sptr createVirtualInstrument(Kernel::V3D sourcePos, Kernel::V3D samplePos,
44 const std::vector<Kernel::V3D> &vecdetpos,
45 const std::vector<detid_t> &vecdetid);
46
47MANTID_GEOMETRY_DLL std::shared_ptr<Geometry::CSGObject> createSphere(double radius, const Kernel::V3D &centre,
48 const std::string &id);
49
50MANTID_GEOMETRY_DLL std::string sphereXML(double radius, const Kernel::V3D &centre, const std::string &id);
51} // namespace ComponentHelper
52} // namespace Geometry
53} // namespace Mantid
double radius
Definition: Rasterize.cpp:31
Class for 3D vectors.
Definition: V3D.h:34
TransformType
Specifies how a transformation should be interpreted.
@ Relative
The transformation given is relative to the original value.
@ Absolute
The value is the absolute new value.
MANTID_GEOMETRY_DLL Geometry::Instrument_sptr createVirtualInstrument(Kernel::V3D sourcePos, Kernel::V3D samplePos, const std::vector< Kernel::V3D > &vecdetpos, const std::vector< detid_t > &vecdetid)
MANTID_GEOMETRY_DLL std::shared_ptr< Geometry::CSGObject > createSphere(double radius, const Kernel::V3D &centre, const std::string &id)
Create a sphere object.
MANTID_GEOMETRY_DLL Geometry::Instrument_sptr createMinimalInstrument(const Mantid::Kernel::V3D &sourcePos, const Mantid::Kernel::V3D &samplePos, const Mantid::Kernel::V3D &detectorPos)
createOneDetectorInstrument, creates the most simple possible definition of an instrument in which we...
MANTID_GEOMETRY_DLL std::string sphereXML(double radius, const Kernel::V3D &centre, const std::string &id)
Return the XML for a sphere.
std::shared_ptr< Instrument > Instrument_sptr
Shared pointer to an instrument object.
Helper class which provides the Collimation Length for SANS instruments.