Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
Mantid::MDAlgorithms::ConvToMDSelector Class Reference

small class to select proper solver as function of the workspace kind and (possibly, in a future) other workspace parameters. More...

#include <ConvToMDSelector.h>

Public Types

enum  ConverterType { DEFAULT , INDEXED }
 

Public Member Functions

std::shared_ptr< ConvToMDBaseconvSelector (const API::MatrixWorkspace_sptr &inputWS, std::shared_ptr< ConvToMDBase > &currentSolver) const
 function which selects the convertor depending on workspace type and (possibly, in a future) some workspace properties More...
 
 ConvToMDSelector (ConverterType tp=DEFAULT)
 

Private Attributes

ConverterType converterType
 

Detailed Description

small class to select proper solver as function of the workspace kind and (possibly, in a future) other workspace parameters.

may be replaced by usual mantid factory in a future;

See http://www.mantidproject.org/Writing_custom_ConvertTo_MD_transformation for detailed description of this class place in the algorithms hierarchy.

Date
25-05-2012

Definition at line 25 of file ConvToMDSelector.h.

Member Enumeration Documentation

◆ ConverterType

Enumerator
DEFAULT 
INDEXED 

Definition at line 27 of file ConvToMDSelector.h.

Constructor & Destructor Documentation

◆ ConvToMDSelector()

Mantid::MDAlgorithms::ConvToMDSelector::ConvToMDSelector ( ConvToMDSelector::ConverterType  tp = DEFAULT)
Parameters
tp:: type of converter (indexed or default)

Definition at line 23 of file ConvToMDSelector.cpp.

Member Function Documentation

◆ convSelector()

std::shared_ptr< ConvToMDBase > Mantid::MDAlgorithms::ConvToMDSelector::convSelector ( const API::MatrixWorkspace_sptr inputWS,
std::shared_ptr< ConvToMDBase > &  currentSolver 
) const

function which selects the convertor depending on workspace type and (possibly, in a future) some workspace properties

Parameters
inputWS– the sp to workspace which has to be processed
currentSolver– the sp to the existing solver (may be undef if not initiated)
Returns
shared pointer to new solver, which corresponds to the workspace

Definition at line 33 of file ConvToMDSelector.cpp.

References converterType, DEFAULT, Mantid::MDAlgorithms::EventWS, Mantid::MDAlgorithms::Matrix2DWS, and Mantid::MDAlgorithms::Undefined.

Referenced by Mantid::MDAlgorithms::ConvertToMD::exec().

Member Data Documentation

◆ converterType

ConverterType Mantid::MDAlgorithms::ConvToMDSelector::converterType
private

Definition at line 39 of file ConvToMDSelector.h.

Referenced by convSelector().


The documentation for this class was generated from the following files: