Skip to content

Commit

Permalink
Add CesiumImpl class.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Sep 6, 2024
1 parent e4dae96 commit 22eb15f
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 71 deletions.
5 changes: 2 additions & 3 deletions native~/Editor/src/CesiumEditorWindowImpl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <CesiumUtility/ReferenceCounted.h>
#include "CesiumImpl.h"

#include <DotNet/CesiumForUnity/Cesium3DTileset.h>
#include <DotNet/System/String.h>
Expand All @@ -15,8 +15,7 @@ class CesiumEditorWindow;

namespace CesiumForUnityNative {

class CesiumEditorWindowImpl
: public CesiumUtility::ReferenceCountedThreadSafe<CesiumEditorWindowImpl> {
class CesiumEditorWindowImpl : public CesiumImpl<CesiumEditorWindowImpl> {

public:
CesiumEditorWindowImpl(
Expand Down
6 changes: 3 additions & 3 deletions native~/Editor/src/CesiumIonSessionImpl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumAsync/AsyncSystem.h>
#include <CesiumAsync/IAssetAccessor.h>
#include <CesiumAsync/SharedFuture.h>
Expand All @@ -8,7 +10,6 @@
#include <CesiumIonClient/Defaults.h>
#include <CesiumIonClient/Profile.h>
#include <CesiumIonClient/Token.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/System/Collections/Generic/List1.h>
#include <DotNet/System/String.h>
Expand All @@ -34,8 +35,7 @@ class Token;
} // namespace CesiumIonClient

namespace CesiumForUnityNative {
class CesiumIonSessionImpl
: public CesiumUtility::ReferenceCountedThreadSafe<CesiumIonSessionImpl> {
class CesiumIonSessionImpl : public CesiumImpl<CesiumIonSessionImpl> {
public:
CesiumIonSessionImpl(const DotNet::CesiumForUnity::CesiumIonSession& session);
~CesiumIonSessionImpl();
Expand Down
6 changes: 3 additions & 3 deletions native~/Editor/src/IonAssetsTreeViewImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumIonClient/Assets.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/CesiumForUnity/IonAssetsColumn.h>
#include <DotNet/System/String.h>
Expand All @@ -16,8 +17,7 @@ class IonAssetsTreeView;

namespace CesiumForUnityNative {

class IonAssetsTreeViewImpl
: public CesiumUtility::ReferenceCountedThreadSafe<IonAssetsTreeViewImpl> {
class IonAssetsTreeViewImpl : public CesiumImpl<IonAssetsTreeViewImpl> {
public:
IonAssetsTreeViewImpl(
const DotNet::CesiumForUnity::IonAssetsTreeView& treeView);
Expand Down
7 changes: 3 additions & 4 deletions native~/Editor/src/SelectIonTokenWindowImpl.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumAsync/AsyncSystem.h>
#include <CesiumIonClient/Token.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/CesiumForUnity/IonTokenSource.h>
#include <DotNet/System/String.h>
Expand All @@ -18,9 +19,7 @@ class CesiumIonServer;

namespace CesiumForUnityNative {

class SelectIonTokenWindowImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
SelectIonTokenWindowImpl> {
class SelectIonTokenWindowImpl : public CesiumImpl<SelectIonTokenWindowImpl> {

public:
static CesiumAsync::SharedFuture<std::optional<CesiumIonClient::Token>>
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/Cesium3DTilesetImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <Cesium3DTilesSelection/ViewUpdateResult.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/CesiumForUnity/CesiumCreditSystem.h>
#include <DotNet/CesiumForUnity/CesiumGeoreference.h>
Expand All @@ -26,8 +27,7 @@ class Tileset;

namespace CesiumForUnityNative {

class Cesium3DTilesetImpl
: public CesiumUtility::ReferenceCountedThreadSafe<Cesium3DTilesetImpl> {
class Cesium3DTilesetImpl : public CesiumImpl<Cesium3DTilesetImpl> {
public:
Cesium3DTilesetImpl(const DotNet::CesiumForUnity::Cesium3DTileset& tileset);
~Cesium3DTilesetImpl();
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumBingMapsRasterOverlayImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumUtility/IntrusivePointer.h>
#include <CesiumUtility/ReferenceCounted.h>

namespace DotNet::CesiumForUnity {
class Cesium3DTileset;
Expand All @@ -15,8 +16,7 @@ class BingMapsRasterOverlay;
namespace CesiumForUnityNative {

class CesiumBingMapsRasterOverlayImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumBingMapsRasterOverlayImpl> {
: public CesiumImpl<CesiumBingMapsRasterOverlayImpl> {
public:
CesiumBingMapsRasterOverlayImpl(
const DotNet::CesiumForUnity::CesiumBingMapsRasterOverlay& overlay);
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumCreditSystemImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumUtility/CreditSystem.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/CesiumForUnity/CesiumCredit.h>
#include <DotNet/System/Collections/Generic/List1.h>
Expand All @@ -22,8 +23,7 @@ struct Credit;

namespace CesiumForUnityNative {

class CesiumCreditSystemImpl
: public CesiumUtility::ReferenceCountedThreadSafe<CesiumCreditSystemImpl> {
class CesiumCreditSystemImpl : public CesiumImpl<CesiumCreditSystemImpl> {
public:
CesiumCreditSystemImpl(
const DotNet::CesiumForUnity::CesiumCreditSystem& creditSystem);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumUtility/IntrusivePointer.h>
#include <CesiumUtility/ReferenceCounted.h>

namespace DotNet::CesiumForUnity {
class Cesium3DTileset;
Expand All @@ -15,8 +16,7 @@ class DebugColorizeTilesRasterOverlay;
namespace CesiumForUnityNative {

class CesiumDebugColorizeTilesRasterOverlayImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumDebugColorizeTilesRasterOverlayImpl> {
: public CesiumImpl<CesiumDebugColorizeTilesRasterOverlayImpl> {
public:
CesiumDebugColorizeTilesRasterOverlayImpl(
const DotNet::CesiumForUnity::CesiumDebugColorizeTilesRasterOverlay&
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumEllipsoidImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumGeospatial/Ellipsoid.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/Unity/Mathematics/double3.h>

Expand All @@ -13,8 +14,7 @@ class CesiumEllipsoid;

namespace CesiumForUnityNative {

class CesiumEllipsoidImpl
: public CesiumUtility::ReferenceCountedThreadSafe<CesiumEllipsoidImpl> {
class CesiumEllipsoidImpl : public CesiumImpl<CesiumEllipsoidImpl> {
public:
CesiumEllipsoidImpl(
const DotNet::CesiumForUnity::CesiumEllipsoid& unityEllipsoid);
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumFeatureIdAttributeImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumGltf/AccessorUtility.h>
#include <CesiumUtility/ReferenceCounted.h>

namespace DotNet::CesiumForUnity {
class CesiumFeatureIdAttribute;
Expand All @@ -14,8 +15,7 @@ struct MeshPrimitive;

namespace CesiumForUnityNative {
class CesiumFeatureIdAttributeImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumFeatureIdAttributeImpl> {
: public CesiumImpl<CesiumFeatureIdAttributeImpl> {
public:
CesiumFeatureIdAttributeImpl(
const DotNet::CesiumForUnity::CesiumFeatureIdAttribute&
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumFeatureIdTextureImpl.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumGltf/AccessorUtility.h>
#include <CesiumGltf/FeatureIdTextureView.h>
#include <CesiumUtility/ReferenceCounted.h>

namespace DotNet::CesiumForUnity {
class CesiumFeatureIdTexture;
Expand All @@ -21,8 +22,7 @@ struct FeatureIdTexture;

namespace CesiumForUnityNative {
class CesiumFeatureIdTextureImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumFeatureIdTextureImpl> {
: public CesiumImpl<CesiumFeatureIdTextureImpl> {
public:
CesiumFeatureIdTextureImpl(
const DotNet::CesiumForUnity::CesiumFeatureIdTexture& featureIdTexture);
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumFeatureImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumGltf/PropertyTablePropertyView.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/CesiumForUnity/CesiumMetadataValue.h>
#include <DotNet/CesiumForUnity/MetadataType.h>
Expand Down Expand Up @@ -45,8 +46,7 @@ using ValueType = swl::variant<
CesiumGltf::PropertyArrayView<bool>,
CesiumGltf::PropertyArrayView<std::string_view>>;

class CesiumFeatureImpl
: public CesiumUtility::ReferenceCountedThreadSafe<CesiumFeatureImpl> {
class CesiumFeatureImpl : public CesiumImpl<CesiumFeatureImpl> {
public:
CesiumFeatureImpl(const DotNet::CesiumForUnity::CesiumFeature& feature);
~CesiumFeatureImpl();
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumGeoreferenceImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumGeospatial/LocalHorizontalCoordinateSystem.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/Unity/Mathematics/double3.h>
#include <DotNet/Unity/Mathematics/double4x4.h>
Expand All @@ -17,8 +18,7 @@ class Transform;
}

namespace CesiumForUnityNative {
class CesiumGeoreferenceImpl
: public CesiumUtility::ReferenceCountedThreadSafe<CesiumGeoreferenceImpl> {
class CesiumGeoreferenceImpl : public CesiumImpl<CesiumGeoreferenceImpl> {
public:
CesiumGeoreferenceImpl(
const DotNet::CesiumForUnity::CesiumGeoreference& georeference);
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumIonRasterOverlayImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumUtility/IntrusivePointer.h>
#include <CesiumUtility/ReferenceCounted.h>

namespace DotNet::CesiumForUnity {
class Cesium3DTileset;
Expand All @@ -15,8 +16,7 @@ class IonRasterOverlay;
namespace CesiumForUnityNative {

class CesiumIonRasterOverlayImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumIonRasterOverlayImpl> {
: public CesiumImpl<CesiumIonRasterOverlayImpl> {
public:
CesiumIonRasterOverlayImpl(
const DotNet::CesiumForUnity::CesiumIonRasterOverlay& overlay);
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumMetadataImpl.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumGltf/AccessorUtility.h>
#include <CesiumGltf/Model.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/CesiumForUnity/CesiumFeature.h>
#include <DotNet/System/Array1.h>
Expand All @@ -22,8 +23,7 @@ class Transform;

namespace CesiumForUnityNative {

class CesiumMetadataImpl
: public CesiumUtility::ReferenceCountedThreadSafe<CesiumMetadataImpl> {
class CesiumMetadataImpl : public CesiumImpl<CesiumMetadataImpl> {
public:
CesiumMetadataImpl(const DotNet::CesiumForUnity::CesiumMetadata& metadata);
~CesiumMetadataImpl();
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumPolygonRasterOverlayImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumUtility/IntrusivePointer.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/System/Collections/Generic/List1.h>

Expand All @@ -27,8 +28,7 @@ class CartographicPolygon;
namespace CesiumForUnityNative {

class CesiumPolygonRasterOverlayImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumPolygonRasterOverlayImpl> {
: public CesiumImpl<CesiumPolygonRasterOverlayImpl> {
public:
CesiumPolygonRasterOverlayImpl(
const DotNet::CesiumForUnity::CesiumPolygonRasterOverlay& overlay);
Expand Down
5 changes: 2 additions & 3 deletions native~/Runtime/src/CesiumPropertyTablePropertyImpl.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include <CesiumUtility/ReferenceCounted.h>
#include "CesiumImpl.h"

#include <any>
#include <cstdint>
Expand Down Expand Up @@ -46,8 +46,7 @@ class double4x4;
namespace CesiumForUnityNative {

class CesiumPropertyTablePropertyImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumPropertyTablePropertyImpl> {
: public CesiumImpl<CesiumPropertyTablePropertyImpl> {
public:
CesiumPropertyTablePropertyImpl(
const DotNet::CesiumForUnity::CesiumPropertyTableProperty& property);
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumSimplePlanarEllipsoidCurveImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumGeospatial/SimplePlanarEllipsoidCurve.h>
#include <CesiumUtility/ReferenceCounted.h>

#include <DotNet/CesiumForUnity/CesiumEllipsoid.h>
#include <DotNet/Unity/Mathematics/double3.h>
Expand All @@ -19,8 +20,7 @@ struct double3;
namespace CesiumForUnityNative {

class CesiumSimplePlanarEllipsoidCurveImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumSimplePlanarEllipsoidCurveImpl> {
: public CesiumImpl<CesiumSimplePlanarEllipsoidCurveImpl> {
public:
CesiumSimplePlanarEllipsoidCurveImpl(
const DotNet::CesiumForUnity::CesiumSimplePlanarEllipsoidCurve& path);
Expand Down
6 changes: 3 additions & 3 deletions native~/Runtime/src/CesiumTileMapServiceRasterOverlayImpl.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include "CesiumImpl.h"

#include <CesiumUtility/IntrusivePointer.h>
#include <CesiumUtility/ReferenceCounted.h>

namespace DotNet::CesiumForUnity {
class Cesium3DTileset;
Expand All @@ -15,8 +16,7 @@ class TileMapServiceRasterOverlay;
namespace CesiumForUnityNative {

class CesiumTileMapServiceRasterOverlayImpl
: public CesiumUtility::ReferenceCountedThreadSafe<
CesiumTileMapServiceRasterOverlayImpl> {
: public CesiumImpl<CesiumTileMapServiceRasterOverlayImpl> {
public:
CesiumTileMapServiceRasterOverlayImpl(
const DotNet::CesiumForUnity::CesiumTileMapServiceRasterOverlay& overlay);
Expand Down
Loading

0 comments on commit 22eb15f

Please sign in to comment.