QGIS API Documentation
4.3.0-Master (4ecdf0f3f59)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
3d
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
18
#include "moc_qgsgeotransform.cpp"
19
21
22
QgsGeoTransform::QgsGeoTransform( Qt3DCore::QNode *parent )
23
:
Qt3DCore
::QTransform( parent )
24
{}
25
26
void
QgsGeoTransform::setGeoTranslation(
const
QgsVector3D
&translation )
27
{
28
mTranslation = translation;
29
setTranslation( ( mTranslation - mOrigin ).toVector3D() );
30
}
31
32
void
QgsGeoTransform::setOrigin(
const
QgsVector3D
&origin )
33
{
34
mOrigin = origin;
35
setTranslation( ( mTranslation - mOrigin ).toVector3D() );
36
}
37
QgsVector3D
A 3D vector (similar to QVector3D) with the difference that it uses double precision instead of singl...
Definition
qgsvector3d.h:33
Qt3DCore
Definition
qgsabstract3drenderer.h:33
qgsgeotransform.h
Generated on
for QGIS API Documentation by
1.17.0