|
Mantid
|
Holds a collection of detectors. More...
#include <DetectorGroup.h>
Public Member Functions | |
| void | addDetector (const IDetector_const_sptr &det) |
| Add a detector to the collection. | |
| IDetector * | cloneParameterized (const ParameterMap *) const override |
| Create a cloned instance with a parameter map applied. | |
| DetectorGroup () | |
| Default constructor. | |
| DetectorGroup (const std::vector< IDetector_const_sptr > &dets) | |
| Constructor that takes a list of detectors to add. | |
| void | getBoundingBox (BoundingBox &boundingBox) const override |
| Get the bounding box for this component and store it in the given argument. | |
| std::vector< detid_t > | getDetectorIDs () const |
| What detectors are contained in the group? | |
| std::vector< IDetector_const_sptr > | getDetectors () const |
| What detectors are contained in the group? | |
| double | getDistance (const IComponent &comp) const override |
| Gives the average distance of a group of detectors from the given component. | |
| detid_t | getID () const override |
| Get the detector ID. | |
| double | getPhi () const override |
| Computes the average position and returns the phi value. | |
| double | getPhiOffset (const double &offset) const override |
| Computes the average position and returns the phi value. | |
| int | getPointInObject (Kernel::V3D &point) const override |
| Try to find a point that lies within (or on) the object. | |
| Kernel::V3D | getPos () const override |
| Returns the position of the DetectorGroup. | |
| std::optional< Kernel::V2D > | getSideBySideViewPos () const override |
| Side by side view override doesn't make sense for a detector group so return empty. | |
| double | getSignedTwoTheta (const Kernel::V3D &observer, const Kernel::V3D &axis, const Kernel::V3D &instrumentUp) const override |
| Gives the signed angle of this detector object with respect to an axis. | |
| double | getTwoTheta (const Kernel::V3D &observer, const Kernel::V3D &axis) const override |
| Gives the average angle of a group of detectors from the observation point, relative to the axis given. | |
| bool | isOnSide (const Kernel::V3D &point) const override |
| Does the point given lie on the surface of one of the detectors. | |
| bool | isParametrized () const override |
| Return true if any detector in the group is parametrized. | |
| bool | isValid (const Kernel::V3D &point) const override |
| isValid() is true if the point is inside any of the detectors, i.e. | |
| std::size_t | nDets () const override |
| Get the number of physical detectors this object represents. | |
| double | solidAngle (const Geometry::SolidAngleParams ¶ms) const override |
| Gives the total solid angle subtended by a group of detectors by summing the contributions from the individual detectors. | |
Public Member Functions inherited from Mantid::Geometry::IDetector | |
| IDetector () | |
| (Empty) Constructor. | |
Public Member Functions inherited from Mantid::Geometry::IObjComponent | |
| GeometryHandler * | Handle () const |
| Gets the GeometryHandler. | |
| IObjComponent () | |
| IObjComponent (const IObjComponent &) | |
| Copy constructor. | |
| IObjComponent (GeometryHandler *the_handler) | |
| Constructor, specifying the GeometryHandler (renderer engine) for this IObjComponent. | |
| IObjComponent & | operator= (const IObjComponent &rhs) |
| Assignment operator. | |
| std::string | type () const override |
| type string | |
| ~IObjComponent () override | |
Public Member Functions inherited from Mantid::Geometry::IComponent | |
| virtual Kernel::V3D | getScaleFactor () const |
| Gets the scaling factor of the object for the Object Component. | |
| virtual | ~IComponent ()=default |
| Destructor. | |
ParameterMap access | |
| using | DetCollection = std::map< int, IDetector_const_sptr > |
| The type of collection used for the detectors. | |
| int | m_id |
| The ID of this effective detector. | |
| DetCollection | m_detectors |
| The collection of grouped detectors. | |
| det_topology | group_topology |
| the parameter describes the topology of the detector's group namely if detectors form a box or a ring. | |
| Kernel::V3D | groupCentre |
| group centre is the geometrical centre of the detectors group calculated when the calculate group topology is invoked | |
| std::set< std::string > | getParameterNames (bool recursive=true) const override |
| Return the parameter names. | |
| std::map< std::string, ComponentID > | getParameterNamesByComponent () const override |
| return the parameter names and the component they are from | |
| bool | hasParameter (const std::string &name, bool recursive=true) const override |
| Returns a boolean indicating whether the parameter exists or not. | |
| std::string | getParameterType (const std::string &name, bool recursive=true) const override |
| Detectors group assumed to be non-parameterized. | |
| std::vector< double > | getNumberParameter (const std::string &pname, bool recursive=true) const override |
| Get a parameter defined as a double. | |
| std::vector< Kernel::V3D > | getPositionParameter (const std::string &pname, bool recursive=true) const override |
| Get a parameter defined as a Kernel::V3D. | |
| std::vector< Kernel::Quat > | getRotationParameter (const std::string &pname, bool recursive=true) const override |
| Get a parameter defined as a Kernel::Quaternion. | |
| std::vector< std::string > | getStringParameter (const std::string &pname, bool recursive=true) const override |
| Get a parameter defined as a string. | |
| std::vector< int > | getIntParameter (const std::string &pname, bool recursive=true) const override |
| Get a parameter defined as an integer. | |
| std::vector< bool > | getBoolParameter (const std::string &pname, bool recursive=true) const override |
| Get a parameter defined as an integer. | |
| std::string | getParameterAsString (const std::string &pname, bool recursive=true) const override |
| Get a string representation of a parameter. | |
| bool | getParameterVisible (const std::string &pname, bool recursive=true) const override |
| Get a visibility attribute of a parameter. | |
| det_topology | getTopology (Kernel::V3D ¢er) const override |
| returns the detector's group topology if it has been calculated before or invokes the procedure of calculating such topology if it was not | |
| std::string | getNameSeparator () const |
| Return separator for list of names of detectors. | |
| IComponent const * | getBaseComponent () const override |
| Returns const pointer to itself. | |
| const ParameterMap & | parameterMap () const override |
| Helper for legacy access mode. Always throws for DetectorGroup. | |
| size_t | index () const override |
| Helper for legacy access mode. Always throws for DetectorGroup. | |
| virtual size_t | registerContents (class ComponentVisitor &visitor) const override |
| Component * | clone () const override |
| Virtual Copy Constructor. | |
| ComponentID | getComponentID () const override |
| Returns the ComponentID - a unique identifier of the component. | |
| std::shared_ptr< const IComponent > | getParent () const override |
| Return a pointer to the current parent. | |
| const IComponent * | getBareParent () const override |
| Returns the bare pointer to the IComponent parent. | |
| std::vector< std::shared_ptr< const IComponent > > | getAncestors () const override |
| Return an array of all ancestors, the nearest first. | |
| std::string | getName () const override |
| Get the IComponent name. | |
| std::string | getFullName () const override |
| Get the IComponent full path name. | |
| void | setParent (IComponent *) override |
| Assign a parent IComponent. Previous parent link is lost. | |
| void | setName (const std::string &) override |
| Set the IComponent name. | |
| void | setPos (double, double, double) override |
| Set the IComponent position, x, y, z respective to parent (if present) | |
| void | setPos (const Kernel::V3D &) override |
| Set the position of the component The position is with respect to the parent component. | |
| void | setSideBySideViewPos (const Kernel::V2D &) override |
| void | setRot (const Kernel::Quat &) override |
| Set the orientation Kernel::Quaternion relative to parent (if present) | |
| void | copyRot (const IComponent &) |
| int | interceptSurface (Track &) const override |
| Checks whether the track given will pass through this Component. | |
| void | translate (const Kernel::V3D &) override |
| Copy the Rotation from another IComponent. | |
| void | translate (double, double, double) override |
| Translate the IComponent (x,y,z form). This is relative to parent if. | |
| void | rotate (const Kernel::Quat &) override |
| Rotate the IComponent. This is relative to parent. | |
| void | rotate (double, const Kernel::V3D &) override |
| Rotate the IComponent by an angle in degrees with respect to an axis. | |
| Kernel::V3D | getRelativePos () const override |
| Get the position relative to the parent IComponent (absolute if no parent) | |
| Kernel::Quat | getRelativeRot () const override |
| Get the relative Orientation. | |
| Kernel::Quat | getRotation () const override |
| Get the absolute orientation of the IComponent. | |
| void | printSelf (std::ostream &) const override |
| Prints a text representation of itself. | |
| void | getBoundingBox (double &, double &, double &, double &, double &, double &) const |
| void | draw () const override |
| Draws the objcomponent. | |
| void | drawObject () const override |
| Draws the Object. | |
| void | initDraw () const override |
| Initializes the ObjComponent for rendering, this function should be called before rendering. | |
| const std::shared_ptr< const IObject > | shape () const override |
| Returns the shape of the Object. | |
| const Kernel::Material | material () const override |
| Returns the material of the Object. | |
| DetectorGroup (const DetectorGroup &) | |
| Private, unimplemented copy constructor. | |
| DetectorGroup & | operator= (const DetectorGroup &) |
| Private, unimplemented copy assignment operator. | |
| void | calculateGroupTopology () const |
| function calculates the detectors arrangement (topology) | |
Additional Inherited Members | |
Protected Member Functions inherited from Mantid::Geometry::IObjComponent | |
| void | setGeometryHandler (GeometryHandler *h) |
| Reset the current geometry handler. | |
Holds a collection of detectors.
Responds to IDetector methods as though it were a single detector. Currently, detectors in a group are treated as pointlike (or at least) homogenous entities. This means that it's up to the use to make only sensible groupings of similar detectors since no weighting according to solid angle size takes place and the DetectorGroup's position is just a simple average of its constituents.
Definition at line 27 of file DetectorGroup.h.
|
protected |
The type of collection used for the detectors.
Definition at line 166 of file DetectorGroup.h.
| Mantid::Geometry::DetectorGroup::DetectorGroup | ( | ) |
Default constructor.
Definition at line 30 of file DetectorGroup.cpp.
| Mantid::Geometry::DetectorGroup::DetectorGroup | ( | const std::vector< IDetector_const_sptr > & | dets | ) |
Constructor that takes a list of detectors to add.
| dets | :: The vector of IDetector pointers that this virtual detector will hold |
| std::invalid_argument | If an empty vector is passed as argument |
Definition at line 37 of file DetectorGroup.cpp.
References addDetector(), Mantid::Kernel::Logger::error(), and Mantid::Geometry::g_log.
|
private |
Private, unimplemented copy constructor.
| void Mantid::Geometry::DetectorGroup::addDetector | ( | const IDetector_const_sptr & | det | ) |
Add a detector to the collection.
| det | :: A pointer to the detector to add |
Definition at line 52 of file DetectorGroup.cpp.
References group_topology, m_detectors, m_id, and Mantid::Geometry::undef.
Referenced by DetectorGroup().
|
private |
function calculates the detectors arrangement (topology)
the private function calculates the topology of the detector's group, namely if the detectors arranged into a ring or into a rectangle.
Uses assumption that a ring has hole inside, so geometrical centre of the shape does not belong to a ring but does belong to a rectangle
Definition at line 371 of file DetectorGroup.cpp.
References Mantid::Geometry::cyl, getPos(), group_topology, groupCentre, isValid(), m_detectors, Mantid::Geometry::rect, Mantid::Geometry::undef, and Mantid::Geometry::BoundingBox::width().
Referenced by getTopology().
|
inlineoverrideprotectedvirtual |
Virtual Copy Constructor.
Implements Mantid::Geometry::IObjComponent.
Definition at line 179 of file DetectorGroup.h.
|
inlineoverridevirtual |
Create a cloned instance with a parameter map applied.
Implements Mantid::Geometry::IDetector.
Definition at line 35 of file DetectorGroup.h.
|
inlineprotected |
Definition at line 195 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Draws the objcomponent.
Implements Mantid::Geometry::IObjComponent.
Definition at line 214 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Draws the Object.
Implements Mantid::Geometry::IObjComponent.
Definition at line 215 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Return an array of all ancestors, the nearest first.
Implements Mantid::Geometry::IComponent.
Definition at line 183 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Returns the bare pointer to the IComponent parent.
Implements Mantid::Geometry::IComponent.
Definition at line 182 of file DetectorGroup.h.
|
inlineoverridevirtual |
Returns const pointer to itself.
This currently (2914/04/24) contradicts the logic behind getComponentID overload, so CopyInstrumentParameters will fail on grouped instrument but it is something TO DO:
Implements Mantid::Geometry::IComponent.
Definition at line 154 of file DetectorGroup.h.
|
overridevirtual |
Get a parameter defined as an integer.
Default implementation.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 353 of file DetectorGroup.cpp.
|
overridevirtual |
Get the bounding box for this component and store it in the given argument.
Get the bounding box for this group of detectors.
It is simply the sum of the bounding boxes of its constituents.
| boundingBox | :: [Out] The resulting bounding box is stored here. |
Implements Mantid::Geometry::IComponent.
Definition at line 295 of file DetectorGroup.cpp.
References Mantid::Geometry::BoundingBox::getCoordSystem(), Mantid::Geometry::BoundingBox::grow(), Mantid::Geometry::BoundingBox::isAxisAligned(), m_detectors, and Mantid::Geometry::BoundingBox::realign().
|
inlineprotected |
Definition at line 212 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Returns the ComponentID - a unique identifier of the component.
Implements Mantid::Geometry::IComponent.
Definition at line 180 of file DetectorGroup.h.
| std::vector< detid_t > Mantid::Geometry::DetectorGroup::getDetectorIDs | ( | ) | const |
What detectors are contained in the group?
Return IDs for the detectors grouped.
Definition at line 161 of file DetectorGroup.cpp.
References m_detectors.
Referenced by Mantid::DataHandling::GenerateGroupingPowder::createGroups(), export_DetectorGroup(), Mantid::Algorithms::SofQWNormalisedPolygon::initAngularCachesNonPSD(), Mantid::Algorithms::SofQWNormalisedPolygon::initAngularCachesTable(), and Mantid::DataHandling::GenerateGroupingPowder::saveAsPAR().
| std::vector< IDetector_const_sptr > Mantid::Geometry::DetectorGroup::getDetectors | ( | ) | const |
What detectors are contained in the group?
Return the list of detectors held within this group.
Definition at line 175 of file DetectorGroup.cpp.
References m_detectors.
Referenced by Mantid::Algorithms::CreatePSDBleedMask::exec().
|
overridevirtual |
Gives the average distance of a group of detectors from the given component.
Implements Mantid::Geometry::IDetector.
Definition at line 96 of file DetectorGroup.cpp.
References m_detectors.
|
overrideprotectedvirtual |
Get the IComponent full path name.
Implements Mantid::Geometry::IComponent.
Definition at line 421 of file DetectorGroup.cpp.
References getNameSeparator(), and m_detectors.
|
overridevirtual |
Get the detector ID.
Implements Mantid::Geometry::IDetector.
Definition at line 64 of file DetectorGroup.cpp.
References m_id.
|
overridevirtual |
Get a parameter defined as an integer.
Default implementation.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 348 of file DetectorGroup.cpp.
|
overrideprotectedvirtual |
Get the IComponent name.
Implements Mantid::Geometry::IComponent.
Definition at line 412 of file DetectorGroup.cpp.
References getNameSeparator(), and m_detectors.
|
inline |
Return separator for list of names of detectors.
Definition at line 149 of file DetectorGroup.h.
Referenced by export_DetectorGroup(), getFullName(), and getName().
|
overridevirtual |
Get a parameter defined as a double.
Default implementation.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 328 of file DetectorGroup.cpp.
|
overridevirtual |
Get a string representation of a parameter.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 271 of file DetectorGroup.cpp.
|
overridevirtual |
Return the parameter names.
Get the names of the parameters for this component.
| recursive | :: If true, the parameters for all of the parent components are also included |
Implements Mantid::Geometry::IComponent.
Definition at line 249 of file DetectorGroup.cpp.
|
overridevirtual |
return the parameter names and the component they are from
Get the names of the parameters for this component and it's parents.
Implements Mantid::Geometry::IComponent.
Definition at line 260 of file DetectorGroup.cpp.
|
overridevirtual |
Detectors group assumed to be non-parameterized.
Implements Mantid::Geometry::IComponent.
Definition at line 323 of file DetectorGroup.cpp.
|
overridevirtual |
Get a visibility attribute of a parameter.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 284 of file DetectorGroup.cpp.
|
inlineoverrideprotectedvirtual |
Return a pointer to the current parent.
Implements Mantid::Geometry::IComponent.
Definition at line 181 of file DetectorGroup.h.
|
overridevirtual |
Computes the average position and returns the phi value.
Implements Mantid::Geometry::IDetector.
Definition at line 144 of file DetectorGroup.cpp.
References getPos(), and Mantid::Kernel::V3D::getSpherical().
Referenced by getPhiOffset().
|
overridevirtual |
Computes the average position and returns the phi value.
Implements Mantid::Geometry::IDetector.
Definition at line 152 of file DetectorGroup.cpp.
References getPhi().
|
overridevirtual |
Try to find a point that lies within (or on) the object.
tries to find a point that lies on or within the first detector in the storage found in the storage map
| point | :: if a point is found its coordinates will be stored in this varible |
Implements Mantid::Geometry::IObjComponent.
Definition at line 235 of file DetectorGroup.cpp.
References m_detectors.
|
overridevirtual |
Returns the position of the DetectorGroup.
In the absence of a full surface/solid angle implementation, this is a simple average of the component detectors (i.e. there's no weighting for size or if one or more of the detectors is masked). Also, no regard is made to whether a constituent detector is itself a DetectorGroup - it's just treated as a single, pointlike object with the same weight as any other detector.
Implements Mantid::Geometry::IComponent.
Definition at line 76 of file DetectorGroup.cpp.
References m_detectors, and Mantid::Kernel::Tolerance.
Referenced by calculateGroupTopology(), and getPhi().
|
overridevirtual |
Get a parameter defined as a Kernel::V3D.
Default implementation.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 333 of file DetectorGroup.cpp.
|
inlineoverrideprotectedvirtual |
Get the position relative to the parent IComponent (absolute if no parent)
Implements Mantid::Geometry::IComponent.
Definition at line 201 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Get the relative Orientation.
Implements Mantid::Geometry::IComponent.
Definition at line 204 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Get the absolute orientation of the IComponent.
Implements Mantid::Geometry::IComponent.
Definition at line 207 of file DetectorGroup.h.
|
overridevirtual |
Get a parameter defined as a Kernel::Quaternion.
Default implementation.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 338 of file DetectorGroup.cpp.
|
overridevirtual |
Side by side view override doesn't make sense for a detector group so return empty.
Implements Mantid::Geometry::IComponent.
Definition at line 93 of file DetectorGroup.cpp.
|
overridevirtual |
Gives the signed angle of this detector object with respect to an axis.
| observer | :: The point to calculate the angle relative to (typically the sample position) |
| axis | :: The axis to which the required angle is relative |
| instrumentUp | :: Direction corresponding to the instrument up direction. Used to determine signs. |
Implements Mantid::Geometry::IDetector.
Definition at line 125 of file DetectorGroup.cpp.
References Mantid::Kernel::V3D::angle(), Mantid::Kernel::V3D::cross_prod(), m_detectors, and Mantid::Kernel::V3D::scalar_prod().
|
overridevirtual |
Get a parameter defined as a string.
Default implementation.
| pname | :: The name of the parameter |
| recursive | :: If true the search will walk up through the parent components |
Implements Mantid::Geometry::IComponent.
Definition at line 343 of file DetectorGroup.cpp.
|
overridevirtual |
returns the detector's group topology if it has been calculated before or invokes the procedure of calculating such topology if it was not
Implements Mantid::Geometry::IDetector.
Definition at line 358 of file DetectorGroup.cpp.
References calculateGroupTopology(), group_topology, groupCentre, and Mantid::Geometry::undef.
|
overridevirtual |
Gives the average angle of a group of detectors from the observation point, relative to the axis given.
Implements Mantid::Geometry::IDetector.
Definition at line 105 of file DetectorGroup.cpp.
References Mantid::Kernel::V3D::angle(), and m_detectors.
|
overridevirtual |
Returns a boolean indicating whether the parameter exists or not.
Returns a boolean indicating if the component has the named parameter.
| name | :: The name of the parameter |
| recursive | :: If true the parent components will also be searched (Default: true) |
Implements Mantid::Geometry::IComponent.
Definition at line 317 of file DetectorGroup.cpp.
References name.
|
overridevirtual |
Helper for legacy access mode. Always throws for DetectorGroup.
Implements Mantid::Geometry::IDetector.
Definition at line 438 of file DetectorGroup.cpp.
|
inlineoverrideprotectedvirtual |
Initializes the ObjComponent for rendering, this function should be called before rendering.
Implements Mantid::Geometry::IObjComponent.
Definition at line 216 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Checks whether the track given will pass through this Component.
Implements Mantid::Geometry::IObjComponent.
Definition at line 196 of file DetectorGroup.h.
|
overridevirtual |
Does the point given lie on the surface of one of the detectors.
| point | :: the point that is tested to see if it is one of the detectors |
Implements Mantid::Geometry::IObjComponent.
Definition at line 223 of file DetectorGroup.cpp.
References m_detectors.
|
overridevirtual |
Return true if any detector in the group is parametrized.
Implements Mantid::Geometry::IComponent.
Definition at line 202 of file DetectorGroup.cpp.
References m_detectors.
|
overridevirtual |
isValid() is true if the point is inside any of the detectors, i.e.
one of the detectors has isValid() == true
| point | :: this point is tested to see if it is one of the detectors |
Implements Mantid::Geometry::IObjComponent.
Definition at line 213 of file DetectorGroup.cpp.
References m_detectors.
Referenced by calculateGroupTopology().
|
overrideprotectedvirtual |
Returns the material of the Object.
Implements Mantid::Geometry::IObjComponent.
Definition at line 430 of file DetectorGroup.cpp.
|
overridevirtual |
Get the number of physical detectors this object represents.
Implements Mantid::Geometry::IDetector.
Definition at line 66 of file DetectorGroup.cpp.
References m_detectors.
|
private |
Private, unimplemented copy assignment operator.
|
overridevirtual |
Helper for legacy access mode. Always throws for DetectorGroup.
Implements Mantid::Geometry::IDetector.
Definition at line 433 of file DetectorGroup.cpp.
|
inlineoverrideprotectedvirtual |
Prints a text representation of itself.
Implements Mantid::Geometry::IComponent.
Definition at line 208 of file DetectorGroup.h.
|
overridevirtual |
Implements Mantid::Geometry::IComponent.
Definition at line 440 of file DetectorGroup.cpp.
|
inlineoverrideprotectedvirtual |
Rotate the IComponent. This is relative to parent.
Implements Mantid::Geometry::IComponent.
Definition at line 199 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Rotate the IComponent by an angle in degrees with respect to an axis.
Implements Mantid::Geometry::IComponent.
Definition at line 200 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Set the IComponent name.
Implements Mantid::Geometry::IComponent.
Definition at line 189 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Assign a parent IComponent. Previous parent link is lost.
Implements Mantid::Geometry::IComponent.
Definition at line 188 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Set the position of the component The position is with respect to the parent component.
Implements Mantid::Geometry::IComponent.
Definition at line 192 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Set the IComponent position, x, y, z respective to parent (if present)
Implements Mantid::Geometry::IComponent.
Definition at line 191 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Set the orientation Kernel::Quaternion relative to parent (if present)
Implements Mantid::Geometry::IComponent.
Definition at line 194 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Implements Mantid::Geometry::IComponent.
Definition at line 193 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Returns the shape of the Object.
Implements Mantid::Geometry::IObjComponent.
Definition at line 219 of file DetectorGroup.h.
|
overridevirtual |
Gives the total solid angle subtended by a group of detectors by summing the contributions from the individual detectors.
| params | :: The point from which the detector is being viewed, and number of cylinder slices |
| NullPointerException | If geometrical form of any detector has not been provided in the instrument definition file |
Implements Mantid::Geometry::IObjComponent.
Definition at line 192 of file DetectorGroup.cpp.
References m_detectors.
|
inlineoverrideprotectedvirtual |
Copy the Rotation from another IComponent.
Translate the IComponent (vector form). This is relative to parent if
Implements Mantid::Geometry::IComponent.
Definition at line 197 of file DetectorGroup.h.
|
inlineoverrideprotectedvirtual |
Translate the IComponent (x,y,z form). This is relative to parent if.
Implements Mantid::Geometry::IComponent.
Definition at line 198 of file DetectorGroup.h.
|
mutableprotected |
the parameter describes the topology of the detector's group namely if detectors form a box or a ring.
the topology is undefined on construction and calculated on first request
Definition at line 173 of file DetectorGroup.h.
Referenced by addDetector(), calculateGroupTopology(), and getTopology().
|
mutableprotected |
group centre is the geometrical centre of the detectors group calculated when the calculate group topology is invoked
Definition at line 176 of file DetectorGroup.h.
Referenced by calculateGroupTopology(), and getTopology().
|
protected |
The collection of grouped detectors.
Definition at line 168 of file DetectorGroup.h.
Referenced by addDetector(), calculateGroupTopology(), getBoundingBox(), getDetectorIDs(), getDetectors(), getDistance(), getFullName(), getName(), getPointInObject(), getPos(), getSignedTwoTheta(), getTwoTheta(), isOnSide(), isParametrized(), isValid(), nDets(), and solidAngle().
|
protected |
The ID of this effective detector.
Definition at line 162 of file DetectorGroup.h.
Referenced by addDetector(), and getID().