Extrude Graphics

Loading

Code

#ifndef EXTRUDE_GRAPHICS_H
#define EXTRUDE_GRAPHICS_H

namespace Esri
{
  namespace ArcGISRuntime
  {
    class Scene;
    class SceneQuickView;
  }
}

#include "Polygon.h"
#include <QQuickItem>

class ExtrudeGraphics : public QQuickItem
{
  Q_OBJECT

public:
  explicit ExtrudeGraphics(QQuickItem* parent = nullptr);
  ~ExtrudeGraphics();

  void componentComplete() Q_DECL_OVERRIDE;
  static void init();

private:
  Esri::ArcGISRuntime::Polygon createPolygonFromPoints(QList<Esri::ArcGISRuntime::Point>);

  Esri::ArcGISRuntime::Scene* m_scene = nullptr;
  Esri::ArcGISRuntime::SceneQuickView* m_sceneView = nullptr;
  QUrl m_elevationSourceUrl = QUrl("http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer");
  int m_maxZ = 1000;
  double m_size = 0.01;
};

#endif // EXTRUDE_GRAPHICS_H


In this topic
  1. Code