iLand
Classes | Functions
gisgrid.h File Reference
#include <QString>
#include <QPointF>
#include <QRectF>
#include "grid.h"

Go to the source code of this file.

Classes

struct  SCoordTrans
 
class  GisGrid
 GisGrid encapsulates a simple grid of values based on GIS data. More...
 

Functions

void setupGISTransformation (const double offsetx, const double offsety, const double offsetz, const double angle_degree)
 GIS Transformation The transformation is defined by three offsets (x,y,z) and a rotation information. More...
 
void worldToModel (const Vector3D &From, Vector3D &To)
 
void modelToWorld (const Vector3D &From, Vector3D &To)
 
QPointF modelToWorld (QPointF model_coordinates)
 
QPointF worldToModel (QPointF world_coordinates)
 

Function Documentation

◆ modelToWorld() [1/2]

void modelToWorld ( const Vector3D From,
Vector3D To 
)

◆ modelToWorld() [2/2]

QPointF modelToWorld ( QPointF  model_coordinates)

◆ setupGISTransformation()

void setupGISTransformation ( const double  offsetx,
const double  offsety,
const double  offsetz,
const double  angle_degree 
)

GIS Transformation The transformation is defined by three offsets (x,y,z) and a rotation information.

the (x/y) denotes the real-world coordinates of the left lower edge of the grid (at least for the northern hemisphere), i.e. the (0/0). The z-offset is currently not used.

◆ worldToModel() [1/2]

void worldToModel ( const Vector3D From,
Vector3D To 
)

◆ worldToModel() [2/2]

QPointF worldToModel ( QPointF  world_coordinates)