rasdaman API
|
#include <tiling.hh>
Public Member Functions | |
r_Size_Tiling (const char *encoded) throw (r_Error) | |
Constructor that reads everything from a string e.g."100". More... | |
r_Size_Tiling (r_Bytes ts=RMInit::clientTileSize) | |
Constructor for this object (Takes tile size as parameter) More... | |
virtual | ~r_Size_Tiling () |
does not do anything More... | |
r_Bytes | get_tile_size () const |
Gets the current tile size. More... | |
virtual void | print_status (std::ostream &os) const |
Prints the current status of the object. More... | |
virtual bool | is_compatible (const r_Minterval &obj_domain, r_Bytes cellTypeSize) const |
returns true if the cellTypeSize is smaller or equal to the tile size and obj_domain has more than 0 dimensions More... | |
virtual std::vector < r_Minterval > * | compute_tiles (const r_Minterval &obj_domain, r_Bytes cellTypeSize) const throw (r_Error) |
Decompose an object in tiles. More... | |
virtual r_Tiling * | clone () const |
Clones this object. More... | |
virtual r_Tiling_Scheme | get_tiling_scheme () const |
![]() | |
virtual | ~r_Tiling () |
does not do anything More... | |
Static Public Attributes | |
static const char * | description |
![]() | |
static const char * | ASTERIX |
static const char * | TCOLON |
static const char * | TCOMMA |
static const char * | LSQRBRA |
static const char * | RSQRBRA |
static const long | DefaultBase |
Protected Attributes | |
r_Bytes | tile_size |
Tile size. More... | |
r_Size_Tiling::r_Size_Tiling | ( | const char * | encoded | ) | |
throw | ( | r_Error | |||
) |
Constructor that reads everything from a string e.g."100".
r_Size_Tiling::r_Size_Tiling | ( | r_Bytes | ts = RMInit::clientTileSize | ) |
Constructor for this object (Takes tile size as parameter)
|
virtual |
does not do anything
|
virtual |
Clones this object.
This method provides the core funcionality of this class. All derived classes must implement it. As input parameters it takes the big object to be decomposed and returns a set of tiles that compose the big object. This method throws an exeception when the dimension specified, extend or the cell_size are incompatible with the current tiling. You can check compatibility by invoking is_compatible.
Implements r_Tiling.
Reimplemented in r_Stat_Tiling, r_Dimension_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.
|
virtual |
Decompose an object in tiles.
Implements r_Tiling.
Reimplemented in r_Stat_Tiling, r_Dimension_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.
r_Bytes r_Size_Tiling::get_tile_size | ( | ) | const |
Gets the current tile size.
|
virtual |
This method is similar to a copy constructor, this is, is returns a copy of the current object. Derived classes must explicitly implement this method.
Implements r_Tiling.
Reimplemented in r_Stat_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.
|
virtual |
returns true if the cellTypeSize is smaller or equal to the tile size and obj_domain has more than 0 dimensions
Implements r_Tiling.
Reimplemented in r_Dimension_Tiling, and r_Dir_Tiling.
|
virtual |
Prints the current status of the object.
Implements r_Tiling.
Reimplemented in r_Stat_Tiling, r_Dimension_Tiling, r_Aligned_Tiling, r_Interest_Tiling, and r_Dir_Tiling.
|
static |
|
protected |
Tile size.