20template<
typename A,
typename B >
class QHash;
26 class ControlPointFileEntryV0002;
29 class PBControlNet_PBControlPoint;
30 class PBControlNetLogData_Point;
474 int Delete(QString serialNumber);
520 QString
GetId()
const;
563 int IndexOf(QString sn,
bool throws =
true)
const;
603 void ValidateMeasure(QString serialNumber)
const;
609 QStringList *cubeSerials;
665 std::bitset<3> constraintStatus;
673 bool referenceExplicitlySet;
685 QString aprioriSurfacePointSourceFile;
696 QString aprioriRadiusSourceFile;
719 int numberOfRejectedMeasures;
a control measurement
Definition: ControlMeasure.h:175
ModType
Control Measure Modification Types.
Definition: ControlMeasure.h:232
a control network
Definition: ControlNet.h:258
A single control point.
Definition: ControlPoint.h:356
const ControlMeasure * GetRefMeasure() const
Get the reference control measure.
Definition: ControlPoint.cpp:457
ControlNet * Parent()
Definition: ControlPoint.h:468
static QString RadiusSourceToString(RadiusSource::Source source)
Obtain a string representation of a given RadiusSource.
Definition: ControlPoint.cpp:1413
static SurfacePointSource::Source StringToSurfacePointSource(QString str)
Obtain a SurfacePoint::Source from a string.
Definition: ControlPoint.cpp:1530
Status
This is a return status for many of the mutating (setter) method calls.
Definition: ControlPoint.h:395
@ PointLocked
This is returned when the operation requires Edit Lock to be false but it is currently true.
Definition: ControlPoint.h:410
@ Success
This is returned when the operation successfully took effect.
Definition: ControlPoint.h:405
@ Failure
This is returned when an operation cannot be performed due to a problem such as the point is ignored ...
Definition: ControlPoint.h:401
int NumberOfConstrainedCoordinates()
Return bool indicating if point is Constrained or not.
Definition: ControlPoint.cpp:1661
bool IsEditLocked() const
Definition: ControlPoint.cpp:1272
Status SetEditLock(bool editLock)
Set the EditLock state.
Definition: ControlPoint.cpp:522
const ControlPoint & operator=(const ControlPoint &pPoint)
Definition: ControlPoint.cpp:2005
bool IsFree() const
Return bool indicating if point is Free or not.
Definition: ControlPoint.cpp:1594
static RadiusSource::Source StringToRadiusSource(QString str)
Obtain a RadiusSource::Source from a string.
Definition: ControlPoint.cpp:1448
QString GetDateTime() const
Definition: ControlPoint.cpp:1262
ConstraintStatus
This is a convenience member for checking number of constrained coordinates in the SurfacePoint.
Definition: ControlPoint.h:417
@ Coord1Constrained
Definition: ControlPoint.h:418
@ Coord3Constrained
Definition: ControlPoint.h:420
@ Coord2Constrained
Definition: ControlPoint.h:419
bool IsRejected() const
Definition: ControlPoint.cpp:1277
bool operator==(const ControlPoint &pPoint) const
Compare two Control Points for equality.
Definition: ControlPoint.cpp:1964
void ClearJigsawRejected()
Set jigsaw rejected flag for all measures to false and set the jigsaw rejected flag for the point its...
Definition: ControlPoint.cpp:2190
Status SetAprioriSurfacePoint(SurfacePoint aprioriSP)
This updates the apriori surface point.
Definition: ControlPoint.cpp:779
QString GetAprioriRadiusSourceFile() const
Definition: ControlPoint.cpp:1676
ModType
Control Point Modification Types.
Definition: ControlPoint.h:433
@ EditLockModified
Definition: ControlPoint.h:434
@ TypeModified
Definition: ControlPoint.h:436
@ IgnoredModified
Definition: ControlPoint.h:435
Status SetId(QString id)
Sets the Id of the control point.
Definition: ControlPoint.cpp:552
Status SetAprioriRadiusSource(RadiusSource::Source source)
This updates the source of the radius of the apriori surface point.
Definition: ControlPoint.cpp:736
double GetResidualRms() const
Get rms of residuals.
Definition: ControlPoint.cpp:2160
bool IsReferenceExplicit() const
Definition: ControlPoint.cpp:1755
Status ComputeResiduals_Millimeters()
This method computes the residuals for a point.
Definition: ControlPoint.cpp:1192
RadiusSource::Source GetAprioriRadiusSource() const
Definition: ControlPoint.cpp:1571
virtual ~ControlPoint()
This destroys the current instance and cleans up any and all allocated memory.
Definition: ControlPoint.cpp:147
bool HasDateTime() const
Returns true if the datetime is not empty.
Definition: ControlPoint.cpp:1257
Status SetChooserName(QString name)
Set the point's chooser name.
Definition: ControlPoint.cpp:487
SurfacePoint GetAprioriSurfacePoint() const
Definition: ControlPoint.cpp:1566
bool HasRefMeasure() const
Checks to see if a reference measure is set.
Definition: ControlPoint.cpp:447
int GetNumValidMeasures() const
Definition: ControlPoint.cpp:1711
bool IsInvalid() const
Definition: ControlPoint.cpp:1321
QList< QString > getCubeSerialNumbers() const
Definition: ControlPoint.cpp:1889
int GetNumLockedMeasures() const
Returns the number of locked control measures.
Definition: ControlPoint.cpp:1728
int GetNumMeasures() const
Definition: ControlPoint.cpp:1702
int Delete(ControlMeasure *measure)
Remove a measurement from the control point, deleting reference measure is allowed.
Definition: ControlPoint.cpp:354
Status SetRejected(bool rejected)
Set the jigsawRejected state.
Definition: ControlPoint.cpp:539
void Add(ControlMeasure *measure)
Add a measurement to the control point, taking ownership of the measure in the process.
Definition: ControlPoint.cpp:223
PointType GetType() const
Definition: ControlPoint.cpp:1401
QString GetChooserName() const
Definition: ControlPoint.cpp:1242
Status SetAdjustedSurfacePoint(SurfacePoint newSurfacePoint)
Set or update the surface point relating to this control point.
Definition: ControlPoint.cpp:692
PointType
These are the valid 'types' of point.
Definition: ControlPoint.h:366
@ Constrained
A Constrained point is a Control Point whose lat/lon/radius is somewhat established and should not be...
Definition: ControlPoint.h:378
@ Free
A Free point is a Control Point that identifies common measurements between two or more cubes.
Definition: ControlPoint.h:386
@ Fixed
A Fixed point is a Control Point whose lat/lon is well established and should not be changed.
Definition: ControlPoint.h:373
Status SetType(PointType newType)
Updates the control point's type.
Definition: ControlPoint.cpp:709
Status SetAprioriSurfacePointSourceFile(QString sourceFile)
This updates the filename of where the apriori surface point came from.
Definition: ControlPoint.cpp:839
int IndexOfRefMeasure() const
Definition: ControlPoint.cpp:1817
Status SetAprioriSurfacePointSource(SurfacePointSource::Source source)
This updates the source of the surface point.
Definition: ControlPoint.cpp:821
const ControlMeasure * GetMeasure(QString serialNumber) const
Get a control measure based on its cube's serial number.
Definition: ControlPoint.cpp:416
double GetLineResidualRms() const
Get rms of line residuals.
Definition: ControlPoint.cpp:2129
bool IsCoord2Constrained()
Return bool indicating if 2nd coordinate is Constrained or not.
Definition: ControlPoint.cpp:1641
bool HasAprioriRadiusSourceFile() const
Checks to see if the radius source file has been set.
Definition: ControlPoint.cpp:1671
bool IsCoord1Constrained()
Return bool indicating if 1st coordinate is Constrained or not.
Definition: ControlPoint.cpp:1630
QString GetPointTypeString() const
Obtain a string representation of the PointType.
Definition: ControlPoint.cpp:1392
double GetSampleResidualRms() const
Get rms of sample residuals.
Definition: ControlPoint.cpp:2098
bool HasChooserName() const
Returns true if the choosername is not empty.
Definition: ControlPoint.cpp:1252
Status SetIgnored(bool newIgnoreStatus)
Set whether to ignore or use control point.
Definition: ControlPoint.cpp:653
Status SetDateTime(QString newDateTime)
Set the point's last modified time.
Definition: ControlPoint.cpp:504
bool IsCoord3Constrained()
Return bool indicating if 3rd coordinate is Constrained or not.
Definition: ControlPoint.cpp:1651
ControlPoint()
Construct a control point.
Definition: ControlPoint.cpp:48
Statistics GetStatistic(double(ControlMeasure::*statFunc)() const) const
This function will call a given method on every control measure that this point has.
Definition: ControlPoint.cpp:1842
SurfacePoint GetAdjustedSurfacePoint() const
Definition: ControlPoint.cpp:1282
bool IsConstrained()
Return bool indicating if point is Constrained or not.
Definition: ControlPoint.cpp:1614
void PointModified()
List of Control Measures.
Definition: ControlPoint.cpp:2058
bool IsIgnored() const
Definition: ControlPoint.cpp:1311
SurfacePointSource::Source GetAprioriSurfacePointSource() const
Definition: ControlPoint.cpp:1682
bool HasAprioriCoordinates()
Definition: ControlPoint.cpp:1577
static QString PointTypeToString(PointType type)
Obtain a string representation of a given PointType.
Definition: ControlPoint.cpp:1333
static PointType StringToPointType(QString pointTypeString)
Obtain a PointType given a string representation of it.
Definition: ControlPoint.cpp:1359
bool operator!=(const ControlPoint &pPoint) const
Compare two Control Points for inequality.
Definition: ControlPoint.cpp:1951
Status ComputeResiduals()
This method computes the BundleAdjust residuals for a point.
Definition: ControlPoint.cpp:1028
QString GetId() const
Return the Id of the control point.
Definition: ControlPoint.cpp:1306
static QString SurfacePointSourceToString(SurfacePointSource::Source source)
Obtain a string representation of a given SurfacePointSource.
Definition: ControlPoint.cpp:1492
QList< ControlMeasure * > getMeasures(bool excludeIgnored=false) const
Definition: ControlPoint.cpp:1873
Status ResetApriori()
Reset all the Apriori info to defaults.
Definition: ControlPoint.cpp:381
void ZeroNumberOfRejectedMeasures()
Initialize the number of rejected measures to 0.
Definition: ControlPoint.cpp:2064
int GetNumberOfRejectedMeasures() const
Get the number of rejected measures on the control point.
Definition: ControlPoint.cpp:2088
bool HasSerialNumber(QString serialNumber) const
Return true if given serial number exists in point.
Definition: ControlPoint.cpp:1746
int IndexOf(ControlMeasure *, bool throws=true) const
Definition: ControlPoint.cpp:1782
void SetNumberOfRejectedMeasures(int numRejected)
Set (update) the number of rejected measures for the control point.
Definition: ControlPoint.cpp:2077
bool HasAprioriSurfacePointSourceFile() const
Checks to see if the surface point source file has been set.
Definition: ControlPoint.cpp:1692
void Load(PvlObject &p)
Loads the PvlObject into a ControlPoint.
Definition: ControlPoint.cpp:212
const ControlMeasure * operator[](QString serialNumber) const
Same as GetMeasure (provided for convenience)
Definition: ControlPoint.cpp:1901
QHash< QString, ControlMeasure * > * measures
Definition: ControlPoint.h:599
SurfacePoint GetBestSurfacePoint() const
Returns the adjusted surface point if it exists, otherwise returns the a priori surface point.
Definition: ControlPoint.cpp:1291
Status SetRefMeasure(ControlMeasure *cm)
Set the point's reference measure.
Definition: ControlPoint.cpp:570
Status ComputeApriori()
Computes a priori lat/lon/radius point coordinates by determining the average lat/lon/radius of all m...
Definition: ControlPoint.cpp:899
bool IsValid() const
Definition: ControlPoint.cpp:1316
bool IsFixed() const
Return bool indicating if point is Fixed or not.
Definition: ControlPoint.cpp:1604
Status SetAprioriRadiusSourceFile(QString sourceFile)
This updates the filename of the DEM that the apriori radius came from.
Definition: ControlPoint.cpp:755
QString GetAprioriSurfacePointSourceFile() const
Definition: ControlPoint.cpp:1697
static const int PointTypeCount
Definition: ControlPoint.h:388
QString GetRadiusSourceString() const
Obtain a string representation of the RadiusSource.
Definition: ControlPoint.cpp:1480
void emitMeasureModified(ControlMeasure *measure, ControlMeasure::ModType modType, QVariant oldValue, QVariant newValue)
This method is a wrapper to emit the measureModified() signal in the parent network is called wheneve...
Definition: ControlPoint.cpp:341
QString GetReferenceSN() const
Definition: ControlPoint.cpp:1763
QString GetSurfacePointSourceString() const
Obtain a string representation of the SurfacePointSource.
Definition: ControlPoint.cpp:1561
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:132
This is free and unencumbered software released into the public domain.
Definition: ControlNet.h:32
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Definition: ControlPoint.h:452
Source
Definition: ControlPoint.h:453
@ None
Definition: ControlPoint.h:454
@ User
Definition: ControlPoint.h:455
@ AverageOfMeasures
Definition: ControlPoint.h:456
@ DEM
Definition: ControlPoint.h:458
@ Ellipsoid
Definition: ControlPoint.h:457
@ BundleSolution
Definition: ControlPoint.h:459
Definition: ControlPoint.h:441
Source
Definition: ControlPoint.h:442
@ None
Definition: ControlPoint.h:443
@ AverageOfMeasures
Definition: ControlPoint.h:445
@ Reference
Definition: ControlPoint.h:446
@ BundleSolution
Definition: ControlPoint.h:448
@ User
Definition: ControlPoint.h:444
@ Basemap
Definition: ControlPoint.h:447