Mantid
|
#include <Projection.h>
Public Member Functions | |
Kernel::V3D | getAxis (size_t nd) |
Retrieves the axis vector for the given dimension. More... | |
double | getOffset (size_t nd) |
Retrieves the offset for the given dimension. More... | |
ProjectionUnit | getUnit (size_t nd) |
Retrives the unit of the given dimension. More... | |
Projection () | |
Default constructor builds identity projection. More... | |
Projection (const ITableWorkspace &ws) | |
Construct from an ITableWorkspace. More... | |
Projection (const Kernel::V3D &u, const Kernel::V3D &v) | |
Three dimensional value constructor, w is the cross product of u and v. More... | |
Projection (const Kernel::V3D &u, const Kernel::V3D &v, const Kernel::V3D &w) | |
Three dimensional value constructor. More... | |
void | setAxis (size_t nd, const Kernel::V3D &axis) |
Set the axis vector for a given dimension. More... | |
void | setOffset (size_t nd, double offset) |
Set the offset for a given dimension. More... | |
void | setUnit (size_t nd, ProjectionUnit unit) |
Set the unit for a given dimension. More... | |
Kernel::V3D & | U () |
Kernel::V3D & | V () |
Kernel::V3D & | W () |
virtual | ~Projection ()=default |
Destructor. More... | |
Protected Attributes | |
Kernel::V3D | m_dimensions [3] |
The dimensions. More... | |
double | m_offsets [3] |
The offsets for each dimension. More... | |
ProjectionUnit | m_units [3] |
The units for each dimension. More... | |
Definition at line 32 of file Projection.h.
Mantid::API::Projection::Projection | ( | ) |
Default constructor builds identity projection.
Definition at line 14 of file Projection.cpp.
References m_dimensions, m_offsets, m_units, and Mantid::API::RLU.
Mantid::API::Projection::Projection | ( | const Kernel::V3D & | u, |
const Kernel::V3D & | v | ||
) |
Three dimensional value constructor, w is the cross product of u and v.
Definition at line 26 of file Projection.cpp.
References Mantid::Kernel::V3D::cross_prod(), m_dimensions, m_offsets, m_units, and Mantid::API::RLU.
Mantid::API::Projection::Projection | ( | const Kernel::V3D & | u, |
const Kernel::V3D & | v, | ||
const Kernel::V3D & | w | ||
) |
Three dimensional value constructor.
Definition at line 36 of file Projection.cpp.
References Mantid::Kernel::V3D::cross_prod(), fabs, m_dimensions, m_offsets, m_units, Mantid::API::RLU, and Mantid::Kernel::V3D::scalar_prod().
Mantid::API::Projection::Projection | ( | const ITableWorkspace & | ws | ) |
Construct from an ITableWorkspace.
Definition at line 49 of file Projection.cpp.
References Mantid::API::ITableWorkspace::columnCount(), Mantid::API::ITableWorkspace::getColumn(), index, Mantid::API::INV_ANG, m_dimensions, m_offsets, m_units, Mantid::API::RLU, Mantid::API::ITableWorkspace::rowCount(), and value.
|
virtualdefault |
Destructor.
V3D Mantid::API::Projection::getAxis | ( | size_t | nd | ) |
Retrieves the axis vector for the given dimension.
Definition at line 104 of file Projection.cpp.
References m_dimensions.
Referenced by export_Projection().
double Mantid::API::Projection::getOffset | ( | size_t | nd | ) |
Retrieves the offset for the given dimension.
Definition at line 97 of file Projection.cpp.
References m_offsets.
Referenced by export_Projection().
ProjectionUnit Mantid::API::Projection::getUnit | ( | size_t | nd | ) |
Retrives the unit of the given dimension.
Definition at line 111 of file Projection.cpp.
References m_units.
Referenced by Mantid::MDAlgorithms::CutMD::exec().
void Mantid::API::Projection::setAxis | ( | size_t | nd, |
const Kernel::V3D & | axis | ||
) |
Set the axis vector for a given dimension.
Definition at line 125 of file Projection.cpp.
References m_dimensions.
Referenced by export_Projection().
void Mantid::API::Projection::setOffset | ( | size_t | nd, |
double | offset | ||
) |
Set the offset for a given dimension.
Definition at line 118 of file Projection.cpp.
References m_offsets.
Referenced by export_Projection().
void Mantid::API::Projection::setUnit | ( | size_t | nd, |
ProjectionUnit | unit | ||
) |
Set the unit for a given dimension.
Definition at line 132 of file Projection.cpp.
References m_units.
|
inline |
Definition at line 57 of file Projection.h.
Referenced by Mantid::MDAlgorithms::CutMD::exec(), and export_Projection().
|
inline |
Definition at line 58 of file Projection.h.
Referenced by Mantid::MDAlgorithms::CutMD::exec(), and export_Projection().
|
inline |
Definition at line 59 of file Projection.h.
Referenced by Mantid::MDAlgorithms::CutMD::exec(), and export_Projection().
|
protected |
The dimensions.
Definition at line 63 of file Projection.h.
Referenced by getAxis(), Projection(), and setAxis().
|
protected |
The offsets for each dimension.
Definition at line 65 of file Projection.h.
Referenced by getOffset(), Projection(), and setOffset().
|
protected |
The units for each dimension.
Definition at line 67 of file Projection.h.
Referenced by getUnit(), Projection(), and setUnit().