Skip to content

Commit

Permalink
1.1: stable
Browse files Browse the repository at this point in the history
  • Loading branch information
zvezdochiot committed Dec 27, 2022
1 parent c1e02a0 commit 237fc30
Show file tree
Hide file tree
Showing 138 changed files with 251 additions and 193 deletions.
160 changes: 160 additions & 0 deletions QtEarth.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
TEMPLATE = app
TARGET = QtEarth

QT = core gui opengl network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

#uncomment next line if you want to use elevation databases
#CONFIG += using_gdal
#uncomment next line if you want to use satellite imagery
#CONFIG += using_proj4
#uncomment next line if you want to load 3D models
#CONFIG += using_assimp

QMAKE_CXXFLAGS += -fpermissive -Isrc

win32 {
LIBS += -lopengl32
} else {
LIBS += -lGLU
}

CONFIG(using_gdal) {
win32 {
INCLUDEPATH += FWTools/include
LIBS += -LFWTools/lib \
-lgdal_i
} else {
INCLUDEPATH += /usr/include/gdal
LIBS += -lgdal
}
}

CONFIG(using_proj4) {
win32 {
INCLUDEPATH += FWTools/include
LIBS += -LFWTools/lib \
-lproj_i
} else {
LIBS += -lproj
}
}

CONFIG(using_assimp) {
win32 {
INCLUDEPATH += assimp/include
LIBS += -Lassimp/bin32
}
LIBS += -lassimp
}

# build dir
UI_DIR = build
MOC_DIR = build
RCC_DIR = build
OBJECTS_DIR = build
mytarget.commands += $${QMAKE_MKDIR} build

HEADERS += src/AboutWindow.h \
src/Atmosphere.h \
src/Camera.h \
src/ColorSelectWidget.h \
src/Constants.h \
src/CrossPlatformSleep.h \
src/Earth.h \
src/ElevationManager.h \
src/EventListener.h \
src/EventPublisher.h \
src/ExampleExpirableObject.h \
src/ExampleFlyObject.h \
src/ExampleHelloWorld.h \
src/FileIO.h \
src/globals.h \
src/GLWidget.h \
src/Hud.h \
src/IconModelManager.h \
src/IconRenderer.h \
src/LabelTool.h \
src/LabelWindow.h \
src/MainWindow.h \
src/MeasuringTool.h \
src/MeasuringWindow.h \
src/MeshRenderer.h \
src/ModelRenderer.h \
src/NewPlaceDialog.h \
src/PathRenderer.h \
src/PathTool.h \
src/PathVolumeWindow.h \
src/PathWindow.h \
src/PlacesWindow.h \
src/SatelliteImageDownloader.h \
src/ShapefileReader.h \
src/ShapeRenderer.h \
src/Tool.h \
src/ToolManager.h \
src/TrackInfoWindow.h \
src/Utilities.h \
src/VolumeRenderer.h \
src/VolumeTool.h \
src/VolumeWindow.h \
src/WorldObject.h \
src/WorldObjectManager.h


SOURCES += src/AboutWindow.cpp \
src/Atmosphere.cpp \
src/Camera.cpp \
src/ColorSelectWidget.cpp \
src/CrossPlatformSleep.cpp \
src/Earth.cpp \
src/ElevationManager.cpp \
src/EventPublisher.cpp \
src/ExampleExpirableObject.cpp \
src/ExampleFlyObject.cpp \
src/ExampleHelloWorld.cpp \
src/FileIO.cpp \
src/GLWidget.cpp \
src/Hud.cpp \
src/IconModelManager.cpp \
src/IconRenderer.cpp \
src/LabelTool.cpp \
src/LabelWindow.cpp \
src/main.cpp \
src/MainWindow.cpp \
src/MeasuringTool.cpp \
src/MeasuringWindow.cpp \
src/MeshRenderer.cpp \
src/ModelRenderer.cpp \
src/NewPlaceDialog.cpp \
src/PathRenderer.cpp \
src/PathTool.cpp \
src/PathVolumeWindow.cpp \
src/PathWindow.cpp \
src/PlacesWindow.cpp \
src/SatelliteImageDownloader.cpp \
src/ShapefileReader.cpp \
src/ShapeRenderer.cpp \
src/Tool.cpp \
src/ToolManager.cpp \
src/TrackInfoWindow.cpp \
src/Utilities.cpp \
src/VolumeRenderer.cpp \
src/VolumeTool.cpp \
src/VolumeWindow.cpp \
src/WorldObject.cpp \
src/WorldObjectManager.cpp


FORMS += src/AboutWindow.ui \
src/LabelWindow.ui \
src/MainWindow.ui \
src/MeasuringWindow.ui \
src/NewPlaceDialog.ui \
src/PathVolumeWindow.ui \
src/PathWindow.ui \
src/PlacesWindow.ui \
src/TrackInfoWindow.ui \
src/VolumeWindow.ui

RESOURCES += QtEarth.qrc
46 changes: 46 additions & 0 deletions QtEarth.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<RCC>
<qresource>
<file>images/icons/airDefenseFriend.png</file>
<file>images/icons/airDefenseHostile.png</file>
<file>images/icons/airDefenseNeutral.png</file>
<file>images/icons/airDefenseUnknown.png</file>
<file>images/icons/fixedWingFriend.png</file>
<file>images/icons/fixedWingHostile.png</file>
<file>images/icons/fixedWingNeutral.png</file>
<file>images/icons/fixedWingUnknown.png</file>
<file>images/icons/groundVehicleFriend.png</file>
<file>images/icons/groundVehicleHostile.png</file>
<file>images/icons/groundVehicleNeutral.png</file>
<file>images/icons/groundVehicleUnknown.png</file>
<file>images/icons/icon.ico</file>
<file>images/icons/icon.jpg</file>
<file>images/icons/label.png</file>
<file>images/icons/launcherFriend.png</file>
<file>images/icons/launcherHostile.png</file>
<file>images/icons/launcherNeutral.png</file>
<file>images/icons/launcherUnknown.png</file>
<file>images/icons/measure.png</file>
<file>images/icons/missileFriend.png</file>
<file>images/icons/missileHostile.png</file>
<file>images/icons/missileNeutral.png</file>
<file>images/icons/missileUnknown.png</file>
<file>images/icons/path.png</file>
<file>images/icons/rotaryWingFriend.png</file>
<file>images/icons/rotaryWingHostile.png</file>
<file>images/icons/rotaryWingNeutral.png</file>
<file>images/icons/rotaryWingUnknown.png</file>
<file>images/icons/uavFriend.png</file>
<file>images/icons/uavHostile.png</file>
<file>images/icons/uavNeutral.png</file>
<file>images/icons/uavUnknown.png</file>
<file>images/icons/unknown.png</file>
<file>images/icons/viewMode.png</file>
<file>images/icons/volume.png</file>
<file>images/atmosphere.png</file>
<file>images/blueMarble.jpg</file>
<file>images/splash.jpg</file>
<file>images/stars2.png</file>
<file>images/stars.jpg</file>
<file>models/jeep1.3ds</file>
</qresource>
</RCC>
47 changes: 23 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<img src="http://www.huesoftllc.com/slider1.jpg" width=400>
![GitHub release (latest by date)](https://img.shields.io/github/v/release/Geo-Linux-Calculations/qtearth)
![GitHub Release Date](https://img.shields.io/github/release-date/Geo-Linux-Calculations/qtearth)
![GitHub repo size](https://img.shields.io/github/repo-size/Geo-Linux-Calculations/qtearth)
![GitHub all releases](https://img.shields.io/github/downloads/Geo-Linux-Calculations/qtearth/total)
![GitHub](https://img.shields.io/github/license/Geo-Linux-Calculations/qtearth)

# QtSimpleEarth

SimpleEarth
=========

[SimpleEarth][1] is a simplistic multi-platform virtual globe. It works on Windows, Linux and OS X. SimpleEarth is Fast, Free and super Easy to use.
![about](images/splash.jpg)

[QtSimpleEarth][1] is a simplistic multi-platform virtual globe. It works on Windows, Linux and OS X. QtSimpleEarth is Fast, Free and super Easy to use.

### Build and run SimpleEarth ###

[See Installation Instructions][2]


Main features
-------------
* Simple code you can learn and leverage
Expand All @@ -21,38 +23,35 @@ Main features
* Supports satellite imagery
* Supports 3D model loading


Build Requirements
------------------

* Qt5 or Qt4 (MinGW under Windows)
* Other optional libraries if using extra features [See Installation Instructions][2]


Runtime Requirements
--------------------
* Graphics card with OpenGL support


Hello World
-----------

To start understanding the code and API, look at WorldObject and WorldObjectManager classes and the globals.h header file. The hello world example emplaces a label in the world with the following code:

//instantiate world object and set label<br>
WorldObject* worldObject = new WorldObject();<br>
worldObject->setLabel("Hello World!");<br>

//set world object position<br>
GeodeticPosition position;<br>
position.latitude = 0.0; //in decimal degrees<br>
position.longitude = 0.0;<br>
position.altitude = 1.0; //in Km<br>
worldObject->setGeodeticPosition(position);<br>

//add world object to manager so that it gets rendered<br>
WorldObjectManager::getInstance()->addWorldObject(worldObject);<br>

```cpp
//instantiate world object and set label
WorldObject* worldObject = new WorldObject();
worldObject->setLabel("Hello World!");

//set world object position
GeodeticPosition position;
position.latitude = 0.0; //in decimal degrees
position.longitude = 0.0;
position.altitude = 1.0; //in Km
worldObject->setGeodeticPosition(position);

//add world object to manager so that it gets rendered
WorldObjectManager::getInstance()->addWorldObject(worldObject);
```
Contact us
----------
Expand Down
Loading

0 comments on commit 237fc30

Please sign in to comment.