|
Mantid
|
Base class for all classes defining a beam profile. More...
#include <IBeamProfile.h>
Classes | |
| struct | Ray |
Public Member Functions | |
| virtual Geometry::BoundingBox | defineActiveRegion (const Geometry::BoundingBox &) const =0 |
| virtual Ray | generatePoint (Kernel::PseudoRandomNumberGenerator &rng) const =0 |
| virtual Ray | generatePoint (Kernel::PseudoRandomNumberGenerator &rng, const Geometry::BoundingBox &) const =0 |
| Geometry::IObject_sptr | getIntersectionWithSample (const Geometry::IObject &sample) const |
| Get the intersection of the beam with the sample. | |
| IBeamProfile ()=default | |
| IBeamProfile (const Kernel::V3D center) | |
| Construct a new IBeamProfile::IBeamProfile object. | |
| virtual | ~IBeamProfile ()=default |
Protected Attributes | |
| Kernel::V3D | m_beamCenter |
Base class for all classes defining a beam profile.
Definition at line 27 of file IBeamProfile.h.
| Mantid::Algorithms::IBeamProfile::IBeamProfile | ( | const Kernel::V3D | center | ) |
Construct a new IBeamProfile::IBeamProfile object.
| center | Center of the beam |
Definition at line 69 of file IBeamProfile.cpp.
|
default |
|
virtualdefault |
|
pure virtual |
Implemented in Mantid::Algorithms::RectangularBeamProfile, and Mantid::Algorithms::CircularBeamProfile.
Referenced by getIntersectionWithSample(), and Mantid::Algorithms::MCAbsorptionStrategy::setActiveRegion().
|
pure virtual |
Implemented in Mantid::Algorithms::CircularBeamProfile, and Mantid::Algorithms::RectangularBeamProfile.
Referenced by Mantid::Algorithms::MCAbsorptionStrategy::calculate().
|
pure virtual |
Implemented in Mantid::Algorithms::CircularBeamProfile, and Mantid::Algorithms::RectangularBeamProfile.
| Geometry::IObject_sptr Mantid::Algorithms::IBeamProfile::getIntersectionWithSample | ( | const Geometry::IObject & | sample | ) | const |
Get the intersection of the beam with the sample.
| sample | Sample object to be intersected with |
Definition at line 77 of file IBeamProfile.cpp.
References Mantid::Geometry::BoundingBox::centrePoint(), Mantid::Geometry::IObject::clone(), Mantid::Geometry::ShapeFactory::createShape(), defineActiveRegion(), Mantid::Geometry::IObject::getBoundingBox(), Mantid::Geometry::BoundingBox::maxPoint(), Mantid::Geometry::BoundingBox::minPoint(), Mantid::Geometry::BoundingBox::xMax(), Mantid::Geometry::BoundingBox::xMin(), Mantid::Geometry::BoundingBox::yMax(), Mantid::Geometry::BoundingBox::yMin(), Mantid::Geometry::BoundingBox::zMax(), and Mantid::Geometry::BoundingBox::zMin().
|
protected |
Definition at line 43 of file IBeamProfile.h.