1 #ifndef BundleSolutionInfo_h
2 #define BundleSolutionInfo_h
33 #include "XmlStackedHandler.h"
37 class QXmlStreamWriter;
131 QString settingsName =
"InputSettings",
132 QString statisticsName =
"StatisticsResults");
135 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
138 void save(QXmlStreamWriter &stream,
const Project *project)
const;
140 QDataStream &
write(QDataStream &stream)
const;
141 QDataStream &
read(QDataStream &stream);
143 void writeH5File(
FileName outputFileName)
const;
144 void readH5File(
FileName outputFileName)
const;
170 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
171 const QString &qName,
const QXmlAttributes &atts);
173 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
174 const QString &qName);
204 void setStringAttribute(
int locationId, QString locationName,
205 QString attributeName, QString attributeValue);
206 QString getStringAttribute(
int locationId, QString locationName, QString attributeName);
211 #endif // BundleSolutionInfo_h
void setRunTime(QString runTime)
Sets the run time.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Handle an XML start element.
void updateFileName(Project *)
Change the on-disk file name for the control network used to be where the control network ought to be...
Internalizes a list of images and allows for operations on the entire list.
bool outputText()
Outputs a text file with the results of the BundleAdjust.
QSharedPointer< BundleSettings > BundleSettingsQsp
Definition for a BundleSettingsQsp, a shared pointer to a BundleSettings object.
The main project for cnetsuite.
File name manipulation and expansion.
XmlHandler(BundleSolutionInfo *bundleSolutionInfo, Project *project)
Create an XML Handler (reader) that can populate the BundleSolutionInfo class data.
Container class for BundleAdjustment results.
BundleSettingsQsp m_settings
The settings from the bundle adjust.
BundleSettingsQsp bundleSettings()
Returns the bundle settings.
bool outputHeader(std::ofstream &fpOut)
Output header for bundle results file.
QString id() const
Get a unique, identifying string associated with this BundleSolutionInfo object.
QString runTime() const
Returns the run time.
QList< ImageList * > * m_images
The list of images that were adjusted.
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
BundleSolutionInfo & operator=(const BundleSolutionInfo &src)
Creates an equal operator for BundleSolutionInfos.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
BundleSettingsQsp m_xmlHandlerBundleSettings
Settings used to run the bundle adjust.
QList< ImageList * > * m_xmlHandlerImages
List of pointers to images.
bool outputImagesCSV()
Outputs the bundleout_images.csv file which contains Jigsaw data about the images within each observa...
void setOutputStatistics(BundleResults statisticsResults)
Sets the stat results.
bool outputImagesCSVHeader(std::ofstream &fpOut)
Outputs the header for the bundleout_images.csv file.
BundleResults * m_statisticsResults
The results of the bundle adjust.
BundleSolutionInfo * m_xmlHandlerBundleSolutionInfo
The bundleSolutionInfo object.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Saves the BundleSolutionInfo to the project.
void createH5File(FileName outputFileName) const
Creates a new file using H5F_ACC_EXCL.
PvlObject pvlObject(QString resultsName="BundleSolutionInfo", QString settingsName="InputSettings", QString statisticsName="StatisticsResults")
Writes the results from BundleAdjust to a Pvl.
BundleResults * m_xmlHandlerBundleResults
Results from the bundle adjust.
std::istream & operator>>(std::istream &is, CSVReader &csv)
Input read operator for input stream sources.
QUuid * m_id
A unique ID for this BundleSolutionInfo object (useful for others to reference this object when savin...
This class is used to read an images.xml file into an image list.
XML Handler that parses XMLs in a stack-oriented way.
QString m_xmlHandlerCharacters
List of characters that have been handled.
QDataStream & read(QDataStream &stream)
Reads the data from the stream.
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Handle an XML end element.
QString controlNetworkFileName() const
Returns the name of the control network.
bool outputResiduals()
Outputs image coordinate residuals to a csv file.
~BundleSolutionInfo()
Destructor.
QString m_runTime
The run time of the bundle adjust.
BundleResults bundleResults()
Returns the bundle results.
virtual bool characters(const QString &ch)
Adds characters to m_xmlHandlerCharacters.
FileName * m_controlNetworkFileName
The name of the control network.
A container class for statistical results from a BundleAdjust solution.
void openH5File(FileName outputFileName)
Reads the settings and results from another BundleSolutionInfo.
QDebug operator<<(QDebug debug, const Hillshade &hillshade)
Print this class out to a QDebug object.
QDataStream & write(QDataStream &stream) const
Writes the data to the stream.
Contains Pvl Groups and Pvl Objects.
his enables stack-based XML parsing of XML files.
bool outputPointsCSV()
Outputs point data to a csv file.