19 #ifndef rtkThreeDCircularProjectionGeometryXMLFileWriter_h 20 #define rtkThreeDCircularProjectionGeometryXMLFileWriter_h 23 # pragma warning(disable : 4786) 26 #include "RTKExport.h" 56 #ifdef itkOverrideGetNameOfClassMacro 65 CanWriteFile(
const char * name)
override;
80 WriteGlobalParameter(std::ofstream & output,
81 const std::string & indent,
82 const std::vector<double> & v,
83 const std::string & s,
84 bool convertToDegrees =
false,
89 WriteLocalParameter(std::ofstream & output,
const std::string & indent,
const double & v,
const std::string & s);
96 template <
typename TGeometryPo
inter>
97 ITK_TEMPLATE_EXPORT
void 98 WriteGeometry(TGeometryPointer && geometry,
const std::string & filename)
100 using NonReferenceImagePointer = std::remove_reference_t<TGeometryPointer>;
101 static_assert(std::is_pointer<NonReferenceImagePointer>::value ||
102 itk::mpl::IsSmartPointer<NonReferenceImagePointer>::Value,
103 "WriteGeometry requires a raw pointer or SmartPointer.");
107 writer->SetObject(geometry);
108 writer->SetFilename(filename);
ITK_TEMPLATE_EXPORT void WriteGeometry(TGeometryPointer &&geometry, const std::string &filename)