Mantid
|
Writes the Geometry from Object to Cache. More...
#include <vtkGeometryCacheWriter.h>
Public Member Functions | |
void | addObject (CSGObject *obj) |
Adds the geometry of the Object to the document. More... | |
vtkGeometryCacheWriter & | operator= (const vtkGeometryCacheWriter)=delete |
vtkGeometryCacheWriter (const vtkGeometryCacheWriter &)=delete | |
vtkGeometryCacheWriter (std::string) | |
Constructor. More... | |
void | write () |
Write the XML to a file. More... | |
~vtkGeometryCacheWriter () | |
Destructor. More... | |
Private Member Functions | |
void | createVTKFileHeader () |
creates VTK XML header <VTKFile type="PolyData" version="1.0" byte_order="LittleEndian"> <PolyData> </PolyData> </VTKFile> More... | |
void | Init () |
Initialises the XML Document with the required vtk XML Headings. More... | |
Private Attributes | |
Poco::XML::Document * | m_doc |
The XML document. More... | |
std::string | m_filename |
The file name. More... | |
Poco::XML::Element * | m_root |
The root XML element. More... | |
Writes the Geometry from Object to Cache.
This class writes the geometry (triangles) cached from Object to the vtk format file.
Definition at line 32 of file vtkGeometryCacheWriter.h.
Mantid::Geometry::vtkGeometryCacheWriter::vtkGeometryCacheWriter | ( | std::string | filename | ) |
Mantid::Geometry::vtkGeometryCacheWriter::~vtkGeometryCacheWriter | ( | ) |
|
delete |
void Mantid::Geometry::vtkGeometryCacheWriter::addObject | ( | CSGObject * | obj | ) |
Adds the geometry of the Object to the document.
obj | :: The object to add |
Definition at line 83 of file vtkGeometryCacheWriter.cpp.
|
private |
creates VTK XML header <VTKFile type="PolyData" version="1.0" byte_order="LittleEndian"> <PolyData> </PolyData> </VTKFile>
Definition at line 70 of file vtkGeometryCacheWriter.cpp.
Referenced by Init().
|
private |
Initialises the XML Document with the required vtk XML Headings.
Definition at line 59 of file vtkGeometryCacheWriter.cpp.
References createVTKFileHeader(), m_doc, and m_root.
Referenced by vtkGeometryCacheWriter().
|
delete |
void Mantid::Geometry::vtkGeometryCacheWriter::write | ( | ) |
Write the XML to a file.
Write the XML to the file.
Definition at line 165 of file vtkGeometryCacheWriter.cpp.
References Mantid::Kernel::Logger::error(), Mantid::Geometry::g_log, Mantid::Kernel::Logger::information(), m_doc, and m_filename.
|
private |
The XML document.
Definition at line 34 of file vtkGeometryCacheWriter.h.
Referenced by addObject(), createVTKFileHeader(), Init(), write(), and ~vtkGeometryCacheWriter().
|
private |
|
private |
The root XML element.
Definition at line 35 of file vtkGeometryCacheWriter.h.
Referenced by addObject(), createVTKFileHeader(), Init(), and ~vtkGeometryCacheWriter().