public SpeckleLine(SpecklePoint start, SpecklePoint end, string applicationId = null, Dictionary <string, object> properties = null) { this.Start = start; this.End = end; this.ApplicationId = applicationId; this.Properties = properties; SetHashes(Start.GeometryHash + End.GeometryHash); }
public SpeckleCircle(SpecklePoint center, SpeckleVector normal, double radius, string applicationId = null, Dictionary <string, object> properties = null) { this.Center = center; this.Normal = normal; this.Radius = radius; this.ApplicationId = applicationId; this.Properties = properties; SetHashes(Center.GeometryHash + Normal.GeometryHash + Radius); }
public SpeckleTextDot(string text, SpecklePoint loc, string applicationId = null, Dictionary <string, object> properties = null) { this.Type = "TextDot"; this.Text = text; this.Loc = loc; this.ApplicationId = applicationId; this.Properties = properties; SetHashes(this.Text + this.Loc.GeometryHash); }
public SpeckleCircle(SpecklePoint center, SpeckleVector normal, double radius, string applicationId = null, Dictionary <string, object> properties = null) { this.Center = center; this.Normal = normal; this.Radius = radius; this.ApplicationId = applicationId; this.Properties = properties; GenerateHash(); }
public SpeckleRectangle(SpecklePoint A, SpecklePoint B, SpecklePoint C, SpecklePoint D, string applicationId = null, Dictionary <string, object> properties = null) { this.A = A; this.B = B; this.C = C; this.D = D; this.ApplicationId = applicationId; this.Properties = properties; SetHashes(A.GeometryHash + B.GeometryHash + C.GeometryHash + D.GeometryHash); }
public SpecklePlane(SpecklePoint origin, SpeckleVector normal, SpeckleVector XDir, SpeckleVector YDir, string applicationId = null, Dictionary <string, object> properties = null) { this.Origin = origin; this.Normal = normal; this.Xdir = XDir; this.Ydir = YDir; this.ApplicationId = applicationId; this.Properties = properties; SetHashes(origin.GeometryHash + normal.GeometryHash + Xdir.GeometryHash + YDir.GeometryHash); }
public SpecklePlane(SpecklePoint origin, SpeckleVector normal, SpeckleVector XDir, SpeckleVector YDir, string applicationId = null, Dictionary <string, object> properties = null) { this.Origin = origin; this.Normal = normal; this.Xdir = XDir; this.Ydir = YDir; this.ApplicationId = applicationId; this.Properties = properties; GenerateHash(); }
public SpeckleAnnotation(string text, double textHeight, string faceName, bool bold, bool italic, SpecklePlane plane, SpecklePoint location, string applicationId = null, Dictionary <string, object> properties = null) { this.Text = text; this.TextHeight = textHeight; this.FaceName = faceName; this.Bold = bold; this.Italic = italic; this.Plane = plane; this.Location = location; this.ApplicationId = applicationId; this.Properties = properties; SetHashes(this.Text + this.FaceName + this.Bold.ToString() + this.Italic.ToString() + this.Plane.GeometryHash + this.Location.GeometryHash); }
public SpeckleAnnotation(string text, double textHeight, string fontName, bool bold, bool italic, SpecklePlane plane, SpecklePoint location, string applicationId = null, Dictionary <string, object> properties = null) { this.Text = text; this.TextHeight = textHeight; this.FontName = fontName; this.Bold = bold; this.Italic = italic; this.Plane = plane; this.Location = location; this.ApplicationId = applicationId; this.Properties = properties; GenerateHash(); }