Isis Developer Reference
|
BLOB extraction class. More...
#include <HiBlob.h>
Public Member Functions | |
HiBlob () | |
Default, mostly useless constructor. | |
HiBlob (Cube &cube, const QString &tblname, const QString &field, const QString &name="HiBlob") | |
Constructor providing interface to an ISIS Cube object. | |
virtual | ~HiBlob () |
Destructor. | |
const HiMatrix & | buffer () const |
Return a reference to the data. | |
Blobber | deepcopy () const |
Create a unique copy of this blob. | |
void | setName (const QString &name) |
Specifies the name of this class instantiation. | |
void | setBlobName (const QString &bname) |
Sets the name of the ISIS BLOB object that contains the data. | |
void | setFieldName (const QString &fname) |
Sets field name in the ISIS BLOB object that contains data. | |
int | size () const |
Returns the total number of elements (rows * columns) in blob. | |
int | Lines () const |
Number of rows or lines in the BLOB. | |
int | Samples () const |
Number of columns or samples in the BLOB. | |
QString | getName () const |
Returns the name of the BLOB given to refer to this instantiation. | |
QString | getBlobName () const |
Retrieves the name of the Table object. | |
QString | getFieldName () const |
Retreive the name of the field in the Tabel object BLOB. | |
double * | operator[] (int i) |
Returns the ith row/line in the BLOB that can be further referenced into samples. | |
double const * | operator[] (int i) const |
Returns the ith row/line in the BLOB that can be further referenced into samples. | |
void | load (const QString &filename) |
Loads the contents of a BLOB from a cube file. | |
void | load (Cube &cube) |
Loads the contents of a BLOB from a Cube object. | |
Protected Types | |
typedef TNT::Array2D< double > | BlobBuf |
Internal buffer uses TNT. | |
Protected Member Functions | |
const BlobBuf & | ref () const |
Returns a const reference to the internal buffer for ease of use to derived objects. | |
BLOB extraction class.
This class provides access and processing of HiRISE data as stored in an ISIS BLOB (Table).
Note that the file provided must be a HiRISE ISIS cube file that is freshly converted from a PDS compatable EDR (hi2isis). It must contain an ISIS Table named "HiRISE Calibration Image". From that table, data is extracted from the "Calibration" field.
|
protectedinherited |
Internal buffer uses TNT.
|
inline |
Default, mostly useless constructor.
|
inline |
Constructor providing interface to an ISIS Cube object.
|
inlinevirtual |
Destructor.
|
inline |
Return a reference to the data.
References Isis::Blobber::ref().
Referenced by Isis::HiCalData::load().
|
inherited |
Create a unique copy of this blob.
This method creates a fully new copy of this object. The default copy constructors/methods create a reference to the data read from the Table object. For example, the following code fragment will result in two Blobbers that refer to the same memory location that stores the BLOB data:
To ensure you have two unique storage areas of the BLOB data so they can change independantly, use:
|
inlineinherited |
Retrieves the name of the Table object.
Referenced by Isis::Blobber::load().
|
inlineinherited |
Retreive the name of the field in the Tabel object BLOB.
Referenced by Isis::Blobber::load().
|
inlineinherited |
Returns the name of the BLOB given to refer to this instantiation.
|
inlineinherited |
|
inherited |
Loads the contents of a BLOB from a cube file.
Provides the I/O interface for ISIS cube files.
[in] | filename | (string&) Name of ISIS cube file to read |
References Isis::Blobber::load(), and Isis::Cube::open().
Referenced by Isis::Blobber::Blobber(), and Isis::Blobber::load().
|
inherited |
Loads the contents of a BLOB from a Cube object.
Provides the I/O interface for the Cube object. One thing to note here is that it creates a CubeInfo object from the Cube object and then calls the CubeInfo load method. Hence, this method is required as an intermediary method that cascades to the actual method that does the real work.
[in] | cube | (Cube&) Reference to an ISIS cube file that has been opened or created in the Cube object. |
References _FILEINFO_, Isis::Blobber::getBlobName(), Isis::Blobber::getFieldName(), Isis::TableField::isDouble(), Isis::TableField::isInteger(), Isis::IException::Programmer, and Isis::Cube::readTable().
|
inlineinherited |
Returns the ith row/line in the BLOB that can be further referenced into samples.
To access the 2nd sample in the 10th line use:
i | Index |
|
inlineinherited |
Returns the ith row/line in the BLOB that can be further referenced into samples.
This method provides const access to the data in row matrix form. To access the 2nd sample in the 10th line use:
i | Index |
|
inlineprotectedinherited |
Returns a const reference to the internal buffer for ease of use to derived objects.
Referenced by buffer().
|
inlineinherited |
Number of columns or samples in the BLOB.
Referenced by Isis::Blobber::size().
|
inlineinherited |
|
inlineinherited |
Sets field name in the ISIS BLOB object that contains data.
This method sets the name of the field contained within the Table object BLOB from which the data is extracted.
fname | Field name |
|
inlineinherited |
Specifies the name of this class instantiation.
This is just an additional name that can be used to identify instantiations of this class. It provides a way to uniquely identify each object.
name | Unique name |
|
inlineinherited |
Returns the total number of elements (rows * columns) in blob.
References Isis::Blobber::Lines(), and Isis::Blobber::Samples().