|
Isis Developer Reference
|
Go to the documentation of this file.
20 template<
typename A,
typename B >
class QHash;
26 class ControlPointFileEntryV0002;
29 class PBControlNet_PBControlPoint;
30 class PBControlNetLogData_Point;
472 int Delete(QString serialNumber);
518 QString
GetId()
const;
561 int IndexOf(QString sn,
bool throws =
true)
const;
596 void ValidateMeasure(QString serialNumber)
const;
598 void PointModified();
663 std::bitset<3> constraintStatus;
671 bool referenceExplicitlySet;
683 QString aprioriSurfacePointSourceFile;
694 QString aprioriRadiusSourceFile;
717 int numberOfRejectedMeasures;
bool HasDateTime() const
Returns true if the datetime is not empty.
Definition: ControlPoint.cpp:1257
@ EditLockModified
Definition: ControlPoint.h:432
void ClearJigsawRejected()
Set jigsaw rejected flag for all measures to false and set the jigsaw rejected flag for the point its...
Definition: ControlPoint.cpp:2191
void SetRectangular(const Displacement &x, const Displacement &y, const Displacement &z, const Distance &xSigma=Distance(), const Distance &ySigma=Distance(), const Distance &zSigma=Distance())
Set surface point in rectangular body-fixed coordinates wtih optional sigmas.
Definition: SurfacePoint.cpp:283
QList< ControlMeasure * > getMeasures(bool excludeIgnored=false) const
Definition: ControlPoint.cpp:1873
This class is used to accumulate statistics on double arrays.
Definition: Statistics.h:94
void AddData(const double *data, const unsigned int count)
Add an array of doubles to the accumulators and counters.
Definition: Statistics.cpp:141
Isis::Camera * Camera() const
Definition: ControlMeasure.cpp:536
static QString PointTypeToString(PointType type)
Obtain a string representation of a given PointType.
Definition: ControlPoint.cpp:1333
Displacement GetX() const
Definition: SurfacePoint.cpp:1436
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
void ZeroNumberOfRejectedMeasures()
Initialize the number of rejected measures to 0.
Definition: ControlPoint.cpp:2065
@ Basemap
Definition: ControlPoint.h:445
Status SetAprioriRadiusSourceFile(QString sourceFile)
This updates the filename of the DEM that the apriori radius came from.
Definition: ControlPoint.cpp:755
bool IsCoord3Constrained()
Return bool indicating if 3rd coordinate is Constrained or not.
Definition: ControlPoint.cpp:1651
@ TypeModified
Definition: ControlPoint.h:434
@ MeasureLocked
Definition: ControlMeasure.h:219
virtual bool GetXY(const SurfacePoint &spoint, double *cudx, double *cudy, bool test=true)
Compute undistorted focal plane coordinate from ground position using current Spice from SetImage cal...
Definition: CameraGroundMap.cpp:152
const ControlMeasure * GetMeasure(QString serialNumber) const
Get a control measure based on its cube's serial number.
Definition: ControlPoint.cpp:416
double GetFocalPlaneMeasuredX() const
Definition: ControlMeasure.cpp:620
double GetNumericalValue() const
Get the value associated with this log data.
Definition: ControlMeasureLogData.cpp:123
Status SetIgnored(bool newIgnoreStatus)
Set whether to ignore or use control point.
Definition: ControlPoint.cpp:653
@ BundleSolution
Definition: ControlPoint.h:446
double GetSampleResidualRms() const
Get rms of sample residuals.
Definition: ControlPoint.cpp:2099
Status SetChooserName(QString name)
Set the point's chooser name.
Definition: ControlPoint.cpp:487
QString GetChooserName() const
Definition: ControlPoint.cpp:1242
double GetFocalPlaneMeasuredY() const
Definition: ControlMeasure.cpp:625
virtual bool SetImage(const double sample, const double line)
Sets the sample/line values of the image to get the lat/lon values.
Definition: Camera.cpp:154
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
@ Reference
Definition: ControlPoint.h:444
@ Radar
Radar Camera.
Definition: Camera.h:361
@ PointLocked
This is returned when the operation requires Edit Lock to be false but it is currently true.
Definition: ControlPoint.h:408
Status SetEditLock(bool editLock)
Set the EditLock state.
Definition: ControlPoint.cpp:522
File name manipulation and expansion.
Definition: FileName.h:100
SurfacePoint::CoordinateType GetCoordType()
Get the control point coordinate type (see the available types in SurfacePoint.h).
Definition: ControlNet.cpp:1862
double GetResidualRms() const
Get rms of residuals.
Definition: ControlPoint.cpp:2161
double UndistortedFocalPlaneX() const
Gets the x-value in the undistorted focal plane coordinate system.
Definition: CameraDistortionMap.cpp:237
double GetFocalPlaneComputedX() const
Definition: ControlMeasure.cpp:610
virtual double Sample() const
Returns the current sample number.
Definition: Camera.cpp:2690
virtual CameraType GetCameraType() const =0
Returns the type of camera that was created.
@ BundleSolution
Definition: ControlPoint.h:457
QString GetReferenceSN() const
Definition: ControlPoint.cpp:1763
bool HasAprioriRadiusSourceFile() const
Checks to see if the radius source file has been set.
Definition: ControlPoint.cpp:1671
SurfacePoint GetAdjustedSurfacePoint() const
Definition: ControlPoint.cpp:1282
Status SetAdjustedSurfacePoint(SurfacePoint newSurfacePoint)
Set or update the surface point relating to this control point.
Definition: ControlPoint.cpp:692
ConstraintStatus
This is a convenience member for checking number of constrained coordinates in the SurfacePoint.
Definition: ControlPoint.h:415
int GetNumMeasures() const
Definition: ControlPoint.cpp:1702
virtual bool SetUndistortedFocalPlane(double ux, double uy)
Compute distorted focal plane x/y.
Definition: CameraDistortionMap.cpp:130
void SetNumberOfRejectedMeasures(int numRejected)
Set (update) the number of rejected measures for the control point.
Definition: ControlPoint.cpp:2078
Source
Definition: ControlPoint.h:451
Status SetResidual(double sampResidual, double lineResidual)
Set the BundleAdjust Residual of the coordinate.
Definition: ControlMeasure.cpp:399
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
Status SetFocalPlaneMeasured(double x, double y)
Set the focal plane x/y for the measured line/sample.
Definition: ControlMeasure.cpp:299
@ Success
This is returned when the operation successfully took effect.
Definition: ControlPoint.h:403
double FocalPlaneX() const
Gets the x-value in the focal plane coordinate system.
Definition: CameraDistortionMap.cpp:215
double DetectorLine() const
Definition: CameraFocalPlaneMap.cpp:263
@ AverageOfMeasures
Definition: ControlPoint.h:443
Status ComputeApriori()
Computes a priori lat/lon/radius point coordinates by determining the average lat/lon/radius of all m...
Definition: ControlPoint.cpp:899
ControlPoint()
Construct a control point.
Definition: ControlPoint.cpp:48
double FocalPlaneY() const
Gets the y-value in the focal plane coordinate system.
Definition: CameraDistortionMap.cpp:226
SurfacePointSource::Source GetAprioriSurfacePointSource() const
Definition: ControlPoint.cpp:1682
Status ComputeResiduals_Millimeters()
This method computes the residuals for a point.
Definition: ControlPoint.cpp:1192
PointType
These are the valid 'types' of point.
Definition: ControlPoint.h:364
SurfacePoint GetAprioriSurfacePoint() const
Definition: ControlPoint.cpp:1566
Distance GetXSigma() const
Definition: SurfacePoint.cpp:1457
Displacement GetZ() const
Definition: SurfacePoint.cpp:1450
CameraDistortionMap * DistortionMap()
Returns a pointer to the CameraDistortionMap object.
Definition: Camera.cpp:2826
bool HasAprioriSurfacePointSourceFile() const
Checks to see if the surface point source file has been set.
Definition: ControlPoint.cpp:1692
int GetNumberOfRejectedMeasures() const
Get the number of rejected measures on the control point.
Definition: ControlPoint.cpp:2089
bool IsEditLocked() const
Definition: ControlPoint.cpp:1272
Distance GetZSigma() const
Definition: SurfacePoint.cpp:1471
QString GetId() const
Return the Id of the control point.
Definition: ControlPoint.cpp:1306
SurfacePoint GetBestSurfacePoint() const
Returns the adjusted surface point if it exists, otherwise returns the a priori surface point.
Definition: ControlPoint.cpp:1291
QString GetDateTime() const
Definition: ControlPoint.cpp:1262
@ Coord3Constrained
Definition: ControlPoint.h:418
ControlMeasureLogData GetLogData(long dataType) const
Definition: ControlMeasure.cpp:773
virtual bool SetGround(Latitude latitude, Longitude longitude)
Sets the lat/lon values to get the sample/line values.
Definition: Camera.cpp:401
SurfacePoint GetSurfacePoint() const
Returns the surface point (most efficient accessor).
Definition: Sensor.cpp:255
Definition: ControlPoint.h:450
Status SetAprioriSurfacePointSourceFile(QString sourceFile)
This updates the filename of where the apriori surface point came from.
Definition: ControlPoint.cpp:839
double DetectorSample() const
Definition: CameraFocalPlaneMap.cpp:255
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
int GetNumValidMeasures() const
Definition: ControlPoint.cpp:1711
QList< QString > getCubeSerialNumbers() const
Definition: ControlPoint.cpp:1889
@ AverageOfMeasures
Definition: ControlPoint.h:454
Status SetRejected(bool rejected)
Set "jigsaw" rejected flag for a measure.
Definition: ControlMeasure.cpp:343
QString GetAprioriRadiusSourceFile() const
Definition: ControlPoint.cpp:1676
bool IsIgnored() const
Definition: ControlMeasure.cpp:630
bool IsRejected() const
Definition: ControlMeasure.cpp:635
QString GetRadiusSourceString() const
Obtain a string representation of the RadiusSource.
Definition: ControlPoint.cpp:1480
bool HasAprioriCoordinates()
Definition: ControlPoint.cpp:1577
Displacement is a signed length, usually in meters.
Definition: Displacement.h:31
@ Ellipsoid
Definition: ControlPoint.h:455
QString GetCubeSerialNumber() const
Return the serial number of the cube containing the coordinate.
Definition: ControlMeasure.cpp:557
static QString RadiusSourceToString(RadiusSource::Source source)
Obtain a string representation of a given RadiusSource.
Definition: ControlPoint.cpp:1413
A single control point.
Definition: ControlPoint.h:354
@ Fixed
A Fixed point is a Control Point whose lat/lon is well established and should not be changed.
Definition: ControlPoint.h:371
bool IsInvalid() const
Definition: ControlPoint.cpp:1321
const ControlPoint & operator=(const ControlPoint &pPoint)
Definition: ControlPoint.cpp:2005
bool IsCoord2Constrained()
Return bool indicating if 2nd coordinate is Constrained or not.
Definition: ControlPoint.cpp:1641
This is free and unencumbered software released into the public domain.
Definition: ControlNet.h:32
@ Rectangular
Body-fixed rectangular x/y/z coordinates.
Definition: SurfacePoint.h:141
bool operator!=(const ControlPoint &pPoint) const
Compare two Control Points for inequality.
Definition: ControlPoint.cpp:1951
ModType
Control Measure Modification Types.
Definition: ControlMeasure.h:232
double GetLineResidualRms() const
Get rms of line residuals.
Definition: ControlPoint.cpp:2130
Status SetRefMeasure(ControlMeasure *cm)
Set the point's reference measure.
Definition: ControlPoint.cpp:570
double Rms() const
Computes and returns the rms.
Definition: Statistics.cpp:365
bool HasChooserName() const
Returns true if the choosername is not empty.
Definition: ControlPoint.cpp:1252
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
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
CoordinateType
Defines the coordinate typ, units, and coordinate index for some of the output methods.
Definition: SurfacePoint.h:139
@ User
Definition: ControlPoint.h:442
Status SetAprioriSurfacePoint(SurfacePoint aprioriSP)
This updates the apriori surface point.
Definition: ControlPoint.cpp:779
Status SetType(PointType newType)
Updates the control point's type.
Definition: ControlPoint.cpp:709
@ DEM
Definition: ControlPoint.h:456
static const int PointTypeCount
Definition: ControlPoint.h:386
virtual bool SetFocalPlane(const double dx, const double dy)
Compute detector position (sample,line) from focal plane coordinates.
Definition: CameraFocalPlaneMap.cpp:143
bool Valid() const
Definition: SurfacePoint.cpp:947
QString GetSurfacePointSourceString() const
Obtain a string representation of the SurfacePointSource.
Definition: ControlPoint.cpp:1561
@ None
Definition: ControlPoint.h:452
int GetNumLockedMeasures() const
Returns the number of locked control measures.
Definition: ControlPoint.cpp:1728
const ControlMeasure * operator[](QString serialNumber) const
Same as GetMeasure (provided for convenience)
Definition: ControlPoint.cpp:1901
static QString SurfacePointSourceToString(SurfacePointSource::Source source)
Obtain a string representation of a given SurfacePointSource.
Definition: ControlPoint.cpp:1492
Status SetId(QString id)
Sets the Id of the control point.
Definition: ControlPoint.cpp:552
@ Constrained
A Constrained point is a Control Point whose lat/lon/radius is somewhat established and should not be...
Definition: ControlPoint.h:376
static SurfacePointSource::Source StringToSurfacePointSource(QString str)
Obtain a SurfacePoint::Source from a string.
Definition: ControlPoint.cpp:1530
static RadiusSource::Source StringToRadiusSource(QString str)
Obtain a RadiusSource::Source from a string.
Definition: ControlPoint.cpp:1448
void Load(PvlObject &p)
Loads the PvlObject into a ControlPoint.
Definition: ControlPoint.cpp:212
@ None
Definition: ControlPoint.h:441
static QString Name()
Returns the name of the application.
Definition: Application.cpp:729
Status SetDateTime(QString newDateTime)
Set the point's last modified time.
Definition: ControlPoint.cpp:504
bool IsFree() const
Return bool indicating if point is Free or not.
Definition: ControlPoint.cpp:1594
bool HasRefMeasure() const
Checks to see if a reference measure is set.
Definition: ControlPoint.cpp:447
bool IsEditLocked() const
Return value for p_editLock or implicit lock on reference measure.
Definition: ControlMeasure.cpp:601
bool isValid() const
Test if this distance has been initialized or not.
Definition: Distance.cpp:192
int IndexOfRefMeasure() const
Definition: ControlPoint.cpp:1817
double GetSample() const
Definition: ControlMeasure.cpp:723
double GetSampleResidual() const
Definition: ControlMeasure.cpp:728
a control network
Definition: ControlNet.h:257
Isis exception class.
Definition: IException.h:91
QString GetAprioriSurfacePointSourceFile() const
Definition: ControlPoint.cpp:1697
#define ASSERT(x)
Definition: IsisDebug.h:134
Distance GetYSigma() const
Definition: SurfacePoint.cpp:1464
RadiusSource::Source GetAprioriRadiusSource() const
Definition: ControlPoint.cpp:1571
Source
Definition: ControlPoint.h:440
@ Coord2Constrained
Definition: ControlPoint.h:417
ControlNet * Parent()
Definition: ControlPoint.h:466
bool IsRejected() const
Definition: ControlPoint.cpp:1277
@ Csm
Community Sensor Model Camera.
Definition: Camera.h:364
Definition: ControlPoint.h:439
int IndexOf(ControlMeasure *, bool throws=true) const
Definition: ControlPoint.cpp:1782
int NumberOfConstrainedCoordinates()
Return bool indicating if point is Constrained or not.
Definition: ControlPoint.cpp:1661
@ Success
Definition: ControlMeasure.h:218
@ User
Definition: ControlPoint.h:453
CameraFocalPlaneMap * FocalPlaneMap()
Returns a pointer to the CameraFocalPlaneMap object.
Definition: Camera.cpp:2836
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
bool IsCoord1Constrained()
Return bool indicating if 1st coordinate is Constrained or not.
Definition: ControlPoint.cpp:1630
Namespace for the standard library.
const ControlMeasure * GetRefMeasure() const
Get the reference control measure.
Definition: ControlPoint.cpp:457
bool isValid() const
This indicates whether we have a legitimate angle stored or are in an unset, or invalid,...
Definition: Angle.cpp:95
ModType
Control Point Modification Types.
Definition: ControlPoint.h:431
Convert between distorted focal plane and detector coordinates.
Definition: CameraFocalPlaneMap.h:85
CameraGroundMap * GroundMap()
Returns a pointer to the CameraGroundMap object.
Definition: Camera.cpp:2856
@ IgnoredModified
Definition: ControlPoint.h:433
bool operator==(const ControlPoint &pPoint) const
Compare two Control Points for equality.
Definition: ControlPoint.cpp:1964
Status ResetApriori()
Reset all the Apriori info to defaults.
Definition: ControlPoint.cpp:381
@ Coord1Constrained
Definition: ControlPoint.h:416
@ Free
A Free point is a Control Point that identifies common measurements between two or more cubes.
Definition: ControlPoint.h:384
bool isValid() const
Test if this displacement has been initialized or not.
Definition: Displacement.cpp:141
int Delete(ControlMeasure *measure)
Remove a measurement from the control point, deleting reference measure is allowed.
Definition: ControlPoint.cpp:354
double GetLine() const
Definition: ControlMeasure.cpp:690
Angle GetLatSigma() const
Definition: SurfacePoint.cpp:1645
double GetLineResidual() const
Definition: ControlMeasure.cpp:695
bool IsIgnored() const
Definition: ControlPoint.cpp:1311
PointType GetType() const
Definition: ControlPoint.cpp:1401
Status SetRejected(bool rejected)
Set the jigsawRejected state.
Definition: ControlPoint.cpp:539
~ControlPoint()
This destroys the current instance and cleans up any and all allocated memory.
Definition: ControlPoint.cpp:147
Angle GetLonSigma() const
Definition: SurfacePoint.cpp:1653
void Coordinate(double p[3]) const
Returns the x,y,z of the surface intersection in BodyFixed km.
Definition: Sensor.cpp:196
@ Latitudinal
Planetocentric latitudinal (lat/lon/rad) coordinates.
Definition: SurfacePoint.h:140
Status SetAprioriSurfacePointSource(SurfacePointSource::Source source)
This updates the source of the surface point.
Definition: ControlPoint.cpp:821
Status
This is a return status for many of the mutating (setter) method calls.
Definition: ControlPoint.h:393
virtual double Line() const
Returns the current line number.
Definition: Camera.cpp:2710
@ Failure
This is returned when an operation cannot be performed due to a problem such as the point is ignored ...
Definition: ControlPoint.h:399
bool HasSerialNumber(QString serialNumber) const
Return true if given serial number exists in point.
Definition: ControlPoint.cpp:1746
bool IsValid() const
Definition: ControlPoint.cpp:1316
static QString DateTime(time_t *curtime=0)
Returns the date and time as a QString.
Definition: Application.cpp:802
bool IsConstrained()
Return bool indicating if point is Constrained or not.
Definition: ControlPoint.cpp:1614
Status SetFocalPlaneComputed(double x, double y)
Set the computed focal plane x/y for the apriori lat/lon.
Definition: ControlMeasure.cpp:319
double GetFocalPlaneComputedY() const
Definition: ControlMeasure.cpp:615
bool IsReferenceExplicit() const
Definition: ControlPoint.cpp:1755
double UndistortedFocalPlaneY() const
Gets the y-value in the undistorted focal plane coordinate system.
Definition: CameraDistortionMap.cpp:248
static PointType StringToPointType(QString pointTypeString)
Obtain a PointType given a string representation of it.
Definition: ControlPoint.cpp:1359
void Add(ControlMeasure *measure)
Add a measurement to the control point, taking ownership of the measure in the process.
Definition: ControlPoint.cpp:223
@ Kilometers
The distance is being specified in kilometers.
Definition: Displacement.h:42
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:132
Displacement GetY() const
Definition: SurfacePoint.cpp:1443
Distance GetLocalRadiusSigma() const
Definition: SurfacePoint.cpp:1776
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
bool IsFixed() const
Return bool indicating if point is Fixed or not.
Definition: ControlPoint.cpp:1604
QString GetPointTypeString() const
Obtain a string representation of the PointType.
Definition: ControlPoint.cpp:1392
Status SetAprioriRadiusSource(RadiusSource::Source source)
This updates the source of the radius of the apriori surface point.
Definition: ControlPoint.cpp:736
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
Status ComputeResiduals()
This method computes the BundleAdjust residuals for a point.
Definition: ControlPoint.cpp:1028
a control measurement
Definition: ControlMeasure.h:175