|
Isis 3.0 Developer's Reference (API) |
Home |
A single control point. More...
#include <ControlPoint.h>
Inherits QObject.
Classes | |
| struct | RadiusSource |
| struct | SurfacePointSource |
Public Types | |
| enum | PointType { Fixed = 0, Constrained = 1, Free = 2 } |
These are the valid 'types' of point. More... | |
| enum | Status { Failure, Success, PointLocked } |
This is a return status for many of the mutating (setter) method calls. More... | |
| enum | ConstraintStatus { LatitudeConstrained = 0, LongitudeConstrained = 1, RadiusConstrained = 2 } |
This is a convenience member for checking number of constrained coordinates in the SurfacePoint. More... | |
Public Member Functions | |
| ControlPoint () | |
| Construct a control point. | |
| ControlPoint (const ControlPoint &) | |
| Copy the given control point into this instance. | |
| ControlPoint (const QString &id) | |
| Construct a control point with given Id. | |
| ControlPoint (const ControlPointFileEntryV0002 &fileEntry, const Distance &majorRad, const Distance &minorRad, const Distance &polarRad) | |
| This is used when reading from a protocol buffer. | |
| ~ControlPoint () | |
| This destroys the current instance and cleans up any and all allocated memory. | |
| ControlNet * | Parent () |
| void | Load (PvlObject &p) |
| Loads the PvlObject into a ControlPoint. | |
| void | Add (ControlMeasure *measure) |
| Add a measurement to the control point, taking ownership of the measure in the process. | |
| int | Delete (ControlMeasure *measure) |
| Remove a measurement from the control point, deleting reference measure is allowed. | |
| int | Delete (QString serialNumber) |
| Remove a measurement from the control point, deleting reference measure is allowed. | |
| int | Delete (int index) |
| Remove a measurement from the control point, deleting reference measure is allowed. | |
| Status | ResetApriori () |
| Reset all the Apriori info to defaults. | |
| const ControlMeasure * | GetMeasure (QString serialNumber) const |
| Get a control measure based on its cube's serial number. | |
| ControlMeasure * | GetMeasure (QString serialNumber) |
| Get a control measure based on its cube's serial number. | |
| const ControlMeasure * | GetMeasure (int index) const |
| ControlMeasure * | GetMeasure (int index) |
| const ControlMeasure * | GetRefMeasure () const |
| Get the reference control measure. | |
| ControlMeasure * | GetRefMeasure () |
| Get the measure that is the reference directly. | |
| Status | SetChooserName (QString name) |
| Set the point's chooser name. | |
| Status | SetDateTime (QString newDateTime) |
| Set the point's last modified time. | |
| Status | SetEditLock (bool editLock) |
| Set the EditLock state. | |
| Status | SetId (QString id) |
| Sets the Id of the control point. | |
| Status | SetRefMeasure (ControlMeasure *cm) |
| Set the point's reference measure. | |
| Status | SetRefMeasure (int index) |
| Set the point's reference measure. | |
| Status | SetRefMeasure (QString sn) |
| Set the points reference measure. | |
| Status | SetRejected (bool rejected) |
| Set the jigsawRejected state. | |
| Status | SetIgnored (bool newIgnoreStatus) |
| Set whether to ignore or use control point. | |
| Status | SetAdjustedSurfacePoint (SurfacePoint newSurfacePoint) |
| Set or update the surface point relating to this control point. | |
| Status | SetType (PointType newType) |
| Updates the control point's type. | |
| Status | SetAprioriRadiusSource (RadiusSource::Source source) |
| This updates the source of the radius of the apriori surface point. | |
| Status | SetAprioriRadiusSourceFile (QString sourceFile) |
| This updates the filename of the DEM that the apriori radius came from. | |
| Status | SetAprioriSurfacePoint (SurfacePoint aprioriSP) |
| This updates the apriori surface point. | |
| Status | SetAprioriSurfacePointSource (SurfacePointSource::Source source) |
| This updates the source of the surface point. | |
| Status | SetAprioriSurfacePointSourceFile (QString sourceFile) |
| This updates the filename of where the apriori surface point came from. | |
| Status | ComputeApriori () |
| This method computes the apriori lat/lon for a point. | |
| Status | ComputeResiduals () |
| This method computes the BundleAdjust residuals for a point. | |
| Status | ComputeResiduals_Millimeters () |
| This method computes the residuals for a point. | |
| SurfacePoint | GetAdjustedSurfacePoint () const |
| SurfacePoint | GetBestSurfacePoint () const |
| Returns the adjusted surface point if it exists, otherwise returns the a priori surface point. | |
| QString | GetChooserName () const |
| QString | GetDateTime () const |
| bool | IsEditLocked () const |
| bool | IsRejected () const |
| QString | GetId () const |
| Return the Id of the control point. | |
| bool | IsIgnored () const |
| bool | IsValid () const |
| bool | IsInvalid () const |
| bool | IsFixed () const |
| bool | HasAprioriCoordinates () |
| bool | IsConstrained () |
| bool | IsLatitudeConstrained () |
| bool | IsLongitudeConstrained () |
| bool | IsRadiusConstrained () |
| int | NumberOfConstrainedCoordinates () |
| QString | GetPointTypeString () const |
| Obtain a string representation of the PointType. | |
| PointType | GetType () const |
| QString | GetRadiusSourceString () const |
| Obtain a string representation of the RadiusSource. | |
| QString | GetSurfacePointSourceString () const |
| Obtain a string representation of the SurfacePointSource. | |
| SurfacePoint | GetAprioriSurfacePoint () const |
| RadiusSource::Source | GetAprioriRadiusSource () const |
| QString | GetAprioriRadiusSourceFile () const |
| SurfacePointSource::Source | GetAprioriSurfacePointSource () const |
| QString | GetAprioriSurfacePointSourceFile () const |
| int | GetNumMeasures () const |
| int | GetNumValidMeasures () const |
| int | GetNumLockedMeasures () const |
| Returns the number of locked control measures. | |
| bool | HasSerialNumber (QString serialNumber) const |
| Return true if given serial number exists in point. | |
| int | IndexOf (ControlMeasure *, bool throws=true) const |
| int | IndexOf (QString sn, bool throws=true) const |
| int | IndexOfRefMeasure () const |
| bool | IsReferenceExplicit () const |
| QString | GetReferenceSN () const |
| Statistics | GetStatistic (double(ControlMeasure::*statFunc)() const) const |
| This function will call a given method on every control measure that this point has. | |
| Statistics | GetStatistic (long dataType) const |
| QList< ControlMeasure * > | getMeasures (bool excludeIgnored=false) const |
| QList< QString > | getCubeSerialNumbers () const |
| const ControlMeasure * | operator[] (QString serialNumber) const |
| Same as GetMeasure (provided for convenience). | |
| ControlMeasure * | operator[] (QString serialNumber) |
| Same as GetMeasure (provided for convenience). | |
| const ControlMeasure * | operator[] (int index) const |
| Same as GetMeasure (provided for convenience). | |
| ControlMeasure * | operator[] (int index) |
| Same as GetMeasure (provided for convenience). | |
| bool | operator!= (const ControlPoint &pPoint) const |
| Compare two Control Points for inequality. | |
| bool | operator== (const ControlPoint &pPoint) const |
| Compare two Control Points for equality. | |
| const ControlPoint & | operator= (const ControlPoint &pPoint) |
| void | ZeroNumberOfRejectedMeasures () |
| Initialize the number of rejected measures to 0. | |
| void | SetNumberOfRejectedMeasures (int numRejected) |
| Set (update) the number of rejected measures for the control point. | |
| int | GetNumberOfRejectedMeasures () const |
| Get the number of rejected measures on the control point. | |
| double | GetSampleResidualRms () const |
| Get rms of sample residuals. | |
| double | GetLineResidualRms () const |
| Get rms of line residuals. | |
| double | GetResidualRms () const |
| Get rms of residuals. | |
| void | ClearJigsawRejected () |
| Set jigsaw rejected flag for all measures to false and set the jigsaw rejected flag for the point itself to false. | |
| ControlPointFileEntryV0002 | ToFileEntry () const |
Static Public Member Functions | |
| static QString | PointTypeToString (PointType type) |
| Obtain a string representation of a given PointType. | |
| static PointType | StringToPointType (QString pointTypeString) |
| Obtain a PointType given a string representation of it. | |
| static QString | RadiusSourceToString (RadiusSource::Source source) |
| Obtain a string representation of a given RadiusSource. | |
| static RadiusSource::Source | StringToRadiusSource (QString str) |
| Obtain a RadiusSource::Source from a string. | |
| static QString | SurfacePointSourceToString (SurfacePointSource::Source source) |
| Obtain a string representation of a given SurfacePointSource. | |
| static SurfacePointSource::Source | StringToSurfacePointSource (QString str) |
| Obtain a SurfacePoint::Source from a string. | |
Static Public Attributes | |
| static const int | PointTypeCount = 3 |
Friends | |
| class | ControlNet |
A single control point.
A control point is one or more measurements that identify the same feature or location in different images.
This is a convenience member for checking number of constrained coordinates in the SurfacePoint.
| LatitudeConstrained |
This is the status of constrained coordinates in the SurfacePoint. |
| LongitudeConstrained | |
| RadiusConstrained |
These are the valid 'types' of point.
A point type defines what a point is tying together.
This is a return status for many of the mutating (setter) method calls.
We chose to use return status' because often times ignoring them is the behavior the caller wants.
| Isis::ControlPoint::ControlPoint | ( | ) |
Construct a control point.
References Free, Isis::ControlPoint::RadiusSource::None, and Isis::ControlPoint::SurfacePointSource::None.
| Isis::ControlPoint::ControlPoint | ( | const ControlPoint & | other | ) |
Copy the given control point into this instance.
| other | The control point to duplicate |
References GetMeasure(), and SetRefMeasure().
| Isis::ControlPoint::ControlPoint | ( | const QString & | newId | ) |
Construct a control point with given Id.
| id | Control Point Id |
References Free, Isis::ControlPoint::RadiusSource::None, and Isis::ControlPoint::SurfacePointSource::None.
| Isis::ControlPoint::ControlPoint | ( | const ControlPointFileEntryV0002 & | fileEntry, | |
| const Distance & | majorRad, | |||
| const Distance & | minorRad, | |||
| const Distance & | polarRad | |||
| ) |
This is used when reading from a protocol buffer.
Given a file representation (protocol buffer), and log data, construct the control point.
References _FILEINFO_, Isis::ControlPoint::RadiusSource::AverageOfMeasures, Isis::ControlPoint::SurfacePointSource::AverageOfMeasures, Isis::ControlPoint::SurfacePointSource::Basemap, Isis::ControlPoint::RadiusSource::BundleSolution, Isis::ControlPoint::SurfacePointSource::BundleSolution, Constrained, Isis::ControlPoint::RadiusSource::DEM, Isis::ControlPoint::RadiusSource::Ellipsoid, Fixed, Free, Isis::Distance::isValid(), LatitudeConstrained, LongitudeConstrained, Isis::Displacement::Meters, Isis::ControlPoint::RadiusSource::None, Isis::ControlPoint::SurfacePointSource::None, Isis::IException::Programmer, RadiusConstrained, Isis::ControlPoint::SurfacePointSource::Reference, Isis::SurfacePoint::SetRadii(), Isis::SurfacePoint::SetRectangularMatrix(), SetRefMeasure(), Isis::ControlPoint::RadiusSource::User, and Isis::ControlPoint::SurfacePointSource::User.
| Isis::ControlPoint::~ControlPoint | ( | ) |
This destroys the current instance and cleans up any and all allocated memory.
| void Isis::ControlPoint::Add | ( | ControlMeasure * | measure | ) |
Add a measurement to the control point, taking ownership of the measure in the process.
| measure | The ControlMeasure to add |
Referenced by Isis::StereoTool::createPoint(), and Isis::MatchTool::createPoint().
| void Isis::ControlPoint::ClearJigsawRejected | ( | ) |
Set jigsaw rejected flag for all measures to false and set the jigsaw rejected flag for the point itself to false.
References GetMeasure(), SetRejected(), and Isis::ControlMeasure::SetRejected().
Referenced by Isis::ControlNet::ClearJigsawRejected().
| ControlPoint::Status Isis::ControlPoint::ComputeApriori | ( | ) |
This method computes the apriori lat/lon for a point.
It computes this by determining the average lat/lon of all the measures. Note that this does not change ignored, or fixed points. Also, it does not use unmeasured or ignored measures when computing the lat/lon.
References _FILEINFO_, Isis::ControlPoint::RadiusSource::AverageOfMeasures, Isis::ControlPoint::SurfacePointSource::AverageOfMeasures, cam, Isis::ControlMeasure::Camera(), Isis::Sensor::Coordinate(), Isis::Camera::DistortionMap(), Fixed, GetId(), Isis::ControlMeasure::GetLine(), GetMeasure(), Isis::ControlMeasure::GetSample(), GetType(), Isis::SurfacePoint::GetX(), Isis::SurfacePoint::GetY(), Isis::ControlMeasure::IsIgnored(), IsLatitudeConstrained(), IsRadiusConstrained(), Isis::Displacement::Kilometers, NumberOfConstrainedCoordinates(), Isis::IException::Programmer, SetAprioriRadiusSource(), SetAprioriSurfacePointSource(), Isis::ControlMeasure::SetFocalPlaneMeasured(), Isis::Camera::SetImage(), Isis::SurfacePoint::SetRectangular(), Success, Isis::CameraDistortionMap::UndistortedFocalPlaneX(), Isis::CameraDistortionMap::UndistortedFocalPlaneY(), Isis::IException::User, Isis::SurfacePoint::Valid(), x, and y.
Referenced by Isis::ControlNet::ComputeApriori().
| ControlPoint::Status Isis::ControlPoint::ComputeResiduals | ( | ) |
This method computes the BundleAdjust residuals for a point.
*** Warning: Only BundleAdjust and its applications should be using this method.
References _FILEINFO_, cam, Isis::ControlMeasure::Camera(), ComputeResiduals_Millimeters(), Isis::CameraFocalPlaneMap::DetectorLine(), Isis::CameraFocalPlaneMap::DetectorSample(), Isis::Camera::DistortionMap(), Failure, Isis::Camera::FocalPlaneMap(), Isis::CameraDistortionMap::FocalPlaneX(), Isis::CameraDistortionMap::FocalPlaneY(), Isis::Camera::GetCameraType(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlMeasure::GetFocalPlaneComputedX(), Isis::ControlMeasure::GetFocalPlaneComputedY(), Isis::ControlMeasure::GetFocalPlaneMeasuredX(), Isis::ControlMeasure::GetFocalPlaneMeasuredY(), GetId(), Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), Isis::Sensor::GetSurfacePoint(), Isis::CameraGroundMap::GetXY(), Isis::Camera::GroundMap(), Isis::ControlMeasure::IsIgnored(), IsIgnored(), Isis::IException::Programmer, Isis::Camera::Radar, sample, Isis::CameraFocalPlaneMap::SetFocalPlane(), Isis::Camera::SetImage(), Isis::ControlMeasure::SetResidual(), Isis::CameraDistortionMap::SetUndistortedFocalPlane(), and Success.
| ControlPoint::Status Isis::ControlPoint::ComputeResiduals_Millimeters | ( | ) |
This method computes the residuals for a point.
References cam, Isis::ControlMeasure::Camera(), Failure, GetAdjustedSurfacePoint(), Isis::Camera::GetCameraType(), Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), Isis::CameraGroundMap::GetXY(), Isis::Camera::GroundMap(), Isis::ControlMeasure::IsIgnored(), IsIgnored(), Isis::ControlMeasure::SetFocalPlaneComputed(), Isis::Camera::SetImage(), and Success.
Referenced by ComputeResiduals().
| int Isis::ControlPoint::Delete | ( | int | index | ) |
Remove a measurement from the control point, deleting reference measure is allowed.
| index | The index of the control measure to delete |
References _FILEINFO_, Delete(), and Isis::IException::Programmer.
| int Isis::ControlPoint::Delete | ( | QString | serialNumber | ) |
Remove a measurement from the control point, deleting reference measure is allowed.
| serialNumber | The serial number of the measure to delete |
References Isis::ControlMeasure::IsEditLocked(), Isis::ControlMeasure::IsIgnored(), IsIgnored(), Isis::ControlMeasure::MeasureLocked, and Isis::ControlMeasure::Success.
| int Isis::ControlPoint::Delete | ( | ControlMeasure * | measure | ) |
Remove a measurement from the control point, deleting reference measure is allowed.
| measure | The measure to delete |
References ASSERT, and Isis::ControlMeasure::GetCubeSerialNumber().
Referenced by Delete(), Isis::ControlNet::DeleteMeasuresWithId(), Isis::MatchTool::deletePoint(), and operator=().
| SurfacePoint Isis::ControlPoint::GetAdjustedSurfacePoint | ( | ) | const |
| ControlPoint::RadiusSource::Source Isis::ControlPoint::GetAprioriRadiusSource | ( | ) | const |
Referenced by ToFileEntry().
| QString Isis::ControlPoint::GetAprioriRadiusSourceFile | ( | ) | const |
Referenced by ToFileEntry().
| SurfacePoint Isis::ControlPoint::GetAprioriSurfacePoint | ( | ) | const |
Referenced by ToFileEntry().
| ControlPoint::SurfacePointSource::Source Isis::ControlPoint::GetAprioriSurfacePointSource | ( | ) | const |
Referenced by Isis::InterestOperator::FindCnetRef(), and ToFileEntry().
| QString Isis::ControlPoint::GetAprioriSurfacePointSourceFile | ( | ) | const |
Referenced by ToFileEntry().
| SurfacePoint Isis::ControlPoint::GetBestSurfacePoint | ( | ) | const |
Returns the adjusted surface point if it exists, otherwise returns the a priori surface point.
References Isis::SurfacePoint::Valid().
| QString Isis::ControlPoint::GetChooserName | ( | ) | const |
References Isis::Application::Name().
Referenced by ToFileEntry().
| QList< QString > Isis::ControlPoint::getCubeSerialNumbers | ( | ) | const |
Referenced by Isis::ControlNet::SetImages().
| QString Isis::ControlPoint::GetDateTime | ( | ) | const |
References Isis::Application::DateTime().
Referenced by ToFileEntry().
| QString Isis::ControlPoint::GetId | ( | ) | const |
Return the Id of the control point.
Referenced by Isis::ControlNet::AddPoint(), ComputeApriori(), ComputeResiduals(), Isis::ControlPointGraphicsItem::contextMenuEvent(), Isis::StereoTool::createPoint(), Isis::StereoTool::deletePoint(), Isis::MatchTool::deletePoint(), Isis::ControlNet::DeletePoint(), Isis::InterestOperator::FindCnetRef(), Isis::ControlNetStatistics::GeneratePointStats(), Isis::ControlCubeGraphNode::getMeasure(), Isis::ControlMeasure::GetPointId(), GetReferenceSN(), GetRefMeasure(), Isis::InterestOperator::InterestByPoint(), Isis::ControlNet::MinimumSpanningTree(), Isis::ControlNet::operator=(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointIDFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), Isis::ControlNetFilter::PointStats(), Isis::StereoTool::rubberBandComplete(), Isis::ControlNet::SetImages(), SetType(), ToFileEntry(), and Isis::MatchTool::updatePointInfo().
| double Isis::ControlPoint::GetLineResidualRms | ( | ) | const |
Get rms of line residuals.
References Isis::Statistics::AddData(), Isis::ControlMeasure::GetLineResidual(), GetMeasure(), Isis::ControlMeasure::IsIgnored(), Isis::ControlMeasure::IsRejected(), Isis::Statistics::Rms(), and stats.
| ControlMeasure * Isis::ControlPoint::GetMeasure | ( | int | index | ) |
References _FILEINFO_, GetMeasure(), and Isis::IException::Programmer.
| const ControlMeasure * Isis::ControlPoint::GetMeasure | ( | int | index | ) | const |
References _FILEINFO_, GetMeasure(), and Isis::IException::Programmer.
| ControlMeasure * Isis::ControlPoint::GetMeasure | ( | QString | serialNumber | ) |
Get a control measure based on its cube's serial number.
| serialNumber | serial number of measure to get |
| const ControlMeasure * Isis::ControlPoint::GetMeasure | ( | QString | serialNumber | ) | const |
Get a control measure based on its cube's serial number.
| serialNumber | serial number of measure to get |
Referenced by ClearJigsawRejected(), ComputeApriori(), ControlPoint(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::InterestOperator::FindCnetRef(), GetLineResidualRms(), GetMeasure(), GetResidualRms(), GetSampleResidualRms(), operator[](), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), and Isis::ControlNet::sortedMeasureList().
| QList< ControlMeasure * > Isis::ControlPoint::getMeasures | ( | bool | excludeIgnored = false |
) | const |
| excludeIgnored | Ignored measures are excluded if this is true. It is false by default. |
References Isis::ControlMeasure::IsIgnored().
Referenced by Isis::ControlNet::AddPoint(), Isis::ControlNet::DeletePoint(), Isis::ControlNet::operator=(), and Isis::ControlPointGraphicsItem::paint().
| int Isis::ControlPoint::GetNumberOfRejectedMeasures | ( | ) | const |
Get the number of rejected measures on the control point.
| int Isis::ControlPoint::GetNumLockedMeasures | ( | ) | const |
Returns the number of locked control measures.
References size.
Referenced by Isis::InterestOperator::FindCnetRef(), Isis::ControlNetStatistics::GeneratePointStats(), Isis::ControlNet::GetNumEditLockMeasures(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), and Isis::ControlNetFilter::PointStats().
| int Isis::ControlPoint::GetNumMeasures | ( | ) | const |
Referenced by Isis::ControlNetFilter::CubeDistanceFilter(), Isis::MatchTool::deletePoint(), Isis::InterestOperator::FindCnetRef(), Isis::InterestOperator::FindOverlap(), Isis::InterestOperator::FindOverlapByImageFootPrint(), Isis::ControlNetStatistics::GeneratePointStats(), Isis::ControlNet::GetNumIgnoredMeasures(), Isis::ControlNet::GetNumMeasures(), Isis::InterestOperator::InterestByPoint(), Isis::MatchTool::modifyPoint(), operator==(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), Isis::ControlNetFilter::PointStats(), Isis::InterestOperator::ProcessLocked_Point_Reference(), and Isis::ControlNet::sortedMeasureList().
| int Isis::ControlPoint::GetNumValidMeasures | ( | ) | const |
References size.
Referenced by Isis::ControlNetStatistics::GeneratePointStats(), Isis::ControlNet::GetNumIgnoredMeasures(), Isis::ControlNet::GetNumValidMeasures(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), and Isis::ControlNetFilter::PointStats().
| QString Isis::ControlPoint::GetPointTypeString | ( | ) | const |
Obtain a string representation of the PointType.
References GetType(), and PointTypeToString().
| QString Isis::ControlPoint::GetRadiusSourceString | ( | ) | const |
Obtain a string representation of the RadiusSource.
References RadiusSourceToString().
| QString Isis::ControlPoint::GetReferenceSN | ( | ) | const |
References _FILEINFO_, Isis::ControlMeasure::GetCubeSerialNumber(), GetId(), and Isis::IException::Programmer.
| ControlMeasure * Isis::ControlPoint::GetRefMeasure | ( | ) |
Get the measure that is the reference directly.
References _FILEINFO_, GetId(), and Isis::IException::Programmer.
| const ControlMeasure * Isis::ControlPoint::GetRefMeasure | ( | ) | const |
Get the reference control measure.
References _FILEINFO_, GetId(), and Isis::IException::Programmer.
Referenced by Isis::MatchTool::deletePoint(), Isis::InterestOperator::FindCnetRef(), Isis::ControlMeasure::IsEditLocked(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), and Isis::ControlNetFilter::PointResMagnitudeFilter().
| double Isis::ControlPoint::GetResidualRms | ( | ) | const |
Get rms of residuals.
References Isis::Statistics::AddData(), Isis::ControlMeasure::GetLineResidual(), GetMeasure(), Isis::ControlMeasure::GetSampleResidual(), Isis::ControlMeasure::IsIgnored(), Isis::ControlMeasure::IsRejected(), Isis::Statistics::Rms(), and stats.
| double Isis::ControlPoint::GetSampleResidualRms | ( | ) | const |
Get rms of sample residuals.
References Isis::Statistics::AddData(), GetMeasure(), Isis::ControlMeasure::GetSampleResidual(), Isis::ControlMeasure::IsIgnored(), Isis::ControlMeasure::IsRejected(), Isis::Statistics::Rms(), and stats.
| Statistics Isis::ControlPoint::GetStatistic | ( | long | dataType | ) | const |
| Statistics Isis::ControlPoint::GetStatistic | ( | double(ControlMeasure::*)() const | statFunc | ) | const |
This function will call a given method on every control measure that this point has.
| statFunc | The function to use for data collection |
References Isis::Statistics::AddData(), Isis::ControlMeasure::IsIgnored(), and stats.
Referenced by Isis::ControlNet::AverageResidual(), and Isis::ControlNet::GetMaximumResidual().
| QString Isis::ControlPoint::GetSurfacePointSourceString | ( | ) | const |
Obtain a string representation of the SurfacePointSource.
References SurfacePointSourceToString().
| ControlPoint::PointType Isis::ControlPoint::GetType | ( | ) | const |
Referenced by ComputeApriori(), Isis::ControlPointGraphicsItem::ControlPointGraphicsItem(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::InterestOperator::FindCnetRef(), Isis::ControlNetStatistics::GenerateImageStats(), Isis::ControlNetStatistics::GeneratePointStats(), GetPointTypeString(), Isis::ChipViewport::paintEvent(), Isis::StereoTool::paintViewport(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointPropertiesFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), Isis::ControlNetFilter::PointStats(), and ToFileEntry().
| bool Isis::ControlPoint::HasAprioriCoordinates | ( | ) |
| bool Isis::ControlPoint::HasSerialNumber | ( | QString | serialNumber | ) | const |
Return true if given serial number exists in point.
| serialNumber | The serial number |
Referenced by Isis::StereoTool::paintViewport().
| int Isis::ControlPoint::IndexOf | ( | QString | sn, | |
| bool | throws = true | |||
| ) | const |
| sn | The serial number of the control measure to find the index of | |
| throws | Throws an exception on failure instead of returning -1. Be aware that by default this is true! |
References _FILEINFO_, and Isis::IException::Programmer.
| int Isis::ControlPoint::IndexOf | ( | ControlMeasure * | cm, | |
| bool | throws = true | |||
| ) | const |
| cm | The control measure to find the index of | |
| throws | Throws an exception on failure instead of returning -1. Be aware that by default this is true! |
References ASSERT, and Isis::ControlMeasure::GetCubeSerialNumber().
| int Isis::ControlPoint::IndexOfRefMeasure | ( | ) | const |
| throws | Throws an exception on failure instead of returning -1. Be aware that by default this is true! |
References _FILEINFO_, ASSERT, Isis::ControlMeasure::GetCubeSerialNumber(), and Isis::IException::Programmer.
Referenced by Isis::InterestOperator::FindCnetRef(), and ToFileEntry().
| bool Isis::ControlPoint::IsConstrained | ( | ) |
| bool Isis::ControlPoint::IsEditLocked | ( | ) | const |
Referenced by Isis::ControlPointGraphicsItem::ControlPointGraphicsItem(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNet::DeletePoint(), Isis::InterestOperator::FindCnetRef(), Isis::ControlNetStatistics::GenerateImageStats(), Isis::ControlNetStatistics::GeneratePointStats(), Isis::ControlNet::GetNumEditLockPoints(), Isis::ControlMeasure::IsEditLocked(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), Isis::ControlNetFilter::PointStats(), Isis::InterestOperator::ProcessLocked_Point_Reference(), ResetApriori(), ToFileEntry(), and Isis::MatchTool::updatePointInfo().
| bool Isis::ControlPoint::IsFixed | ( | ) | const |
References Fixed.
| bool Isis::ControlPoint::IsIgnored | ( | ) | const |
Referenced by Isis::ControlNet::AverageResidual(), Isis::ControlNet::ComputeApriori(), ComputeResiduals(), ComputeResiduals_Millimeters(), Isis::ControlPointGraphicsItem::ControlPointGraphicsItem(), Isis::ControlNetFilter::CubeDistanceFilter(), Delete(), Isis::ControlNet::DeletePoint(), Isis::InterestOperator::FindCnetRef(), Isis::ControlNetStatistics::GenerateImageStats(), Isis::ControlNetStatistics::GeneratePointStats(), Isis::ControlNet::GetNumValidMeasures(), Isis::ControlNet::GetNumValidPoints(), Isis::BundleAdjust::GetSparseParameterCorrections(), Isis::ControlNet::operator=(), Isis::ChipViewport::paintEvent(), Isis::StereoTool::paintViewport(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointPropertiesFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), Isis::ControlNetFilter::PointStats(), Isis::ControlMeasure::SetIgnored(), Isis::ControlNet::sortedMeasureList(), ToFileEntry(), and Isis::MatchTool::updatePointInfo().
| bool Isis::ControlPoint::IsInvalid | ( | ) | const |
Referenced by Isis::ControlNet::DeletePoint().
| bool Isis::ControlPoint::IsLatitudeConstrained | ( | ) |
References LatitudeConstrained.
Referenced by ComputeApriori().
| bool Isis::ControlPoint::IsLongitudeConstrained | ( | ) |
References LongitudeConstrained.
| bool Isis::ControlPoint::IsRadiusConstrained | ( | ) |
References RadiusConstrained.
Referenced by ComputeApriori().
| bool Isis::ControlPoint::IsReferenceExplicit | ( | ) | const |
Referenced by Isis::MatchTool::deletePoint().
| bool Isis::ControlPoint::IsRejected | ( | ) | const |
Referenced by ToFileEntry().
| bool Isis::ControlPoint::IsValid | ( | ) | const |
| void Isis::ControlPoint::Load | ( | PvlObject & | p | ) |
Loads the PvlObject into a ControlPoint.
| p | PvlObject containing ControlPoint information | |
| forceBuild | Allows invalid Control Measures to be added to this Control Point |
| Isis::iException::User | - Invalid Point Type | |
| Isis::iException::User | - Unable to add ControlMeasure to Control Point |
| int Isis::ControlPoint::NumberOfConstrainedCoordinates | ( | ) |
Referenced by ComputeApriori().
| bool Isis::ControlPoint::operator!= | ( | const ControlPoint & | other | ) | const |
Compare two Control Points for inequality.
| other | The other point to compare this one to |
| const ControlPoint & Isis::ControlPoint::operator= | ( | const ControlPoint & | other | ) |
| bool Isis::ControlPoint::operator== | ( | const ControlPoint & | other | ) | const |
Compare two Control Points for equality.
| other | The other point to compare to |
References GetNumMeasures().
| ControlMeasure * Isis::ControlPoint::operator[] | ( | int | index | ) |
Same as GetMeasure (provided for convenience).
| index | If there are n measures, the measure returned will be the ith measure added to the point |
References GetMeasure().
| const ControlMeasure * Isis::ControlPoint::operator[] | ( | int | index | ) | const |
Same as GetMeasure (provided for convenience).
| index | If there are n measures, the measure returned will be the ith measure added to the point |
References GetMeasure().
| ControlMeasure * Isis::ControlPoint::operator[] | ( | QString | serialNumber | ) |
Same as GetMeasure (provided for convenience).
| serialNumber | Cube serial number of desired control measure |
References GetMeasure().
| const ControlMeasure * Isis::ControlPoint::operator[] | ( | QString | serialNumber | ) | const |
Same as GetMeasure (provided for convenience).
| serialNumber | Cube serial number of desired control measure |
References GetMeasure().
| ControlNet* Isis::ControlPoint::Parent | ( | ) | [inline] |
| QString Isis::ControlPoint::PointTypeToString | ( | PointType | pointType | ) | [static] |
Obtain a string representation of a given PointType.
| type | PointType to convert to a string |
References Constrained, Fixed, Free, and str.
Referenced by GetPointTypeString().
| QString Isis::ControlPoint::RadiusSourceToString | ( | RadiusSource::Source | source | ) | [static] |
Obtain a string representation of a given RadiusSource.
| source | RadiusSource to convert to string |
References Isis::ControlPoint::RadiusSource::AverageOfMeasures, Isis::ControlPoint::RadiusSource::BundleSolution, Isis::ControlPoint::RadiusSource::DEM, Isis::ControlPoint::RadiusSource::Ellipsoid, Isis::ControlPoint::RadiusSource::None, str, and Isis::ControlPoint::RadiusSource::User.
Referenced by GetRadiusSourceString().
| ControlPoint::Status Isis::ControlPoint::ResetApriori | ( | ) |
Reset all the Apriori info to defaults.
References IsEditLocked(), Isis::ControlPoint::RadiusSource::None, Isis::ControlPoint::SurfacePointSource::None, PointLocked, and Success.
| ControlPoint::Status Isis::ControlPoint::SetAdjustedSurfacePoint | ( | SurfacePoint | newSurfacePoint | ) |
Set or update the surface point relating to this control point.
This is the point on the surface of the planet that the measures are tied to. This updates the last modified attributes of this point. *** Warning: Only BundleAdjust and its applications should be using this method.
| newSurfacePoint | The point on the target's surface the measures are tied to |
References Success.
| ControlPoint::Status Isis::ControlPoint::SetAprioriRadiusSource | ( | RadiusSource::Source | source | ) |
This updates the source of the radius of the apriori surface point.
| source | Where the radius came from |
References PointLocked, and Success.
Referenced by ComputeApriori().
| ControlPoint::Status Isis::ControlPoint::SetAprioriRadiusSourceFile | ( | QString | sourceFile | ) |
This updates the filename of the DEM that the apriori radius came from.
It doesn't really make sense to call this unless the RadiusSource is DEM.
| source | Where the radius came from |
References PointLocked, and Success.
| ControlPoint::Status Isis::ControlPoint::SetAprioriSurfacePoint | ( | SurfacePoint | aprioriSP | ) |
This updates the apriori surface point.
| aprioriSP | The apriori surface point to remember |
References Isis::SurfacePoint::GetLatSigma(), Isis::SurfacePoint::GetLocalRadiusSigma(), Isis::SurfacePoint::GetLonSigma(), Isis::ControlNet::GetTargetRadii(), Isis::Distance::isValid(), Isis::Angle::isValid(), LatitudeConstrained, LongitudeConstrained, PointLocked, RadiusConstrained, Isis::SurfacePoint::SetRadii(), and Success.
Referenced by Isis::StereoTool::createPoint().
| ControlPoint::Status Isis::ControlPoint::SetAprioriSurfacePointSource | ( | SurfacePointSource::Source | source | ) |
This updates the source of the surface point.
| source | Where the surface point came from |
References PointLocked, and Success.
Referenced by ComputeApriori().
| ControlPoint::Status Isis::ControlPoint::SetAprioriSurfacePointSourceFile | ( | QString | sourceFile | ) |
This updates the filename of where the apriori surface point came from.
| sourceFile | Where the surface point came from |
References PointLocked, and Success.
| ControlPoint::Status Isis::ControlPoint::SetChooserName | ( | QString | name | ) |
Set the point's chooser name.
This will be lost if any attributes relating to this point is later changed and the current user will be set. This is one of the 'last modified attributes' referred to in other comments.
| name | The username of the person who last modified this control point |
References PointLocked, and Success.
Referenced by Isis::MatchTool::createPoint().
| ControlPoint::Status Isis::ControlPoint::SetDateTime | ( | QString | newDateTime | ) |
Set the point's last modified time.
This will be lost if any attributes relating to this point are later changed and the current time will be set. This is one of the 'last modified attributes' referred to in other comments.
| newDateTime | The date and time this control point was last modified |
References PointLocked, and Success.
| ControlPoint::Status Isis::ControlPoint::SetEditLock | ( | bool | lock | ) |
Set the EditLock state.
If edit lock is on, then most attributes relating to this point are not modifiable. Edit lock is like "Don't modify my attributes, but you can still modify my measures' attributes". The reference measure is implicitely edit locked if the point is edit locked.
| lock | True to enable edit lock, false to disable it and allow the point to be modified. |
References Success.
Referenced by Isis::MatchTool::updatePointInfo().
| ControlPoint::Status Isis::ControlPoint::SetId | ( | QString | newId | ) |
Sets the Id of the control point.
| id | Control Point Id |
References PointLocked, and Success.
| ControlPoint::Status Isis::ControlPoint::SetIgnored | ( | bool | newIgnoreStatus | ) |
Set whether to ignore or use control point.
| newIgnoreStatus | True to ignore this Control Point, False to un-ignore |
References Isis::ControlMeasure::IsIgnored(), PointLocked, and Success.
Referenced by Isis::InterestOperator::FindCnetRef(), Isis::InterestOperator::ProcessLocked_Point_Reference(), and Isis::MatchTool::updatePointInfo().
| void Isis::ControlPoint::SetNumberOfRejectedMeasures | ( | int | numRejected | ) |
Set (update) the number of rejected measures for the control point.
| numRejected | The number of rejected measures |
| ControlPoint::Status Isis::ControlPoint::SetRefMeasure | ( | QString | sn | ) |
Set the points reference measure.
| sn | The serial number of the new reference measure |
References _FILEINFO_, PointLocked, Isis::IException::Programmer, and Success.
| ControlPoint::Status Isis::ControlPoint::SetRefMeasure | ( | int | index | ) |
Set the point's reference measure.
| index | The index of the new reference measure |
References _FILEINFO_, PointLocked, Isis::IException::Programmer, and Success.
| ControlPoint::Status Isis::ControlPoint::SetRefMeasure | ( | ControlMeasure * | cm | ) |
Set the point's reference measure.
| cm | The new reference measure |
References ASSERT, PointLocked, and Success.
Referenced by ControlPoint(), Isis::InterestOperator::FindCnetRef(), and operator=().
| ControlPoint::Status Isis::ControlPoint::SetRejected | ( | bool | reject | ) |
Set the jigsawRejected state.
If IsRejected is true, then this point should be ignored until the next iteration in the bundle adjustement. BundleAdjust decides when to reject or accept a point. The initial IsRejected state of a measure is false.
| reject | True to reject a measure, false to include it in the adjustment |
References Success.
Referenced by ClearJigsawRejected().
| ControlPoint::Status Isis::ControlPoint::SetType | ( | PointType | newType | ) |
Updates the control point's type.
This updates the last modified attributes of this point.
| newType | The new type this control point should be |
References _FILEINFO_, Constrained, Fixed, Free, GetId(), PointLocked, Isis::IException::Programmer, and Success.
Referenced by Isis::StereoTool::createPoint(), and Isis::MatchTool::createPoint().
| ControlPoint::PointType Isis::ControlPoint::StringToPointType | ( | QString | pointTypeString | ) | [static] |
Obtain a PointType given a string representation of it.
| pointTypeString | for the requested PointType |
References _FILEINFO_, Constrained, Fixed, Free, and Isis::IException::Programmer.
| ControlPoint::RadiusSource::Source Isis::ControlPoint::StringToRadiusSource | ( | QString | str | ) | [static] |
Obtain a RadiusSource::Source from a string.
| str | string to get a RadiusSource::Source from |
References Isis::ControlPoint::RadiusSource::AverageOfMeasures, Isis::ControlPoint::RadiusSource::BundleSolution, Isis::ControlPoint::RadiusSource::DEM, Isis::ControlPoint::RadiusSource::Ellipsoid, Isis::ControlPoint::RadiusSource::None, and Isis::ControlPoint::RadiusSource::User.
| ControlPoint::SurfacePointSource::Source Isis::ControlPoint::StringToSurfacePointSource | ( | QString | str | ) | [static] |
Obtain a SurfacePoint::Source from a string.
| str | string to get a SurfacePoint::Source from |
References Isis::ControlPoint::SurfacePointSource::AverageOfMeasures, Isis::ControlPoint::SurfacePointSource::Basemap, Isis::ControlPoint::SurfacePointSource::BundleSolution, Isis::ControlPoint::SurfacePointSource::None, Isis::ControlPoint::SurfacePointSource::Reference, and Isis::ControlPoint::SurfacePointSource::User.
| QString Isis::ControlPoint::SurfacePointSourceToString | ( | SurfacePointSource::Source | source | ) | [static] |
Obtain a string representation of a given SurfacePointSource.
| souce | SurfacePointSource to get a string representation of |
References Isis::ControlPoint::SurfacePointSource::AverageOfMeasures, Isis::ControlPoint::SurfacePointSource::Basemap, Isis::ControlPoint::SurfacePointSource::BundleSolution, Isis::ControlPoint::SurfacePointSource::None, Isis::ControlPoint::SurfacePointSource::Reference, str, and Isis::ControlPoint::SurfacePointSource::User.
Referenced by GetSurfacePointSourceString().
| ControlPointFileEntryV0002 Isis::ControlPoint::ToFileEntry | ( | ) | const |
References Isis::ControlPoint::RadiusSource::AverageOfMeasures, Isis::ControlPoint::SurfacePointSource::AverageOfMeasures, Isis::ControlPoint::SurfacePointSource::Basemap, Isis::ControlPoint::RadiusSource::BundleSolution, Isis::ControlPoint::SurfacePointSource::BundleSolution, Constrained, Isis::ControlPoint::RadiusSource::DEM, Isis::ControlPoint::RadiusSource::Ellipsoid, Fixed, Free, GetAdjustedSurfacePoint(), GetAprioriRadiusSource(), GetAprioriRadiusSourceFile(), GetAprioriSurfacePoint(), GetAprioriSurfacePointSource(), GetAprioriSurfacePointSourceFile(), GetChooserName(), GetDateTime(), GetId(), Isis::SurfacePoint::GetRectangularMatrix(), GetType(), Isis::SurfacePoint::GetX(), Isis::SurfacePoint::GetY(), Isis::SurfacePoint::GetZ(), IndexOfRefMeasure(), IsEditLocked(), IsIgnored(), IsRejected(), LatitudeConstrained, LongitudeConstrained, Isis::Displacement::meters(), Isis::ControlPoint::RadiusSource::None, Isis::ControlPoint::SurfacePointSource::None, RadiusConstrained, Isis::ControlPoint::SurfacePointSource::Reference, Isis::ControlPoint::RadiusSource::User, and Isis::ControlPoint::SurfacePointSource::User.
Referenced by Isis::ControlNet::Write().
| void Isis::ControlPoint::ZeroNumberOfRejectedMeasures | ( | ) |
Initialize the number of rejected measures to 0.
friend class ControlNet [friend] |
const int Isis::ControlPoint::PointTypeCount = 3 [static] |