Mantid
|
ComponentInfo : Provides a component centric view on to the instrument. More...
#include <ComponentInfo.h>
Classes | |
struct | QuadrilateralComponent |
Public Member Functions | |
ComponentInfoIterator< ComponentInfo > | begin () |
BoundingBox | boundingBox (const size_t componentIndex, const BoundingBox *reference=nullptr, const bool excludeMonitors=false) const |
Compute the bounding box for the component with componentIndex taking into account all sub components. More... | |
const ComponentInfoIterator< const ComponentInfo > | cbegin () |
const ComponentInfoIterator< const ComponentInfo > | cend () |
const std::vector< size_t > & | children (size_t componentIndex) const |
std::unique_ptr< ComponentInfo > | cloneWithoutDetectorInfo () const |
Clone current instance but not the DetectorInfo non-owned parts. More... | |
const IComponent * | componentID (const size_t componentIndex) const |
ComponentInfo (std::unique_ptr< Beamline::ComponentInfo > componentInfo, std::shared_ptr< const std::vector< Mantid::Geometry::IComponent * > > componentIds, std::shared_ptr< const std::unordered_map< Geometry::IComponent *, size_t > > componentIdToIndexMap, std::shared_ptr< std::vector< std::shared_ptr< const Geometry::IObject > > > shapes) | |
Constructor. More... | |
std::vector< size_t > | componentsInSubtree (size_t componentIndex) const |
Beamline::ComponentType | componentType (const size_t componentIndex) const |
std::vector< size_t > | detectorsInSubtree (size_t componentIndex) const |
ComponentInfoIterator< ComponentInfo > | end () |
bool | hasDetectorInfo () const |
bool | hasDetectors (const size_t componentIndex) const |
bool | hasEquivalentSample (const ComponentInfo &other) const |
bool | hasEquivalentSource (const ComponentInfo &other) const |
bool | hasParent (const size_t componentIndex) const |
bool | hasSample () const |
bool | hasSource () const |
bool | hasValidShape (const size_t componentIndex) const |
size_t | indexOf (Geometry::IComponent *id) const |
size_t | indexOfAny (const std::string &name) const |
bool | isDetector (const size_t componentIndex) const |
double | l1 () const |
void | merge (const ComponentInfo &other) |
const std::string & | name (const size_t componentIndex) const |
ComponentInfo & | operator= (const ComponentInfo &)=delete |
Copy assignment is not possible for ComponentInfo. More... | |
size_t | parent (const size_t componentIndex) const |
Kernel::V3D | position (const size_t componentIndex) const |
Kernel::V3D | position (const std::pair< size_t, size_t > &index) const |
QuadrilateralComponent | quadrilateralComponent (const size_t componentIndex) const |
Kernel::V3D | relativePosition (const size_t componentIndex) const |
Kernel::Quat | relativeRotation (const size_t componentIndex) const |
size_t | root () const |
Kernel::Quat | rotation (const size_t componentIndex) const |
Kernel::Quat | rotation (const std::pair< size_t, size_t > &index) const |
size_t | sample () const |
Kernel::V3D | samplePosition () const |
Kernel::V3D | scaleFactor (const size_t componentIndex) const |
size_t | scanCount () const |
void | setPosition (const std::pair< size_t, size_t > &index, const Kernel::V3D &newPosition) |
void | setPosition (size_t componentIndex, const Kernel::V3D &newPosition) |
void | setRotation (const std::pair< size_t, size_t > &index, const Kernel::Quat &newRotation) |
void | setRotation (size_t componentIndex, const Kernel::Quat &newRotation) |
void | setScaleFactor (const size_t componentIndex, const Kernel::V3D &scaleFactor) |
void | setScanInterval (const std::pair< Types::Core::DateAndTime, Types::Core::DateAndTime > &interval) |
const Geometry::IObject & | shape (const size_t componentIndex) const |
size_t | size () const |
double | solidAngle (const size_t componentIndex, const Kernel::V3D &observer) const |
size_t | source () const |
Kernel::V3D | sourcePosition () const |
bool | uniqueName (const std::string &name) const |
~ComponentInfo () | |
Private Member Functions | |
BoundingBox | componentBoundingBox (const size_t index, const BoundingBox *reference, const bool excludeMonitors=false) const |
Calculates the absolute bounding box for the leaf item at index. More... | |
ComponentInfo (const ComponentInfo &other) | |
Private copy constructor. Do not make public. More... | |
void | growBoundingBoxAsOutline (size_t index, const Geometry::BoundingBox *reference, Geometry::BoundingBox &mutableBB, const bool excludeMonitors=false) const |
Grow the bounding box on the basis that the component described by index has an outline, which describes the full bounding box of all components and detectors held within. More... | |
void | growBoundingBoxAsRectuangularBank (size_t index, const Geometry::BoundingBox *reference, Geometry::BoundingBox &mutableBB, const bool excludeMonitors=false) const |
Grow the bounding box on the basis that the component described by index is a regular grid in a trapezoid, thus the bounding box can be fully described by just the 4 vertex detectors within. More... | |
Private Attributes | |
std::shared_ptr< const std::unordered_map< Geometry::IComponent *, size_t > > | m_compIDToIndex |
Map of component ids to indexes. More... | |
std::shared_ptr< const std::vector< Geometry::IComponent * > > | m_componentIds |
Collection of component ids. More... | |
std::unique_ptr< Beamline::ComponentInfo > | m_componentInfo |
Pointer to the actual ComponentInfo object (non-wrapping part). More... | |
std::shared_ptr< std::vector< std::shared_ptr< const Geometry::IObject > > > | m_shapes |
Shapes for each component. More... | |
Friends | |
class | Instrument |
ComponentInfo : Provides a component centric view on to the instrument.
Indexes are per component.
Definition at line 40 of file ComponentInfo.h.
|
private |
Private copy constructor. Do not make public.
Copy constructor.
Use with EXTREME CARE.
Should not be public since proper links between DetectorInfo and ComponentInfo must be set up.
Definition at line 86 of file ComponentInfo.cpp.
Mantid::Geometry::ComponentInfo::ComponentInfo | ( | std::unique_ptr< Beamline::ComponentInfo > | componentInfo, |
std::shared_ptr< const std::vector< Mantid::Geometry::IComponent * > > | componentIds, | ||
std::shared_ptr< const std::unordered_map< Geometry::IComponent *, size_t > > | componentIdToIndexMap, | ||
std::shared_ptr< std::vector< std::shared_ptr< const Geometry::IObject > > > | shapes | ||
) |
Constructor.
componentInfo | : Internal Beamline ComponentInfo |
componentIds | : ComponentIDs ordered by component |
componentIdToIndexMap | : ID -> index translation map |
shapes | : Shapes for each component |
Definition at line 54 of file ComponentInfo.cpp.
References m_compIDToIndex, m_componentIds, and m_componentInfo.
|
default |
ComponentInfoIt Mantid::Geometry::ComponentInfo::begin | ( | ) |
Definition at line 435 of file ComponentInfo.cpp.
References size().
BoundingBox Mantid::Geometry::ComponentInfo::boundingBox | ( | const size_t | componentIndex, |
const BoundingBox * | reference = nullptr , |
||
const bool | excludeMonitors = false |
||
) | const |
Compute the bounding box for the component with componentIndex taking into account all sub components.
componentIndex | : Component index to get the bounding box for |
reference | : Optional reference for coordinate system for non-axis aligned bounding boxes |
excludeMonitors | : Optional flag to exclude monitors and choppers |
Definition at line 387 of file ComponentInfo.cpp.
References boundingBox(), children(), componentBoundingBox(), componentType(), Mantid::Geometry::BoundingBox::grow(), growBoundingBoxAsOutline(), growBoundingBoxAsRectuangularBank(), hasSource(), isDetector(), parent(), size(), and source().
Referenced by boundingBox(), Mantid::Geometry::ObjComponent::getBoundingBox(), Mantid::Geometry::Instrument::getBoundingBox(), Mantid::Geometry::CompAssembly::getBoundingBox(), Mantid::Geometry::GridDetector::getBoundingBox(), and Mantid::Geometry::StructuredDetector::getBoundingBox().
const ComponentInfoConstIt Mantid::Geometry::ComponentInfo::cbegin | ( | ) |
Definition at line 439 of file ComponentInfo.cpp.
References size().
const ComponentInfoConstIt Mantid::Geometry::ComponentInfo::cend | ( | ) |
Definition at line 441 of file ComponentInfo.cpp.
References size().
const std::vector< size_t > & Mantid::Geometry::ComponentInfo::children | ( | size_t | componentIndex | ) | const |
Definition at line 101 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by boundingBox(), and export_ComponentInfo().
std::unique_ptr< Geometry::ComponentInfo > Mantid::Geometry::ComponentInfo::cloneWithoutDetectorInfo | ( | ) | const |
Clone current instance but not the DetectorInfo non-owned parts.
Definition at line 77 of file ComponentInfo.cpp.
Referenced by Mantid::Geometry::Instrument::makeWrappers().
|
private |
Calculates the absolute bounding box for the leaf item at index.
index | : Component index |
reference | : Optional reference for coordinate system for non-axis aligned bounding boxes |
excludeMonitors | : Optional flag to exclude monitor and choppers |
Definition at line 318 of file ComponentInfo.cpp.
References componentType(), Mantid::Geometry::BoundingBox::getCoordSystem(), hasValidShape(), index, Mantid::Geometry::BoundingBox::isAxisAligned(), isDetector(), m_componentInfo, position, Mantid::Geometry::BoundingBox::realign(), rotation, scaleFactor(), shape(), Mantid::Geometry::X, Mantid::Geometry::BoundingBox::xMax(), Mantid::Geometry::BoundingBox::xMin(), Mantid::Geometry::Y, Mantid::Geometry::BoundingBox::yMax(), Mantid::Geometry::BoundingBox::yMin(), Mantid::Geometry::Z, Mantid::Geometry::BoundingBox::zMax(), and Mantid::Geometry::BoundingBox::zMin().
Referenced by boundingBox(), growBoundingBoxAsOutline(), and growBoundingBoxAsRectuangularBank().
|
inline |
Definition at line 117 of file ComponentInfo.h.
std::vector< size_t > Mantid::Geometry::ComponentInfo::componentsInSubtree | ( | size_t | componentIndex | ) | const |
Definition at line 97 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by export_ComponentInfo().
Beamline::ComponentType Mantid::Geometry::ComponentInfo::componentType | ( | const size_t | componentIndex | ) | const |
Definition at line 423 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by boundingBox(), componentBoundingBox(), Mantid::Geometry::ComponentInfoBankHelpers::isDetectorFixedInBank(), and quadrilateralComponent().
std::vector< size_t > Mantid::Geometry::ComponentInfo::detectorsInSubtree | ( | size_t | componentIndex | ) | const |
Definition at line 93 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by Mantid::API::applyRectangularDetectorScaleToComponentInfo(), export_ComponentInfo(), and Mantid::Geometry::ComponentInfoBankHelpers::isSaveableBank().
ComponentInfoIt Mantid::Geometry::ComponentInfo::end | ( | ) |
Definition at line 437 of file ComponentInfo.cpp.
References size().
|
private |
Grow the bounding box on the basis that the component described by index has an outline, which describes the full bounding box of all components and detectors held within.
index | : Index of the component to get the bounding box for |
reference | : Reference bounding box (optional) |
mutableBB | : Output bounding box. This will be grown. |
excludeMonitors | : Optional flag to exclude monitors and choppers |
Definition at line 304 of file ComponentInfo.cpp.
References componentBoundingBox(), Mantid::Geometry::BoundingBox::grow(), and index.
Referenced by boundingBox().
|
private |
Grow the bounding box on the basis that the component described by index is a regular grid in a trapezoid, thus the bounding box can be fully described by just the 4 vertex detectors within.
Find the vertexes Grow the bounding box by each vetex Record detectors that form part of this bank that are enclosed and therefore already inclusive of the external bounding box Based on the number of sub-components, which are also fully enclosed, skip the component iterator forward so that those will not need to be evaluated.
index | : Index of the component to get the bounding box for |
reference | : Reference bounding box (optional) |
mutableBB | : Output bounding box. This will be grown. |
excludeMonitors | : Optional flag to exclude monitors and choppers |
Definition at line 283 of file ComponentInfo.cpp.
References componentBoundingBox(), Mantid::Geometry::BoundingBox::grow(), index, and quadrilateralComponent().
Referenced by boundingBox().
bool Mantid::Geometry::ComponentInfo::hasDetectorInfo | ( | ) | const |
Definition at line 180 of file ComponentInfo.cpp.
References m_componentInfo.
bool Mantid::Geometry::ComponentInfo::hasDetectors | ( | const size_t | componentIndex | ) | const |
Definition at line 214 of file ComponentInfo.cpp.
References isDetector(), and m_componentInfo.
Referenced by Mantid::Geometry::ComponentInfoBankHelpers::isSaveableBank().
bool Mantid::Geometry::ComponentInfo::hasEquivalentSample | ( | const ComponentInfo & | other | ) | const |
Definition at line 210 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by export_ComponentInfo().
bool Mantid::Geometry::ComponentInfo::hasEquivalentSource | ( | const ComponentInfo & | other | ) | const |
Definition at line 196 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by export_ComponentInfo().
bool Mantid::Geometry::ComponentInfo::hasParent | ( | const size_t | componentIndex | ) | const |
Definition at line 178 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by export_ComponentInfo().
bool Mantid::Geometry::ComponentInfo::hasSample | ( | ) | const |
Definition at line 200 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by export_ComponentInfo().
bool Mantid::Geometry::ComponentInfo::hasSource | ( | ) | const |
Definition at line 186 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by boundingBox(), and export_ComponentInfo().
bool Mantid::Geometry::ComponentInfo::hasValidShape | ( | const size_t | componentIndex | ) | const |
Definition at line 139 of file ComponentInfo.cpp.
References Mantid::Geometry::IObject::hasValidShape(), and shape().
Referenced by componentBoundingBox(), export_ComponentInfo(), and solidAngle().
size_t Mantid::Geometry::ComponentInfo::indexOf | ( | Geometry::IComponent * | id | ) | const |
Definition at line 129 of file ComponentInfo.cpp.
References m_compIDToIndex.
Referenced by Mantid::Crystal::CalibrationHelpers::adjustBankPositionsAndSizes(), Mantid::API::applyRectangularDetectorScaleToComponentInfo(), Mantid::DataHandling::LoadIsawDetCal::center(), Mantid::DataHandling::LoadIsawDetCal::doRotation(), Mantid::API::ExperimentInfo::populateWithParameter(), and Mantid::API::ExperimentInfo::readParameterMap().
size_t Mantid::Geometry::ComponentInfo::indexOfAny | ( | const std::string & | name | ) | const |
Definition at line 131 of file ComponentInfo.cpp.
References m_componentInfo, and name().
Referenced by export_ComponentInfo().
bool Mantid::Geometry::ComponentInfo::isDetector | ( | const size_t | componentIndex | ) | const |
Definition at line 135 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by boundingBox(), componentBoundingBox(), export_ComponentInfo(), hasDetectors(), Mantid::Geometry::ComponentInfoBankHelpers::isDetectorFixedInBank(), Mantid::Geometry::ComponentInfoBankHelpers::isSaveableBank(), and Mantid::API::ExperimentInfo::readParameterMap().
double Mantid::Geometry::ComponentInfo::l1 | ( | ) | const |
Definition at line 225 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by Mantid::Crystal::CalibrationHelpers::adjustUpSampleAndSourcePositions(), and export_ComponentInfo().
void Mantid::Geometry::ComponentInfo::merge | ( | const ComponentInfo & | other | ) |
Definition at line 433 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by Mantid::DataObjects::ScanningWorkspaceBuilder::buildOutputComponentInfo().
const std::string & Mantid::Geometry::ComponentInfo::name | ( | const size_t | componentIndex | ) | const |
Definition at line 243 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by export_ComponentInfo(), indexOfAny(), Mantid::API::ExperimentInfo::populateInstrumentParameters(), and uniqueName().
|
delete |
Copy assignment is not possible for ComponentInfo.
size_t Mantid::Geometry::ComponentInfo::parent | ( | const size_t | componentIndex | ) | const |
Definition at line 176 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by boundingBox(), export_ComponentInfo(), Mantid::Geometry::ComponentInfoBankHelpers::isAncestorOf(), Mantid::Geometry::ComponentInfoBankHelpers::isDetectorFixedInBank(), and quadrilateralComponent().
Kernel::V3D Mantid::Geometry::ComponentInfo::position | ( | const size_t | componentIndex | ) | const |
Definition at line 144 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toV3D().
Referenced by Mantid::API::applyRectangularDetectorScaleToComponentInfo(), Mantid::Geometry::Component::getPos(), and Mantid::Geometry::ComponentInfoBankHelpers::offsetFromAncestor().
Kernel::V3D Mantid::Geometry::ComponentInfo::position | ( | const std::pair< size_t, size_t > & | index | ) | const |
Definition at line 148 of file ComponentInfo.cpp.
References index, m_componentInfo, and Mantid::Kernel::toV3D().
ComponentInfo::QuadrilateralComponent Mantid::Geometry::ComponentInfo::quadrilateralComponent | ( | const size_t | componentIndex | ) | const |
Definition at line 107 of file ComponentInfo.cpp.
References Mantid::Geometry::ComponentInfo::QuadrilateralComponent::bottomLeft, Mantid::Geometry::ComponentInfo::QuadrilateralComponent::bottomRight, componentType(), m_componentInfo, Mantid::Geometry::ComponentInfo::QuadrilateralComponent::nX, Mantid::Geometry::ComponentInfo::QuadrilateralComponent::nY, parent(), Mantid::Geometry::ComponentInfo::QuadrilateralComponent::topLeft, and Mantid::Geometry::ComponentInfo::QuadrilateralComponent::topRight.
Referenced by growBoundingBoxAsRectuangularBank().
Kernel::V3D Mantid::Geometry::ComponentInfo::relativePosition | ( | const size_t | componentIndex | ) | const |
Definition at line 160 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toV3D().
Referenced by export_ComponentInfo(), and Mantid::Geometry::Component::getRelativePos().
Kernel::Quat Mantid::Geometry::ComponentInfo::relativeRotation | ( | const size_t | componentIndex | ) | const |
Definition at line 164 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toQuat().
Referenced by export_ComponentInfo(), and Mantid::Geometry::Component::getRelativeRot().
size_t Mantid::Geometry::ComponentInfo::root | ( | ) | const |
Definition at line 227 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by export_ComponentInfo(), and Mantid::Geometry::ComponentInfoBankHelpers::isAncestorOf().
Kernel::Quat Mantid::Geometry::ComponentInfo::rotation | ( | const size_t | componentIndex | ) | const |
Definition at line 152 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toQuat().
Referenced by Mantid::API::applyRectangularDetectorScaleToComponentInfo(), Mantid::Geometry::Component::getRotation(), and Mantid::Geometry::ComponentInfoBankHelpers::offsetFromAncestor().
Kernel::Quat Mantid::Geometry::ComponentInfo::rotation | ( | const std::pair< size_t, size_t > & | index | ) | const |
Definition at line 156 of file ComponentInfo.cpp.
References index, m_componentInfo, and Mantid::Kernel::toQuat().
size_t Mantid::Geometry::ComponentInfo::sample | ( | ) | const |
Definition at line 223 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by Mantid::Crystal::CalibrationHelpers::adjustUpSampleAndSourcePositions(), export_ComponentInfo(), and Mantid::Geometry::ComponentInfoBankHelpers::isSaveableBank().
Kernel::V3D Mantid::Geometry::ComponentInfo::samplePosition | ( | ) | const |
Definition at line 184 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toV3D().
Referenced by Mantid::Crystal::CalibrationHelpers::adjustUpSampleAndSourcePositions(), and export_ComponentInfo().
Kernel::V3D Mantid::Geometry::ComponentInfo::scaleFactor | ( | const size_t | componentIndex | ) | const |
Definition at line 239 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toV3D().
Referenced by componentBoundingBox(), export_ComponentInfo(), Mantid::Geometry::Component::getScaleFactor(), setScaleFactor(), solidAngle(), Mantid::Algorithms::SolidAngleHelpers::Rectangle::solidAngle(), Mantid::Algorithms::SolidAngleHelpers::Tube::solidAngle(), and Mantid::Algorithms::SolidAngleHelpers::Wing::solidAngle().
size_t Mantid::Geometry::ComponentInfo::scanCount | ( | ) | const |
Definition at line 431 of file ComponentInfo.cpp.
References m_componentInfo.
void Mantid::Geometry::ComponentInfo::setPosition | ( | const std::pair< size_t, size_t > & | index, |
const Kernel::V3D & | newPosition | ||
) |
Definition at line 168 of file ComponentInfo.cpp.
References index, m_componentInfo, and Mantid::Kernel::toVector3d().
void Mantid::Geometry::ComponentInfo::setPosition | ( | size_t | componentIndex, |
const Kernel::V3D & | newPosition | ||
) |
Definition at line 229 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toVector3d().
Referenced by Mantid::Crystal::CalibrationHelpers::adjustBankPositionsAndSizes(), Mantid::Crystal::CalibrationHelpers::adjustUpSampleAndSourcePositions(), Mantid::API::applyRectangularDetectorScaleToComponentInfo(), and Mantid::DataHandling::LoadIsawDetCal::center().
void Mantid::Geometry::ComponentInfo::setRotation | ( | const std::pair< size_t, size_t > & | index, |
const Kernel::Quat & | newRotation | ||
) |
Definition at line 172 of file ComponentInfo.cpp.
References index, m_componentInfo, and Mantid::Kernel::toQuaterniond().
void Mantid::Geometry::ComponentInfo::setRotation | ( | size_t | componentIndex, |
const Kernel::Quat & | newRotation | ||
) |
Definition at line 233 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toQuaterniond().
Referenced by Mantid::Crystal::CalibrationHelpers::adjustBankPositionsAndSizes(), and Mantid::DataHandling::LoadIsawDetCal::doRotation().
void Mantid::Geometry::ComponentInfo::setScaleFactor | ( | const size_t | componentIndex, |
const Kernel::V3D & | scaleFactor | ||
) |
Definition at line 247 of file ComponentInfo.cpp.
References m_componentInfo, scaleFactor(), and Mantid::Kernel::toVector3d().
Referenced by export_ComponentInfo().
void Mantid::Geometry::ComponentInfo::setScanInterval | ( | const std::pair< Types::Core::DateAndTime, Types::Core::DateAndTime > & | interval | ) |
Definition at line 427 of file ComponentInfo.cpp.
References m_componentInfo.
const IObject & Mantid::Geometry::ComponentInfo::shape | ( | const size_t | componentIndex | ) | const |
Definition at line 237 of file ComponentInfo.cpp.
Referenced by componentBoundingBox(), export_ComponentInfo(), hasValidShape(), and solidAngle().
size_t Mantid::Geometry::ComponentInfo::size | ( | ) | const |
Definition at line 105 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by begin(), boundingBox(), cbegin(), cend(), end(), and export_ComponentInfo().
double Mantid::Geometry::ComponentInfo::solidAngle | ( | const size_t | componentIndex, |
const Kernel::V3D & | observer | ||
) | const |
Definition at line 251 of file ComponentInfo.cpp.
References hasValidShape(), m_componentInfo, scaleFactor(), shape(), and Mantid::Geometry::IObject::solidAngle().
Referenced by Mantid::Geometry::ObjComponent::solidAngle().
size_t Mantid::Geometry::ComponentInfo::source | ( | ) | const |
Definition at line 221 of file ComponentInfo.cpp.
References m_componentInfo.
Referenced by Mantid::Crystal::CalibrationHelpers::adjustUpSampleAndSourcePositions(), boundingBox(), export_ComponentInfo(), and Mantid::Geometry::ComponentInfoBankHelpers::isSaveableBank().
Kernel::V3D Mantid::Geometry::ComponentInfo::sourcePosition | ( | ) | const |
Definition at line 182 of file ComponentInfo.cpp.
References m_componentInfo, and Mantid::Kernel::toV3D().
Referenced by Mantid::Crystal::CalibrationHelpers::adjustUpSampleAndSourcePositions(), and export_ComponentInfo().
bool Mantid::Geometry::ComponentInfo::uniqueName | ( | const std::string & | name | ) | const |
Definition at line 133 of file ComponentInfo.cpp.
References m_componentInfo, and name().
Referenced by export_ComponentInfo().
|
friend |
Definition at line 137 of file ComponentInfo.h.
|
private |
Map of component ids to indexes.
Definition at line 47 of file ComponentInfo.h.
Referenced by ComponentInfo(), and indexOf().
|
private |
Collection of component ids.
Definition at line 45 of file ComponentInfo.h.
Referenced by ComponentInfo().
|
private |
Pointer to the actual ComponentInfo object (non-wrapping part).
Definition at line 43 of file ComponentInfo.h.
Referenced by children(), componentBoundingBox(), ComponentInfo(), componentsInSubtree(), componentType(), detectorsInSubtree(), hasDetectorInfo(), hasDetectors(), hasEquivalentSample(), hasEquivalentSource(), hasParent(), hasSample(), hasSource(), indexOfAny(), isDetector(), l1(), merge(), name(), parent(), position(), quadrilateralComponent(), relativePosition(), relativeRotation(), root(), rotation(), sample(), samplePosition(), scaleFactor(), scanCount(), setPosition(), setRotation(), setScaleFactor(), setScanInterval(), size(), solidAngle(), source(), sourcePosition(), and uniqueName().
|
private |
Shapes for each component.
Definition at line 50 of file ComponentInfo.h.