本文整理汇总了C++中MDWSDescription::getCoordinateSystem方法的典型用法代码示例。如果您正苦于以下问题:C++ MDWSDescription::getCoordinateSystem方法的具体用法?C++ MDWSDescription::getCoordinateSystem怎么用?C++ MDWSDescription::getCoordinateSystem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MDWSDescription
的用法示例。
在下文中一共展示了MDWSDescription::getCoordinateSystem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: throw
/** method sets up all internal variables necessary to convert from Event
Workspace to MDEvent workspace
@param WSD -- the class describing the target MD workspace, sorurce
Event workspace and the transformations, necessary to perform on these
workspaces
@param inWSWrapper -- the class wrapping the target MD workspace
@param ignoreZeros -- if zero value signals should be rejected
*/
size_t
ConvToMDEventsWS::initialize(const MDWSDescription &WSD,
boost::shared_ptr<MDEventWSWrapper> inWSWrapper,
bool ignoreZeros) {
size_t numSpec = ConvToMDBase::initialize(WSD, inWSWrapper, ignoreZeros);
m_EventWS =
boost::dynamic_pointer_cast<const DataObjects::EventWorkspace>(m_InWS2D);
if (!m_EventWS)
throw(std::logic_error(
" ConvertToMDEventWS should work with defined event workspace"));
// Record any special coordinate system known to the description.
m_coordinateSystem = WSD.getCoordinateSystem();
return numSpec;
}