Isis 3 Programmer Reference
|
This class stores Kernel information, including Type and kernel file names. More...
#include <Kernel.h>
Public Types | |
enum | Type { Predicted = 1 , Nadir = 2 , Reconstructed = 4 , Smithed = 8 } |
Enumeration for type of kernel. More... | |
Public Member Functions | |
Kernel () | |
Constructs a Kernel object with "Unknown" Type. | |
Kernel (Type type, const QStringList &data) | |
Constructs a Kernel object with given Type and kernels data. | |
~Kernel () | |
Destructs Kernel object. | |
QStringList | kernels () |
Returns the list of kernel data file names. | |
Type | type () |
Returns the stored Kernel::Type. | |
void | setKernels (QStringList data) |
Sets the kernel data file names to the given list. | |
void | setType (const Type &type) |
Sets the Kernel type. | |
int | size () |
Accessor method to determine the number of kernel files. | |
void | push_back (const QString &str) |
Adds the string (file name) to the kernel data file list. | |
QString & | operator[] (const int index) |
Returns the value (file name) in the kernel data list at the given index value. | |
QString | operator[] (const int index) const |
A constant method that returns the value of the kernel data list at the given index value. | |
bool | operator< (const Kernel &other) const |
Compares which Kernel object has a higher quality Type, i.e. | |
Static Public Member Functions | |
static Type | typeEnum (const QString &type) |
Converts the given string to a character as follows. | |
static const char * | typeEnum (const Type &type) |
Converts the given Type to a character as follows. | |
Private Attributes | |
QStringList | m_kernels |
List of kernel file names. | |
Type | m_kernelType |
Enumeration value indicating the kernel type. | |
This class stores Kernel information, including Type and kernel file names.
enum Isis::Kernel::Type |
Enumeration for type of kernel.
Enumerator | |
---|---|
Predicted | Predicted Kernels are based on predicted location of the spacecraft. |
Nadir | Nadir Kernels mimic spacecraft pointing. |
Reconstructed | Reconstructed Kernels are supplemented with information on the actual position of targets and/or spacecrafts. |
Smithed | Smithed Kernels are generally reconstructed kernels that have been corrected. |
Isis::Kernel::Kernel | ( | ) |
Constructs a Kernel object with "Unknown" Type.
Definition at line 19 of file Kernel.cpp.
References m_kernels, and m_kernelType.
Isis::Kernel::Kernel | ( | Type | type, |
const QStringList & | data ) |
Constructs a Kernel object with given Type and kernels data.
type | Type of kernel to be constructed, see Kernel::Type enumerations |
data | Vector containing kernel file name(s) |
Definition at line 37 of file Kernel.cpp.
References m_kernels, m_kernelType, and type().
Isis::Kernel::~Kernel | ( | ) |
Destructs Kernel object.
Definition at line 27 of file Kernel.cpp.
QStringList Isis::Kernel::kernels | ( | ) |
Returns the list of kernel data file names.
Definition at line 93 of file Kernel.cpp.
References m_kernels.
bool Isis::Kernel::operator< | ( | const Kernel & | other | ) | const |
Compares which Kernel object has a higher quality Type, i.e.
which type has a higher enumeration value.
other | The Kernel whose type value will be compared |
Definition at line 168 of file Kernel.cpp.
References m_kernelType.
QString & Isis::Kernel::operator[] | ( | const int | index | ) |
Returns the value (file name) in the kernel data list at the given index value.
index | The index value of the kernel data list |
Definition at line 144 of file Kernel.cpp.
References m_kernels.
QString Isis::Kernel::operator[] | ( | const int | index | ) | const |
A constant method that returns the value of the kernel data list at the given index value.
index | The index value of the kernel data list |
Definition at line 156 of file Kernel.cpp.
References m_kernels.
void Isis::Kernel::push_back | ( | const QString & | str | ) |
Adds the string (file name) to the kernel data file list.
str | String containing kernel file name to be added. |
Definition at line 133 of file Kernel.cpp.
References m_kernels.
void Isis::Kernel::setKernels | ( | QStringList | data | ) |
Sets the kernel data file names to the given list.
data | A list containing kernel data (file names) |
Definition at line 109 of file Kernel.cpp.
References m_kernels.
void Isis::Kernel::setType | ( | const Type & | type | ) |
Sets the Kernel type.
type | The Kernel type enumeration value to be set. |
Definition at line 117 of file Kernel.cpp.
References m_kernelType, and type().
int Isis::Kernel::size | ( | ) |
Accessor method to determine the number of kernel files.
Definition at line 125 of file Kernel.cpp.
References m_kernels.
Kernel::Type Isis::Kernel::type | ( | ) |
Returns the stored Kernel::Type.
Definition at line 101 of file Kernel.cpp.
References m_kernelType.
Referenced by Kernel(), setType(), typeEnum(), and typeEnum().
|
static |
Converts the given string to a character as follows.
type | A QString containing a Kernel Type. These strings are not case dependent (the type maybe written all caps, all lower, camel). |
Definition at line 57 of file Kernel.cpp.
References Nadir, Predicted, Reconstructed, Smithed, and type().
Referenced by Isis::KernelDb::findAll().
|
static |
Converts the given Type to a character as follows.
type | The Kernel type enumeration value |
Definition at line 80 of file Kernel.cpp.
References Nadir, Predicted, Reconstructed, Smithed, and type().
|
private |
List of kernel file names.
Definition at line 74 of file Kernel.h.
Referenced by Kernel(), Kernel(), kernels(), operator[](), operator[](), push_back(), setKernels(), and size().
|
private |
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 10/05/2024 02:52:43 |