Mantid
Loading...
Searching...
No Matches
vtkGeometryCacheWriter.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2008 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "MantidGeometry/DllConfig.h"
10#include <string>
11
12namespace Poco {
13namespace XML {
14class Document;
15class Element;
16} // namespace XML
17} // namespace Poco
18namespace Mantid {
19
20namespace Geometry {
31class CSGObject;
32class MANTID_GEOMETRY_DLL vtkGeometryCacheWriter {
33private:
34 Poco::XML::Document *m_doc;
35 Poco::XML::Element *m_root;
36 std::string m_filename;
37 // Private Methods
38 void Init();
39 void createVTKFileHeader();
40
41public:
42 vtkGeometryCacheWriter(std::string);
44
45 // Disable copies as we have a file handle
48
49 void addObject(CSGObject *obj);
50 void write();
51};
52
53} // NAMESPACE Geometry
54
55} // NAMESPACE Mantid
double obj
the value of the quadratic function
Constructive Solid Geometry object.
Definition: CSGObject.h:51
Writes the Geometry from Object to Cache.
Poco::XML::Element * m_root
The root XML element.
Poco::XML::Document * m_doc
The XML document.
vtkGeometryCacheWriter(const vtkGeometryCacheWriter &)=delete
vtkGeometryCacheWriter & operator=(const vtkGeometryCacheWriter)=delete
Helper class which provides the Collimation Length for SANS instruments.
Definition: Algorithm.h:30