Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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();
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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();
        }
Ejemplo n.º 8
0
        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);
        }
Ejemplo n.º 9
0
        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();
        }