File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
15 #include <QSharedPointer>
16 #include "SurfacePoint.h"
25 #include <boost/graph/graph_traits.hpp>
26 #include <boost/graph/adjacency_list.hpp>
27 #include <boost/graph/connected_components.hpp>
29 #include "ControlMeasure.h"
30 #include "ControlPoint.h"
32 template<
typename A,
typename B >
class QHash;
33 template<
typename T >
class QList;
34 template<
typename A,
typename B >
struct QPair;
35 template<
typename T >
class QSet;
47 class SerialNumberList;
290 void Write(
const QString &filename,
bool pvl =
false);
306 double min,
double max);
321 double sample,
double line);
324 QString GetNetworkId()
const;
346 void SetImages(
const QString &imageListFile);
368 void networkStructureModified();
393 bool addEdge(QString sourceSerial, QString targetSerial);
394 bool removeEdge(QString sourceSerial, QString targetSerial);
403 public std::binary_function<ControlMeasure* const &,
404 ControlMeasure * const &, bool > {
407 m_accessor = accessorMethod;
410 this->m_accessor = other.m_accessor;
441 typedef boost::adjacency_list<boost::setS,
447 typedef Network::vertex_descriptor ImageVertex;
458 typedef boost::graph_traits<Network>::vertex_iterator VertexIterator;
ControlNet & operator=(const ControlNet &other)
Assign other to this.
QMap< QString, int > p_cameraRejectedMeasuresMap
A map from serialnumber to #rejected measures.
double GetMaximumResidual()
Determine the maximum error of all points in the network.
ControlNet(SurfacePoint::CoordinateType=SurfacePoint::Latitudinal)
Creates an empty ControlNet object.
QList< QString > GetPointIds() const
Return QList of ControlPoint Ids used in hash, in order of addition.
Used to define the edges of the graph.
ControlPoint * FindClosest(QString serialNumber, double sample, double line)
Finds and returns a pointer to the closest ControlPoint to the ControlMeasure with the given serial n...
void SetMutex(QMutex *mutex)
Set mutex to lock for making Naif calls.
This is free and unencumbered software released into the public domain.
std::map< ImageVertex, size_t > VertexIndexMap
Represents the edges of the graph.
QString GetUserName() const
Return the user name.
void measureAdded(ControlMeasure *measure)
Updates the ControlNet graph for the measure's serial number to reflect the addition.
QList< ControlMeasure * > GetValidMeasuresInCube(QString serialNumber)
Get all the valid measures pertaining to a given cube serial number.
SurfacePoint::CoordinateType GetCoordType()
Get the control point coordinate type (see the available types in SurfacePoint.h).
This is free and unencumbered software released into the public domain.
bool removeEdge(QString sourceSerial, QString targetSerial)
In the ControlNet graph, decrements the strength on the edge between the two serial numbers.
ModType
Control Point Modification Types.
void ComputeResiduals()
Compute error for each point in the network.
int GetNumberOfJigsawRejectedMeasuresInImage(const QString &serialNumber)
Return the number of jigsaw rejected measures in image specified by serialNumber.
QString Description() const
Return the description of the network.
QHash< ControlPoint *, ControlMeasure * > measures
The serial number associated with the image The measures on the image, hashed by pointers to their pa...
double AverageResidual()
Compute the average error of all points in the network.
void SetTarget(const QString &target)
Sets the target name and target radii, if available.
void ComputeApriori()
Compute aprior values for each point in the network.
QVector< Isis::Camera * > p_cameraList
Vector of image number to camera.
void Write(const QString &filename, bool pvl=false)
Writes out the control network.
void AddPoint(ControlPoint *point)
Adds a ControlPoint to the ControlNet.
void SetDescription(const QString &newDescription)
Set the description of the network.
int GetNumberOfValidMeasuresInImage(const QString &serialNumber)
Return the number of measures in image specified by serialNumber.
bool ValidateSerialNumber(QString serialNumber) const
Does a check to ensure that the given serial number is contained within the network.
Used to define the verticies of the graph.
void SetNetworkId(const QString &id)
Set the network id.
int GetNumEditLockMeasures()
Return the total number of edit locked measures for all control points in the network.
void ClearJigsawRejected()
Sets jigsaw rejected flag to false for all points and measures.
Container for cube-like labels.
QString p_networkId
The Network Id.
void pointAdded(ControlPoint *point)
Adds a whole point to the control net graph.
void clear()
Clear the contents of this object.
QList< ControlMeasure * > GetMeasuresInCube(QString serialNumber)
Get all the measures pertaining to a given cube serial number.
QString GetTarget() const
Return the target name.
int GetNumEditLockPoints()
Returns the number of edit locked control points.
QString p_description
Textual Description of network.
void ReadControl(const QString &filename, Progress *progress=0)
Reads in the control points from the given file.
Serial Number list generator.
int GetNumMeasures() const
Returns the total number of measures for all control points in the network.
QList< QString > GetCubeSerials() const
Use this method to get a complete list of all the cube serial numbers in the network.
void SetModifiedDate(const QString &date)
Set the last modified date.
QString CreatedDate() const
Return the Created Date.
SurfacePoint::CoordinateType m_coordType
The coordinate type of the control points.
Isis::Camera * Camera(int index)
Returns the camera list from the given image number.
void SetUserName(const QString &name)
Set the user name of the control network.
This is free and unencumbered software released into the public domain.
int GetNumPoints() const
Return the number of control points in the network.
QString p_modified
Date Last Modified.
ModType
Control Measure Modification Types.
bool m_ownPoints
Specifies ownership of point list. True if owned by this object.
QString p_userName
The user who created the network.
CoordinateType
Defines the coordinate typ, units, and coordinate index for some of the output methods.
boost::adjacency_list< boost::setS, boost::listS, boost::undirectedS, Image, Connection > Network
Defines the graph type as an undirected graph that uses Images for verticies, and Connections for edg...
QList< ControlPoint * > GetPoints()
Return QList of all the ControlPoints in the network.
void UpdatePointReference(ControlPoint *point, QString oldId)
Updates the key reference (poind Id) from the old one to what the point id was changet to.
void swap(ControlNet &other)
Swaps the member data with the given control net.
void measureUnIgnored(ControlMeasure *measure)
Updates the connections for the ControlNet graph associated with the measure's serial number to refle...
QMap< QString, int > p_cameraValidMeasuresMap
A map from serialnumber to #measures.
void SetCreatedDate(const QString &date)
Set the creation time.
void measureDeleted(ControlMeasure *measure)
Updates the node for this measure's serial number to reflect the deletion.
QList< ControlPoint * > take()
Transfer ownership of all points to caller.
void DecrementNumberOfRejectedMeasuresInImage(const QString &serialNumber)
Decrement number of jigsaw rejected measures in image specified by serialNumber.
void SetImages(const QString &imageListFile)
Creates the ControlNet's image cameras based on an input file.
void measureIgnored(ControlMeasure *measure)
Updates the edges in the ControlNet graph to reflect the ignored measure.
int GetNumValidMeasures()
Return the number of valid (non-ignored) measures for all control points in the network.
Network m_controlGraph
The serial number -> vertex hash used by the graph.
bool ContainsPoint(QString pointId) const
void pointUnIgnored(ControlPoint *point)
Update the ControlNet's internal structure when a ControlPoint is un-ignored.
void emitMeasureModified(ControlMeasure *measure, ControlMeasure::ModType type, QVariant oldValue, QVariant newValue)
This method is a wrapper to emit the measureModified() signal and is called whenever a change is made...
Program progress reporter.
~ControlNet()
Destructor removes allocated memory.
boost::associative_property_map< VertexIndexMap > VertexIndexMapAdaptor
Converts VertexIndexMap into the appropriate form to be used by boost.
int GetNumValidPoints()
Returns the number of non-ignored control points.
QHash< QString, ControlPoint * > * points
hash ControlPoints by ControlPoint Id
QList< QString > getAdjacentImages(QString serialNumber) const
Get all images connected to a given image by common control points.
QString p_created
Creation Date.
boost::graph_traits< Network >::adjacency_iterator AdjacencyIterator
Iterates over adjacent verticies.
void emitPointModified(ControlPoint *point, ControlPoint::ModType type, QVariant oldValue, QVariant newValue)
This method is a wrapper to emit the pointModified() signal and is called whenever a change is made t...
ModType
Control Point Modification Types.
void emitNetworkStructureModified()
This method is a wrapper to emit the networkStructureModified() signal.
This is free and unencumbered software released into the public domain.
void pointIgnored(ControlPoint *point)
Update the ControlNet's internal structure when a ControlPoint is ignored.
ControlMeasureLessThanFunctor & operator=(ControlMeasureLessThanFunctor const &other)
Copies the content of the a ControlMeasureLessThanFunctor.
int DeletePoint(ControlPoint *point)
Delete a ControlPoint from the network by the point's address.
QString p_targetName
Name of the target.
QString GraphToString() const
Used for verifying graph intergrity.
bool operator()(ControlMeasure *const &, ControlMeasure *const &)
The () operator for the Control Measure less than functor.
@ Latitudinal
Planetocentric latitudinal (lat/lon/rad) coordinates.
int GetNumIgnoredMeasures()
Return the total number of ignored measures for all control points in the network.
QSharedPointer< ControlNet > ControlNetQsp
This typedef is for future implementation of target body.
QStringList * pointIds
The ControlNet graph.
Network::edge_descriptor ImageConnection
Reprents the verticies of the graph.
void SetCoordType(SurfacePoint::CoordinateType coordType)
Sets the control point coordinate type.
void IncrementNumberOfRejectedMeasuresInImage(const QString &serialNumber)
Increment number of jigsaw rejected measures in image specified by serialNumber.
bool addEdge(QString sourceSerial, QString targetSerial)
In the ControlNet graph: adds an edge between the verticies associated with the two serial numbers pr...
This is free and unencumbered software released into the public domain.
QList< ControlMeasure * > sortedMeasureList(double(ControlMeasure::*statFunc)() const, double min, double max)
Get a sorted list of all the measures that have values in a given ragen.
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.
QList< QList< QString > > GetSerialConnections() const
This method searches through all the cube serial numbers in the network.
QString GetLastModified() const
Return the last modified date.
QMap< QString, Isis::Camera * > p_cameraMap
A map from serialnumber to camera.