27 size_t dimX,
size_t dimY);
30 std::array<Mantid::coord_t, 9> &skewMatrixCoord);
34 const size_t &dimX,
const size_t &dimY,
const size_t &dimSlice) {
35 auto sliceDimResult = (lookPoint[dimSlice] - skewMatrix[3 * dimSlice + dimX] * lookPoint[dimX] -
36 skewMatrix[3 * dimSlice + dimY] * lookPoint[dimY]) /
37 skewMatrix[3 * dimSlice + dimSlice];
39 auto OrigDimSliceValue = lookPoint[dimSlice];
40 lookPoint[dimSlice] = sliceDimResult;
42 auto v1 = lookPoint[0];
43 auto v2 = lookPoint[1];
44 auto v3 = lookPoint[2];
46 lookPoint[dimX] = v1 * skewMatrix[0 + 3 * dimX] + v2 * skewMatrix[1 + 3 * dimX] + v3 * skewMatrix[2 + 3 * dimX];
47 lookPoint[dimY] = v1 * skewMatrix[0 + 3 * dimY] + v2 * skewMatrix[1 + 3 * dimY] + v3 * skewMatrix[2 + 3 * dimY];
49 lookPoint[dimSlice] = OrigDimSliceValue;
#define EXPORT_OPT_MANTIDQT_COMMON
IPeaksWorkspace_sptr workspace
Basic MD Workspace Abstract Class.
std::pair< double, double > EXPORT_OPT_MANTIDQT_COMMON getGridLineAnglesInRadian(const std::array< Mantid::coord_t, 9 > &skewMatrixCoord, size_t dimX, size_t dimY)
We get the angles that are used for plotting of the grid lines.
void EXPORT_OPT_MANTIDQT_COMMON provideSkewMatrix(Mantid::Kernel::DblMatrix &skewMatrix, const Mantid::API::IMDWorkspace &workspace)
bool EXPORT_OPT_MANTIDQT_COMMON requiresSkewMatrix(const Mantid::API::IMDWorkspace &workspace)
bool EXPORT_OPT_MANTIDQT_COMMON isHKLDimensions(const Mantid::API::IMDWorkspace &workspace, size_t dimX, size_t dimY)
void transformLookpointToWorkspaceCoord(T &lookPoint, const std::array< Mantid::coord_t, 9 > &skewMatrix, const size_t &dimX, const size_t &dimY, const size_t &dimSlice)
void EXPORT_OPT_MANTIDQT_COMMON transformFromDoubleToCoordT(const Mantid::Kernel::DblMatrix &skewMatrix, std::array< Mantid::coord_t, 9 > &skewMatrixCoord)
size_t EXPORT_OPT_MANTIDQT_COMMON getMissingHKLDimensionIndex(const Mantid::API::IMDWorkspace_const_sptr &workspace, size_t dimX, size_t dimY)
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< const IMDWorkspace > IMDWorkspace_const_sptr
Shared pointer to the IMDWorkspace base class (const version)