Class to represent a single image tile.  
 More...
#include <RawTile.h>
 | 
|   | RawTile (int tn=0, int res=0, int hs=0, int vs=0, int w=0, int h=0, int c=0, int b=0) | 
|   | Main constructor.  
  | 
|   | 
| 
  | ~RawTile () | 
|   | Destructor to free the data array if is has previously be allocated locally. 
  | 
|   | 
| 
  | RawTile (const RawTile &tile) | 
|   | Copy constructor - handles copying of data buffer. 
  | 
|   | 
| 
RawTile &  | operator= (const RawTile &tile) | 
|   | Copy assignment constructor. 
  | 
|   | 
| void  | allocate (uint32_t size=0) | 
|   | Allocate memory for the tile.  
  | 
|   | 
| 
void  | deallocate (void *buffer) | 
|   | Free our data buffer. 
  | 
|   | 
| void  | crop (const unsigned int w, const unsigned int h) | 
|   | Crop tile to the defined dimensions.  
  | 
|   | 
 | 
| 
std::string  | filename | 
|   | Name of the file from which this tile comes. 
  | 
|   | 
| 
unsigned int  | width | 
|   | The width in pixels of this tile. 
  | 
|   | 
| 
unsigned int  | height | 
|   | The height in pixels of this tile. 
  | 
|   | 
| 
int  | channels | 
|   | The number of channels for this tile. 
  | 
|   | 
| 
int  | bpc | 
|   | The number of bits per channel for this tile. 
  | 
|   | 
| 
SampleType  | sampleType | 
|   | Sample format type (fixed or floating point) 
  | 
|   | 
| 
CompressionType  | compressionType | 
|   | Compression type. 
  | 
|   | 
| 
int  | quality | 
|   | Compression rate or quality. 
  | 
|   | 
| 
time_t  | timestamp | 
|   | Tile timestamp. 
  | 
|   | 
| 
int  | tileNum | 
|   | The tile number for this tile. 
  | 
|   | 
| 
int  | resolution | 
|   | The resolution number to which this tile belongs. 
  | 
|   | 
| 
int  | hSequence | 
|   | The horizontal angle to which this tile belongs. 
  | 
|   | 
| 
int  | vSequence | 
|   | The vertical angle to which this tile belongs. 
  | 
|   | 
| 
uint32_t  | capacity | 
|   | Amount of memory actually allocated in bytes. 
  | 
|   | 
| 
uint32_t  | dataLength | 
|   | The size of the data pointed to by the data pointer in bytes. 
  | 
|   | 
| int  | memoryManaged | 
|   | 
| 
void *  | data | 
|   | Pointer to the image data. 
  | 
|   | 
 | 
| 
int  | operator== (const RawTile &A, const RawTile &B) | 
|   | Overloaded equality operator. 
  | 
|   | 
| 
int  | operator!= (const RawTile &A, const RawTile &B) | 
|   | Overloaded non-equality operator. 
  | 
|   | 
Class to represent a single image tile. 
 
◆ RawTile()
  
  
      
        
          | RawTile::RawTile  | 
          ( | 
          int  | 
          tn = 0,  | 
         
        
           | 
           | 
          int  | 
          res = 0,  | 
         
        
           | 
           | 
          int  | 
          hs = 0,  | 
         
        
           | 
           | 
          int  | 
          vs = 0,  | 
         
        
           | 
           | 
          int  | 
          w = 0,  | 
         
        
           | 
           | 
          int  | 
          h = 0,  | 
         
        
           | 
           | 
          int  | 
          c = 0,  | 
         
        
           | 
           | 
          int  | 
          b = 0  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Main constructor. 
- Parameters
 - 
  
    | tn | tile number  | 
    | res | resolution  | 
    | hs | horizontal sequence angle  | 
    | vs | vertical sequence angle  | 
    | w | tile width  | 
    | h | tile height  | 
    | c | number of channels  | 
    | b | bits per channel per sample  | 
  
   
 
 
◆ allocate()
  
  
      
        
          | void RawTile::allocate  | 
          ( | 
          uint32_t  | 
          size = 0 | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ crop()
  
  
      
        
          | void RawTile::crop  | 
          ( | 
          const unsigned int  | 
          w,  | 
         
        
           | 
           | 
          const unsigned int  | 
          h  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
◆ memoryManaged
      
        
          | int RawTile::memoryManaged | 
        
      
 
This tracks whether we have allocated memory locally for data or whether it is simply a pointer This is used in the destructor to make sure we deallocate correctly 
Referenced by allocate(), crop(), operator=(), RawTile(), and ~RawTile().
 
 
The documentation for this class was generated from the following file: