|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef ControlNetVersioner_h
2 #define ControlNetVersioner_h
15 #include <QSharedPointer>
31 class ControlPointV0001;
32 class ControlPointV0002;
33 class ControlPointV0003;
419 QString
netId()
const;
462 struct ControlNetHeaderV0001 {
470 QString lastModified;
478 typedef ControlNetHeaderV0001 ControlNetHeaderV0002;
480 typedef ControlNetHeaderV0001 ControlNetHeaderV0003;
482 typedef ControlNetHeaderV0001 ControlNetHeaderV0004;
484 typedef ControlNetHeaderV0001 ControlNetHeaderV0005;
493 void readPvl(
const Pvl &network,
Progress *progress=NULL);
501 void readProtobufV0001(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
502 void readProtobufV0002(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
503 void readProtobufV0005(
const Pvl &header,
const FileName netFile,
Progress *progress=NULL);
509 ControlMeasure *createMeasure(
const ControlPointFileEntryV0002_Measure&);
511 void createHeader(
const ControlNetHeaderV0001 header);
513 void writeHeader(std::fstream *output);
514 int writeFirstPoint(std::fstream *output);
516 ControlNetHeaderV0005 m_header;
QString GetNetworkId() const
Definition: ControlNet.cpp:1338
@ RegisteredPixel
Registered to whole pixel (e.g.,pointreg)
Definition: ControlMeasure.h:212
QString creationDate() const
Returns the date and time that the network was created.
Definition: ControlNetVersioner.cpp:134
@ RegisteredSubPixel
Registered to sub-pixel (e.g., pointreg)
Definition: ControlMeasure.h:214
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
double GetAprioriSample() const
Definition: ControlMeasure.cpp:531
Displacement GetX() const
Definition: SurfacePoint.cpp:1436
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
@ Meters
The distance is being specified in meters.
Definition: Displacement.h:40
@ Basemap
Definition: ControlPoint.h:445
A single keyword-value pair.
Definition: PvlKeyword.h:82
const ControlMeasure * GetMeasure(QString serialNumber) const
Get a control measure based on its cube's serial number.
Definition: ControlPoint.cpp:416
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
@ BundleSolution
Definition: ControlPoint.h:446
QString GetUserName() const
Return the user name.
Definition: ControlNet.cpp:1513
QString GetChooserName() const
Definition: ControlPoint.cpp:1242
A container for the information stored in a version 2 ControlPoint.
Definition: ControlPointV0002.h:154
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
Distance GetLonSigmaDistance() const
Return the longitude sigma in meters.
Definition: SurfacePoint.cpp:1763
@ Reference
Definition: ControlPoint.h:444
MeasureType
Control network measurement types.
Definition: ControlMeasure.h:206
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
File name manipulation and expansion.
Definition: FileName.h:100
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
@ BundleSolution
Definition: ControlPoint.h:457
bool HasAprioriRadiusSourceFile() const
Checks to see if the radius source file has been set.
Definition: ControlPoint.cpp:1671
QString Description() const
Return the description of the network.
Definition: ControlNet.cpp:1254
SurfacePoint GetAdjustedSurfacePoint() const
Definition: ControlPoint.cpp:1282
Distance GetLatSigmaDistance() const
Return the latitude sigma as a Distance.
Definition: SurfacePoint.cpp:1747
ControlPoint * takeFirstPoint()
Returns the first point stored in the versioner's internal list.
Definition: ControlNetVersioner.cpp:187
NumericLogDataType
Please do not change existing values in this list except the size - it will break backwards compadibi...
Definition: ControlMeasureLogData.h:49
int GetNumMeasures() const
Definition: ControlPoint.cpp:1702
@ AverageOfMeasures
Definition: ControlPoint.h:443
SurfacePointSource::Source GetAprioriSurfacePointSource() const
Definition: ControlPoint.cpp:1682
Container for cube-like labels.
Definition: Pvl.h:119
PointType
These are the valid 'types' of point.
Definition: ControlPoint.h:364
SurfacePoint GetAprioriSurfacePoint() const
Definition: ControlPoint.cpp:1566
PvlKeyword ToKeyword() const
This converts the log data to a PvlKeyword.
Definition: ControlMeasureLogData.cpp:166
Displacement GetZ() const
Definition: SurfacePoint.cpp:1450
void addObject(const PvlObject &object)
Add a PvlObject.
Definition: PvlObject.h:307
Latitude GetLatitude() const
Return the body-fixed latitude for the surface point.
Definition: SurfacePoint.cpp:1665
bool HasAprioriSurfacePointSourceFile() const
Checks to see if the surface point source file has been set.
Definition: ControlPoint.cpp:1692
double GetAprioriLine() const
Definition: ControlMeasure.cpp:526
bool IsEditLocked() const
Definition: ControlPoint.cpp:1272
QString GetId() const
Return the Id of the control point.
Definition: ControlPoint.cpp:1306
double GetSampleSigma() const
Definition: ControlMeasure.cpp:733
QString GetTarget() const
Return the target name.
Definition: ControlNet.cpp:1507
QString GetDateTime() const
Definition: ControlPoint.cpp:1262
@ Candidate
(e.g., autoseed, interest) AKA predicted, unmeasured, unverified
Definition: ControlMeasure.h:208
QString GetDateTime() const
Return the date/time the coordinate was last changed.
Definition: ControlMeasure.cpp:563
boost::numeric::ublas::symmetric_matrix< double, boost::numeric::ublas::upper > GetRectangularMatrix(SurfacePoint::CoordUnits units=SurfacePoint::Meters) const
Definition: SurfacePoint.cpp:1603
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
@ AverageOfMeasures
Definition: ControlPoint.h:454
QString GetAprioriRadiusSourceFile() const
Definition: ControlPoint.cpp:1676
bool IsIgnored() const
Definition: ControlMeasure.cpp:630
QString CreatedDate() const
Return the Created Date.
Definition: ControlNet.cpp:1244
bool IsRejected() const
Definition: ControlMeasure.cpp:635
double GetLineSigma() const
Definition: ControlMeasure.cpp:700
~ControlNetVersioner()
Destroy a ControlNetVersioner.
Definition: ControlNetVersioner.cpp:98
@ Ellipsoid
Definition: ControlPoint.h:455
QString GetCubeSerialNumber() const
Return the serial number of the cube containing the coordinate.
Definition: ControlMeasure.cpp:557
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 IsCoord2Constrained()
Return bool indicating if 2nd coordinate is Constrained or not.
Definition: ControlPoint.cpp:1641
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
double meters() const
Get the displacement in meters.
Definition: Displacement.cpp:73
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QString description() const
Returns the network's description.
Definition: ControlNetVersioner.cpp:154
@ User
Definition: ControlPoint.h:442
QList< ControlPoint * > GetPoints()
Return QList of all the ControlPoints in the network.
Definition: ControlNet.cpp:1524
MeasureType GetType() const
Definition: ControlMeasure.cpp:738
@ DEM
Definition: ControlPoint.h:456
bool Valid() const
Definition: SurfacePoint.cpp:947
@ None
Definition: ControlPoint.h:452
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
@ Manual
Hand Measured (e.g., qnet)
Definition: ControlMeasure.h:210
@ Constrained
A Constrained point is a Control Point whose lat/lon/radius is somewhat established and should not be...
Definition: ControlPoint.h:376
QString userName() const
Returns the name of the last person or program to modify the network.
Definition: ControlNetVersioner.cpp:164
QString netId() const
Returns the ID for the network.
Definition: ControlNetVersioner.cpp:114
@ None
Definition: ControlPoint.h:441
void addComment(QString comment)
Add a comment to the PvlKeyword.
Definition: PvlKeyword.cpp:376
long long int BigInt
Big int.
Definition: Constants.h:49
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
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
int IndexOfRefMeasure() const
Definition: ControlPoint.cpp:1817
double GetDiameter() const
Return the diameter of the crater in pixels (0 implies no crater)
Definition: ControlMeasure.cpp:580
double GetSample() const
Definition: ControlMeasure.cpp:723
double GetSampleResidual() const
Definition: ControlMeasure.cpp:728
a control network
Definition: ControlNet.h:257
A container for the information stored in a version 3 and 4 ControlPoint.
Definition: ControlPointV0003.h:160
Isis exception class.
Definition: IException.h:91
QString GetAprioriSurfacePointSourceFile() const
Definition: ControlPoint.cpp:1697
QString targetName() const
Returns the target for the network.
Definition: ControlNetVersioner.cpp:124
RadiusSource::Source GetAprioriRadiusSource() const
Definition: ControlPoint.cpp:1571
Program progress reporter.
Definition: Progress.h:42
Longitude GetLongitude() const
Return the body-fixed longitude for the surface point.
Definition: SurfacePoint.cpp:1685
void addComment(const QString &comment)
Definition: PvlContainer.h:269
int numPoints() const
Returns the number of points that have been read in or are ready to write out.
Definition: ControlNetVersioner.cpp:174
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
void addGroup(const Isis::PvlGroup &group)
Add a group to the object.
Definition: PvlObject.h:186
QVector< ControlMeasureLogData > GetLogDataEntries() const
Return all of the log data for the measure.
Definition: ControlMeasure.cpp:796
@ User
Definition: ControlPoint.h:453
Distance GetLocalRadius() const
Return the radius of the surface point.
Definition: SurfacePoint.cpp:1732
@ 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.
void write(FileName netFile)
This will write a control net file object to disk.
Definition: ControlNetVersioner.cpp:1659
Pvl toPvl()
Generates a Pvl file from the currently stored control points and header.
Definition: ControlNetVersioner.cpp:202
@ Free
A Free point is a Control Point that identifies common measurements between two or more cubes.
Definition: ControlPoint.h:384
Byte swapper.
Definition: EndianSwapper.h:38
double meters() const
Get the distance in meters.
Definition: Distance.cpp:85
double GetLine() const
Definition: ControlMeasure.cpp:690
double GetLineResidual() const
Definition: ControlMeasure.cpp:695
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
bool IsIgnored() const
Definition: ControlPoint.cpp:1311
PointType GetType() const
Definition: ControlPoint.cpp:1401
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
QString GetChooserName() const
Return the chooser name.
Definition: ControlMeasure.cpp:542
bool IsReferenceExplicit() const
Definition: ControlPoint.cpp:1755
QString lastModificationDate() const
Returns the date and time of the last modification to the network.
Definition: ControlNetVersioner.cpp:144
Statistical and similar ControlMeasure associated information.
Definition: ControlMeasureLogData.h:37
A container for the information stored in a version 1 ControlPoint.
Definition: ControlPointV0001.h:62
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
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
Handle various control network file format versions.
Definition: ControlNetVersioner.h:412
QString GetLastModified() const
Return the last modified date.
Definition: ControlNet.cpp:1518
a control measurement
Definition: ControlMeasure.h:175