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. More... | |
ControlNet (const ControlNet &other) | |
ControlNet (const QString &filename, Progress *progress=0, SurfacePoint::CoordinateType=SurfacePoint::Latitudinal) | |
Creates a ControlNet object from the given file. More... | |
~ControlNet () | |
Destructor removes allocated memory. More... | |
void | clear () |
Clear the contents of this object. More... | |
QList< ControlPoint * > | take () |
Transfer ownership of all points to caller. More... | |
void | ReadControl (const QString &filename, Progress *progress=0) |
Reads in the control points from the given file. More... | |
void | Write (const QString &filename, bool pvl=false) |
Writes out the control network. More... | |
void | AddPoint (ControlPoint *point) |
Adds a ControlPoint to the ControlNet. More... | |
int | DeletePoint (ControlPoint *point) |
Delete a ControlPoint from the network by the point's address. More... | |
int | DeletePoint (QString pointId) |
Delete a ControlPoint from the network using the point's Id. More... | |
int | DeletePoint (int index) |
Delete a ControlPoint from the network using the point's index. More... | |
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. More... | |
QString | GraphToString () const |
Used for verifying graph intergrity. More... | |
QList< QList< QString > > | GetSerialConnections () const |
This method searches through all the cube serial numbers in the network. More... | |
int | getEdgeCount () const |
QList< QString > | getAdjacentImages (QString serialNumber) const |
Get all images connected to a given image by common control points. More... | |
QList< ControlMeasure * > | GetMeasuresInCube (QString serialNumber) |
Get all the measures pertaining to a given cube serial number. More... | |
QList< ControlMeasure * > | GetValidMeasuresInCube (QString serialNumber) |
Get all the valid measures pertaining to a given cube serial number. More... | |
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. More... | |
void | ComputeResiduals () |
Compute error for each point in the network. More... | |
void | ComputeApriori () |
Compute aprior values for each point in the network. More... | |
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. More... | |
Isis::Camera * | Camera (int index) |
Returns the camera list from the given image number. More... | |
QString | CreatedDate () const |
Return the Created Date. More... | |
QString | Description () const |
Return the description of the network. More... | |
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. More... | |
double | GetMaximumResidual () |
Determine the maximum error of all points in the network. More... | |
QString | GetNetworkId () const |
int | GetNumEditLockMeasures () |
Return the total number of edit locked measures for all control points in the network. More... | |
int | GetNumEditLockPoints () |
Returns the number of edit locked control points. More... | |
int | GetNumIgnoredMeasures () |
Return the total number of ignored measures for all control points in the network. More... | |
int | GetNumberOfValidMeasuresInImage (const QString &serialNumber) |
Return the number of measures in image specified by serialNumber. More... | |
int | GetNumberOfJigsawRejectedMeasuresInImage (const QString &serialNumber) |
Return the number of jigsaw rejected measures in image specified by serialNumber. More... | |
void | ClearJigsawRejected () |
Sets jigsaw rejected flag to false for all points and measures. More... | |
void | IncrementNumberOfRejectedMeasuresInImage (const QString &serialNumber) |
Increment number of jigsaw rejected measures in image specified by serialNumber. More... | |
void | DecrementNumberOfRejectedMeasuresInImage (const QString &serialNumber) |
Decrement number of jigsaw rejected measures in image specified by serialNumber. More... | |
int | GetNumMeasures () const |
Returns the total number of measures for all control points in the network. More... | |
int | GetNumPoints () const |
Return the number of control points in the network. More... | |
int | GetNumValidMeasures () |
Return the number of valid (non-ignored) measures for all control points in the network. More... | |
int | GetNumValidPoints () |
Returns the number of non-ignored control points. More... | |
QString | GetTarget () const |
Return the target name. More... | |
QString | GetUserName () const |
Return the user name. More... | |
QString | GetLastModified () const |
Return the last modified date. More... | |
QList< ControlPoint * > | GetPoints () |
Return QList of all the ControlPoints in the network. More... | |
QList< QString > | GetPointIds () const |
Return QList of ControlPoint Ids used in hash, in order of addition. More... | |
SurfacePoint::CoordinateType | GetCoordType () |
Get the control point coordinate type (see the available types in SurfacePoint.h). More... | |
void | SetCreatedDate (const QString &date) |
Set the creation time. More... | |
void | SetDescription (const QString &newDescription) |
Set the description of the network. More... | |
void | SetImages (const QString &imageListFile) |
Creates the ControlNet's image cameras based on an input file. More... | |
void | SetImages (SerialNumberList &list, Progress *progress=0) |
Creates the ControlNet's image camera's based on the list of Serial Numbers. More... | |
void | SetModifiedDate (const QString &date) |
Set the last modified date. More... | |
void | SetMutex (QMutex *mutex) |
Set mutex to lock for making Naif calls. More... | |
void | SetNetworkId (const QString &id) |
Set the network id. More... | |
void | SetTarget (const QString &target) |
Sets the target name and target radii, if available. More... | |
void | SetTarget (Pvl label) |
Sets the target name and radii using values found in the mapping group of the given label, if available. More... | |
void | SetTarget (const ControlNet &other) |
void | SetUserName (const QString &name) |
Set the user name of the control network. More... | |
void | SetCoordType (SurfacePoint::CoordinateType coordType) |
Sets the control point coordinate type. More... | |
void | swap (ControlNet &other) |
Swaps the member data with the given control net. More... | |
ControlNet & | operator= (const ControlNet &other) |
Assign other to this. More... | |
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.
Isis::ControlNet::ControlNet | ( | const ControlNet & | other | ) |
References GetNumPoints(), and GetPoint().
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::ControlNet::~ControlNet | ( | ) |
Destructor removes allocated memory.
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_, and Isis::ControlPoint::GetId().
double Isis::ControlNet::AverageResidual | ( | ) |
Compute the average error of all points in the network.
References Isis::Statistics::Average(), 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(), and Isis::QnetPointDistanceFilter::filter().
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.
Referenced by swap().
void Isis::ControlNet::ClearJigsawRejected | ( | ) |
Sets jigsaw rejected flag to false for all points and measures.
Called by BundleAdjust::Init method
References Isis::ControlPoint::ClearJigsawRejected().
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 Isis::MatchToolNewPointDialog::MatchToolNewPointDialog().
QString Isis::ControlNet::CreatedDate | ( | ) | const |
Return the Created Date.
Referenced by Isis::ControlNetVersioner::ControlNetVersioner().
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_, and Isis::ControlPoint::GetId().
Referenced by Isis::AbstractPointItem::deleteSource(), and Isis::CnetEditorWidget::filteredNetwork().
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_.
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(), and Isis::ControlPoint::IsIgnored().
QString Isis::ControlNet::Description | ( | ) | const |
Return the description of the network.
Referenced by Isis::ControlNetVersioner::ControlNetVersioner().
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_, Isis::ControlMeasure::GetLine(), Isis::ControlMeasure::GetSample(), and Isis::ControlMeasure::Parent().
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_.
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::CnetDisplayProperties::getCubeList(), Isis::ControlNetVitals::getCubeSerials(), Isis::ControlNetVitals::getImagesBelowMeasureThreshold(), 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.
Referenced by Isis::ControlNetVersioner::ControlNetVersioner().
double Isis::ControlNet::GetMaximumResidual | ( | ) |
Determine the maximum error of all points in the network.
References Isis::ControlPoint::GetStatistic(), and Isis::Statistics::Maximum().
QList< ControlMeasure * > Isis::ControlNet::GetMeasuresInCube | ( | QString | serialNumber | ) |
Get all the measures pertaining to a given cube serial number.
References _FILEINFO_.
Referenced by Isis::ControlNetStatistics::GenerateImageStats(), and Isis::ChipViewport::paintEvent().
QString Isis::ControlNet::GetNetworkId | ( | ) | const |
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.
Referenced by Isis::ControlNetVitals::initializeVitals().
int Isis::ControlNet::GetNumEditLockMeasures | ( | ) |
Return the total number of edit locked measures for all control points in the network.
References Isis::ControlPoint::GetNumLockedMeasures().
Referenced by Isis::ControlNetStatistics::GenerateControlNetStats().
int Isis::ControlNet::GetNumEditLockPoints | ( | ) |
Returns the number of edit locked control points.
References Isis::ControlPoint::IsEditLocked().
Referenced by Isis::ControlNetStatistics::GenerateControlNetStats().
int Isis::ControlNet::GetNumIgnoredMeasures | ( | ) |
Return the total number of ignored measures for all control points in the network.
References Isis::ControlPoint::GetNumMeasures(), and Isis::ControlPoint::GetNumValidMeasures().
int Isis::ControlNet::GetNumMeasures | ( | ) | const |
Returns the total number of measures for all control points in the network.
References Isis::ControlPoint::GetNumMeasures().
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(), ControlNet(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::QnetCubeDistanceFilter::filter(), Isis::QnetCubePointsFilter::filter(), Isis::QnetPointDistanceFilter::filter(), Isis::CnetEditorWidget::filteredNetwork(), Isis::InterestOperator::FindCnetRef(), 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(), and Isis::QnetNavTool::resetList().
int Isis::ControlNet::GetNumValidMeasures | ( | ) |
Return the number of valid (non-ignored) measures for all control points in the network.
References Isis::ControlPoint::GetNumValidMeasures(), and Isis::ControlPoint::IsIgnored().
int Isis::ControlNet::GetNumValidPoints | ( | ) |
Returns the number of non-ignored control points.
References Isis::ControlPoint::IsIgnored().
ControlPoint * Isis::ControlNet::GetPoint | ( | int | index | ) |
References _FILEINFO_.
const ControlPoint * Isis::ControlNet::GetPoint | ( | int | index | ) | const |
References _FILEINFO_.
ControlPoint * Isis::ControlNet::GetPoint | ( | QString | pointId | ) |
References _FILEINFO_.
const ControlPoint * Isis::ControlNet::GetPoint | ( | QString | pointId | ) | const |
References _FILEINFO_.
Referenced by Isis::ControlNetGraphicsItem::buildChildren(), ControlNet(), Isis::ControlNetFilter::CubeDistanceFilter(), Isis::CnetEditorWidget::filteredNetwork(), Isis::InterestOperator::FindCnetRef(), Isis::ControlNetStatistics::GeneratePointStats(), Isis::ControlNetVitals::getPoint(), 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(), and Isis::ControlNetFilter::PointResMagnitudeFilter().
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.
Referenced by Isis::ControlNetVersioner::ControlNetVersioner(), Isis::ControlNetVitals::getAllPoints(), Isis::ControlNetVitals::getConstrainedPoints(), Isis::ControlNetVitals::getFixedPoints(), Isis::ControlNetVitals::getFreePoints(), Isis::ControlNetVitals::getIgnoredPoints(), Isis::ControlNetVitals::getLockedPoints(), Isis::ControlNetVitals::getPointsBelowMeasureThreshold(), and Isis::ControlNetVitals::initializeVitals().
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.
Referenced by Isis::ControlNetVersioner::ControlNetVersioner().
QString Isis::ControlNet::GetUserName | ( | ) | const |
Return the user name.
Referenced by Isis::ControlNetVersioner::ControlNetVersioner().
QList< ControlMeasure * > Isis::ControlNet::GetValidMeasuresInCube | ( | QString | serialNumber | ) |
Get all the valid measures pertaining to a given cube serial number.
References Isis::ControlMeasure::IsIgnored().
Referenced by Isis::ControlNetVitals::getImagesBelowMeasureThreshold().
QString Isis::ControlNet::GraphToString | ( | ) | const |
Used for verifying graph intergrity.
References 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 |
|
signal |
|
signal |
|
signal |
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. |
ControlPoint * Isis::ControlNet::operator[] | ( | int | id | ) |
const ControlPoint * Isis::ControlNet::operator[] | ( | int | id | ) | const |
ControlPoint * Isis::ControlNet::operator[] | ( | QString | id | ) |
const ControlPoint * Isis::ControlNet::operator[] | ( | QString | id | ) | const |
|
signal |
|
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 Isis::Progress::CheckStatus(), Isis::ControlNetVersioner::creationDate(), Isis::ControlNetVersioner::description(), Isis::ControlNetVersioner::lastModificationDate(), Isis::ControlNetVersioner::netId(), Isis::ControlNetVersioner::numPoints(), Isis::Progress::SetMaximumSteps(), Isis::Progress::SetText(), Isis::ControlNetVersioner::takeFirstPoint(), Isis::ControlNetVersioner::targetName(), and Isis::ControlNetVersioner::userName().
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 |
Referenced by Isis::QnetFileTool::open(), and Isis::Project::setActiveImageList().
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::SerialNumberList::fileName(), Isis::ControlMeasure::GetCubeSerialNumber(), Isis::ControlPoint::getCubeSerialNumbers(), Isis::ControlPoint::GetId(), Isis::SerialNumberList::hasSerialNumber(), Isis::ControlMeasure::IsIgnored(), Isis::SerialNumberList::serialNumber(), Isis::ControlMeasure::SetCamera(), Isis::Progress::SetMaximumSteps(), Isis::Progress::SetText(), and Isis::SerialNumberList::size().
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().
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::PvlContainer::hasKeyword(), and Isis::PvlObject::hasObject().
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(), Isis::ControlMeasure::IsIgnored(), 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 clear().
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_.
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) |
References _FILEINFO_, Isis::ControlNetVersioner::toPvl(), Isis::Pvl::write(), and Isis::ControlNetVersioner::write().
Referenced by Isis::Control::copyToNewProjectRoot(), Isis::QnetFileTool::save(), Isis::QnetFileTool::saveAs(), and Isis::Control::write().
|
friend |
|
friend |