19#ifndef rtkThreeDCircularProjectionGeometryXMLFileWriter_h
20#define rtkThreeDCircularProjectionGeometryXMLFileWriter_h
23# pragma warning(disable : 4786)
76 const std::string & indent,
77 const std::vector<double> & v,
78 const std::string & s,
79 bool convertToDegrees =
false,
84 WriteLocalParameter(std::ofstream & output,
const std::string & indent,
const double & v,
const std::string & s);
91template <
typename TGeometryPo
inter>
92ITK_TEMPLATE_EXPORT
void
93WriteGeometry(TGeometryPointer && geometry,
const std::string & filename)
95 using NonReferenceImagePointer = std::remove_reference_t<TGeometryPointer>;
96 static_assert(std::is_pointer_v<NonReferenceImagePointer> ||
97 itk::mpl::IsSmartPointer<NonReferenceImagePointer>::Value,
98 "WriteGeometry requires a raw pointer or SmartPointer.");
101 writer->SetObject(geometry);
102 writer->SetFilename(filename);
Implements transparent reference counting.
ThreeDCircularProjectionGeometryXMLFileWriter Self
itk::XMLWriterBase< ThreeDCircularProjectionGeometry > Superclass
~ThreeDCircularProjectionGeometryXMLFileWriter() override=default
ThreeDCircularProjectionGeometryXMLFileWriter()=default
itk::SmartPointer< Self > Pointer
void WriteLocalParameter(std::ofstream &output, const std::string &indent, const double &v, const std::string &s)
int CanWriteFile(const char *name) override
bool WriteGlobalParameter(std::ofstream &output, const std::string &indent, const std::vector< double > &v, const std::string &s, bool convertToDegrees=false, double defval=0.)
ITK_TEMPLATE_EXPORT void WriteGeometry(TGeometryPointer &&geometry, const std::string &filename)