11#include "MantidHistogramData/Histogram.h"
19Kernel::Logger
g_log(
"WorkspaceBoundingBox");
32 double getX()
const {
return x; }
33 double getY()
const {
return y; }
IPeaksWorkspace_sptr workspace
std::map< DeltaEMode::Type, std::string > index
void(ComponentInfo::* setPosition)(const size_t, const Mantid::Kernel::V3D &)
API::SpectrumInfo is an intermediate step towards a SpectrumInfo that is part of Instrument-2....
bool isValidWs(int index) const
Performs checks on the spectrum located at index to determine if it is acceptable to be operated on.
int m_cachedHistogramYIndex
API::MatrixWorkspace_const_sptr m_workspace
double calculateDistance() const
Kernel::V3D m_cachedPosition
double getCenterY() const
double calculateRadiusY() const
void setCenter(double x, double y)
void updateMinMax(int index)
Compare current mins and maxs to the coordinates of the spectrum at index expnd mins and maxs to incl...
bool isOutOfBoundsOfNonDirectBeam(const double beamRadius, int index, const bool directBeam)
Checks to see if spectrum at index is within the diameter of the given beamRadius.
double yValue(const int index) const
void setBounds(double xMin, double xMax, double yMin, double yMax)
void normalizePosition(double x, double y)
Perform normalization on x/y coords over given values.
double getCenterX() const
double updatePositionAndReturnCount(int index)
Sets member variables x/y to new x/y based on spectrum info and historgram data at the given index.
double calculateRadiusX() const
bool containsPoint(double x, double y)
Checks if a given x/y coord is within the bounding box.
int findFirstValidWs(const int numSpec) const
Searches for the first valid spectrum info in member variable workspace
API::MatrixWorkspace_const_sptr getWorkspace()
const API::SpectrumInfo * m_spectrumInfo
int m_cachedPositionIndex
Kernel::Logger g_log("ExperimentInfo")
static logger object
std::shared_ptr< const MatrixWorkspace > MatrixWorkspace_const_sptr
shared pointer to the matrix workspace base class (const version)
Helper class which provides the Collimation Length for SANS instruments.