-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from AnalyticalGraphicsInc/addProperties
Add new CZML properties
- Loading branch information
Showing
62 changed files
with
3,982 additions
and
1,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
DotNet/CesiumLanguageWriter/Advanced/CesiumClassificationTypeValuePropertyAdaptor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace CesiumLanguageWriter.Advanced | ||
{ | ||
/// <summary> | ||
/// Adapts a class that implements <see cref="ICesiumClassificationTypeValuePropertyWriter"/> to implement | ||
/// <see cref="ICesiumPropertyWriter"/> for <see cref="CesiumClassificationType"/> values. | ||
/// </summary> | ||
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumClassificationTypeValuePropertyWriter"/> to adapt.</typeparam> | ||
public class CesiumClassificationTypeValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, CesiumClassificationType> | ||
where TFrom : class, ICesiumClassificationTypeValuePropertyWriter | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance. | ||
/// </summary> | ||
/// <param name="parent">The instance to wrap.</param> | ||
/// <param name="writeValueCallback">The callback to write values of type <see cref="CesiumClassificationType"/>.</param> | ||
/// <param name="writeDeleteValueCallback">The callback to write an indication that the client should delete existing data.</param> | ||
public CesiumClassificationTypeValuePropertyAdaptor([NotNull] TFrom parent, | ||
[NotNull] CesiumWriterAdaptorWriteCallback<TFrom, CesiumClassificationType> writeValueCallback, | ||
[NotNull] CesiumWriterAdaptorWriteDeleteCallback<TFrom> writeDeleteValueCallback) | ||
: base(parent, writeValueCallback, writeDeleteValueCallback) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
DotNet/CesiumLanguageWriter/Advanced/ICesiumClassificationTypeValuePropertyWriter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace CesiumLanguageWriter.Advanced | ||
{ | ||
/// <summary> | ||
/// A writer that can write a value as a classification type. | ||
/// </summary> | ||
public interface ICesiumClassificationTypeValuePropertyWriter : ICesiumPropertyWriter | ||
{ | ||
/// <summary> | ||
/// Writes the value expressed as a classification type. | ||
/// </summary> | ||
/// <param name="value">The classification type.</param> | ||
void WriteClassificationType(CesiumClassificationType value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace CesiumLanguageWriter | ||
{ | ||
/// <summary> | ||
/// Whether a classification affects terrain, 3D Tiles or both. | ||
/// </summary> | ||
public enum CesiumClassificationType | ||
{ | ||
/// <summary> | ||
/// Only terrain will be classified. | ||
/// </summary> | ||
Terrain, | ||
|
||
/// <summary> | ||
/// Only 3D Tiles will be classified. | ||
/// </summary> | ||
Cesium3DTile, | ||
|
||
/// <summary> | ||
/// Both terrain and 3D Tiles will be classified. | ||
/// </summary> | ||
Both, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.