![]() |
libimgdoc2
|
This interface is providing read-only access to the document. More...
#include <IDocQuery2d.h>
Public Member Functions | |
virtual void | ReadTileInfo (imgdoc2::dbIndex idx, imgdoc2::ITileCoordinateMutate *coordinate, imgdoc2::LogicalPositionInfo *info, imgdoc2::TileBlobInfo *tile_blob_info)=0 |
virtual void | Query (const imgdoc2::IDimCoordinateQueryClause *clause, const imgdoc2::ITileInfoQueryClause *tileInfoQuery, const std::function< bool(imgdoc2::dbIndex)> &func)=0 |
virtual void | GetTilesIntersectingRect (const imgdoc2::RectangleD &rect, const imgdoc2::IDimCoordinateQueryClause *coordinate_clause, const imgdoc2::ITileInfoQueryClause *tileinfo_clause, const std::function< bool(imgdoc2::dbIndex)> &func)=0 |
virtual void | ReadTileData (imgdoc2::dbIndex idx, imgdoc2::IBlobOutput *data)=0 |
IDocQuery2d (const IDocQuery2d &)=delete | |
IDocQuery2d & | operator= (const IDocQuery2d &)=delete |
IDocQuery2d (IDocQuery2d &&)=delete | |
IDocQuery2d & | operator= (IDocQuery2d &&)=delete |
This interface is providing read-only access to the document.
|
pure virtual |
Gets tiles intersecting the specified rectangle (and satisfying the other criteria).
rect | The rectangle. |
coordinate_clause | The coordinate clause. |
tileinfo_clause | The tileinfo clause. |
func | The function. |
|
pure virtual |
Query the tiles table. The two query clauses are used to filter the tiles. The first clause is used to filter the tiles by their coordinates, the second by other "per tile data". The functor is called for each tile which matches the query. If the functor returns false, the enumeration is canceled, and no more calls to the functor will occur. The two query clauses are logically ANDed together.
clause | The query clause (dealing with dimension indexes). |
tileInfoQuery | The query clause (dealing with other "per tile data"). |
func | A functor which we will be called, passing in the index of tiles matching the query. If the functor returns false, the enumeration is canceled, and no more calls to the functor will occur. |
|
pure virtual |
Reads the tile data for the specified tile.
idx | The primary key of the tile for which the tile data is to be read. | |
[in] | data | The object which is receiving the blob data. |
|
pure virtual |
Reads tile information for the specified tile. There are three pieces of information which can be retrieved by this method, namely the tile-coordinate, the logical position and the tile-blob-info. If the respective pointers are null, the information will not be retrieved. If the row for the specified primary key does not exist, an exception of type "imgdoc2::non_existing_tile_exception" will be thrown.
idx | The primary key of the tile. | |
[out] | coordinate | If non-null and the operation is successful, the tile-coordinate will be put here. |
[out] | info | If non-null and the operation is successful, the logical position will be put here. |
[out] | tile_blob_info | If non-null and the operation is successful, the tile-blob-info will be put here. |