示例#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;

            GenerateHash();
        }
示例#3
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();
        }
示例#4
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();
        }
示例#5
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();
        }