Image sample table. More...
#include <spatmod/imagesampletable.h>
Public Member Functions | |
| SAMPLETABLE (const SAMPLETABLE &rhs) | |
| SAMPLETABLE () | |
| ~SAMPLETABLE () | |
| ERRVALUE | Create (const SAMPLE &SampleProperties, UINT32 NumItems, const void *pValues=0) |
| void | Exchange (SAMPLETABLE &other) |
| UINT32 | GetNumItems () const |
| const void * | GetPtrItem (UINT32 ItemIndex) const |
| void * | GetPtrItems () |
| const void * | GetPtrItems () const |
| const SAMPLE & | GetSampleProperties () const |
| SAMPLETABLE & | operator= (const SAMPLETABLE &rhs) |
| ERRVALUE | SetAllItems (const SAMPLE &value) |
| ERRVALUE | SetItem (UINT32 index, double value) |
| ERRVALUE | SetItem (UINT32 index, const SAMPLE &value) |
| ERRVALUE | SetItems (UINT32 StartIndex, const void *pValues, UINT32 NumItems=1) |
Image sample table.
| SPATMOD::IMAGE::SAMPLETABLE::SAMPLETABLE | ( | ) |
Default constructor.
| SPATMOD::IMAGE::SAMPLETABLE::SAMPLETABLE | ( | const SAMPLETABLE & | rhs | ) |
Copy constructor.
| SPATMOD::IMAGE::SAMPLETABLE::~SAMPLETABLE | ( | ) |
Destructor.
| ERRVALUE SPATMOD::IMAGE::SAMPLETABLE::Create | ( | const SAMPLE & | SampleProperties, | |
| UINT32 | NumItems, | |||
| const void * | pValues = 0 | |||
| ) |
Create sample table.
Will set all items to value specified by properties if no pValues array provided.
| SampleProperties | Sample properties | |
| NumItems | Number of table items | |
| pValues | Array of values, 0 to not set |
| void SPATMOD::IMAGE::SAMPLETABLE::Exchange | ( | SAMPLETABLE & | other | ) |
Exchange data with another sample table.
| other | Table to exchange with |
| UINT32 SPATMOD::IMAGE::SAMPLETABLE::GetNumItems | ( | ) | const [inline] |
Get number of items in table.
| const void* SPATMOD::IMAGE::SAMPLETABLE::GetPtrItem | ( | UINT32 | ItemIndex | ) | const [inline] |
Get pointer to single item.
For efficiency should not be used in pixel processing loops.
| void* SPATMOD::IMAGE::SAMPLETABLE::GetPtrItems | ( | ) | [inline] |
Get pointer to table items (non-const).
| const void* SPATMOD::IMAGE::SAMPLETABLE::GetPtrItems | ( | ) | const [inline] |
Get pointer to table items.
| const SAMPLE& SPATMOD::IMAGE::SAMPLETABLE::GetSampleProperties | ( | ) | const [inline] |
Get sample properties.
| SAMPLETABLE& SPATMOD::IMAGE::SAMPLETABLE::operator= | ( | const SAMPLETABLE & | rhs | ) |
Assignment.
Set all items to same value.
| value | Sample value to set |
Set single table item with index and range validation.
| index | Index in table | |
| value | Value to sets |
Set single table item with index and property validation.
| index | Index in table | |
| value | Sample value to set |
| ERRVALUE SPATMOD::IMAGE::SAMPLETABLE::SetItems | ( | UINT32 | StartIndex, | |
| const void * | pValues, | |||
| UINT32 | NumItems = 1 | |||
| ) |
Set table items.
| StartIndex | Starting index in table | |
| pValues | Pointer to sample values to set, must be correct type | |
| NumItems | Number of items to set |
1.6.1