diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.cpp b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.cpp new file mode 100644 index 0000000000..9bbd667187 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.cpp @@ -0,0 +1,97 @@ +// [WriteFile Name=Add3DTilesLayer, Category=Scenes] +// [Legal] +// Copyright 2023 Esri. + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// [Legal] + +#ifdef PCH_BUILD +#include "pch.hpp" +#endif // PCH_BUILD + +#include "Add3DTilesLayer.h" + +#include "ArcGISTiledElevationSource.h" +#include "Basemap.h" +#include "Camera.h" +#include "ElevationSourceListModel.h" +#include "Layer.h" +#include "LayerListModel.h" +#include "MapTypes.h" +#include "Ogc3dTilesLayer.h" +#include "Scene.h" +#include "SceneQuickView.h" +#include "Surface.h" + +using namespace Esri::ArcGISRuntime; + +Add3DTilesLayer::Add3DTilesLayer(QObject* parent /* = nullptr */): + QObject(parent), + m_scene(new Scene(BasemapStyle::ArcGISDarkGray, this)) +{ + // create a new elevation source from Terrain3D REST service + ArcGISTiledElevationSource* elevationSource = new ArcGISTiledElevationSource( + QUrl("https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer"), this); + + // add the elevation source to the scene to display elevation + m_scene->baseSurface()->elevationSources()->append(elevationSource); + + add3DTilesLayer(); +} + +Add3DTilesLayer::~Add3DTilesLayer() = default; + +void Add3DTilesLayer::init() +{ + // Register classes for QML + qmlRegisterType("Esri.Samples", 1, 0, "SceneView"); + qmlRegisterType("Esri.Samples", 1, 0, "Add3DTilesLayerSample"); +} + +SceneQuickView* Add3DTilesLayer::sceneView() const +{ + return m_sceneView; +} + +// Set the view (created in QML) +void Add3DTilesLayer::setSceneView(SceneQuickView* sceneView) +{ + if (!sceneView || sceneView == m_sceneView) + return; + + m_sceneView = sceneView; + m_sceneView->setArcGISScene(m_scene); + + emit sceneViewChanged(); + + setInitialViewpoint(); +} + +void Add3DTilesLayer::add3DTilesLayer() +{ + const QUrl modelPath = QUrl("https://tiles.arcgis.com/tiles/N82JbI5EYtAkuUKU/arcgis/rest/services/Stuttgart/3DTilesServer/tileset.json"); + m_ogc3dTilesLayer = new Ogc3dTilesLayer(modelPath, this); + m_scene->operationalLayers()->append(m_ogc3dTilesLayer); +} + +void Add3DTilesLayer::setInitialViewpoint() +{ + // add a camera + constexpr double latitude = 48.8418; + constexpr double longitude = 9.1536; + constexpr double altitude = 1325.0; + constexpr double heading = 48.3497; + constexpr double pitch = 57.8414; + constexpr double roll = 0.0; + const Camera sceneCamera(latitude, longitude, altitude, heading, pitch, roll); + m_sceneView->setViewpointCameraAndWait(sceneCamera); +} diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.h b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.h new file mode 100644 index 0000000000..b7a1cd0bf2 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.h @@ -0,0 +1,59 @@ +// [WriteFile Name=Add3DTilesLayer, Category=Scenes] +// [Legal] +// Copyright 2023 Esri. + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// [Legal] + +#ifndef ADD3DTILESLAYER_H +#define ADD3DTILESLAYER_H + +namespace Esri::ArcGISRuntime +{ +class Scene; +class SceneQuickView; +class Ogc3dTilesLayer; +} + +#include + +Q_MOC_INCLUDE("SceneQuickView.h"); + +class Add3DTilesLayer : public QObject +{ + Q_OBJECT + + Q_PROPERTY(Esri::ArcGISRuntime::SceneQuickView* sceneView READ sceneView WRITE setSceneView NOTIFY sceneViewChanged) + +public: + explicit Add3DTilesLayer(QObject* parent = nullptr); + ~Add3DTilesLayer() override; + static void init(); + +signals: + void sceneViewChanged(); + +private: + Esri::ArcGISRuntime::SceneQuickView* sceneView() const; + void setSceneView(Esri::ArcGISRuntime::SceneQuickView* sceneView); + + Esri::ArcGISRuntime::Scene* m_scene = nullptr; + Esri::ArcGISRuntime::SceneQuickView* m_sceneView = nullptr; + + // add 3D tiles layer + Esri::ArcGISRuntime::Ogc3dTilesLayer* m_ogc3dTilesLayer = nullptr; + void add3DTilesLayer(); + + void setInitialViewpoint(); +}; + +#endif // ADD3DTILESLAYER_H diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.pro b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.pro new file mode 100644 index 0000000000..5e8926fda8 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.pro @@ -0,0 +1,65 @@ +#------------------------------------------------- +# Copyright 2023 Esri. + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#------------------------------------------------- + +mac { + cache() +} + +#------------------------------------------------------------------------------- + +CONFIG += c++17 +#CONFIG+=build_from_setup + +# additional modules are pulled in via arcgisruntime.pri +QT += opengl qml quick + +TEMPLATE = app +TARGET = Add3DTilesLayer + +ARCGIS_RUNTIME_VERSION = 200.4.0 +include($$PWD/arcgisruntime.pri) + +#------------------------------------------------------------------------------- + +HEADERS += \ + Add3DTilesLayer.h + +SOURCES += \ + main.cpp \ + Add3DTilesLayer.cpp + +RESOURCES += Add3DTilesLayer.qrc + +#------------------------------------------------------------------------------- + +win32 { + LIBS += \ + Ole32.lib +} + +ios { + INCLUDEPATH += $$PWD + DEPENDPATH += $$PWD + + OTHER_FILES += \ + $$PWD/Info.plist + + QMAKE_INFO_PLIST = $$PWD/Info.plist +} + +android { + INCLUDEPATH += $$PWD + DEPENDPATH += $$PWD +} diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.qml b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.qml new file mode 100644 index 0000000000..349bce7e61 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.qml @@ -0,0 +1,38 @@ +// [WriteFile Name=Add3DTilesLayer, Category=Scenes] +// [Legal] +// Copyright 2023 Esri. + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// [Legal] + +import QtQuick +import QtQuick.Controls +import Esri.Samples + +Item { + + SceneView { + id: view + anchors.fill: parent + + Component.onCompleted: { + // Set and keep the focus on SceneView to enable keyboard navigation + forceActiveFocus(); + } + } + + // Declare the C++ instance which creates the scene etc. and supply the view + Add3DTilesLayerSample { + id: model + sceneView: view + } +} diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.qrc b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.qrc new file mode 100644 index 0000000000..4c18edcff8 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Add3DTilesLayer.qrc @@ -0,0 +1,11 @@ + + + README.metadata.json + Add3DTilesLayer.qml + Add3DTilesLayer.h + Add3DTilesLayer.cpp + main.qml + screenshot.png + README.md + + diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Info.plist b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Info.plist new file mode 100644 index 0000000000..0898fae514 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/Info.plist @@ -0,0 +1,55 @@ + + + + + CFBundleDisplayName + Add3DTilesLayer + CFBundleExecutable + Add3DTilesLayer + CFBundleGetInfoString + ArcGIS + CFBundleIcons~ipad + + CFBundleIdentifier + com.esri.${PRODUCT_NAME:rfc1034identifier} + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NOTE + This app is cool + UIFileSharingEnabled + FALSE + UIRequiresPersistentWiFi + NO + LSRequiresIPhoneOS + + NSLocationAlwaysUsageDescription + + NSLocationWhenInUseUsageDescription + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UILaunchStoryboardName + LaunchScreen + + + diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/README.md b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/README.md new file mode 100644 index 0000000000..39572f9796 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/README.md @@ -0,0 +1,34 @@ +# Add 3D tiles layer + +Add a layer to visualize 3D tiles data that conforms to the OGC 3D Tiles specification. + +![](screenshot.png) + +## Use case + +One possible use case could be is that when added to a scene, a 3D tiles layer can assist in performing visual analysis, such as line of sight analysis. A [line of sight analysis](https://developers.arcgis.com/documentation/mapping-apis-and-services/spatial-analysis/tutorials/apis/display-a-line-of-sight/) can be used to assess whether a view is obstructed between an observer and a target. + +## How to use the sample + +When loaded, the sample will display a scene with an `Ogc3DTilesLayer`. Pan around and zoom in to observe the scene of the `Ogc3DTilesLayer`. Notice how the layer's level of detail changes as you zoom in and out from the layer. + +## How it works + +1. Create a scene. +2. Create an `Ogc3DTilesLayer` with the URL to a 3D tiles layer service. +3. Add the layer to the scene's operational layers. + +## Relevant API + +* Ogc3DTilesLayer +* SceneView + +## About the data + +A layer to visualize 3D tiles data that conforms to the OGC 3D Tiles specification. As of 200.4, it supports analyses like viewshed and line of sight, but does not support other operations like individual feature identification. + +The 3D Tiles Open Geospatial Consortium (OGC) specification defines a spatial data structure and a set of tile formats designed for streaming and rendering 3D geospatial content. A 3D Tiles data set, known as a tileset, defines one or more tile formats organized into a hierarchical spatial data structure. For more information, see the [OGC 3D Tiles specification](https://www.ogc.org/standard/3DTiles). + +## Tags + +3d tiles, layers, OGC, OGC API, scene, service diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/README.metadata.json b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/README.metadata.json new file mode 100644 index 0000000000..5c97840e55 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/README.metadata.json @@ -0,0 +1,30 @@ +{ + "category": "Scenes", + "description": "Add a layer to visualize 3D tiles data that conforms to the OGC 3D Tiles specification.", + "featured": true, + "ignore": false, + "images": [ + "screenshot.png" + ], + "keywords": [ + "3D tiles", + "layers", + "OGC", + "OGC API", + "scene", + "service" + ], + "redirect_from": [ + "" + ], + "relevant_apis": [ + "Ogc3dTilesLayer", + "SceneView" + ], + "snippets": [ + "Add3DTilesLayer.cpp", + "Add3DTilesLayer.h", + "Add3DTilesLayer.qml" + ], + "title": "Add a 3D Tiles Layer" +} diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/arcgisruntime.pri b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/arcgisruntime.pri new file mode 100644 index 0000000000..0c3fdd8811 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/arcgisruntime.pri @@ -0,0 +1,29 @@ +#------------------------------------------------- +# Copyright 2023 Esri. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#------------------------------------------------- + +contains(QMAKE_HOST.os, Windows):{ + iniPath = $$(ALLUSERSPROFILE)\EsriRuntimeQt\ArcGIS Runtime SDK for Qt $${ARCGIS_RUNTIME_VERSION}.ini +} +else { + userHome = $$system(echo $HOME) + iniPath = $${userHome}/.config/EsriRuntimeQt/ArcGIS Runtime SDK for Qt $${ARCGIS_RUNTIME_VERSION}.ini +} +iniLine = $$cat($${iniPath}, "lines") +dirPath = $$find(iniLine, "InstallDir") +cleanDirPath = $$replace(dirPath, "InstallDir=", "") +priLocation = $$replace(cleanDirPath, '"', "") +!include($$priLocation/sdk/ideintegration/arcgis_runtime_qml_cpp.pri) { + message("Error. Cannot locate ArcGIS Runtime PRI file") +} diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/main.cpp b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/main.cpp new file mode 100644 index 0000000000..b29429b03f --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/main.cpp @@ -0,0 +1,96 @@ +// Copyright 2023 Esri. + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "Add3DTilesLayer.h" + +#include "ArcGISRuntimeEnvironment.h" + +#include +#include +#include +#include +#include + +#ifdef Q_OS_WIN +#include +#endif + +void setAPIKey(const QGuiApplication& app, QString apiKey); + +int main(int argc, char *argv[]) +{ +#if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID) + // Linux requires 3.2 OpenGL Context + // in order to instance 3D symbols + QSurfaceFormat fmt = QSurfaceFormat::defaultFormat(); + fmt.setVersion(3, 2); + QSurfaceFormat::setDefaultFormat(fmt); +#endif + + QGuiApplication app(argc, argv); + app.setApplicationName(QString("Add3DTilesLayer - C++")); + + // Access to Esri location services requires an API key. This can be copied below or used as a command line argument. + const QString apiKey = QString(""); + setAPIKey(app, apiKey); + + // Initialize the sample + Add3DTilesLayer::init(); + + // Initialize application view + QQmlApplicationEngine engine; + // Add the import Path + engine.addImportPath(QDir(QCoreApplication::applicationDirPath()).filePath("qml")); + +#ifdef ARCGIS_RUNTIME_IMPORT_PATH_2 + engine.addImportPath(ARCGIS_RUNTIME_IMPORT_PATH_2); +#endif + + // Set the source + engine.load(QUrl("qrc:/Samples/Scenes/Add3DTilesLayer/main.qml")); + + return app.exec(); +} + +// Use of Esri location services, including basemaps and geocoding, +// requires authentication using either an ArcGIS identity or an API Key. +// 1. ArcGIS identity: An ArcGIS named user account that is a member of an +// organization in ArcGIS Online or ArcGIS Enterprise. +// 2. API key: API key: a permanent key that grants access to +// location services and premium content in your applications. +// Visit your ArcGIS Developers Dashboard to create a new +// API key or access an existing API key. + +void setAPIKey(const QGuiApplication& app, QString apiKey) +{ + if (apiKey.isEmpty()) + { + // Try parsing API key from command line argument, which uses the following syntax "-k ". + QCommandLineParser cmdParser; + QCommandLineOption apiKeyArgument(QStringList{"k", "api"}, "The API Key property used to access Esri location services", "apiKeyInput"); + cmdParser.addOption(apiKeyArgument); + cmdParser.process(app); + + apiKey = cmdParser.value(apiKeyArgument); + + if (apiKey.isEmpty()) + { + qWarning() << "Use of Esri location services, including basemaps, requires" << + "you to authenticate with an ArcGIS identity or set the API Key property."; + return; + } + } + + Esri::ArcGISRuntime::ArcGISRuntimeEnvironment::setApiKey(apiKey); +} + diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/main.qml b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/main.qml new file mode 100644 index 0000000000..27b99d5a44 --- /dev/null +++ b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/main.qml @@ -0,0 +1,25 @@ +// Copyright 2023 Esri. + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 + +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +import QtQuick.Controls +import Esri.Samples + +ApplicationWindow { + visible: true + width: 800 + height: 600 + + Add3DTilesLayer { + anchors.fill: parent + } +} diff --git a/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/screenshot.png b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/screenshot.png new file mode 100644 index 0000000000..d25f584882 Binary files /dev/null and b/ArcGISRuntimeSDKQt_CppSamples/Scenes/Add3DTilesLayer/screenshot.png differ diff --git a/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_CppSamples/samples.pri b/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_CppSamples/samples.pri index 77c929a68d..6482bf508a 100644 --- a/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_CppSamples/samples.pri +++ b/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_CppSamples/samples.pri @@ -190,6 +190,7 @@ INCLUDEPATH += \ "$$SAMPLEPATHCPP/Routing/OfflineRouting" \ "$$SAMPLEPATHCPP/Routing/RouteAroundBarriers" \ "$$SAMPLEPATHCPP/Routing/ServiceArea" \ + "$$SAMPLEPATHCPP/Scenes/Add3DTilesLayer" \ "$$SAMPLEPATHCPP/Scenes/AddAPointSceneLayer" \ "$$SAMPLEPATHCPP/Scenes/AddIntegratedMeshLayer" \ "$$SAMPLEPATHCPP/Scenes/Animate3DSymbols" \ @@ -408,6 +409,7 @@ HEADERS += \ "$$SAMPLEPATHCPP/Routing/OfflineRouting/OfflineRouting.h" \ "$$SAMPLEPATHCPP/Routing/RouteAroundBarriers/RouteAroundBarriers.h" \ "$$SAMPLEPATHCPP/Routing/ServiceArea/ServiceArea.h" \ + "$$SAMPLEPATHCPP/Scenes/Add3DTilesLayer/Add3DTilesLayer.h" \ "$$SAMPLEPATHCPP/Scenes/AddAPointSceneLayer/AddAPointSceneLayer.h" \ "$$SAMPLEPATHCPP/Scenes/AddIntegratedMeshLayer/AddIntegratedMeshLayer.h" \ "$$SAMPLEPATHCPP/Scenes/Animate3DSymbols/Animate3DSymbols.h" \ @@ -627,6 +629,7 @@ SOURCES += \ "$$SAMPLEPATHCPP/Routing/OfflineRouting/OfflineRouting.cpp" \ "$$SAMPLEPATHCPP/Routing/RouteAroundBarriers/RouteAroundBarriers.cpp" \ "$$SAMPLEPATHCPP/Routing/ServiceArea/ServiceArea.cpp" \ + "$$SAMPLEPATHCPP/Scenes/Add3DTilesLayer/Add3DTilesLayer.cpp" \ "$$SAMPLEPATHCPP/Scenes/AddAPointSceneLayer/AddAPointSceneLayer.cpp" \ "$$SAMPLEPATHCPP/Scenes/AddIntegratedMeshLayer/AddIntegratedMeshLayer.cpp" \ "$$SAMPLEPATHCPP/Scenes/Animate3DSymbols/Animate3DSymbols.cpp" \ @@ -837,6 +840,7 @@ RESOURCES += \ "$$SAMPLEPATHCPP/Routing/OfflineRouting/OfflineRouting.qrc" \ "$$SAMPLEPATHCPP/Routing/RouteAroundBarriers/RouteAroundBarriers.qrc" \ "$$SAMPLEPATHCPP/Routing/ServiceArea/ServiceArea.qrc" \ + "$$SAMPLEPATHCPP/Scenes/Add3DTilesLayer/Add3DTilesLayer.qrc" \ "$$SAMPLEPATHCPP/Scenes/AddAPointSceneLayer/AddAPointSceneLayer.qrc" \ "$$SAMPLEPATHCPP/Scenes/AddIntegratedMeshLayer/AddIntegratedMeshLayer.qrc" \ "$$SAMPLEPATHCPP/Scenes/Animate3DSymbols/Animate3DSymbols.qrc" \ diff --git a/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_Samples/mainSample.cpp b/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_Samples/mainSample.cpp index bee7c7299a..7c8bf0bc2a 100644 --- a/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_Samples/mainSample.cpp +++ b/ArcGISRuntimeSDKQt_SampleViewers/ArcGISRuntimeSDKQt_Samples/mainSample.cpp @@ -59,6 +59,7 @@ // All CPP Samples #ifdef CPP_VIEWER +#include "Add3DTilesLayer.h" #include "AddAPointSceneLayer.h" #include "AddCustomDynamicEntityDataSource.h" #include "AddDynamicEntityLayer.h" @@ -376,6 +377,7 @@ void registerCppSampleClasses() #ifdef CPP_VIEWER // Register the C++ Samples under the Esri.Samples namespace + Add3DTilesLayer::init(); AddAPointSceneLayer::init(); AddCustomDynamicEntityDataSource::init(); AddDynamicEntityLayer::init();