#26 make almost all operators public

This commit is contained in:
Eliot Jones
2019-01-03 22:20:53 +00:00
parent 29daeb5806
commit 5c8a77bf33
75 changed files with 1196 additions and 304 deletions

View File

@@ -1,29 +1,44 @@
namespace UglyToad.PdfPig.Graphics.Operations.ClippingPaths
{
using System.IO;
using Content;
internal class ModifyClippingByEvenOddIntersect : IGraphicsStateOperation
/// <inheritdoc />
/// <summary>
/// Modify the current clipping path by intersecting it with the current path, using the
/// even-odd rule to determine which regions lie inside the clipping path.
/// </summary>
public class ModifyClippingByEvenOddIntersect : IGraphicsStateOperation
{
/// <summary>
/// The symbol for this operation in a stream.
/// </summary>
public const string Symbol = "W*";
/// <summary>
/// The instance of the <see cref="ModifyClippingByEvenOddIntersect"/> operation.
/// </summary>
public static readonly ModifyClippingByEvenOddIntersect Value = new ModifyClippingByEvenOddIntersect();
/// <inheritdoc />
public string Operator => Symbol;
private ModifyClippingByEvenOddIntersect()
{
}
public void Run(IOperationContext operationContext, IResourceStore resourceStore)
/// <inheritdoc />
public void Run(IOperationContext operationContext)
{
}
/// <inheritdoc />
public void Write(Stream stream)
{
throw new System.NotImplementedException();
stream.WriteText(Symbol);
stream.WriteNewLine();
}
/// <inheritdoc />
public override string ToString()
{
return Symbol;

View File

@@ -1,29 +1,44 @@
namespace UglyToad.PdfPig.Graphics.Operations.ClippingPaths
{
using System.IO;
using Content;
internal class ModifyClippingByNonZeroWindingIntersect : IGraphicsStateOperation
/// <inheritdoc />
/// <summary>
/// Modify the current clipping path by intersecting it with the current path, using the
/// nonzero winding number rule to determine which regions lie inside the clipping path.
/// </summary>
public class ModifyClippingByNonZeroWindingIntersect : IGraphicsStateOperation
{
/// <summary>
/// The symbol for this operation in a stream.
/// </summary>
public const string Symbol = "W";
/// <summary>
/// The instance of the <see cref="EndPath"/> operation.
/// </summary>
public static readonly ModifyClippingByNonZeroWindingIntersect Value = new ModifyClippingByNonZeroWindingIntersect();
/// <inheritdoc />
public string Operator => Symbol;
private ModifyClippingByNonZeroWindingIntersect()
{
}
public void Run(IOperationContext operationContext, IResourceStore resourceStore)
/// <inheritdoc />
public void Run(IOperationContext operationContext)
{
}
/// <inheritdoc />
public void Write(Stream stream)
{
throw new System.NotImplementedException();
stream.WriteText(Symbol);
stream.WriteNewLine();
}
/// <inheritdoc />
public override string ToString()
{
return Symbol;