Helios++
Helios software for LiDAR simulations
|
Loader for tiff files. More...
#include <GeoTiffFileLoader.h>
Public Member Functions | |
GeoTiffFileLoader () | |
Base constructor for tiff files loader. More... | |
ScenePart * | run () |
void | obtainCRS (GDALDataset *tiff) |
Obtain coordinate reference system. More... | |
void | obtainLayer (GDALDataset *tiff) |
Obtain layer from tiff. More... | |
void | obtainRaster (GDALDataset *tiff) |
Obtain raster from tiff. More... | |
void | obtainEnvelope (GDALDataset *tiff) |
Obtain envelope from tiff. More... | |
void | fillVertices () |
Fill vertices with raster data. These vertices must be released with function releaseVertices. More... | |
void | releaseVertices () |
Release vertices previously obtained through fillVertices function. More... | |
void | buildTriangles () |
Build triangles from vertices. | |
![]() | |
AbstractGeometryFilter (ScenePart *parts_) | |
Base constructor for asset loading filters. More... | |
std::shared_ptr< Material > | getMaterial (std::string materialName) |
Retrieve requested material by name. More... | |
std::vector< std::shared_ptr< Material > > | parseMaterials () |
Parse materials specified through "matfile", which can be concreted through "matname" parameter. It can also handle random materials when parameter "randomMaterials" is set. More... | |
Public Attributes | |
std::shared_ptr< OGRSpatialReference > | sourceCRS |
Source coordinate reference system. | |
OGRLayer * | layer = nullptr |
Tiff layer. | |
GDALRasterBand * | raster = nullptr |
Tiff raster. | |
OGREnvelope * | env = nullptr |
Tiff envelope. | |
int | rasterWidth |
Number of elements per raster along x axis. | |
int | rasterHeight |
Number of elements per raster along y axis. | |
double | minx |
Minimum value for x coordinate (starting point) | |
double | miny |
Minimum value for y coordinate (starting point) | |
double | width |
Length of x axis. | |
double | height |
Length of y axis. | |
double | pixelWidth |
Width divided by rasterWidth. More... | |
double | pixelHeight |
Height divided by rasterHeight. More... | |
Vertex *** | vertices = nullptr |
Vertices from tiff. Obtain using the fillVertices function and release using releaseVertices function. More... | |
const double | eps = 0.0000001 |
![]() | |
OGRSpatialReference * | sourceCRS |
std::map< std::string, ObjectT > | params |
Available parameters. | |
std::map< std::string, Material > | materials |
Available materials. | |
ScenePart * | primsOut = nullptr |
ScenePart used to build the output. Not strictly necessary for any filter. | |
Loader for tiff files.
|
inline |
Base constructor for tiff files loader.
void GeoTiffFileLoader::fillVertices | ( | ) |
Fill vertices with raster data. These vertices must be released with function releaseVertices.
void GeoTiffFileLoader::obtainCRS | ( | GDALDataset * | tiff | ) |
Obtain coordinate reference system.
void GeoTiffFileLoader::obtainEnvelope | ( | GDALDataset * | tiff | ) |
Obtain envelope from tiff.
void GeoTiffFileLoader::obtainLayer | ( | GDALDataset * | tiff | ) |
Obtain layer from tiff.
void GeoTiffFileLoader::obtainRaster | ( | GDALDataset * | tiff | ) |
Obtain raster from tiff.
void GeoTiffFileLoader::releaseVertices | ( | ) |
Release vertices previously obtained through fillVertices function.
|
virtual |
Implements AbstractGeometryFilter.
double GeoTiffFileLoader::pixelHeight |
Height divided by rasterHeight.
double GeoTiffFileLoader::pixelWidth |
Width divided by rasterWidth.
Vertex*** GeoTiffFileLoader::vertices = nullptr |
Vertices from tiff. Obtain using the fillVertices function and release using releaseVertices function.