Пример #1
0
        public SpeckleCircle(SpecklePlane plane, double radius, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Plane         = plane;
            this.Radius        = radius;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            GenerateHash();
        }
Пример #2
0
        public SpeckleEllipse(SpecklePlane plane, double radius1, double radius2, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Plane         = plane;
            this.FirstRadius   = radius1;
            this.SecondRadius  = radius2;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            SetHashes(Plane.GeometryHash + radius1 + radius2);
        }
Пример #3
0
        public SpeckleEllipse(SpecklePlane plane, double radius1, double radius2, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Plane         = plane;
            this.FirstRadius   = radius1;
            this.SecondRadius  = radius2;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            GenerateHash();
        }
Пример #4
0
        public SpeckleBox(SpecklePlane basePlane, SpeckleInterval xSize, SpeckleInterval ySize, SpeckleInterval zSize, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.BasePlane     = basePlane;
            this.XSize         = xSize;
            this.YSize         = ySize;
            this.ZSize         = zSize;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            SetHashes(BasePlane.GeometryHash + XSize.GeometryHash + YSize.GeometryHash + ZSize.GeometryHash);
        }
Пример #5
0
        public SpeckleBox(SpecklePlane basePlane, SpeckleInterval xSize, SpeckleInterval ySize, SpeckleInterval zSize, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.BasePlane     = basePlane;
            this.XSize         = xSize;
            this.YSize         = ySize;
            this.ZSize         = zSize;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            GenerateHash();
        }
Пример #6
0
        public SpeckleArc(SpecklePlane plane, double radius, double startAngle, double endAngle, double angleRadians, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Plane         = plane;
            this.Radius        = radius;
            this.StartAngle    = startAngle;
            this.EndAngle      = endAngle;
            this.AngleRadians  = angleRadians;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            SetHashes(plane.GeometryHash + radius + startAngle + endAngle);
        }
Пример #7
0
        public SpeckleArc(SpecklePlane plane, double radius, double startAngle, double endAngle, double angleRadians, string applicationId = null, Dictionary <string, object> properties = null)
        {
            this.Plane         = plane;
            this.Radius        = radius;
            this.StartAngle    = startAngle;
            this.EndAngle      = endAngle;
            this.AngleRadians  = angleRadians;
            this.ApplicationId = applicationId;
            this.Properties    = properties;

            GenerateHash();
        }
Пример #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);
        }
Пример #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();
        }