Isis 3 Programmer Reference
Isis::BundleSolutionInfo Class Reference

Container class for BundleAdjustment results. More...

#include <BundleSolutionInfo.h>

Inheritance diagram for Isis::BundleSolutionInfo:
Inheritance graph
Collaboration diagram for Isis::BundleSolutionInfo:
Collaboration graph

Classes

class  XmlHandler
 This class is used to read an images.xml file into an image list. More...
 

Public Slots

void updateFileName (Project *)
 TODO: change description below to something more like english. More...
 

Public Member Functions

 BundleSolutionInfo (BundleSettingsQsp inputSettings, FileName controlNetworkFileName, BundleResults outputStatistics, QList< ImageList *> imgList, QObject *parent=0)
 Constructor. More...
 
 BundleSolutionInfo (Project *project, XmlStackedHandlerReader *xmlReader, QObject *parent=0)
 Constructor. More...
 
 ~BundleSolutionInfo ()
 Destructor. More...
 
QString savedBundleOutputFilename ()
 Returns bundleout text filename. More...
 
QString savedImagesFilename ()
 Returns filename of output bundle images csv file. More...
 
QString savedPointsFilename ()
 Returns filename of output bundle points csv file. More...
 
QString savedResidualsFilename ()
 Returns filename of output bundle residuals csv file. More...
 
void addAdjustedImages (ImageList *images)
 Adds a list of images that were adjusted (their labels were updated). More...
 
void setOutputStatistics (BundleResults statisticsResults)
 Sets the stat results. More...
 
void setOutputControl (Control *outputControl)
 Returns the name of the output control network. More...
 
void setOutputControlName (QString name)
 Sets m_outputControlName. More...
 
void setRunTime (QString runTime)
 Sets the run time, and the name if a name is not already set. More...
 
void setName (QString name)
 Sets the name of the bundle. More...
 
QList< ImageList * > adjustedImages () const
 Returns the list of images that were adjusted after a bundle. More...
 
QString id () const
 Get a unique, identifying string associated with this BundleSolutionInfo object. More...
 
QString inputControlNetFileName () const
 Returns the name of the input control network. More...
 
QString outputControlNetFileName () const
 Returns the name of the output control network. More...
 
Controlcontrol () const
 Returns bundle output Control object. More...
 
QString outputControlName () const
 Returns m_outputControlName. More...
 
BundleSettingsQsp bundleSettings ()
 Returns bundle settings. More...
 
BundleResults bundleResults ()
 Returns the bundle results. More...
 
QList< ImageList * > imageList ()
 Returns the images used in the bundle. More...
 
QString runTime () const
 Returns the run time. More...
 
QString name () const
 Returns the name of the bundle. More...
 
bool outputImagesCSVHeader (std::ofstream &fpOut)
 Outputs the header for the bundleout_images.csv file. More...
 
bool outputHeader (std::ofstream &fpOut)
 Output header for bundle results file. More...
 
bool outputText ()
 Outputs a text file with the results of the BundleAdjust. More...
 
bool outputImagesCSV ()
 Outputs the bundleout_images.csv file which contains Jigsaw data about the images within each observation. More...
 
bool outputPointsCSV ()
 Outputs point data to a csv file. More...
 
bool outputResiduals ()
 Outputs image coordinate residuals to a csv file. More...
 
void save (QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
 Saves the BundleSolutionInfo to the project. More...
 
QString surfacePointCoordName (SurfacePoint::CoordinateType type, SurfacePoint::CoordIndex coordInx) const
 Determine the control point coordinate name. More...
 

Private Attributes

QUuid * m_id
 A unique ID for this BundleSolutionInfo object (useful for others to reference this object when saving to disk). More...
 
QString m_name
 Name of the bundle. Defaults to the id. More...
 
QString m_runTime
 Run time of the bundle adjustment. More...
 
FileNamem_inputControlNetFileName
 Input control network file name. More...
 
Controlm_outputControl
 Output control. More...
 
QString m_outputControlName
 
BundleSettingsQsp m_settings
 Bundle settings. More...
 
BundleResultsm_statisticsResults
 Bundle statistical results. More...
 
QList< ImageList * > * m_images
 Input image list. More...
 
QList< ImageList * > * m_adjustedImages
 Adjusted image list. More...
 
QString m_txtBundleOutputFilename
 
QString m_csvSavedImagesFilename
 
QString m_csvSavedPointsFilename
 
QString m_csvSavedResidualsFilename
 

Detailed Description

Container class for BundleAdjustment results.

This class includes the settings used to run the bundle adjustment, the resulting statistics values, and the name of the control network used. NOTE: BundleSolutionInfo is derived from QObject as it has one slot (perhaps more signals and slots in the future? As a child of QObject it should have no copy constructor or assignment operator. See for example...

http://doc.qt.io/qt-5/qobject.html#no-copy-constructor

Author
2014-07-08 Jeannie Backer
History:

2014-07-08 Jeannie Backer - Original version.

2014-07-23 Jeannie Backer - Added implementation for the QDataStream << and >> operators and the read/write methods.

2014-12-04 Jeannie Backer - Renamed from BundleResults to BundleSolutionInfo.

2015-09-03 Jeannie Backer - Added preliminary hdf5 read/write capabilities.

2015-10-14 Jeffrey Covington - Declared BundleSolutionInfo * as a Qt metatype for use with QVariant.

2016-06-13 Makayla Shepherd - Added updateFileName() and updated documentation. Fixes #2298.

2016-08-15 Jesse Mapel - added output, outputHeader, outputText, outputPointsCSV, and outputResiduals from BundleAdjust. Fixes #4159.

2016-08-18 Jeannie Backer - Removed all references to deprecated BundleSettings::solveMethod. References #4162.

2016-08-23 Jesse Mapel - Removed output() method. Individual output file methods must be called. Fixes #4279.

2016-09-02 Jesse Mapel - Added camera point and position input parameters to output files when using only one set of solve settings. Fixes #4316.

2016-10-06 Tyler Wilson - Added methods outputImagesCSV() and outputImagesCSVHeader which enables jigsaw users to output the bundleout_images.csv file. Fixes #4314.

2016-10-17 Jesse Mapel - Removed multiple solve settings output in accordance with USEPVL being removed from jigsaw. References #4316.

2016-10-28 Tyler Wilson - Modified outputText() to check and output if the solution is solving for the radius. References #4317.

2016-11-14 Ken Edmundson Modified the following... -Changed column headers in images.csv to match row headers in bundleout.txt (instead of at2, bt, c to indicate coefficients, now using t2, t1, t0, etc) -Added output of CKDEGREE, CKSOLVEDEGREE, SPKDEGREE, SPKSOLVEDEGREE to bundleout.txt header when CAMSOLVE=ALL and/or SPSOLVE=ALL -Fixed typo under SPACECRAFT OPTIONS; what should have said "SPSOLVE: All POLYNOMIAL COEFFICIENTS" was "CAMSOLVE: All POLYNOMIAL COEFFICIENTS" -modified output of image EO in bundleout.txt for images solved with observation mode; previously one entry per observation was written, now all images in the observation are written separately.

2016-12-01 Ian Humphrey - Modified an sprintf() call in outputImagesCSV() to prevent a -Wformat-security warning from occurring.

2016-12-08 Ian Humphrey - Modified outputImagesCSVHeader() to treat TWIST the same as the other angles when determining how many headers to create. Fixes #4557.

2017-04-24 Ian Humphrey - Removed pvlObject(). Fixes #4797.

2017-05-01 Makayla Shepherd - Added imageList() to track and return the images used in the bundle adjustment. These images will be displayed on the project tree under results/bundle/<runtime> and will keep the same structure as the input on the project tree. Fixes #4818.

2017-05-02 J Bonn - Fixed XML serialzation and code cleanup. Fixes #4835.

2017-05-02 Tracie Sucharski - Moved XMLHandler code to bottom of file for consistency; all other classes have the XmlHandler at end of file. Fixes #4822.

2017-05-04 Ian Humphrey & Makayla Shepherd - Modified save() to write the bundle solution info images to the correct directory in the project on disk. Fixes #4804, #4837.

2017-07-11 Makayla Shepherd - Added bundle naming capabilities. Fixes #4855.

2017-07-28 Makayla Shepherd - Fixed the default naming tag. Fixes #5069.

2017-08-09 Ian Humphrey - Added m_adjustedImages with setters and getters so the BundleSolutionInfo can know which images have been adjusted (Updated labels). References #4849.

2017-10-30 Tracie Sucharski - In ::save method, if the newProjectRoot is different from the current projectRoot, save the cnet and csv files and create the directory structure.

2017-12-20 Tracie Sucharski - Fixed bug which was saving the bundle adjust input control net rather than the output control net. References #4804.

2018-01-03 Tracie Sucharski - Changed serialization to use relative paths. Fixes #5104.

2018-01-17 Tracie Sucharski - Added conditional code to check for null project in xml serialization to allow the unitTest to use xml serialization without having a project. References #5104.

2018-03-21 Ken Edmundson - Added... 1) member variable m_inputControlNetFileName, accessor method, and serialization support. Also added input control net filename to constructor. 2) member variable m_outputControl, associated mutator/accessor, and serialization support. 3) member variable m_txtBundleOutputFilename and associated accessor for bundleout.txt file.

2018-03-23 Ken Edmundson - modified... 1) removed serialization of output control filename 2) serialization of output control to be more robust, ensuring that the control's id is added to project upon reading back in. Also ensures that an open cneteditor widget containing a bundlesolutioninfo's output control is serialized properly.

2018-03-26 Ken Edmundson - modified save method to properly save output control network file.

2018-05-22 Ken Edmundson - changed default and copy constructors and assignment operator to private to prevent developer from calling them. Done because BundleSolutionInfo is derived from QObject (see comment below). Removed copy constructor and assignment operator from cpp file.

2018-06-01 Debbie A. Cook - ( Added 2018-02-21 to BundleXYZ branch) Added coordinate types to report and appropriate headings for columns based on the coordinate type. Also added a utility method to return the coordinate name based on coordinate type and coordinate index. References #4649 and #501.

2018-09-18 Debbie A. Cook - Removed radiansToMeters argument. References #4649 and #501

2019-05-14 Tyler Wilson - Replaced call to BundleObservation::formatBundeOutputString(...) in outputText() file to a new function: BundleObservation::bundleOutput which takes as an argument the std::ostream.

2019-06-03 Tyler Wilson - Replaced all calls to BundleObservation::formatBundleOutputString where it outputs a csv file with BundleObservation::bundleOutputCSV. BundleObservation::formatBundleOutputString was removed from ISIS3 because it had become unmaintainable.

2019-06-03 Adam Paquette - Updated the header for the bundleout.txt file for more human readable formatting in the bundleout.txt file.

Definition at line 171 of file BundleSolutionInfo.h.

Constructor & Destructor Documentation

◆ BundleSolutionInfo() [1/2]

Isis::BundleSolutionInfo::BundleSolutionInfo ( BundleSettingsQsp  inputSettings,
FileName  controlNetworkFileName,
BundleResults  outputStatistics,
QList< ImageList *>  imgList,
QObject parent = 0 
)

Constructor.

Creates a BundleSolutionInfo.

Parameters
inputSettingsThe settings saved in BundleSolutionInfo
controlNetworkFileNameThe file name and path of the control network
outputStatisticsThe results of the BundleAdjust
parentThe Qt-relationship parent

Definition at line 39 of file BundleSolutionInfo.cpp.

References m_adjustedImages, m_id, m_images, m_inputControlNetFileName, m_name, m_outputControl, m_runTime, m_settings, and m_statisticsResults.

◆ BundleSolutionInfo() [2/2]

Isis::BundleSolutionInfo::BundleSolutionInfo ( Project project,
XmlStackedHandlerReader xmlReader,
QObject parent = 0 
)

Constructor.

Creates a BundleSolutionInfo from disk.

Parameters
projectThe current project
xmlReaderAn XML reader that's up to an <bundleSettings> tag.
parentThe Qt-relationship parent

Definition at line 64 of file BundleSolutionInfo.cpp.

References m_adjustedImages, m_id, m_images, m_inputControlNetFileName, m_name, m_outputControl, m_runTime, m_statisticsResults, and Isis::XmlStackedHandlerReader::pushContentHandler().

◆ ~BundleSolutionInfo()

Isis::BundleSolutionInfo::~BundleSolutionInfo ( )

Destructor.

Definition at line 87 of file BundleSolutionInfo.cpp.

References m_id, m_images, m_inputControlNetFileName, m_outputControl, and m_statisticsResults.

Member Function Documentation

◆ addAdjustedImages()

void Isis::BundleSolutionInfo::addAdjustedImages ( ImageList images)

Adds a list of images that were adjusted (their labels were updated).

Parameters
ImageList*images The list of images to add that had their labels updated.

Definition at line 158 of file BundleSolutionInfo.cpp.

References m_adjustedImages.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked().

◆ adjustedImages()

QList< ImageList * > Isis::BundleSolutionInfo::adjustedImages ( ) const

Returns the list of images that were adjusted after a bundle.

This can potentially be an empty QList if no image labels were updated.

Returns
QList<ImageList*> Returns the adjusted images (images with updated labels).

Definition at line 214 of file BundleSolutionInfo.cpp.

References m_adjustedImages.

Referenced by Isis::Project::XmlHandler::endElement(), and Isis::ProjectItem::ProjectItem().

◆ bundleResults()

BundleResults Isis::BundleSolutionInfo::bundleResults ( )

Returns the bundle results.

Exceptions
IException::Unknown"Results for this bundle is NULL."
Returns
BundleResults The bundle results.

Definition at line 341 of file BundleSolutionInfo.cpp.

References _FILEINFO_, m_statisticsResults, and Isis::IException::Unknown.

Referenced by Isis::JigsawRunWidget::notifyThreadFinished(), Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked(), and Isis::ProjectItem::ProjectItem().

◆ bundleSettings()

BundleSettingsQsp Isis::BundleSolutionInfo::bundleSettings ( )

Returns bundle settings.

Returns
BundleSettingsQsp Bundle settings.

Definition at line 329 of file BundleSolutionInfo.cpp.

References m_settings.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked(), and Isis::ProjectItem::ProjectItem().

◆ control()

Control * Isis::BundleSolutionInfo::control ( ) const

Returns bundle output Control object.

Returns
Control* Pointer to bundle output Control object.

Definition at line 319 of file BundleSolutionInfo.cpp.

References m_outputControl.

Referenced by Isis::ProjectItem::ProjectItem().

◆ id()

QString Isis::BundleSolutionInfo::id ( ) const

Get a unique, identifying string associated with this BundleSolutionInfo object.

Returns
QString A unique ID for this BundleSolutionInfo object

Definition at line 224 of file BundleSolutionInfo.cpp.

References m_id.

◆ imageList()

QList< ImageList * > Isis::BundleSolutionInfo::imageList ( )

Returns the images used in the bundle.

Returns
m_imageList The image list used in the bundle

Definition at line 358 of file BundleSolutionInfo.cpp.

References m_images.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked().

◆ inputControlNetFileName()

QString Isis::BundleSolutionInfo::inputControlNetFileName ( ) const

Returns the name of the input control network.

Returns
QString The name of the input control network.

Definition at line 266 of file BundleSolutionInfo.cpp.

References Isis::FileName::expanded(), and m_inputControlNetFileName.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked().

◆ name()

QString Isis::BundleSolutionInfo::name ( ) const

Returns the name of the bundle.

The name defaults to the id, unless the name has been set using setName()

Returns
QString Name of the bundle

Definition at line 379 of file BundleSolutionInfo.cpp.

References m_name.

Referenced by Isis::ProjectItemModel::onBundleSolutionInfoAdded(), save(), Isis::ProjectItem::setBundleSolutionInfo(), setName(), and setOutputControlName().

◆ outputControlName()

QString Isis::BundleSolutionInfo::outputControlName ( ) const

Returns m_outputControlName.

Returns
QString of the value

Definition at line 310 of file BundleSolutionInfo.cpp.

Referenced by outputHeader().

◆ outputControlNetFileName()

QString Isis::BundleSolutionInfo::outputControlNetFileName ( ) const

Returns the name of the output control network.

Returns
QString The name of the output control network.

Definition at line 276 of file BundleSolutionInfo.cpp.

References Isis::Control::fileName(), and m_outputControl.

◆ outputHeader()

bool Isis::BundleSolutionInfo::outputHeader ( std::ofstream &  fpOut)

Output header for bundle results file.

Parameters
fpOutThe output stream that the header will be sent to.
Returns
bool If the header was successfully output to the output stream.
Exceptions
IException::Io"Failed to output residual percentiles for bundleout"
IException::Io"Failed to output residual box plot for bundleout"
Todo:
Determine how multiple sensor solve settings should be output.

Definition at line 547 of file BundleSolutionInfo.cpp.

References _FILEINFO_, Isis::Statistics::AddData(), Isis::BundleObservationSolveSettings::aprioriPointingSigmas(), Isis::BundleObservationSolveSettings::aprioriPositionSigmas(), Isis::BundleObservationSolveSettings::ckDegree(), Isis::BundleObservationSolveSettings::ckSolveDegree(), Isis::SurfacePoint::coordinateTypeToString(), Isis::iTime::CurrentLocalTime(), Isis::BundleResults::elapsedTime(), Isis::BundleResults::elapsedTimeErrorProp(), Isis::FileName::expanded(), Isis::IException::Io, Isis::BundleResults::iterations(), Isis::SurfacePoint::Latitudinal, m_inputControlNetFileName, m_settings, m_statisticsResults, Isis::StatCumProbDistDynCalc::max(), Isis::BundleResults::maximumLikelihoodModelQuantile(), Isis::BundleResults::maximumLikelihoodModelWFunc(), Isis::StatCumProbDistDynCalc::min(), Isis::MaximumLikelihoodWFunctions::modelToString(), Isis::Null, Isis::BundleObservationSolveSettings::numberCameraAngleCoefficientsSolved(), Isis::BundleObservationSolveSettings::numberCameraPositionCoefficientsSolved(), Isis::BundleResults::numberConstrainedImageParameters(), Isis::BundleResults::numberConstrainedPointParameters(), Isis::BundleResults::numberConstrainedTargetParameters(), Isis::BundleResults::numberObservations(), Isis::BundleResults::numberRejectedObservations(), Isis::BundleResults::numberUnknownParameters(), Isis::BundleResults::observations(), outputControlName(), Isis::BundleResults::outputControlNet(), Isis::IException::Programmer, Isis::SurfacePoint::Rectangular, Isis::BundleResults::residualsCumulativeProbabilityDistribution(), Isis::Statistics::Rms(), Isis::BundleResults::sigma0(), Isis::BundleObservationSolveSettings::solvePolyOverPointing(), Isis::BundleObservationSolveSettings::solvePositionOverHermite(), Isis::BundleObservationSolveSettings::solveTwist(), Isis::BundleObservationSolveSettings::spkDegree(), Isis::BundleObservationSolveSettings::spkSolveDegree(), Isis::toString(), Isis::MaximumLikelihoodWFunctions::tweakingConstant(), Isis::StatCumProbDistDynCalc::value(), and Isis::MaximumLikelihoodWFunctions::weightedResidualCutoff().

Referenced by outputText().

◆ outputImagesCSV()

bool Isis::BundleSolutionInfo::outputImagesCSV ( )

Outputs the bundleout_images.csv file which contains Jigsaw data about the images within each observation.

Returns
True upon success, False if something went wrong.
History:
2016-12-01 Ian Humphrey - Added s as second argument to sprintf() call to prevent -Wformat-security warning. Since image->fileName().toLatin1().data() returns a char* at runtime, the compiler does not know if it will contain format specifiers and produces the mentioned warning.

Definition at line 1126 of file BundleSolutionInfo.cpp.

References Isis::BundleResults::converged(), m_settings, m_statisticsResults, Isis::BundleResults::observations(), outputImagesCSVHeader(), Isis::BundleResults::rmsImageLineResiduals(), Isis::BundleResults::rmsImageResiduals(), Isis::BundleResults::rmsImageSampleResiduals(), and Isis::toString().

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked().

◆ outputImagesCSVHeader()

bool Isis::BundleSolutionInfo::outputImagesCSVHeader ( std::ofstream &  fpOut)

Outputs the header for the bundleout_images.csv file.

Parameters
fpOutThe output file stream.
Returns
True if the write is successful, False otherwise.
History:
2016-12-08 Ian Humphrey - Removed conditions that handle TWIST headers differently than the other headers. The number of TWIST headers will be the same as each of the other angle headers. Fixes #4557.

Definition at line 394 of file BundleSolutionInfo.cpp.

References m_settings, Isis::BundleObservationSolveSettings::numberCameraAngleCoefficientsSolved(), Isis::BundleObservationSolveSettings::numberCameraPositionCoefficientsSolved(), and Isis::toString().

Referenced by outputImagesCSV().

◆ outputPointsCSV()

bool Isis::BundleSolutionInfo::outputPointsCSV ( )

Outputs point data to a csv file.

Returns
bool If the point data was successfully output.

Definition at line 1417 of file BundleSolutionInfo.cpp.

References Isis::BundleResults::bundleControlPoints(), Isis::ControlPoint::Constrained, Isis::ControlPoint::Fixed, Isis::ControlPoint::Free, m_settings, and m_statisticsResults.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked().

◆ outputResiduals()

bool Isis::BundleSolutionInfo::outputResiduals ( )

Outputs image coordinate residuals to a csv file.

Returns
bool If the residuals were successfully output.

Definition at line 1530 of file BundleSolutionInfo.cpp.

References Isis::BundleResults::bundleControlPoints(), m_settings, and m_statisticsResults.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked().

◆ outputText()

◆ runTime()

QString Isis::BundleSolutionInfo::runTime ( ) const

Returns the run time.

Returns
QString The run time.

Definition at line 256 of file BundleSolutionInfo.cpp.

References m_runTime.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked(), save(), Isis::ProjectItem::setBundleSolutionInfo(), and setRunTime().

◆ save()

void Isis::BundleSolutionInfo::save ( QXmlStreamWriter &  stream,
const Project project,
FileName  newProjectRoot 
) const

Saves the BundleSolutionInfo to the project.

Output format:

<image id="..." filename="..."> ... </image>

(fileName attribute is just the base name)

Parameters
streamThe stream to which the BundleSolutionInfo will be saved
projectThe project to which this BundleSolutionInfo will be saved
newProjectRootThe location of the project root directory.

Definition at line 1629 of file BundleSolutionInfo.cpp.

References _FILEINFO_, Isis::Project::bundleSolutionInfoRoot(), Isis::FileName::expanded(), Isis::Control::fileName(), Isis::IException::Io, m_adjustedImages, m_id, m_inputControlNetFileName, m_name, m_outputControl, m_settings, m_statisticsResults, Isis::FileName::name(), name(), Isis::Project::newProjectRoot(), Isis::FileName::path(), Isis::Project::projectRoot(), runTime(), Isis::Control::save(), Isis::BundleResults::save(), and Isis::FileName::toString().

◆ savedBundleOutputFilename()

QString Isis::BundleSolutionInfo::savedBundleOutputFilename ( )

Returns bundleout text filename.

Returns
QString Bundleout text filename.

Definition at line 118 of file BundleSolutionInfo.cpp.

Referenced by Isis::ProjectItemModel::onBundleSolutionInfoAdded().

◆ savedImagesFilename()

QString Isis::BundleSolutionInfo::savedImagesFilename ( )

Returns filename of output bundle images csv file.

Returns
QString filename of output bundle images csv file.

Definition at line 128 of file BundleSolutionInfo.cpp.

Referenced by Isis::ProjectItemModel::onBundleSolutionInfoAdded().

◆ savedPointsFilename()

QString Isis::BundleSolutionInfo::savedPointsFilename ( )

Returns filename of output bundle points csv file.

Returns
QString filename of output bundle points csv file.

Definition at line 138 of file BundleSolutionInfo.cpp.

Referenced by Isis::ProjectItemModel::onBundleSolutionInfoAdded().

◆ savedResidualsFilename()

QString Isis::BundleSolutionInfo::savedResidualsFilename ( )

Returns filename of output bundle residuals csv file.

Returns
QString filename of output bundle residuals csv file.

Definition at line 148 of file BundleSolutionInfo.cpp.

Referenced by Isis::ProjectItemModel::onBundleSolutionInfoAdded().

◆ setName()

void Isis::BundleSolutionInfo::setName ( QString  name)

Sets the name of the bundle.

Parameters
nameQString of the new name

Definition at line 368 of file BundleSolutionInfo.cpp.

References m_name, and name().

Referenced by Isis::ProjectItemModel::setData().

◆ setOutputControl()

void Isis::BundleSolutionInfo::setOutputControl ( Control outputControl)

Returns the name of the output control network.

Returns
QString The name of the output control network.

Definition at line 290 of file BundleSolutionInfo.cpp.

References m_outputControl.

Referenced by Isis::JigsawRunWidget::on_JigsawAcceptButton_clicked().

◆ setOutputControlName()

void Isis::BundleSolutionInfo::setOutputControlName ( QString  name)

Sets m_outputControlName.

Parameters
nameQString of the new value

Definition at line 300 of file BundleSolutionInfo.cpp.

References name().

◆ setOutputStatistics()

void Isis::BundleSolutionInfo::setOutputStatistics ( BundleResults  statisticsResults)

Sets the stat results.

Parameters
statisticsResultsThe new BundleResults

Definition at line 168 of file BundleSolutionInfo.cpp.

References m_statisticsResults.

◆ setRunTime()

void Isis::BundleSolutionInfo::setRunTime ( QString  runTime)

Sets the run time, and the name if a name is not already set.

Parameters
runTimeThe run time.

Definition at line 234 of file BundleSolutionInfo.cpp.

References m_name, m_runTime, and runTime().

Referenced by Isis::JigsawRunWidget::bundleFinished(), and Isis::BundleAdjust::bundleSolveInformation().

◆ surfacePointCoordName()

QString Isis::BundleSolutionInfo::surfacePointCoordName ( SurfacePoint::CoordinateType  type,
SurfacePoint::CoordIndex  coordIdx 
) const

Determine the control point coordinate name.

Parameters
typeThe control point coordinate type (see SurfacePoint.h)
coordIdxThe coordinate index (see SurfacePoint.h)
Returns
QString Coordinate name

Definition at line 1896 of file BundleSolutionInfo.cpp.

References _FILEINFO_, Isis::SurfacePoint::Latitudinal, m_settings, Isis::IException::Programmer, Isis::SurfacePoint::Rectangular, and Isis::toString().

Referenced by outputText().

◆ updateFileName

void Isis::BundleSolutionInfo::updateFileName ( Project project)
slot

TODO: change description below to something more like english.

Change the on-disk file name for the control network used to be where the control network ought to be in the given project.

This method is modelled after the updateFileName() methods in Image and Control. Those methods close something (cubes for Image and a control net for control) but there is not a close method in BundleSolutionInfo.

Parameters
projectThe project that this BundleSolutionInfo is stored in

Definition at line 187 of file BundleSolutionInfo.cpp.

References Isis::Project::cnetRoot(), Isis::FileName::dir(), Isis::FileName::expanded(), Isis::Control::fileName(), m_inputControlNetFileName, m_outputControl, and Isis::FileName::name().

Member Data Documentation

◆ m_adjustedImages

QList<ImageList *>* Isis::BundleSolutionInfo::m_adjustedImages
private

Adjusted image list.

Definition at line 272 of file BundleSolutionInfo.h.

Referenced by addAdjustedImages(), adjustedImages(), BundleSolutionInfo(), and save().

◆ m_id

QUuid* Isis::BundleSolutionInfo::m_id
private

A unique ID for this BundleSolutionInfo object (useful for others to reference this object when saving to disk).

Definition at line 263 of file BundleSolutionInfo.h.

Referenced by BundleSolutionInfo(), id(), save(), and ~BundleSolutionInfo().

◆ m_images

QList<ImageList *>* Isis::BundleSolutionInfo::m_images
private

Input image list.

Definition at line 271 of file BundleSolutionInfo.h.

Referenced by BundleSolutionInfo(), imageList(), and ~BundleSolutionInfo().

◆ m_inputControlNetFileName

FileName* Isis::BundleSolutionInfo::m_inputControlNetFileName
private

Input control network file name.

Definition at line 266 of file BundleSolutionInfo.h.

Referenced by BundleSolutionInfo(), inputControlNetFileName(), outputHeader(), save(), updateFileName(), and ~BundleSolutionInfo().

◆ m_name

QString Isis::BundleSolutionInfo::m_name
private

Name of the bundle. Defaults to the id.

Definition at line 264 of file BundleSolutionInfo.h.

Referenced by BundleSolutionInfo(), name(), save(), setName(), and setRunTime().

◆ m_outputControl

Control* Isis::BundleSolutionInfo::m_outputControl
private

◆ m_runTime

QString Isis::BundleSolutionInfo::m_runTime
private

Run time of the bundle adjustment.

Definition at line 265 of file BundleSolutionInfo.h.

Referenced by BundleSolutionInfo(), runTime(), and setRunTime().

◆ m_settings

◆ m_statisticsResults

BundleResults* Isis::BundleSolutionInfo::m_statisticsResults
private

The documentation for this class was generated from the following files: