Mantid
Loading...
Searching...
No Matches
Framework
Geometry
inc
MantidGeometry
Rendering
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
11
namespace
Poco
{
12
namespace
XML {
13
class
Document;
14
class
Element;
15
class
DOMParser;
16
}
// namespace XML
17
}
// namespace Poco
18
namespace
Mantid
{
19
20
namespace
Geometry {
21
class
IObject;
22
33
class
MANTID_GEOMETRY_DLL
vtkGeometryCacheReader
{
34
private
:
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
44
public
:
45
vtkGeometryCacheReader
(std::string filename);
46
~vtkGeometryCacheReader
();
47
void
readCacheForObject(
IObject
const
*
obj
);
48
};
49
50
}
// NAMESPACE Geometry
51
52
}
// NAMESPACE Mantid
name
std::string name
Definition
Run.cpp:60
obj
double obj
the value of the quadratic function
Definition
TrustRegionMinimizer.cpp:495
Mantid::Geometry::IObject
IObject : Interface for geometry objects.
Definition
IObject.h:42
Mantid::Geometry::vtkGeometryCacheReader
Reads the Geometry Cache from the file to the Object.
Definition
vtkGeometryCacheReader.h:33
Mantid::Geometry::vtkGeometryCacheReader::m_pParser
Poco::XML::DOMParser * m_pParser
The XML parser.
Definition
vtkGeometryCacheReader.h:36
Mantid::Geometry::vtkGeometryCacheReader::m_doc
Poco::XML::Document * m_doc
The XML document.
Definition
vtkGeometryCacheReader.h:35
Mantid::Geometry::vtkGeometryCacheReader::m_filename
std::string m_filename
The file name.
Definition
vtkGeometryCacheReader.h:37
Mantid
Helper class which provides the Collimation Length for SANS instruments.
Definition
AbsorptionCorrection.h:18
Poco
Definition
Algorithm.h:24
Generated by
1.9.8