Manages RVC::OBJTYPE_Spectral RVC objects. More...
#include <rvc/spectrallibrary.h>

Manages RVC::OBJTYPE_Spectral RVC objects.
RVC Object Types that this class supports: RVC::OBJTYPE_Spectral
Valid parents for this class: RVC::OBJTYPE_File RVC::OBJTYPE_Folder
Spectral library is a collection of hyperspectral records for number of different materials, minerals plants and etc. Hyperspectral record contains the calibrated reflectance (or measured radiance) detected at multiple wavelength channels. Each wavelength channel has a spectral definition that consists of wavelength, bandwidth and error value associated with a specific measurement. "Channel" is a USGS term for describing elementary measurement at certain wavelength.
| RVC::SPECTRALLIBRARY::SPECTRALLIBRARY | ( | ) |
Default constructor.
| RVC::SPECTRALLIBRARY::SPECTRALLIBRARY | ( | const RVC::SPECTRALLIBRARY & | obj | ) |
Copy constructor.
| virtual RVC::SPECTRALLIBRARY::~SPECTRALLIBRARY | ( | ) | [virtual] |
Destructor.
Add a record to the rvc spectral library object, do not use WriteRecord() since multiple people can be trying to add a record at the same time.
| record | Record to add |
Delete given record.
This method deletes a record by swapping the last record with 'ShapeNum', then it resizes the number of records by -1.
| RecordNum | Shape number to delete |
| INT32 RVC::SPECTRALLIBRARY::GetMaxNumChannels | ( | ) |
| double RVC::SPECTRALLIBRARY::GetMaxWavelength | ( | ) |
| INT32 RVC::SPECTRALLIBRARY::GetMinNumChannels | ( | ) |
| double RVC::SPECTRALLIBRARY::GetMinWavelength | ( | ) |
| INT32 RVC::SPECTRALLIBRARY::GetNumRecords | ( | ) |
Obtain the number of records in a rvc spectral library object.
| ERRVALUE RVC::SPECTRALLIBRARY::Make | ( | RVC::OBJITEM & | ObjItem, | |
| const char * | Source = 0, |
|||
| const CREDENTIALS * | Credentials = 0 | |||
| ) |
Create a new rvc style object under a specified parent rvc object with name, description, and source.
| ObjItem | Name, Desc of object to create, Created object location RETURNED | |
| Source | Source of new style object, default is application name | |
| Credentials | User credentials passed in, NULL for default behavior |
| ERRVALUE RVC::SPECTRALLIBRARY::Make | ( | const RVC::OBJECT & | parent, | |
| const RVC::DESCRIPTOR & | Descriptor, | |||
| const CREDENTIALS *Credentials | RVC_DEFAULT_CREDENTIALS | |||
| ) |
Create a new rvc spectrallibrary object under a specified parent rvc object with name, description, and source.
| parent | Parent object to create style object under | |
| RVC_DEFAULT_CREDENTIALS | User credentials passed in, NULL for default behavior |
| RVC::SPECTRALLIBRARY& RVC::SPECTRALLIBRARY::operator= | ( | const RVC::SPECTRALLIBRARY & | rhs | ) |
Assignment.
Reimplemented from RVC::OBJECT.
Read a rvc spectrallibrary object record element.
| RecordNum | The record index to read | |
| record | Record to read |
| ERRVALUE RVC::SPECTRALLIBRARY::ReadRecordChannels | ( | INT32 | RecordNum, | |
| SIMPLE_ARRAY< CHANNEL > & | Channels | |||
| ) |
Read a rvc spectrallibrary object record channels.
| RecordNum | The record index to read | |
| Channels | Channel array RETURNED |
Read a rvc spectrallibrary object record element.
| RecordNum | The record index to read | |
| record | Record to read |
| ERRVALUE RVC::SPECTRALLIBRARY::WriteRecordChannels | ( | INT32 | RecordNum, | |
| const SIMPLE_ARRAY< CHANNEL > & | Channels | |||
| ) |
Write a rvc spectrallibrary object record channels.
| RecordNum | The record index to write | |
| Channels | Channel array to write |
1.6.1