Mantid
|
NullCoordTransform : A transform that sets the outVector to have the same values as the inputVector. More...
#include <NullCoordTransform.h>
Public Member Functions | |
void | apply (const Mantid::coord_t *inputVector, Mantid::coord_t *outVector) const override |
Apply the transformation. More... | |
CoordTransform * | clone () const override |
std::string | id () const override |
Coordinate transform id. More... | |
NullCoordTransform (size_t ndims=3) | |
Constructor. More... | |
std::string | toXMLString () const override |
Serialize to a string. More... | |
Public Member Functions inherited from Mantid::API::CoordTransform | |
virtual void | apply (const coord_t *inputVector, coord_t *outVector) const =0 |
Mantid::Kernel::VMD | applyVMD (const Mantid::Kernel::VMD &inputVector) const |
Wrapper for VMD. More... | |
virtual CoordTransform * | clone () const =0 |
CoordTransform (const size_t inD, const size_t outD) | |
Constructor. More... | |
size_t | getInD () const |
size_t | getOutD () const |
virtual std::string | id () const =0 |
virtual Mantid::Kernel::Matrix< coord_t > | makeAffineMatrix () const |
virtual std::string | toXMLString () const =0 |
Pure abstract methods to be implemented. More... | |
virtual | ~CoordTransform ()=default |
Private Attributes | |
size_t | m_ndims |
Number of dimensions. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Mantid::API::CoordTransform | |
size_t | inD |
Input number of dimensions. More... | |
size_t | outD |
Output number of dimensions. More... | |
NullCoordTransform : A transform that sets the outVector to have the same values as the inputVector.
Therefore has no-effect, for where transforms are not required.
Definition at line 20 of file NullCoordTransform.h.
Mantid::API::NullCoordTransform::NullCoordTransform | ( | size_t | ndims = 3 | ) |
Constructor.
ndims | : Number of dimensions |
Definition at line 15 of file NullCoordTransform.cpp.
|
overridevirtual |
Apply the transformation.
inputVector | : pointer to the input vector |
outVector | : pointer to the output vector. |
Implements Mantid::API::CoordTransform.
Definition at line 35 of file NullCoordTransform.cpp.
References m_ndims.
|
overridevirtual |
Implements Mantid::API::CoordTransform.
Definition at line 17 of file NullCoordTransform.cpp.
References m_ndims.
|
overridevirtual |
Coordinate transform id.
Implements Mantid::API::CoordTransform.
Definition at line 28 of file NullCoordTransform.cpp.
|
overridevirtual |
Serialize to a string.
runtime_error | if used. |
Implements Mantid::API::CoordTransform.
Definition at line 22 of file NullCoordTransform.cpp.
|
private |
Number of dimensions.
Definition at line 30 of file NullCoordTransform.h.