MockDocument.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. using Drawie.Backend.Core.Surfaces.ImageData;
  2. using Drawie.Numerics;
  3. using PixiEditor.ChangeableDocument.Changeables.Graph;
  4. using PixiEditor.ChangeableDocument.Changeables.Graph.Interfaces;
  5. using PixiEditor.ChangeableDocument.Changeables.Interfaces;
  6. using PixiEditor.ChangeableDocument.Rendering;
  7. namespace PixiEditor.Backend.Tests;
  8. public class MockDocument : IReadOnlyDocument
  9. {
  10. public void Dispose()
  11. {
  12. throw new NotImplementedException();
  13. }
  14. public Guid DocumentId { get; }
  15. public IReadOnlyNodeGraph NodeGraph { get; }
  16. public IReadOnlySelection Selection { get; }
  17. public IReadOnlyAnimationData AnimationData { get; }
  18. public VecI Size { get; } = new VecI(16, 16);
  19. public bool HorizontalSymmetryAxisEnabled { get; }
  20. public bool VerticalSymmetryAxisEnabled { get; }
  21. public double HorizontalSymmetryAxisY { get; }
  22. public double VerticalSymmetryAxisX { get; }
  23. public void ForEveryReadonlyMember(Action<IReadOnlyStructureNode> action)
  24. {
  25. throw new NotImplementedException();
  26. }
  27. public Image? GetLayerRasterizedImage(Guid layerGuid, int frame)
  28. {
  29. throw new NotImplementedException();
  30. }
  31. public RectI? GetChunkAlignedLayerBounds(Guid layerGuid, int frame)
  32. {
  33. throw new NotImplementedException();
  34. }
  35. public IReadOnlyNode FindNode(Guid guid)
  36. {
  37. throw new NotImplementedException();
  38. }
  39. public IReadOnlyStructureNode? FindMember(Guid guid)
  40. {
  41. throw new NotImplementedException();
  42. }
  43. public bool TryFindMember<T>(Guid guid, out T? member) where T : IReadOnlyStructureNode
  44. {
  45. throw new NotImplementedException();
  46. }
  47. public bool TryFindMember(Guid guid, out IReadOnlyStructureNode? member)
  48. {
  49. throw new NotImplementedException();
  50. }
  51. public IReadOnlyStructureNode FindMemberOrThrow(Guid guid)
  52. {
  53. throw new NotImplementedException();
  54. }
  55. public (IReadOnlyStructureNode, IReadOnlyNode) FindChildAndParentOrThrow(Guid childGuid)
  56. {
  57. throw new NotImplementedException();
  58. }
  59. public IReadOnlyList<IReadOnlyStructureNode> FindMemberPath(Guid guid)
  60. {
  61. throw new NotImplementedException();
  62. }
  63. public IReadOnlyReferenceLayer? ReferenceLayer { get; }
  64. public DocumentRenderer Renderer { get; }
  65. public IReadOnlyBlackboard Blackboard { get; }
  66. public ColorSpace ProcessingColorSpace { get; }
  67. public void InitProcessingColorSpace(ColorSpace processingColorSpace)
  68. {
  69. throw new NotImplementedException();
  70. }
  71. public List<IReadOnlyStructureNode> GetParents(Guid memberGuid)
  72. {
  73. throw new NotImplementedException();
  74. }
  75. public ICrossDocumentPipe<T> CreateNodePipe<T>(Guid layerId) where T : class, IReadOnlyNode
  76. {
  77. throw new NotImplementedException();
  78. }
  79. public ICrossDocumentPipe<IReadOnlyNodeGraph> CreateGraphPipe()
  80. {
  81. throw new NotImplementedException();
  82. }
  83. public IReadOnlyDocument Clone(bool preserveDocumentId = false)
  84. {
  85. throw new NotImplementedException();
  86. }
  87. public IReadOnlyStructureNode[] GetStructureTreeInOrder()
  88. {
  89. throw new NotImplementedException();
  90. }
  91. public object Clone()
  92. {
  93. throw new NotImplementedException();
  94. }
  95. }