Mantid
Loading...
Searching...
No Matches
vtkGeometryCacheReader.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
11namespace Poco {
12namespace XML {
13class Document;
14class Element;
15class DOMParser;
16} // namespace XML
17} // namespace Poco
18namespace Mantid {
19
20namespace Geometry {
21class IObject;
22
33class MANTID_GEOMETRY_DLL vtkGeometryCacheReader {
34private:
35 Poco::XML::Document *m_doc;
36 Poco::XML::DOMParser *m_pParser;
37 std::string m_filename;
38 // Private Methods
39 void Init();
40 Poco::XML::Element *getElementByObjectName(const std::string &name);
41 void readPoints(Poco::XML::Element *pEle, int noOfPoints, std::vector<double> &points);
42 void readTriangles(Poco::XML::Element *pEle, int noOfTriangles, std::vector<uint32_t> &faces);
43
44public:
45 vtkGeometryCacheReader(std::string filename);
47 void readCacheForObject(IObject *obj);
48};
49
50} // NAMESPACE Geometry
51
52} // NAMESPACE Mantid
double obj
the value of the quadratic function
IObject : Interface for geometry objects.
Definition: IObject.h:41
Reads the Geometry Cache from the file to the Object.
Poco::XML::DOMParser * m_pParser
The XML parser.
Poco::XML::Document * m_doc
The XML document.
Helper class which provides the Collimation Length for SANS instruments.
Definition: Algorithm.h:30