Skip to content

Commit

Permalink
Merge branch 'ue5-main' into property-textures
Browse files Browse the repository at this point in the history
  • Loading branch information
j9liu committed Oct 5, 2023
2 parents 4ba86b3 + 69f3dbf commit 829da21
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 22 deletions.
28 changes: 14 additions & 14 deletions Source/CesiumRuntime/Private/CesiumPropertyTableProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ propertyTablePropertyCallback(const std::any& property, Callback&& callback) {
template <bool Normalized, typename TResult, typename Callback>
TResult scalarPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
switch (valueType.ComponentType) {
case ECesiumMetadataComponentType::Int8:
Expand Down Expand Up @@ -133,7 +133,7 @@ TResult scalarPropertyTablePropertyCallback(
template <bool Normalized, typename TResult, typename Callback>
TResult scalarArrayPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
switch (valueType.ComponentType) {
case ECesiumMetadataComponentType::Int8:
Expand Down Expand Up @@ -218,7 +218,7 @@ TResult scalarArrayPropertyTablePropertyCallback(
template <glm::length_t N, bool Normalized, typename TResult, typename Callback>
TResult vecNPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
switch (valueType.ComponentType) {
case ECesiumMetadataComponentType::Int8:
Expand Down Expand Up @@ -302,7 +302,7 @@ TResult vecNPropertyTablePropertyCallback(
template <bool Normalized, typename TResult, typename Callback>
TResult vecNPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
if (valueType.Type == ECesiumMetadataType::Vec2) {
return vecNPropertyTablePropertyCallback<2, Normalized, TResult, Callback>(
Expand Down Expand Up @@ -346,7 +346,7 @@ TResult vecNPropertyTablePropertyCallback(
template <glm::length_t N, bool Normalized, typename TResult, typename Callback>
TResult vecNArrayPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
switch (valueType.ComponentType) {
case ECesiumMetadataComponentType::Int8:
Expand Down Expand Up @@ -431,7 +431,7 @@ TResult vecNArrayPropertyTablePropertyCallback(
template <bool Normalized, typename TResult, typename Callback>
TResult vecNArrayPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
if (valueType.Type == ECesiumMetadataType::Vec2) {
return vecNArrayPropertyTablePropertyCallback<
Expand Down Expand Up @@ -477,7 +477,7 @@ TResult vecNArrayPropertyTablePropertyCallback(
template <glm::length_t N, bool Normalized, typename TResult, typename Callback>
TResult matNPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
switch (valueType.ComponentType) {
case ECesiumMetadataComponentType::Int8:
Expand Down Expand Up @@ -561,7 +561,7 @@ TResult matNPropertyTablePropertyCallback(
template <bool Normalized, typename TResult, typename Callback>
TResult matNPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
if (valueType.Type == ECesiumMetadataType::Mat2) {
return matNPropertyTablePropertyCallback<2, Normalized, TResult, Callback>(
Expand Down Expand Up @@ -605,7 +605,7 @@ TResult matNPropertyTablePropertyCallback(
template <glm::length_t N, bool Normalized, typename TResult, typename Callback>
TResult matNArrayPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
switch (valueType.ComponentType) {
case ECesiumMetadataComponentType::Int8:
Expand Down Expand Up @@ -690,7 +690,7 @@ TResult matNArrayPropertyTablePropertyCallback(
template <bool Normalized, typename TResult, typename Callback>
TResult matNArrayPropertyTablePropertyCallback(
const std::any& property,
FCesiumMetadataValueType valueType,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
if (valueType.Type == ECesiumMetadataType::Mat2) {
return matNArrayPropertyTablePropertyCallback<
Expand Down Expand Up @@ -721,8 +721,8 @@ TResult matNArrayPropertyTablePropertyCallback(

template <bool Normalized, typename TResult, typename Callback>
TResult arrayPropertyTablePropertyCallback(
std::any property,
FCesiumMetadataValueType valueType,
const std::any& property,
const FCesiumMetadataValueType& valueType,
Callback&& callback) {
switch (valueType.Type) {
case ECesiumMetadataType::Scalar:
Expand Down Expand Up @@ -763,8 +763,8 @@ TResult arrayPropertyTablePropertyCallback(

template <typename TResult, typename Callback>
TResult propertyTablePropertyCallback(
std::any property,
FCesiumMetadataValueType valueType,
const std::any& property,
const FCesiumMetadataValueType& valueType,
bool normalized,
Callback&& callback) {
if (valueType.bIsArray) {
Expand Down
2 changes: 2 additions & 0 deletions Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "CesiumTileExcluderAdapter.h"
#include "Cesium3DTilesSelection/Tile.h"
#include "CesiumGeoreference.h"
#include "VecMath.h"

bool CesiumTileExcluderAdapter::shouldExclude(
Expand Down
6 changes: 6 additions & 0 deletions Source/CesiumRuntime/Private/CesiumTileExcluderAdapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
#include "CesiumTileExcluder.h"
#include <Cesium3DTilesSelection/ITileExcluder.h>

class ACesiumGeoreference;

namespace Cesium3DTilesSelection {
class Tile;
}

class CesiumTileExcluderAdapter : public Cesium3DTilesSelection::ITileExcluder {
virtual bool shouldExclude(
const Cesium3DTilesSelection::Tile& tile) const noexcept override;
Expand Down
2 changes: 0 additions & 2 deletions Source/CesiumRuntime/Private/Tests/CesiumGltfSpecUtility.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#pragma once

#include "CesiumGltfSpecUtility.h"

using namespace CesiumGltf;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ void FCesiumPropertyTablePropertySpec::Define() {
UCesiumMetadataValueBlueprintLibrary::GetArray(value);

TestEqual(
"Size",
TEXT("Size"),
UCesiumPropertyArrayBlueprintLibrary::GetSize(array),
static_cast<int64_t>(*classProperty.count));
TestEqual(
Expand All @@ -560,7 +560,7 @@ void FCesiumPropertyTablePropertySpec::Define() {
array = UCesiumMetadataValueBlueprintLibrary::GetArray(value);

TestEqual(
"Size",
TEXT("Size"),
UCesiumPropertyArrayBlueprintLibrary::GetSize(array),
static_cast<int64_t>(*classProperty.count));
TestEqual(
Expand All @@ -581,7 +581,7 @@ void FCesiumPropertyTablePropertySpec::Define() {
array = UCesiumMetadataValueBlueprintLibrary::GetArray(value);

TestEqual(
"Size",
TEXT("Size"),
UCesiumPropertyArrayBlueprintLibrary::GetSize(array),
static_cast<int64_t>(*classProperty.count));
TestEqual(
Expand All @@ -602,7 +602,7 @@ void FCesiumPropertyTablePropertySpec::Define() {
array = UCesiumMetadataValueBlueprintLibrary::GetArray(value);

TestEqual(
"Size",
TEXT("Size"),
UCesiumPropertyArrayBlueprintLibrary::GetSize(array),
static_cast<int64_t>(*classProperty.count));
TestEqual(
Expand All @@ -623,7 +623,7 @@ void FCesiumPropertyTablePropertySpec::Define() {
array = UCesiumMetadataValueBlueprintLibrary::GetArray(value);

TestEqual(
"Size",
TEXT("Size"),
UCesiumPropertyArrayBlueprintLibrary::GetSize(array),
static_cast<int64_t>(*classProperty.count));
TestEqual(
Expand All @@ -644,7 +644,7 @@ void FCesiumPropertyTablePropertySpec::Define() {
array = UCesiumMetadataValueBlueprintLibrary::GetArray(value);

TestEqual(
"Size",
TEXT("Size"),
UCesiumPropertyArrayBlueprintLibrary::GetSize(array),
static_cast<int64_t>(*classProperty.count));
TestEqual(
Expand Down

0 comments on commit 829da21

Please sign in to comment.