95 Tile(std::vector<Tile*>* tilesVec);
110 Tile(std::vector<Tile*>* tilesVec,
const r_Minterval& resDom);
123 Tile(
const Tile* projTile,
const r_Minterval& projDom,
const std::set<r_Dimension, std::less<r_Dimension> >* projDim);
135 Tile(
const r_Minterval& newDom,
const BaseType* newType, r_Data_Format newFormat = r_Array);
141 Tile(
const r_Minterval& newDom,
const BaseType* newType,
char* newCells, r_Bytes newSize = 0, r_Data_Format newFormat = r_Array);
150 Tile(
const r_Minterval& newDom,
const BaseType* newType,
const char* newCells,
bool, r_Bytes newSize = 0, r_Data_Format newFormat = r_Array);
182 const char*
getCell(r_Area index)
const;
187 void setCell(r_Area index,
const char* newCell);
189 char*
getCell(
const r_Point& aPoint);
191 const char*
getCell(
const r_Point& aPoint)
const;
206 void printStatus(
unsigned int level = 0, std::ostream &stream = std::cout)
const;
217 std::vector<Tile*>*
splitTile(r_Minterval resDom,
int storageDomain = 0);
235 char*
execCondenseOp(CondenseOp* myOp,
const r_Minterval& areaOp);
247 void execUnaryOp(UnaryOp* myOp,
const r_Minterval& areaRes,
const Tile* opTile,
const r_Minterval& areaOp);
256 void execBinaryOp( BinaryOp* myOp,
const r_Minterval& areaRes,
257 const Tile* op1Tile,
const r_Minterval& areaOp1,
258 const Tile* op2Tile,
const r_Minterval& areaOp2);
268 virtual void execConstOp( BinaryOp* myOp,
const r_Minterval& areaRes,
269 const Tile* opTile,
const r_Minterval& areaOp,
270 const char* cell,
int constPos = 1);
283 virtual void execMarrayOp(MarrayOp* myOp,
const r_Minterval& areaRes,
const r_Minterval& areaOp);
298 virtual void execScaleOp(
const Tile* opTile,
const r_Minterval& areaOp,
299 const r_Point& origin,
300 const std::vector<double>& scaleFactors);
316 const std::vector<double>& scaleFactors,
317 r_Minterval& areaScaled);
332 virtual void copyTile(
const r_Minterval& areaRes,
const Tile *opTile,
const r_Minterval& areaOp);
355 r_Bytes
calcOffset(
const r_Point& point)
const;
bool isCompressed() const
returns true if the contents are currently compressed and must be decompressed in order to be usefull...
void printStatus(unsigned int level=0, std::ostream &stream=std::cout) const
printed output for testing.
const Tile & operator=(const Tile &cell)
assignment operator (needed, as class uses dynamic memory).
const BaseType * getType() const
returns the BaseType of the tile.
r_Bytes getCompressedSize() const
returns size of the contents of the tile as stored in chars.
void execBinaryOp(BinaryOp *myOp, const r_Minterval &areaRes, const Tile *op1Tile, const r_Minterval &areaOp1, const Tile *op2Tile, const r_Minterval &areaOp2)
carries out binary function with self as result.
bool isPersistent() const
returns true for persistent instances.
int scaleGetDomain(const r_Minterval &areaOp, const std::vector< double > &scaleFactors, r_Minterval &areaScaled)
Definition: keyobject.hh:43
virtual void copyTile(const r_Minterval &areaRes, const Tile *opTile, const r_Minterval &areaOp)
copy a subcube from one tile to another
char * execCondenseOp(CondenseOp *myOp, const r_Minterval &areaOp)
carries out condense function (const)
static char * execGenCondenseOp(GenCondenseOp *myOp, const r_Minterval &areaOp)
executes general condense operation { myOp} in area { areaOp} (const)
virtual void execMarrayOp(MarrayOp *myOp, const r_Minterval &areaRes, const r_Minterval &areaOp)
fills tile in area { areaRes} using MarrayOp { myOp}.
virtual void execScaleOp(const Tile *opTile, const r_Minterval &areaOp, const r_Point &origin, const std::vector< double > &scaleFactors)
executes scaling operation.
const BaseType * type
pointer to base type for cells of Tile.
Definition: tile.hh:363
void execUnaryOp(UnaryOp *myOp, const r_Minterval &areaRes, const Tile *opTile, const r_Minterval &areaOp)
carries out unary function with self as result.
virtual void execConstOp(BinaryOp *myOp, const r_Minterval &areaRes, const Tile *opTile, const r_Minterval &areaOp, const char *cell, int constPos=1)
carries out binary function with self as result.
const r_Minterval & getDomain() const
returns the spatial domain of the tile.
r_Bytes getSize() const
returns size of the (uncompressed) contents of the tile in chars.
r_Bytes calcOffset(const r_Point &point) const
calculate offset in cells
virtual ~Tile()
virtual destructor.
const char * getContents() const
returns pointer to (uncompressed) contents of Tile.
Definition: relcatalogif/basetype.hh:66
const char * getCell(r_Area index) const
access to cell for reading (index is 1D) one cell length is basetype length.
void setPersistent(bool state=true)
Tile(const r_Minterval &newDom, const BaseType *newType, DBTileId newBLOBTile)
Module: { raslib}.
Definition: rmdebug.hh:298
r_Data_Format getDataFormat() const
returns the format of the data maintained by the tile
r_Minterval domain
spatial domain of the tile.
Definition: tile.hh:361
DBTileId blobTile
Smart pointer to the persistent BLOBTile.
Definition: tile.hh:365
void setContents(char *newContents)
sets (uncompressed) contents of Tile.
std::vector< Tile * > * splitTile(r_Minterval resDom, int storageDomain=0)
splits tile in vector of tiles of smaller size.
r_Dimension getDimension() const
returns the dimension of the tile.
void setCell(r_Area index, const char *newCell)
set cell (index is 1D).