示例#1
0
文件: Sample.cpp 项目: mganeva/mantid
/** Set the object that describes the sample shape. The object is defined within
 * its own coordinate system
 * @param shape :: The object describing the shape
 */
void Sample::setShape(const IObject_sptr &shape) {
  if (shape) {
    m_shape = shape;
  } else {
    m_shape = ShapeFactory().createShape("");
  }
}
示例#2
0
文件: Sample.cpp 项目: mganeva/mantid
/**
 * Default constructor. Required for cow_ptr.
 */
Sample::Sample()
    : m_name(), m_shape(ShapeFactory().createShape("")), m_environment(),
      m_lattice(nullptr), m_crystalStructure(), m_samples(), m_geom_id(0),
      m_thick(0.0), m_height(0.0), m_width(0.0) {}