18 : m_units(Kernel::Units::Symbol::EmptyLabel),
m_min(0),
m_max(0), m_nbins(0), m_minSet(false), m_maxSet(false),
78 throw std::invalid_argument(
"Cannot create MDHistogramDimension without setting a name.");
81 throw std::invalid_argument(
"Cannot create MDHistogramDimension without setting a id.");
84 throw std::invalid_argument(
"Cannot create MDHistogramDimension without setting a unit type.");
87 throw std::invalid_argument(
"Cannot create MDHistogramDimension without setting min.");
90 throw std::invalid_argument(
"Cannot create MDHistogramDimension without setting max.");
93 throw std::invalid_argument(
"Cannot create MDHistogramDimension with min >= max.");
96 throw std::invalid_argument(
"Cannot create MDHistogramDimension without setting a n bins.");
103 auto frame = frameFactory->create(frameArgument);
Input argument type for MDFrameFactory chainable factory.
bool m_maxSet
Flag indicating that max has been set.
void setId(std::string id)
bool m_minSet
Flag indicating that min has been set.
std::string m_name
Cached name.
void setFrameName(std::string frameName)
Setter for the frame name.
IMDDimension_sptr create()
std::string m_id
Cached id.
void setNumBins(size_t nbins)
MDHistoDimensionBuilder()
Constructor.
size_t m_nbins
Cached nbins.
void setName(const std::string &name)
void setUnits(const Kernel::UnitLabel &units)
MDHistoDimension * createRaw()
std::string m_frameName
Frame name.
Kernel::UnitLabel m_units
Cached units.
A base-class for the a class that is able to return unit labels in different representations.
const AsciiString & ascii() const
Return an ascii label for unit.
std::shared_ptr< IMDDimension > IMDDimension_sptr
Shared Pointer for IMDDimension. Frequently used type in framework.
MDFrameFactory_uptr MANTID_GEOMETRY_DLL makeMDFrameFactoryChain()
Make a complete factory chain.
MANTID_KERNEL_DLL std::string strip(const std::string &A)
strip pre/post spaces
float coord_t
Typedef for the data type to use for coordinate axes in MD objects such as MDBox, MDEventWorkspace,...