Massive namespace reset due to mutual dependencies that shouldn't exist.

This commit is contained in:
Michael Smith 2016-03-11 18:40:19 -08:00
parent 1f41470dbb
commit 93912fde9e
51 changed files with 63 additions and 151 deletions

View File

@ -1,7 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using OSCADSharp.Files;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,7 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using OSCADSharp.Files;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -2,7 +2,6 @@
using System.Text; using System.Text;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
namespace OSCADSharp.UnitTests namespace OSCADSharp.UnitTests
{ {

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,6 +1,5 @@
using System; using System;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
namespace OSCADSharp.UnitTests namespace OSCADSharp.UnitTests
{ {

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,5 +1,4 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Scripting;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Scripting;
namespace OSCADSharp.Bindings namespace OSCADSharp
{ {
internal class BindableBoolean : IBindable internal class BindableBoolean : IBindable
{ {

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Scripting;
namespace OSCADSharp.Bindings namespace OSCADSharp
{ {
internal class BindableVector : Vector3, IBindable internal class BindableVector : Vector3, IBindable
{ {

View File

@ -1,11 +1,10 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Bindings namespace OSCADSharp
{ {
internal class Binding internal class Binding
{ {

View File

@ -1,12 +1,11 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Bindings namespace OSCADSharp
{ {
internal class Bindings internal class Bindings
{ {

View File

@ -1,5 +1,4 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Bindings namespace OSCADSharp
{ {
internal interface IBindings internal interface IBindings
{ {

View File

@ -1,11 +1,10 @@
using OSCADSharp.Bindings; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Bindings.Solids namespace OSCADSharp
{ {
internal class CubeBindings : ICloneable<CubeBindings>, IBindings internal class CubeBindings : ICloneable<CubeBindings>, IBindings
{ {

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Bindings.Solids namespace OSCADSharp
{ {
internal class SphereBindings : ICloneable<SphereBindings>, IBindings internal class SphereBindings : ICloneable<SphereBindings>, IBindings
{ {

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Booleans namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// Subtracts the 2nd (and all further) child nodes from the first one (logical and not). /// Subtracts the 2nd (and all further) child nodes from the first one (logical and not).

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting; using System;
using OSCADSharp.Spatial;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Booleans namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// Creates the intersection of all child nodes /// Creates the intersection of all child nodes

View File

@ -1,11 +1,10 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Booleans namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// A union of child nodes. This is the sum of all children (logical or). /// A union of child nodes. This is the sum of all children (logical or).

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Files namespace OSCADSharp
{ {
internal class DefaultFileInvoker : IFileInvoker internal class DefaultFileInvoker : IFileInvoker
{ {

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Files namespace OSCADSharp
{ {
internal class DefaultFileWriter : IFileWriter internal class DefaultFileWriter : IFileWriter
{ {

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Scripting namespace OSCADSharp
{ {
internal class CompoundVariable : Variable internal class CompoundVariable : Variable
{ {

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Scripting namespace OSCADSharp
{ {
/// <summary> /// <summary>

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Scripting namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// A class that creates blocks of curly-braced script with the /// A class that creates blocks of curly-braced script with the

View File

@ -3,9 +3,8 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Scripting namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// A statement with just one nested child node /// A statement with just one nested child node

View File

@ -1,12 +1,10 @@
using OSCADSharp.Bindings; using System;
using OSCADSharp.Bindings.Solids;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Scripting.Solids namespace OSCADSharp
{ {
internal class CubeScriptBuilder internal class CubeScriptBuilder
{ {

View File

@ -1,11 +1,10 @@
using OSCADSharp.Bindings; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Scripting.Solids namespace OSCADSharp
{ {
internal class SphereScriptBuilder internal class SphereScriptBuilder
{ {

View File

@ -1,11 +1,10 @@
using OSCADSharp.Bindings; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Scripting namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// Extends the capabilities of StringBuilder with domain-specific behavior /// Extends the capabilities of StringBuilder with domain-specific behavior
@ -14,10 +13,10 @@ namespace OSCADSharp.Scripting
internal class StatementBuilder internal class StatementBuilder
{ {
private StringBuilder SB { get; set; } = new StringBuilder(); private StringBuilder SB { get; set; } = new StringBuilder();
private Bindings.Bindings bindings = null; private Bindings bindings = null;
private IBindings ibindings = null; private IBindings ibindings = null;
internal StatementBuilder(Bindings.Bindings bindings) internal StatementBuilder(Bindings bindings)
{ {
this.bindings = bindings; this.bindings = bindings;
} }

View File

@ -1,5 +1,4 @@
using OSCADSharp.Bindings; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Linq.Expressions; using System.Linq.Expressions;

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Spatial namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// A Matrix for performing operations on doubles that /// A Matrix for performing operations on doubles that

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// An object that has color and/or opacity applied to it /// An object that has color and/or opacity applied to it
@ -73,7 +71,7 @@ namespace OSCADSharp.Transforms
return this.obj.Bounds(); return this.obj.Bounds();
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() { private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{"color", "color" }, {"color", "color" },
{"opacity", "opacity" } {"opacity", "opacity" }
}); });

View File

@ -1,11 +1,10 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// Creates an object that's the convex hull of child objects /// Creates an object that's the convex hull of child objects

View File

@ -1,12 +1,10 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// Creates an object that's the minkowski sum of child objects /// Creates an object that's the minkowski sum of child objects

View File

@ -1,13 +1,10 @@
using OSCADSharp.Bindings; using System;
using OSCADSharp.Scripting;
using OSCADSharp.Spatial;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// An object that's mirrored on a plane /// An object that's mirrored on a plane
@ -106,7 +103,7 @@ namespace OSCADSharp.Transforms
return new Bounds(newBottomLeft, newTopRight); return new Bounds(newBottomLeft, newTopRight);
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() { private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{"normal", "normal"} {"normal", "normal"}
}); });
public override void Bind(string property, Variable variable) public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,7 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// An object that's been resized to a specified set of X/Y/Z dimensions /// An object that's been resized to a specified set of X/Y/Z dimensions
@ -87,7 +81,7 @@ namespace OSCADSharp.Transforms
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() { private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "size", "size" } { "size", "size" }
}); });
public override void Bind(string property, Variable variable) public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,10 @@
using OSCADSharp.Bindings; using System;
using OSCADSharp.Scripting;
using OSCADSharp.Spatial;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// An object with rotation applied /// An object with rotation applied
@ -73,7 +70,7 @@ namespace OSCADSharp.Transforms
Matrix.GetRotatedPoint(oldBounds.TopRight, this.Angle.X, this.Angle.Y, this.Angle.Z)); Matrix.GetRotatedPoint(oldBounds.TopRight, this.Angle.X, this.Angle.Y, this.Angle.Z));
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() { private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "angle", "angle" } { "angle", "angle" }
}); });
public override void Bind(string property, Variable variable) public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,7 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// An object that's been rescaled /// An object that's been rescaled
@ -72,7 +66,7 @@ namespace OSCADSharp.Transforms
return new Bounds(oldBounds.BottomLeft * this.ScaleFactor, oldBounds.TopRight * this.ScaleFactor); return new Bounds(oldBounds.BottomLeft * this.ScaleFactor, oldBounds.TopRight * this.ScaleFactor);
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() { private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "scalefactor", "scalefactor" } { "scalefactor", "scalefactor" }
}); });
public override void Bind(string property, Variable variable) public override void Bind(string property, Variable variable)

View File

@ -1,13 +1,7 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp.Transforms namespace OSCADSharp
{ {
/// <summary> /// <summary>
/// An object or objects that have been moved along the specified vector /// An object or objects that have been moved along the specified vector
@ -78,7 +72,7 @@ namespace OSCADSharp.Transforms
return new Bounds(oldBounds.BottomLeft + this.Vector, oldBounds.TopRight + this.Vector); return new Bounds(oldBounds.BottomLeft + this.Vector, oldBounds.TopRight + this.Vector);
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() { private Bindings bindings = new Bindings(new Dictionary<string, string>() {
{ "vector", "vector" } { "vector", "vector" }
}); });
public override void Bind(string property, Variable variable) public override void Bind(string property, Variable variable)

View File

@ -1,10 +1,4 @@
using OSCADSharp.Bindings; using System;
using OSCADSharp.Booleans;
using OSCADSharp.Files;
using OSCADSharp.Scripting;
using OSCADSharp.Spatial;
using OSCADSharp.Transforms;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;

View File

@ -1,5 +1,4 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

View File

@ -1,5 +1,4 @@
using OSCADSharp.Files; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;

View File

@ -1,6 +1,4 @@
using OSCADSharp.Files; using System;
using OSCADSharp.Scripting;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;

View File

@ -3,11 +3,6 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
using OSCADSharp.Scripting;
using OSCADSharp.Bindings.Solids;
using OSCADSharp.Scripting.Solids;
namespace OSCADSharp namespace OSCADSharp
{ {

View File

@ -3,9 +3,6 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Scripting;
using OSCADSharp.Bindings;
namespace OSCADSharp namespace OSCADSharp
{ {
@ -261,7 +258,7 @@ namespace OSCADSharp
} }
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() private Bindings bindings = new Bindings(new Dictionary<string, string>()
{ {
{"radius", "r" }, {"radius", "r" },
{"radius1", "r1" }, {"radius1", "r1" },

View File

@ -3,13 +3,8 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Scripting;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Reflection; using System.Reflection;
using OSCADSharp.Bindings;
using OSCADSharp.Bindings.Solids;
using OSCADSharp.Scripting.Solids;
namespace OSCADSharp namespace OSCADSharp
{ {

View File

@ -1,11 +1,8 @@
using OSCADSharp.Scripting; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using OSCADSharp.Spatial;
using OSCADSharp.Bindings;
namespace OSCADSharp namespace OSCADSharp
{ {
@ -170,7 +167,7 @@ namespace OSCADSharp
throw new NotSupportedException("Bounds are not supported for objects using Text3D"); throw new NotSupportedException("Bounds are not supported for objects using Text3D");
} }
private Bindings.Bindings bindings = new Bindings.Bindings(new Dictionary<string, string>() private Bindings bindings = new Bindings(new Dictionary<string, string>()
{ {
{ "text", "text" }, { "text", "text" },
{ "size", "size" }, { "size", "size" },

View File

@ -1,5 +1,4 @@
using OSCADSharp.Spatial; using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;