Isis Developer Reference
|
Serial Number composer. More...
#include <SerialNumber.h>
Public Member Functions | |
SerialNumber () | |
Create an empty SerialNumber object. | |
virtual | ~SerialNumber () |
Destroy a SerialNumber object. | |
Static Public Member Functions | |
static QString | Compose (Pvl &label, bool def2filename=false) |
Compose a SerialNumber from a PVL. | |
static QString | Compose (Cube &cube, bool def2filename=false) |
Compose a SerialNumber from a Cube. | |
static QString | Compose (const QString &filename, bool def2filename=false) |
Compose a SerialNumber from a file. | |
static QString | ComposeObservation (const QString &sn, SerialNumberList &list, bool def2filename=false) |
Creates the ObservationNumber from a string representing the SerialNumber and a SerialList. | |
Static Protected Member Functions | |
static QString | CreateSerialNumber (PvlGroup &snGroup, int key) |
Create the SerialNumber string by concatenating the keywords in the label with '/' in between serialNumber groups and the number of observationKeys. | |
Serial Number composer.
A Serial Number is a unique identification for some object such as an Isis cube. A Serial Number for a specific object must be repeatable. This class is intended to be used to create all Serial Numbers for Isis.
Isis::SerialNumber::SerialNumber | ( | ) |
Create an empty SerialNumber object.
|
virtual |
Destroy a SerialNumber object.
|
static |
Compose a SerialNumber from a file.
filename | a filename to open |
def2filename | If a serial number could not be found, try to return the filename |
References Compose().
|
static |
Compose a SerialNumber from a Cube.
cube | An opened Isis cub |
def2filename | If a serial number could not be found, try to return the filename |
References Compose(), and Isis::Cube::label().
|
static |
Compose a SerialNumber from a PVL.
label | A pvl formatted label to be used to generate the serial number |
def2filename | If a serial number could not be found, try to return the filename |
References CreateSerialNumber(), Isis::PvlContainer::fileName(), and Isis::FileName::name().
Referenced by Isis::SerialNumberList::add(), Compose(), Compose(), Isis::QnetFileTool::loadImage(), Isis::ControlNetTool::mouseButtonRelease(), Isis::ChipViewport::paintEvent(), Isis::StereoTool::paintViewport(), Isis::Image::serialNumber(), and Isis::ProcessMosaic::StartProcess().
|
static |
Creates the ObservationNumber from a string representing the SerialNumber and a SerialList.
sn | the string representing the SerialNumber |
list | the SerialNumberList |
def2filename | If a serial number could not be found, try to return the filename |
References Isis::ObservationNumber::Compose(), and Isis::SerialNumberList::fileName().
|
staticprotected |
Create the SerialNumber string by concatenating the keywords in the label with '/' in between serialNumber groups and the number of observationKeys.
snGroup | A PvlGroup containing the keywords to concatenate |
keys | the number of strings to contatenate |
Referenced by Isis::ObservationNumber::Compose(), and Compose().