QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgsgeotransform.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsgeotransform.cpp
3 --------------------------------------
4 Date : November 2024
5 Copyright : (C) 2024 by Martin Dobias
6 Email : wonder dot sk at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#include "qgsgeotransform.h"
17#include "moc_qgsgeotransform.cpp"
18
19
21
22QgsGeoTransform::QgsGeoTransform( Qt3DCore::QNode *parent )
23 : Qt3DCore::QTransform( parent )
24{
25}
26
27void QgsGeoTransform::setGeoTranslation( const QgsVector3D &translation )
28{
29 mTranslation = translation;
30 setTranslation( ( mTranslation - mOrigin ).toVector3D() );
31}
32
33void QgsGeoTransform::setOrigin( const QgsVector3D &origin )
34{
35 mOrigin = origin;
36 setTranslation( ( mTranslation - mOrigin ).toVector3D() );
37}
38
Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double precisi...
Definition qgsvector3d.h:31