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.
 

Public Member Functions

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

Private Attributes

QUuid * m_id
 A unique ID for this BundleSolutionInfo object (useful for others to reference this object when saving to disk).
 
QString m_name
 Name of the bundle. Defaults to the id.
 
QString m_runTime
 Run time of the bundle adjustment.
 
FileNamem_inputControlNetFileName
 Input control network file name.
 
Controlm_outputControl
 Output control.
 
QString m_outputControlName
 
FileNamem_inputLidarDataFileName
 Input lidar data file name.
 
LidarDatam_outputLidarDataSet
 QList of adjusted lidar points.
 
BundleSettingsQsp m_settings
 Bundle settings.
 
BundleResultsm_statisticsResults
 Bundle statistical results.
 
QList< ImageList * > * m_images
 Input image list.
 
QList< ImageList * > * m_adjustedImages
 Adjusted image list.
 
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 Ken Edmundson - modifications to add lidar data input, output, and serialization.

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 162 of file BundleSolutionInfo.h.

Constructor & Destructor Documentation

◆ BundleSolutionInfo() [1/3]

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 48 of file BundleSolutionInfo.cpp.

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

◆ BundleSolutionInfo() [2/3]

Isis::BundleSolutionInfo::BundleSolutionInfo ( BundleSettingsQsp inputSettings,
FileName controlNetworkFileName,
FileName lidarDataFileName,
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 76 of file BundleSolutionInfo.cpp.

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

◆ BundleSolutionInfo() [3/3]

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 104 of file BundleSolutionInfo.cpp.

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

◆ ~BundleSolutionInfo()

Isis::BundleSolutionInfo::~BundleSolutionInfo ( )

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 206 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 262 of file BundleSolutionInfo.cpp.

References m_adjustedImages.

Referenced by 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 399 of file BundleSolutionInfo.cpp.

References 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 387 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 377 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 272 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 416 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 314 of file BundleSolutionInfo.cpp.

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

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

◆ inputLidarDataFileName()

QString Isis::BundleSolutionInfo::inputLidarDataFileName ( ) const

Returns name of input lidar data file (if any).

Returns
QString Name of input lidar data file.

Definition at line 338 of file BundleSolutionInfo.cpp.

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

◆ 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 437 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 368 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 324 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 529 of file BundleSolutionInfo.cpp.

References Isis::SurfacePoint::coordinateTypeToString(), Isis::iTime::CurrentLocalTime(), Isis::BundleResults::degreesOfFreedom(), Isis::BundleResults::elapsedTime(), Isis::BundleResults::elapsedTimeErrorProp(), Isis::FileName::expanded(), Isis::IException::Io, Isis::BundleResults::iterations(), Isis::SurfacePoint::Latitudinal, m_inputControlNetFileName, m_inputLidarDataFileName, m_settings, m_statisticsResults, Isis::StatCumProbDistDynCalc::max(), Isis::BundleResults::maximumLikelihoodModelQuantile(), Isis::BundleResults::maximumLikelihoodModelWFunc(), Isis::StatCumProbDistDynCalc::min(), Isis::MaximumLikelihoodWFunctions::modelToString(), Isis::Null, Isis::BundleResults::numberConstrainedImageParameters(), Isis::BundleResults::numberConstrainedPointParameters(), Isis::BundleResults::numberConstrainedTargetParameters(), Isis::BundleResults::numberLidarRangeConstraintEquations(), Isis::BundleResults::numberObservations(), Isis::BundleResults::numberRejectedObservations(), Isis::BundleResults::numberUnknownParameters(), Isis::BundleResults::observations(), outputControlName(), Isis::BundleResults::outputControlNet(), Isis::BundleResults::outputLidarData(), Isis::IException::Programmer, Isis::SurfacePoint::Rectangular, Isis::BundleResults::residualsCumulativeProbabilityDistribution(), Isis::BundleResults::sigma0(), 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 1192 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,
BundleObservationQsp observation )

Outputs the header for the bundleout_images.csv file.

Parameters
fpOutThe output file stream.
observationAn observation for the instrument that this header is for.
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 453 of file BundleSolutionInfo.cpp.

Referenced by outputImagesCSV().

◆ outputLidarCSV()

bool Isis::BundleSolutionInfo::outputLidarCSV ( )

Outputs lidar data to a csv file.

Returns
bool If the point data was successfully output.

Definition at line 1642 of file BundleSolutionInfo.cpp.

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

◆ outputPointsCSV()

bool Isis::BundleSolutionInfo::outputPointsCSV ( )

Outputs point data to a csv file.

Returns
bool If the point data was successfully output.

Definition at line 1529 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 1700 of file BundleSolutionInfo.cpp.

References Isis::BundleResults::bundleControlPoints(), Isis::BundleResults::bundleLidarControlPoints(), 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 304 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 1850 of file BundleSolutionInfo.cpp.

References Isis::Project::bundleSolutionInfoRoot(), 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::BundleResults::save(), Isis::Control::save(), and Isis::FileName::toString().

◆ savedBundleOutputFilename()

QString Isis::BundleSolutionInfo::savedBundleOutputFilename ( )

Returns bundleout text filename.

Returns
QString Bundleout text filename.

Definition at line 166 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 176 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 186 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 196 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 426 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 348 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 358 of file BundleSolutionInfo.cpp.

References name().

◆ setOutputStatistics()

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

Sets the stat results.

Parameters
statisticsResultsThe new BundleResults

Definition at line 216 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 282 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 2113 of file BundleSolutionInfo.cpp.

References 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 235 of file BundleSolutionInfo.cpp.

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

Member Data Documentation

◆ m_adjustedImages

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

◆ m_csvSavedImagesFilename

QString Isis::BundleSolutionInfo::m_csvSavedImagesFilename
private

Definition at line 278 of file BundleSolutionInfo.h.

◆ m_csvSavedPointsFilename

QString Isis::BundleSolutionInfo::m_csvSavedPointsFilename
private

Definition at line 279 of file BundleSolutionInfo.h.

◆ m_csvSavedResidualsFilename

QString Isis::BundleSolutionInfo::m_csvSavedResidualsFilename
private

Definition at line 280 of file BundleSolutionInfo.h.

◆ 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 262 of file BundleSolutionInfo.h.

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

◆ m_images

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

Input image list.

Definition at line 272 of file BundleSolutionInfo.h.

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

◆ m_inputControlNetFileName

FileName* Isis::BundleSolutionInfo::m_inputControlNetFileName
private

◆ m_inputLidarDataFileName

FileName* Isis::BundleSolutionInfo::m_inputLidarDataFileName
private

◆ m_name

QString Isis::BundleSolutionInfo::m_name
private

Name of the bundle. Defaults to the id.

Definition at line 263 of file BundleSolutionInfo.h.

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

◆ m_outputControl

Control* Isis::BundleSolutionInfo::m_outputControl
private

◆ m_outputControlName

QString Isis::BundleSolutionInfo::m_outputControlName
private

Definition at line 267 of file BundleSolutionInfo.h.

◆ m_outputLidarDataSet

LidarData* Isis::BundleSolutionInfo::m_outputLidarDataSet
private

QList of adjusted lidar points.

Definition at line 269 of file BundleSolutionInfo.h.

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

◆ m_runTime

QString Isis::BundleSolutionInfo::m_runTime
private

Run time of the bundle adjustment.

Definition at line 264 of file BundleSolutionInfo.h.

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

◆ m_settings

◆ m_statisticsResults

◆ m_txtBundleOutputFilename

QString Isis::BundleSolutionInfo::m_txtBundleOutputFilename
private

Definition at line 277 of file BundleSolutionInfo.h.


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