12void throwNoOpenGLError(
const std::string &function) {
13 throw std::runtime_error(function +
": Rendering not supported in a build without OpenGL. Rebuild "
14 "with ENABLE_OPENGL to enable support.");
21namespace RenderingHelpers {
22void renderIObjComponent(
const IObjComponent &) { throwNoOpenGLError(
"renderIObjComponent"); }
24void renderTriangulated(detail::GeometryTriangulator &) { throwNoOpenGLError(
"renderTriangulated"); }
26void renderShape(
const detail::ShapeInfo &) { throwNoOpenGLError(
"renderShape"); }
MANTID_GEOMETRY_DLL void renderIObjComponent(const IObjComponent &objComp)
Render IObjComponent.
MANTID_GEOMETRY_DLL void renderTriangulated(detail::GeometryTriangulator &triangulator)
Render Traingulated Surface.
MANTID_GEOMETRY_DLL void renderShape(const detail::ShapeInfo &shapeInfo)
Renders a sphere, cuboid, hexahedron, cone or cylinder.
Helper class which provides the Collimation Length for SANS instruments.