Isis Developer Reference
|
a control network More...
#include <ControlNet.h>
Public Types | |
enum | ModType { Swapped , GraphModified } |
Control Point Modification Types. More... | |
Signals | |
void | networkStructureModified () |
void | networkModified (ControlNet::ModType type) |
void | pointModified (ControlPoint *point, ControlPoint::ModType type, QVariant oldValue, QVariant newValue) |
void | measureModified (ControlMeasure *measure, ControlMeasure::ModType type, QVariant oldValue, QVariant newValue) |
void | pointDeleted (ControlPoint *point) |
void | newPoint (ControlPoint *) |
void | newMeasure (ControlMeasure *) |
void | measureRemoved (ControlMeasure *) |
Public Member Functions | |
ControlNet (SurfacePoint::CoordinateType=SurfacePoint::Latitudinal) | |
Creates an empty ControlNet object. | |
ControlNet (const ControlNet &other) | |
ControlNet (const QString &filename, Progress *progress=0, SurfacePoint::CoordinateType=SurfacePoint::Latitudinal) | |
Creates a ControlNet object from the given file. | |
~ControlNet () | |
Destructor removes allocated memory. | |
void | clear () |
Clear the contents of this object. | |
QList< ControlPoint * > | take () |
Transfer ownership of all points to caller. | |
void | ReadControl (const QString &filename, Progress *progress=0) |
Reads in the control points from the given file. | |
void | Write (const QString &filename, bool pvl=false) |
Writes out the control network. | |
void | AddPoint (ControlPoint *point) |
Adds a ControlPoint to the ControlNet. | |
int | DeletePoint (ControlPoint *point) |
Delete a ControlPoint from the network by the point's address. | |
int | DeletePoint (QString pointId) |
Delete a ControlPoint from the network using the point's Id. | |
int | DeletePoint (int index) |
Delete a ControlPoint from the network using the point's index. | |
bool | ContainsPoint (QString pointId) const |
QList< QString > | GetCubeSerials () const |
Use this method to get a complete list of all the cube serial numbers in the network. | |
QString | GraphToString () const |
Used for verifying graph intergrity. | |
QList< QList< QString > > | GetSerialConnections () const |
This method searches through all the cube serial numbers in the network. | |
int | getEdgeCount () const |
QList< QString > | getAdjacentImages (QString serialNumber) const |
Get all images connected to a given image by common control points. | |
QList< ControlMeasure * > | GetMeasuresInCube (QString serialNumber) |
Get all the measures pertaining to a given cube serial number. | |
QList< ControlMeasure * > | GetValidMeasuresInCube (QString serialNumber) |
Get all the valid measures pertaining to a given cube serial number. | |
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. | |
void | ComputeResiduals () |
Compute error for each point in the network. | |
void | ComputeApriori () |
Compute aprior values for each point in the network. | |
const ControlPoint * | GetPoint (QString pointId) const |
ControlPoint * | GetPoint (QString pointId) |
const ControlPoint * | GetPoint (int index) const |
ControlPoint * | GetPoint (int index) |
double | AverageResidual () |
Compute the average error of all points in the network. | |
Isis::Camera * | Camera (int index) |
Returns the camera list from the given image number. | |
Isis::Camera * | Camera (QString serialNumber) |
Returns the camera list from the input serial number. | |
QString | CreatedDate () const |
Return the Created Date. | |
QString | Description () const |
Return the description of the network. | |
ControlPoint * | FindClosest (QString serialNumber, double sample, double line) |
Finds and returns a pointer to the closest ControlPoint to the ControlMeasure with the given serial number and line sample location. | |
double | GetMaximumResidual () |
Determine the maximum error of all points in the network. | |
QString | GetNetworkId () const |
int | GetNumEditLockMeasures () |
Return the total number of edit locked measures for all control points in the network. | |
int | GetNumEditLockPoints () |
Returns the number of edit locked control points. | |
int | GetNumIgnoredMeasures () |
Return the total number of ignored measures for all control points in the network. | |
int | GetNumberOfValidMeasuresInImage (const QString &serialNumber) |
Return the number of measures in image specified by serialNumber. | |
int | GetNumberOfJigsawRejectedMeasuresInImage (const QString &serialNumber) |
Return the number of jigsaw rejected measures in image specified by serialNumber. | |
void | ClearJigsawRejected () |
Sets jigsaw rejected flag to false for all points and measures. | |
void | IncrementNumberOfRejectedMeasuresInImage (const QString &serialNumber) |
Increment number of jigsaw rejected measures in image specified by serialNumber. | |
void | DecrementNumberOfRejectedMeasuresInImage (const QString &serialNumber) |
Decrement number of jigsaw rejected measures in image specified by serialNumber. | |
int | GetNumMeasures () const |
Returns the total number of measures for all control points in the network. | |
int | GetNumPoints () const |
Return the number of control points in the network. | |
int | GetNumValidMeasures () |
Return the number of valid (non-ignored) measures for all control points in the network. | |
int | GetNumValidPoints () |
Returns the number of non-ignored control points. | |
QString | GetTarget () const |
Return the target name. | |
QString | GetUserName () const |
Return the user name. | |
QString | GetLastModified () const |
Return the last modified date. | |
QList< ControlPoint * > | GetPoints () |
Return QList of all the ControlPoints in the network. | |
QList< QString > | GetPointIds () const |
Return QList of ControlPoint Ids used in hash, in order of addition. | |
SurfacePoint::CoordinateType | GetCoordType () |
Get the control point coordinate type (see the available types in SurfacePoint.h). | |
void | SetCreatedDate (const QString &date) |
Set the creation time. | |
void | SetDescription (const QString &newDescription) |
Set the description of the network. | |
void | SetImages (const QString &imageListFile) |
Creates the ControlNet's image cameras based on an input file. | |
void | SetImages (SerialNumberList &list, Progress *progress=0) |
Creates the ControlNet's image camera's based on the list of Serial Numbers. | |
void | SetModifiedDate (const QString &date) |
Set the last modified date. | |
void | SetMutex (QMutex *mutex) |
Set mutex to lock for making Naif calls. | |
void | SetNetworkId (const QString &id) |
Set the network id. | |
void | SetTarget (const QString &target) |
Sets the target name and target radii, if available. | |
void | SetTarget (Pvl label) |
Sets the target name and radii using values found in the mapping group of the given label, if available. | |
void | SetTarget (const ControlNet &other) |
void | SetUserName (const QString &name) |
Set the user name of the control network. | |
void | SetCoordType (SurfacePoint::CoordinateType coordType) |
Sets the control point coordinate type. | |
void | swap (ControlNet &other) |
Swaps the member data with the given control net. | |
ControlNet & | operator= (const ControlNet &other) |
Assign other to this. | |
const ControlPoint * | operator[] (QString id) const |
ControlPoint * | operator[] (QString id) |
const ControlPoint * | operator[] (int id) const |
ControlPoint * | operator[] (int id) |
Friends | |
class | ControlMeasure |
class | ControlPoint |
a control network
This class is used to store a network of ControlPoints
Control Point Modification Types.
This enum is designed to represent the different types of modifications that can be made to a ControlNet.
Swapped means the network was swapped with another network (ControlNet::Swap(ControlNet &other)). GraphModified means that a vertice or edge was added/removed from the graph..
Enumerator | |
---|---|
Swapped | |
GraphModified |
Isis::ControlNet::ControlNet | ( | SurfacePoint::CoordinateType | coordType = SurfacePoint::Latitudinal | ) |
Creates an empty ControlNet object.
References Isis::Application::DateTime().
Isis::ControlNet::ControlNet | ( | const ControlNet & | other | ) |
References AddPoint(), ControlPoint, and newPoint().
Isis::ControlNet::ControlNet | ( | const QString & | ptfile, |
Progress * | progress = 0, | ||
SurfacePoint::CoordinateType | coordType = SurfacePoint::Latitudinal ) |
Creates a ControlNet object from the given file.
ptfile | Name of network file |
progress | A pointer to the progress of reading in the control points |
References _FILEINFO_, Isis::IException::Io, and ReadControl().
Isis::ControlNet::~ControlNet | ( | ) |
Destructor removes allocated memory.
References clear().
void Isis::ControlNet::AddPoint | ( | ControlPoint * | point | ) |
Adds a ControlPoint to the ControlNet.
point | Control point to be added |
IException::Programmer | "Null pointer passed to ControlNet::AddPoint!" |
IException::Programmer | "ControlPoint must have unique Id" |
References _FILEINFO_, ContainsPoint(), Isis::ControlPoint::GetId(), networkStructureModified(), and Isis::IException::Programmer.
Referenced by ControlNet(), and ReadControl().
double Isis::ControlNet::AverageResidual | ( | ) |
Compute the average error of all points in the network.
References Isis::Statistics::Average(), Isis::ControlMeasure::GetResidualMagnitude(), Isis::ControlPoint::GetStatistic(), and Isis::ControlPoint::IsIgnored().
Isis::Camera * Isis::ControlNet::Camera | ( | int | index | ) |
Returns the camera list from the given image number.
index | The image number |
Referenced by Isis::QnetCubeDistanceFilter::filter(), Isis::QnetPointDistanceFilter::filter(), and Isis::LidarData::SetImages().
Isis::Camera * Isis::ControlNet::Camera | ( | QString | serialNumber | ) |
Returns the camera list from the input serial number.
serialNumber | Serial number. |
void Isis::ControlNet::clear | ( | ) |
Clear the contents of this object.
The contents of the ControlNet object are deleted. The internal variables that hold the contents are not. See the destructor.
References GetNumPoints().
Referenced by take(), and ~ControlNet().
void Isis::ControlNet::ClearJigsawRejected | ( | ) |
Sets jigsaw rejected flag to false for all points and measures.
Called by BundleAdjust::Init method
void Isis::ControlNet::ComputeApriori | ( | ) |
Compute aprior values for each point in the network.
References Isis::ControlPoint::ComputeApriori(), and Isis::ControlPoint::IsIgnored().
void Isis::ControlNet::ComputeResiduals | ( | ) |
Compute error for each point in the network.
bool Isis::ControlNet::ContainsPoint | ( | QString | pointId | ) | const |
pointId | the point Id to check for in the network. |
Referenced by AddPoint().
QString Isis::ControlNet::CreatedDate | ( | ) | const |
Return the Created Date.
void Isis::ControlNet::DecrementNumberOfRejectedMeasuresInImage | ( | const QString & | serialNumber | ) |
Decrement number of jigsaw rejected measures in image specified by serialNumber.
int Isis::ControlNet::DeletePoint | ( | ControlPoint * | point | ) |
Delete a ControlPoint from the network by the point's address.
point | The point to delete |
References _FILEINFO_, DeletePoint(), Isis::ControlPoint::GetId(), and Isis::IException::User.
Referenced by DeletePoint(), DeletePoint(), and Isis::AbstractPointItem::deleteSource().
int Isis::ControlNet::DeletePoint | ( | int | index | ) |
Delete a ControlPoint from the network using the point's index.
index | The index of the Control Point to be deleted. |
References _FILEINFO_, DeletePoint(), and Isis::IException::Programmer.
int Isis::ControlNet::DeletePoint | ( | QString | pointId | ) |
Delete a ControlPoint from the network using the point's Id.
pointId | The Point Id of the ControlPoint to be deleted. |
IException::User | "the point Id does not exist in the network" |
References _FILEINFO_, Isis::ControlPoint::Delete(), Isis::ControlPoint::getMeasures(), Isis::ControlPoint::IsEditLocked(), Isis::ControlPoint::IsIgnored(), networkStructureModified(), pointDeleted(), Isis::ControlPoint::PointLocked, Isis::ControlPoint::Success, and Isis::IException::User.
QString Isis::ControlNet::Description | ( | ) | const |
Return the description of the network.
ControlPoint * Isis::ControlNet::FindClosest | ( | QString | serialNumber, |
double | sample, | ||
double | line ) |
Finds and returns a pointer to the closest ControlPoint to the ControlMeasure with the given serial number and line sample location.
serialNumber | The serial number of the the file the ControlMeasure is on |
sample | The sample number of the ControlMeasure |
line | The line number of the ControlMeasure |
References _FILEINFO_, and Isis::IException::Programmer.
QList< QString > Isis::ControlNet::getAdjacentImages | ( | QString | serialNumber | ) | const |
Get all images connected to a given image by common control points.
serialNumber | the serial number of the image to find images adjacent to. |
References _FILEINFO_, and Isis::IException::Programmer.
Referenced by GraphToString().
SurfacePoint::CoordinateType Isis::ControlNet::GetCoordType | ( | ) |
Get the control point coordinate type (see the available types in SurfacePoint.h).
Referenced by Isis::ControlPoint::SetAprioriSurfacePoint().
QList< QString > Isis::ControlNet::GetCubeSerials | ( | ) | const |
Use this method to get a complete list of all the cube serial numbers in the network.
Note that the order in which the serials are ordered in the returned list is arbitrary and could change each time this method is called (but the operation is done in constant time).
Referenced by Isis::ControlNetStatistics::GenerateImageStats(), Isis::ControlNetVitals::getCubeSerials(), Isis::ControlNetVitals::getImagesBelowMeasureThreshold(), GraphToString(), Isis::ControlNetVitals::initializeVitals(), Isis::ControlNetVitals::numImages(), and Isis::ChipViewport::paintEvent().
int Isis::ControlNet::getEdgeCount | ( | ) | const |
QString Isis::ControlNet::GetLastModified | ( | ) | const |
Return the last modified date.
double Isis::ControlNet::GetMaximumResidual | ( | ) |
Determine the maximum error of all points in the network.
References Isis::ControlMeasure::GetResidualMagnitude().
QList< ControlMeasure * > Isis::ControlNet::GetMeasuresInCube | ( | QString | serialNumber | ) |
Get all the measures pertaining to a given cube serial number.
References _FILEINFO_, and Isis::IException::Programmer.
Referenced by Isis::ControlNetStatistics::GenerateImageStats(), GetValidMeasuresInCube(), and Isis::ChipViewport::paintEvent().
QString Isis::ControlNet::GetNetworkId | ( | ) | const |
Referenced by Isis::ControlNetVitals::getNetworkId(), and Isis::ControlNetVitals::validateNetwork().
int Isis::ControlNet::GetNumberOfJigsawRejectedMeasuresInImage | ( | const QString & | serialNumber | ) |
Return the number of jigsaw rejected measures in image specified by serialNumber.
int Isis::ControlNet::GetNumberOfValidMeasuresInImage | ( | const QString & | serialNumber | ) |
Return the number of measures in image specified by serialNumber.
References GetValidMeasuresInCube().
Referenced by Isis::ControlNetVitals::initializeVitals().
int Isis::ControlNet::GetNumEditLockMeasures | ( | ) |
Return the total number of edit locked measures for all control points in the network.
Referenced by Isis::ControlNetStatistics::GenerateControlNetStats().
int Isis::ControlNet::GetNumEditLockPoints | ( | ) |
Returns the number of edit locked control points.
Referenced by Isis::ControlNetStatistics::GenerateControlNetStats().
int Isis::ControlNet::GetNumIgnoredMeasures | ( | ) |
Return the total number of ignored measures for all control points in the network.
int Isis::ControlNet::GetNumMeasures | ( | ) | const |
Returns the total number of measures for all control points in the network.
Referenced by Isis::ControlNetVitals::addPoint(), and Isis::ControlNetVitals::initializeVitals().
int Isis::ControlNet::GetNumPoints | ( | ) | const |
Return the number of control points in the network.
Referenced by Isis::ControlNetGraphicsItem::buildChildren(), clear(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::QnetCubeDistanceFilter::filter(), Isis::QnetCubePointsFilter::filter(), Isis::QnetPointDistanceFilter::filter(), Isis::ControlNetStatistics::GenerateControlNetStats(), Isis::ControlNetStatistics::GeneratePointStats(), Isis::ChipViewport::paintEvent(), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointIDFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointPropertiesFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), Isis::QnetNavTool::resetList(), and sortedMeasureList().
int Isis::ControlNet::GetNumValidMeasures | ( | ) |
Return the number of valid (non-ignored) measures for all control points in the network.
int Isis::ControlNet::GetNumValidPoints | ( | ) |
Returns the number of non-ignored control points.
ControlPoint * Isis::ControlNet::GetPoint | ( | int | index | ) |
References _FILEINFO_, GetPoint(), and Isis::IException::Programmer.
const ControlPoint * Isis::ControlNet::GetPoint | ( | int | index | ) | const |
References _FILEINFO_, GetPoint(), and Isis::IException::Programmer.
ControlPoint * Isis::ControlNet::GetPoint | ( | QString | pointId | ) |
References _FILEINFO_, and Isis::IException::Programmer.
const ControlPoint * Isis::ControlNet::GetPoint | ( | QString | pointId | ) | const |
References _FILEINFO_, and Isis::IException::Programmer.
Referenced by Isis::ControlNetGraphicsItem::buildChildren(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::ControlNetStatistics::GeneratePointStats(), GetPoint(), GetPoint(), Isis::ControlNetVitals::getPoint(), GetPoints(), operator[](), operator[](), operator[](), operator[](), Isis::ControlNetFilter::PointCubeNamesFilter(), Isis::ControlNetFilter::PointDistanceFilter(), Isis::ControlNetFilter::PointEditLockFilter(), Isis::ControlNetFilter::PointGoodnessOfFitFilter(), Isis::ControlNetFilter::PointIDFilter(), Isis::ControlNetFilter::PointLatLonFilter(), Isis::ControlNetFilter::PointMeasurePropertiesFilter(), Isis::ControlNetFilter::PointMeasuresFilter(), Isis::ControlNetFilter::PointNumMeasuresEditLockFilter(), Isis::ControlNetFilter::PointPixelShiftFilter(), Isis::ControlNetFilter::PointPropertiesFilter(), Isis::ControlNetFilter::PointResMagnitudeFilter(), and sortedMeasureList().
QList< QString > Isis::ControlNet::GetPointIds | ( | ) | const |
Return QList of ControlPoint Ids used in hash, in order of addition.
QList< ControlPoint * > Isis::ControlNet::GetPoints | ( | ) |
Return QList of all the ControlPoints in the network.
References GetPoint().
Referenced by Isis::ControlNetVitals::getAllPoints(), Isis::ControlNetVitals::getConstrainedPoints(), Isis::ControlNetVitals::getFixedPoints(), Isis::ControlNetVitals::getFreePoints(), Isis::ControlNetVitals::getIgnoredPoints(), Isis::ControlNetVitals::getLockedPoints(), Isis::ControlNetVitals::getPointsBelowMeasureThreshold(), Isis::ControlNetVitals::initializeVitals(), and take().
This method searches through all the cube serial numbers in the network.
Serials which are connected to other serials through points are grouped together in the same lists. The list containing the lists of strings is nothing more than a list of islands such that each island is a list of serials which are connected to each other. If the control network is completely connected, then this list will only have one element (a list of all the serials in the network).
Referenced by Isis::ControlNetVitals::initializeVitals(), and Isis::ControlNetVitals::validateNetwork().
QString Isis::ControlNet::GetTarget | ( | ) | const |
Return the target name.
QString Isis::ControlNet::GetUserName | ( | ) | const |
Return the user name.
QList< ControlMeasure * > Isis::ControlNet::GetValidMeasuresInCube | ( | QString | serialNumber | ) |
Get all the valid measures pertaining to a given cube serial number.
References GetMeasuresInCube().
Referenced by Isis::ControlNetVitals::getImagesBelowMeasureThreshold(), and GetNumberOfValidMeasuresInImage().
QString Isis::ControlNet::GraphToString | ( | ) | const |
Used for verifying graph intergrity.
References getAdjacentImages(), GetCubeSerials(), Isis::ControlPoint::GetId(), Isis::ControlPoint::IsIgnored(), and Isis::toString().
void Isis::ControlNet::IncrementNumberOfRejectedMeasuresInImage | ( | const QString & | serialNumber | ) |
Increment number of jigsaw rejected measures in image specified by serialNumber.
|
signal |
|
signal |
|
signal |
Referenced by swap().
|
signal |
Referenced by AddPoint(), and DeletePoint().
|
signal |
|
signal |
Referenced by ControlNet().
ControlNet & Isis::ControlNet::operator= | ( | const ControlNet & | other | ) |
Assign other to this.
This is an exception-safe assignment operator.
other | The control net to assign to this. |
References swap().
ControlPoint * Isis::ControlNet::operator[] | ( | int | id | ) |
References GetPoint().
const ControlPoint * Isis::ControlNet::operator[] | ( | int | id | ) | const |
References GetPoint().
ControlPoint * Isis::ControlNet::operator[] | ( | QString | id | ) |
References GetPoint().
const ControlPoint * Isis::ControlNet::operator[] | ( | QString | id | ) | const |
References GetPoint().
|
signal |
Referenced by DeletePoint().
|
signal |
void Isis::ControlNet::ReadControl | ( | const QString & | filename, |
Progress * | progress = 0 ) |
Reads in the control points from the given file.
ptfile | Name of file containing a Pvl list of control points |
progress | A pointer to the progress of reading in the control points |
Isis::iException::User | - "Invalid Network Type" |
Isis::iException::User | - "Invalid Control Point" |
Isis::iException::User | - "Invalid Format" |
References AddPoint(), Isis::Progress::CheckStatus(), Isis::Progress::SetMaximumSteps(), SetTarget(), and Isis::Progress::SetText().
Referenced by ControlNet().
void Isis::ControlNet::SetCoordType | ( | SurfacePoint::CoordinateType | coordType | ) |
Sets the control point coordinate type.
coordType | Control point coordinate type |
void Isis::ControlNet::SetCreatedDate | ( | const QString & | date | ) |
Set the creation time.
date | The date this Control Network was created |
void Isis::ControlNet::SetDescription | ( | const QString & | newDescription | ) |
Set the description of the network.
desc | The description of this Control Network |
void Isis::ControlNet::SetImages | ( | const QString & | imageListFile | ) |
Creates the ControlNet's image cameras based on an input file.
imageListFile | The list of images |
References SetImages().
Referenced by Isis::QnetFileTool::open(), Isis::Project::setActiveImageList(), and SetImages().
void Isis::ControlNet::SetImages | ( | SerialNumberList & | list, |
Progress * | progress = 0 ) |
Creates the ControlNet's image camera's based on the list of Serial Numbers.
list | The list of Serial Numbers |
progress | A pointer to the progress of creating the cameras |
Isis::iException::System | - "Unable to create camera for cube file" |
Isis::iException::User | - "Control point measure does not have a cube with a matching serial number" |
References _FILEINFO_, Isis::Progress::CheckStatus(), Isis::CameraFactory::Create(), Isis::SerialNumberList::fileName(), Isis::SerialNumberList::hasSerialNumber(), Isis::SerialNumberList::serialNumber(), Isis::Progress::SetMaximumSteps(), Isis::Progress::SetText(), Isis::SerialNumberList::size(), Isis::IException::Unknown, and Isis::IException::User.
void Isis::ControlNet::SetModifiedDate | ( | const QString & | date | ) |
Set the last modified date.
date | The last date this Control Network was modified |
void Isis::ControlNet::SetMutex | ( | QMutex * | mutex | ) |
Set mutex to lock for making Naif calls.
mutex |
Referenced by Isis::Control::openControlNet().
void Isis::ControlNet::SetNetworkId | ( | const QString & | id | ) |
Set the network id.
id | The Id of this Control Network |
void Isis::ControlNet::SetTarget | ( | const ControlNet & | other | ) |
void Isis::ControlNet::SetTarget | ( | const QString & | target | ) |
Sets the target name and target radii, if available.
Note: The target radii are found using NAIF target codes. If the given target name is not recognized, the target radii vector will be filled with Isis::Null values.
target | The name of the target of this Control Network |
Referenced by Isis::QnetFileTool::open(), and ReadControl().
void Isis::ControlNet::SetTarget | ( | Pvl | label | ) |
Sets the target name and radii using values found in the mapping group of the given label, if available.
If this fails, calls SetTarget(QString).
label | A PVL Containing Target information (usually in a Mapping group or NaifKeywords object). |
References Isis::PvlObject::findGroup(), Isis::PvlObject::findObject(), Isis::PvlObject::hasGroup(), Isis::PvlObject::hasObject(), and Isis::PvlObject::Traverse.
void Isis::ControlNet::SetUserName | ( | const QString & | name | ) |
Set the user name of the control network.
name | The name of the user creating or modifying this ControlNet |
Referenced by Isis::QnetFileTool::open().
QList< ControlMeasure * > Isis::ControlNet::sortedMeasureList | ( | double(ControlMeasure::*)() const | statFunc, |
double | min, | ||
double | max ) |
Get a sorted list of all the measures that have values in a given ragen.
statFunc | A pointer to a control Measure acessor |
min | the minimum value of acessor return for list inclusion |
max | the maximum value of acessor return for list inclusion |
References Isis::ControlPoint::GetMeasure(), Isis::ControlPoint::GetNumMeasures(), GetNumPoints(), GetPoint(), and Isis::ControlPoint::IsIgnored().
void Isis::ControlNet::swap | ( | ControlNet & | other | ) |
Swaps the member data with the given control net.
This is an optimized form of: ControlNet a = ... ControlNet b = ...
Swap 'a' and 'b' ControlNet tmp = a; a = b; b = tmp;
This is used primarily for the assignment operator in order to do copy-and-swap.
other | The control net to swap with. |
References networkModified(), and Swapped.
Referenced by operator=().
QList< ControlPoint * > Isis::ControlNet::take | ( | ) |
Transfer ownership of all points to caller.
This method is used to transfer ownership to the caller. This method is not reintrant in the sense that if someone else has already made this call, it is an error to attempt to take ownership again.
Note that it now becomes the responsibility of the caller to delete all the pointers to ControlPoints that are returned in the list.
WARNING!!! This call alone can create a situation where the owner could delete point memory after the point list is exported from this class creating a problem. For this reason, the clear() method be called!!!
References _FILEINFO_, clear(), GetPoints(), and Isis::IException::Programmer.
void Isis::ControlNet::Write | ( | const QString & | ptfile, |
bool | pvl = false ) |
Writes out the control network.
ptfile | Name of file containing a Pvl list of control points |
pvl | Boolean indicating whether to write in pvl format (Default=false) |
2010-10-05 Tracie Sucharski - Renamed old WRite method to WritePvl and created this new method to determine format to be written.
2017-12-21 Jesse Mapel - Modified to use new ControlNetVersioner.
References _FILEINFO_, Isis::IException::Io, and Isis::IException::Programmer.
Referenced by Isis::Control::copyToNewProjectRoot(), Isis::QnetFileTool::save(), Isis::QnetFileTool::saveAs(), and Isis::Control::write().
|
friend |
|
friend |
Referenced by ControlNet().