Isis Developer Reference
|
#include <LidarData.h>
Public Types | |
enum | Format { Binary , Json , Test } |
Enumerates the file formats for serializing the LidarData class. More... | |
Public Member Functions | |
LidarData () | |
Default constructor. | |
void | insert (QSharedPointer< LidarControlPoint > point) |
Adds a LidarControlPoint to the LidarData. | |
QSharedPointer< LidarControlPoint > | point (QString pointId) const |
Gets a single LidarDataPoint by ID. | |
QList< QSharedPointer< LidarControlPoint > > | points (bool sort=false) const |
Gets the list of Lidar data points optionally sorted . | |
void | SetImages (SerialNumberList &list, Progress *progress=0) |
Creates the ControlNet's image camera's based on the list of Serial Numbers. | |
void | SetImages (ControlNet &controlNet, Progress *progress=0) |
TODO: more detail below... | |
void | read (FileName) |
Unserialize LidarData. | |
void | write (FileName, Format) |
Serializes LidarData. | |
int | numberLidarPoints () |
Returns number of Lidar data points. | |
int | numberSimultaneousMeasures () |
Returns number of simultaneous lidar measures. | |
int | numberAsynchronousMeasures () |
Returns number of non-simultaneous lidar measures. | |
int | numberMeasures () |
Returns total number of lidar measures. | |
bool | ValidateSerialNumber (QString serialNumber) const |
Does a check to ensure that the given serial number is contained within the network. | |
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. | |
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. | |
LidarData class.
Enumerates the file formats for serializing the LidarData class.
Enumerator | |
---|---|
Binary | Serializes to a binary (QByteArray) .dat file. |
Json | Serializes to a JSON .json file. |
Test | Serializes to an ordered JSON .json file for comparing to truth data. |
Isis::LidarData::LidarData | ( | ) |
Default constructor.
QList< ControlMeasure * > Isis::LidarData::GetMeasuresInCube | ( | QString | serialNumber | ) |
Get all the measures pertaining to a given cube serial number.
References _FILEINFO_, point(), Isis::IException::Programmer, and ValidateSerialNumber().
Referenced by GetValidMeasuresInCube().
int Isis::LidarData::GetNumberOfJigsawRejectedMeasuresInImage | ( | const QString & | serialNumber | ) |
Return the number of jigsaw rejected measures in image specified by serialNumber.
int Isis::LidarData::GetNumberOfValidMeasuresInImage | ( | const QString & | serialNumber | ) |
Return the number of measures in image specified by serialNumber.
References GetValidMeasuresInCube().
QList< ControlMeasure * > Isis::LidarData::GetValidMeasuresInCube | ( | QString | serialNumber | ) |
Get all the valid measures pertaining to a given cube serial number.
References GetMeasuresInCube().
Referenced by GetNumberOfValidMeasuresInImage().
void Isis::LidarData::insert | ( | QSharedPointer< LidarControlPoint > | point | ) |
Adds a LidarControlPoint to the LidarData.
QSharedPointer<LidarControlPoint> | point LidarControlPoint to add. |
References point().
Referenced by read().
int Isis::LidarData::numberAsynchronousMeasures | ( | ) |
Returns number of non-simultaneous lidar measures.
int Isis::LidarData::numberLidarPoints | ( | ) |
Returns number of Lidar data points.
int Isis::LidarData::numberMeasures | ( | ) |
Returns total number of lidar measures.
int Isis::LidarData::numberSimultaneousMeasures | ( | ) |
Returns number of simultaneous lidar measures.
QSharedPointer< LidarControlPoint > Isis::LidarData::point | ( | QString | pointId | ) | const |
Gets a single LidarDataPoint by ID.
pointId | The ID of the LidarDataPoint |
References _FILEINFO_, point(), and Isis::IException::Programmer.
Referenced by GetMeasuresInCube(), insert(), and point().
QList< QSharedPointer< LidarControlPoint > > Isis::LidarData::points | ( | bool | sort = false | ) | const |
void Isis::LidarData::read | ( | FileName | lidarDataFile | ) |
Unserialize LidarData.
This method unserializes LidarData from a JSON or binary (QByteArray) file. It will automatically determine if it is JSON or binary formatted data.
IException::User | Throws User exception if it cannot open the file passed. |
References _FILEINFO_, Isis::ControlPoint::Constrained, Isis::Angle::Degrees, insert(), Isis::Distance::Kilometers, and Isis::IException::User.
void Isis::LidarData::SetImages | ( | ControlNet & | controlNet, |
Progress * | progress = 0 ) |
TODO: more detail below...
Assigns Isis::Camera pointers to LidarControlPoint measures.
controlNet | Input ControlNet |
progress | A pointer to the progress of creating the cameras |
Isis::iException::User | - "Lidar Control point measure does not have a cube with a matching serial number" |
References _FILEINFO_, Isis::ControlNet::Camera(), Isis::ControlMeasure::GetCubeSerialNumber(), and Isis::IException::User.
void Isis::LidarData::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::ControlMeasure::GetCubeSerialNumber(), Isis::SerialNumberList::hasSerialNumber(), Isis::SerialNumberList::serialNumber(), Isis::Progress::SetMaximumSteps(), Isis::Progress::SetText(), Isis::SerialNumberList::size(), Isis::IException::Unknown, and Isis::IException::User.
bool Isis::LidarData::ValidateSerialNumber | ( | QString | serialNumber | ) | const |
Does a check to ensure that the given serial number is contained within the network.
serialNumber | the cube serial number to validate |
Referenced by GetMeasuresInCube().
void Isis::LidarData::write | ( | FileName | outputFile, |
LidarData::Format | format ) |
Serializes LidarData.
This method serializes the LidarData to either a JSON or binary (QByteArray) file. If JSON, the file extension will be .json; otherwise (if binary), the file extension will be .dat.
FileName | outputFile Name of the file to serialize to. |
LidarData::Format | format Format of the serialized file (Json or Binary). |
IException::User | Throws User exception if it cannot open the file for writing. |
References _FILEINFO_, Isis::Angle::Degrees, Isis::SurfacePoint::GetLatitude(), Isis::SurfacePoint::GetLocalRadius(), Isis::SurfacePoint::GetLongitude(), Isis::SurfacePoint::GetSphericalMatrix(), Json, Isis::Distance::kilometers(), Isis::Latitude::planetocentric(), points(), Isis::Longitude::positiveEast(), Test, Isis::IException::User, and Isis::SurfacePoint::Valid().