8#include "MantidGeometry/DllConfig.h"
20class ComponentVisitor;
35 std::string
type()
const override {
return "RectangularDetector"; }
46 static bool compareName(
const std::string &proposedMatch);
49 void initialize(std::shared_ptr<IObject> shape,
int xpixels,
double xstart,
double xstep,
int ypixels,
double ystart,
50 double ystep,
int idstart,
bool idfillbyfirst_y,
int idstepbyrow,
int idstep = 1);
55 std::shared_ptr<Detector> getAtXY(
const int X,
const int Y)
const;
57 detid_t getDetectorIDAtXY(
const int X,
const int Y)
const;
58 std::pair<int, int> getXYForDetectorID(
const int detectorID)
const;
61 void getTextureSize(
int &xsize,
int &ysize)
const;
63 unsigned int getTextureID()
const;
64 void setTextureID(
unsigned int textureID);
70 using CompAssembly::getBoundingBox;
72 void testIntersectionWithChildren(
Track &testRay, std::deque<IComponent_const_sptr> &searchQueue)
const override;
79 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.