8#include "MantidGeometry/DllConfig.h"
21class ComponentVisitor;
36 std::string
type()
const override {
return "RectangularDetector"; }
47 static bool compareName(
const std::string &proposedMatch);
50 void initialize(std::shared_ptr<IObject> shape,
int xpixels,
double xstart,
double xstep,
int ypixels,
double ystart,
51 double ystep,
int idstart,
bool idfillbyfirst_y,
int idstepbyrow,
int idstep = 1);
56 std::shared_ptr<Detector> getAtXY(
const int X,
const int Y)
const;
58 detid_t getDetectorIDAtXY(
const int X,
const int Y)
const;
59 std::pair<int, int> getXYForDetectorID(
const int detectorID)
const;
62 void getTextureSize(
int &xsize,
int &ysize)
const;
64 unsigned int getTextureID()
const;
65 void setTextureID(
unsigned int textureID);
71 using CompAssembly::getBoundingBox;
73 void testIntersectionWithChildren(
Track &testRay, std::deque<IComponent_const_sptr> &searchQueue)
const override;
80 virtual size_t registerContents(
class ComponentVisitor &componentVisitor)
const override;
ComponentVisitor : Visitor for IComponents.
GridDetector is a type of CompAssembly, an assembly of components.
Class for Assembly of geometric components.
base class for Geometric IComponent
RectangularDetector is a type of CompAssembly, an assembly of components.
RectangularDetector()
Empty constructor.
std::string type() const override
String description of the type of component.
RectangularDetector & operator=(const ICompAssembly &)
Private copy assignment operator.
unsigned int m_textureID
Texture ID to use in rendering.
Defines a track as a start point and a direction.
A material is defined as being composed of a given element, defined as a PhysicalConstants::NeutronAt...
std::shared_ptr< const RectangularDetector > RectangularDetector_const_sptr
std::shared_ptr< RectangularDetector > RectangularDetector_sptr
MANTID_GEOMETRY_DLL std::ostream & operator<<(std::ostream &stream, const PointGroup &self)
Returns a streamed representation of the PointGroup object.
Helper class which provides the Collimation Length for SANS instruments.
int32_t detid_t
Typedef for a detector ID.