12#include "MantidGeometry/DllConfig.h"
52 virtual std::size_t
nDets()
const = 0;
92 virtual size_t index()
const = 0;
base class for Geometric IComponent
Interface class for detector objects.
virtual double getPhi() const =0
Gives the phi of this detector object in radians.
virtual std::size_t nDets() const =0
Get the number of physical detectors this object represents.
virtual size_t index() const =0
Helper for legacy access mode. Returns the index of the detector.
virtual double getTwoTheta(const Kernel::V3D &observer, const Kernel::V3D &axis) const =0
Gives the angle of this detector object with respect to an axis.
virtual double getSignedTwoTheta(const Kernel::V3D &observer, const Kernel::V3D &axis, const Kernel::V3D &instrumentUp) const =0
Gives the signed angle of this detector object with respect to an axis.
virtual IDetector * cloneParameterized(const ParameterMap *map) const =0
Create a cloned instance with a parameter map applied.
virtual det_topology getTopology(Kernel::V3D ¢er) const =0
returns the geometry of detectors, meaningful for groups, rectangular for single; returns the centre ...
double getDistance(const IComponent &comp) const override=0
Get the distance of this detector object from another Component.
virtual detid_t getID() const =0
Get the detector ID.
virtual double getPhiOffset(const double &offset) const =0
Gives the phi of this detector offset from y=0 by offset.
IDetector()
(Empty) Constructor.
virtual const ParameterMap & parameterMap() const =0
Helper for legacy access mode. Returns a reference to the ParameterMap.
Object Component class, this class brings together the physical attributes of the component to the po...
std::shared_ptr< const Mantid::Geometry::IDetector > IDetector_const_sptr
Shared pointer to IDetector (const version)
det_topology
Describes the topology of a detectors group used to calculate angular position and angular measures f...
std::shared_ptr< Mantid::Geometry::IDetector > IDetector_sptr
Shared pointer to IDetector.
Helper class which provides the Collimation Length for SANS instruments.
int32_t detid_t
Typedef for a detector ID.