Beispiel #1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (!Game.IsInGame || Game.GameTime > 1800)
                return;

            var creeps = ObjectMgr.GetEntities<Unit>().Where(creep => (creep.ClassID == ClassID.CDOTA_BaseNPC_Creep_Lane || creep.ClassID == ClassID.CDOTA_BaseNPC_Creep_Siege) && creep.IsSpawned).ToList();
            foreach (var creep in creeps) {
                Vector2 screenPos;
                var enemyPos = creep.Position + new Vector3(0, 0, creep.HealthBarOffset);
                if (!Drawing.WorldToScreen(enemyPos, out screenPos)) continue;

                var start = screenPos + new Vector2(-5, -30);

                string creepType;
                Team creepTeam;
                if (!CreepsDictionary.TryGetValue(creep, out creepType)) continue;
                if (!CreepsTeamDictionary.TryGetValue(creep, out creepTeam)) continue;

                if (!_screenSizeLoaded)
                {
                    _screenX = Drawing.Width / (float)1600 * (float)0.8;
                    _screenSizeLoaded = true;
                }

                switch (creepType) {
                    case "active": Drawing.DrawRect(start, creepTeam == _me.Team ? new Vector2(20 * _screenX, 20 * _screenX) : new Vector2(15*_screenX, 15*_screenX), creepTeam == _me.Team ? Drawing.GetTexture("materials/ensage_ui/other/active_deny.vmat") : Drawing.GetTexture("materials/ensage_ui/other/active_coin.vmat")); break;
                    case "passive": Drawing.DrawRect(start, creepTeam == _me.Team ? new Vector2(20 * _screenX, 20 * _screenX) : new Vector2(15 * _screenX, 15 * _screenX), creepTeam == _me.Team ? Drawing.GetTexture("materials/ensage_ui/other/passive_deny.vmat") : Drawing.GetTexture("materials/ensage_ui/other/passive_coin.vmat")); break;
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Creates a expression from specified token.
        /// </summary>
        /// <param name="token">The token.</param>
        /// <returns>
        /// The expression.
        /// </returns>
        public virtual IExpression Create(IToken token)
        {
            IExpression result = null;

            if (token is OperationToken)
                result = CreateOperation((OperationToken)token);
            else if (token is NumberToken)
                result = new Number(((NumberToken)token).Number);
            else if (token is BooleanToken)
                result = new Bool(((BooleanToken)token).Value);
            else if (token is ComplexNumberToken)
                result = new ComplexNumber(((ComplexNumberToken)token).Number);
            else if (token is VariableToken)
                result = new Variable(((VariableToken)token).Variable);
            else if (token is UserFunctionToken)
                result = CreateUserFunction((UserFunctionToken)token);
            else if (token is FunctionToken)
                result = CreateFunction((FunctionToken)token);

            if (resolver != null && result != null)
                resolver.Resolve((object)result);

            return result;
        }
Beispiel #3
0
 public static extern Bool ovrp_SetOverlayQuad2(Bool onTop, Bool headLocked, IntPtr texture, IntPtr device, Posef pose, Vector3f scale);
Beispiel #4
0
        public void ExecuteTest2()
        {
            var exp = new Bool(false);

            Assert.False((bool)exp.Execute(null));
        }
Beispiel #5
0
 public bool ReadBool(Block_I block)
 {
     return(Bool.Read(block));
 }
Beispiel #6
0
 object EndianObjectCodec_I.ReadBool(Block_I block)
 {
     return(Bool.Read(block));
 }
Beispiel #7
0
 public void WriteBool(Block_I block, bool value)
 {
     Bool.Write(block, value);
 }
Beispiel #8
0
 public virtual Result Visit(Bool @bool)
 {
     return(default(Result));
 }
Beispiel #9
0
 public extern static int XGrabButton(IntPtr display,
                                      int button, uint modifiers, Window grab_window,
                                      Bool owner_events, EventMask event_mask,
                                      GrabMode pointer_mode, GrabMode keyboard_mode,
                                      Window confine_to, Cursor cursor);
Beispiel #10
0
 public static string serializeSingleBool(Bool boolean)
 {
     return "{\"bool\": {\"data\": " + boolean.data + "}";
 } 
 public Student(string name, Bool pass)
 {
     this.StudentName = name;
     this.Passed      = pass;
 }
 public object VisitBool(Bool node)
 {
     return(node.Value);
 }
Beispiel #13
0
 public MatchedCellAvailable(ICell boardCell, Bool origin)
 {
     _boardCell = boardCell;
     _origin    = origin;
 }
Beispiel #14
0
 public Deviceset()
 {
     Prefix    = "";
     Uservalue = Bool.no;
 }
Beispiel #15
0
 public And(Bool boolA, Bool boolB)
 {
     _boolA = boolA;
     _boolB = boolB;
 }
Beispiel #16
0
 static Bool RuntimeBool(Bool input) => Undefined.IsDefined(input);
Beispiel #17
0
 public abstract void PrepareResources(DateTime presentTargetTime, out Bool isContentDirty);
Beispiel #18
0
 static extern Status XIGrabDevice(IntPtr display, int deviceid, Window grab_window, Time time,
                                   Cursor cursor, int grab_mode, int paired_device_mode, Bool owner_events, XIEventMask[] mask);
Beispiel #19
0
        public void GetProperties()
        {
            ModelObjectEnumerator modelObjectEnum = model.GetModelObjectSelector().GetSelectedObjects();

            if (modelObjectEnum.GetSize() == 1)
            {
                while (modelObjectEnum.MoveNext())
                {
                    if (modelObjectEnum.Current is Tekla.Structures.Model.BoltGroup)
                    {
                        BoltGroup boltGroup = (BoltGroup)modelObjectEnum.Current;
                        boltSize     = boltGroup.BoltSize.ToString();
                        boltStandard = boltGroup.BoltStandard.ToString();
                        if (boltGroup.BoltType == BoltGroup.BoltTypeEnum.BOLT_TYPE_SITE)
                        {
                            boltType = BoltTypeEnum.Site;
                        }
                        else if (boltGroup.BoltType == BoltGroup.BoltTypeEnum.BOLT_TYPE_WORKSHOP)
                        {
                            boltType = BoltTypeEnum.Workshop;
                        }

                        if (boltGroup.ThreadInMaterial == BoltGroup.BoltThreadInMaterialEnum.THREAD_IN_MATERIAL_YES)
                        {
                            threadMaterial = ThreadMaterialEnum.Yes;
                        }
                        else if (boltGroup.ThreadInMaterial == BoltGroup.BoltThreadInMaterialEnum.THREAD_IN_MATERIAL_NO)
                        {
                            threadMaterial = ThreadMaterialEnum.No;
                        }

                        cutLength      = boltGroup.CutLength.ToString();
                        extraLength    = boltGroup.ExtraLength.ToString();
                        boltGroupShape = boltGroup.GetType().Name;

                        if (boltGroup is BoltArray)
                        {
                            BoltArray boltArray = (BoltArray)boltGroup;

                            string boltPositionX = "";
                            for (int i = 0; i < boltArray.GetBoltDistXCount(); i++)
                            {
                                boltPositionX = boltPositionX + boltArray.GetBoltDistX(i).ToString() + " ";
                            }
                            boltDistX = boltPositionX.Trim();

                            string boltPositionY = "";
                            for (int i = 0; i < boltArray.GetBoltDistYCount(); i++)
                            {
                                boltPositionY = boltPositionY + boltArray.GetBoltDistY(i).ToString() + " ";
                            }
                            boltDistY = boltPositionY.Trim();
                        }
                        else if (boltGroup is BoltXYList)
                        {
                            BoltXYList boltXYList = (BoltXYList)boltGroup;

                            string boltPositionX = "";
                            for (int i = 0; i < boltXYList.GetBoltDistXCount(); i++)
                            {
                                boltPositionX = boltPositionX + boltXYList.GetBoltDistX(i).ToString() + " ";
                            }
                            boltDistX = boltPositionX.Trim();

                            string boltPositionY = "";
                            for (int i = 0; i < boltXYList.GetBoltDistYCount(); i++)
                            {
                                boltPositionY = boltPositionY + boltXYList.GetBoltDistY(i).ToString() + " ";
                            }
                            boltDistY = boltPositionY.Trim();
                        }
                        else if (boltGroup is BoltCircle)
                        {
                            BoltCircle boltCircle = (BoltCircle)boltGroup;
                            boltDistX = boltCircle.NumberOfBolts.ToString();
                            boltDistY = boltCircle.Diameter.ToString();
                        }

                        tolerance = boltGroup.Tolerance.ToString();

                        if (boltGroup.HoleType == BoltGroup.BoltHoleTypeEnum.HOLE_TYPE_SLOTTED)
                        {
                            holeType = HoleTypeEnum.Slotted;
                        }
                        else if (boltGroup.HoleType == BoltGroup.BoltHoleTypeEnum.HOLE_TYPE_OVERSIZED)
                        {
                            holeType = HoleTypeEnum.Oversized;
                        }

                        slottedHoleX = boltGroup.SlottedHoleX.ToString();
                        slottedHoleY = boltGroup.SlottedHoleY.ToString();

                        if (boltGroup.RotateSlots == BoltGroup.BoltRotateSlotsEnum.ROTATE_SLOTS_ODD)
                        {
                            rotateSlots = RotateSlotEnum.Odd;
                        }
                        else if (boltGroup.RotateSlots == BoltGroup.BoltRotateSlotsEnum.ROTATE_SLOTS_EVEN)
                        {
                            rotateSlots = RotateSlotEnum.Even;
                        }
                        else if (boltGroup.RotateSlots == BoltGroup.BoltRotateSlotsEnum.ROTATE_SLOTS_PARALLEL)
                        {
                            rotateSlots = RotateSlotEnum.Parallel;
                        }

                        if (boltGroup.Position.Plane == Position.PlaneEnum.LEFT)
                        {
                            positionOnPlane = PositionPlaneEnum.Left;
                        }
                        else if (boltGroup.Position.Plane == Position.PlaneEnum.MIDDLE)
                        {
                            positionOnPlane = PositionPlaneEnum.Middle;
                        }
                        else if (boltGroup.Position.Plane == Position.PlaneEnum.RIGHT)
                        {
                            positionOnPlane = PositionPlaneEnum.Right;
                        }
                        positionOnPlaneOffset = boltGroup.Position.PlaneOffset.ToString("F02");

                        if (boltGroup.Position.Rotation == Position.RotationEnum.FRONT)
                        {
                            positionRotation = PositionRotationEnum.Front;
                        }
                        else if (boltGroup.Position.Rotation == Position.RotationEnum.TOP)
                        {
                            positionRotation = PositionRotationEnum.Top;
                        }
                        else if (boltGroup.Position.Rotation == Position.RotationEnum.BACK)
                        {
                            positionRotation = PositionRotationEnum.Back;
                        }
                        else if (boltGroup.Position.Rotation == Position.RotationEnum.BELOW)
                        {
                            positionRotation = PositionRotationEnum.Below;
                        }
                        positionRotationOffset = boltGroup.Position.RotationOffset.ToString("F02");

                        if (boltGroup.Position.Depth == Position.DepthEnum.BEHIND)
                        {
                            positionAtDepth = PositionDepthEnum.Behind;
                        }
                        else if (boltGroup.Position.Depth == Position.DepthEnum.FRONT)
                        {
                            positionAtDepth = PositionDepthEnum.Front;
                        }
                        else if (boltGroup.Position.Depth == Position.DepthEnum.MIDDLE)
                        {
                            positionAtDepth = PositionDepthEnum.Middle;
                        }
                        positionAtDepthOffset = boltGroup.Position.DepthOffset.ToString("F02");
                        offsetFromStartX      = boltGroup.StartPointOffset.Dx.ToString("F02");
                        offsetFromStartY      = boltGroup.StartPointOffset.Dy.ToString("F02");
                        offsetFromStartZ      = boltGroup.StartPointOffset.Dz.ToString("F02");
                        offsetFromEndX        = boltGroup.EndPointOffset.Dx.ToString("F02");
                        offsetFromEndY        = boltGroup.EndPointOffset.Dy.ToString("F02");
                        offsetFromEndZ        = boltGroup.EndPointOffset.Dz.ToString("F02");

                        if (boltGroup.Hole1)
                        {
                            hole1 = Bool.True;
                        }
                        else
                        {
                            hole1 = Bool.False;
                        }
                        if (boltGroup.Hole2)
                        {
                            hole2 = Bool.True;
                        }
                        else
                        {
                            hole2 = Bool.False;
                        }
                        if (boltGroup.Hole3)
                        {
                            hole3 = Bool.True;
                        }
                        else
                        {
                            hole3 = Bool.False;
                        }
                        if (boltGroup.Hole4)
                        {
                            hole4 = Bool.True;
                        }
                        else
                        {
                            hole4 = Bool.False;
                        }
                        if (boltGroup.Hole5)
                        {
                            hole5 = Bool.True;
                        }
                        else
                        {
                            hole5 = Bool.False;
                        }

                        if (boltGroup.Washer1)
                        {
                            washer1 = Bool.True;
                        }
                        else
                        {
                            washer1 = Bool.False;
                        }
                        if (boltGroup.Washer2)
                        {
                            washer2 = Bool.True;
                        }
                        else
                        {
                            washer2 = Bool.False;
                        }
                        if (boltGroup.Washer3)
                        {
                            washer3 = Bool.True;
                        }
                        else
                        {
                            washer3 = Bool.False;
                        }

                        if (boltGroup.Nut1)
                        {
                            nut1 = Bool.True;
                        }
                        else
                        {
                            nut1 = Bool.False;
                        }
                        if (boltGroup.Nut2)
                        {
                            nut2 = Bool.True;
                        }
                        else
                        {
                            nut2 = Bool.False;
                        }

                        if (boltGroup.Bolt)
                        {
                            boltShaft = Bool.True;
                        }
                        else
                        {
                            boltShaft = Bool.False;
                        }
                    }
                }
            }
            if (modelObjectEnum.GetSize() > 1)
            {
                boltSize               = "";
                boltStandard           = "";
                boltType               = new BoltTypeEnum();
                threadMaterial         = new ThreadMaterialEnum();
                cutLength              = "";
                extraLength            = "";
                boltGroupShape         = "";
                boltDistX              = "";
                boltDistY              = "";
                tolerance              = "";
                slottedHoleX           = "";
                slottedHoleY           = "";
                rotateSlots            = new RotateSlotEnum();
                holeType               = new HoleTypeEnum();
                positionOnPlane        = new PositionPlaneEnum();
                positionOnPlaneOffset  = "";
                positionRotation       = new PositionRotationEnum();
                positionRotationOffset = "";
                positionAtDepth        = new PositionDepthEnum();
                positionAtDepthOffset  = "";
                offsetFromStartX       = "";
                offsetFromStartY       = "";
                offsetFromStartZ       = "";
                offsetFromEndX         = "";
                offsetFromEndY         = "";
                offsetFromEndZ         = "";
                hole1     = new Bool();
                hole2     = new Bool();
                hole3     = new Bool();
                hole4     = new Bool();
                hole5     = new Bool();
                boltShaft = new Bool();
                washer1   = new Bool();
                washer2   = new Bool();
                washer3   = new Bool();
                nut1      = new Bool();
                nut2      = new Bool();
            }
        }
Beispiel #20
0
 public bool ReadBool(byte[] block, int position)
 {
     return(Bool.Read(block, position));
 }
Beispiel #21
0
 public Or(Bool boolA, Bool boolB)
 {
     _boolA = boolA;
     _boolB = boolB;
 }
Beispiel #22
0
 public void WriteBool(byte[] block, int position, bool value)
 {
     Bool.Write(block, position, value);
 }
Beispiel #23
0
        static void Main(string[] args)
        {
            Channel channel = new Channel("127.0.0.1:50051", ChannelCredentials.Insecure);

            var client = WaiterService.NewClient(channel);

            Console.WriteLine("\nCommands available:\nstop\ncheckProducts\naddOrder id products\n" +
                              "closeOrder id\ncancelOrder id\nshowActiveOrders\nshowClosedOrders\n");
            while (true)
            {
                Console.WriteLine("Type command: ");
                String command = Console.ReadLine();
                if (command == "stop")
                {
                    break;
                }
                else if (command == "checkProducts")
                {
                    var    reply       = client.checkProducts(new Empty());
                    var    iterator    = reply.Values.GetEnumerator();
                    string productsMsg = "";
                    do
                    {
                        var prd = iterator.Current;
                        if (prd != null)
                        {
                            productsMsg += String.Format("id:{0} name:{1} description:{2} \n", prd.Id,
                                                         prd.Name, prd.Description);
                        }
                    } while (iterator.MoveNext());
                    Console.WriteLine(productsMsg);
                }
                else if (command.Contains("addOrder") && command.Split(' ').Length == 3)
                {
                    var        splitedCommand         = command.Split(' ');
                    var        productsOrdered        = splitedCommand[2].Split(',');
                    productArr productsOrderedRequest = new productArr();
                    foreach (var prod in productsOrdered)
                    {
                        Product product = new Product();
                        product.Name = prod;
                        productsOrderedRequest.Values.Add(product);
                    }
                    Order order = new Order();
                    order.Products = productsOrderedRequest;
                    order.Table    = int.Parse(splitedCommand[1]);
                    Bool result = client.addOrder(order);

                    if (result.Value)
                    {
                        Console.WriteLine("Order added succesfully!\n");
                    }
                    else
                    {
                        Console.WriteLine("You typed some not available products!\n");
                    }
                }
                else if (command.Contains("cancelOrder") && command.Split(' ').Length == 2)
                {
                    var splitedCommand = command.Split(' ');
                    int CancelId       = int.Parse(splitedCommand[1]);
                    Id  RequestId      = new Id();
                    RequestId.Value = CancelId;
                    Bool result = client.cancelOrder(RequestId);

                    if (result.Value)
                    {
                        Console.WriteLine("Order canceled succesfully!\n");
                    }
                    else
                    {
                        Console.WriteLine("Order does not exist!\n");
                    }
                }
                else if (command.Contains("closeOrder") && command.Split(' ').Length == 2)
                {
                    var splitedCommand = command.Split(' ');
                    int CloseId        = int.Parse(splitedCommand[1]);
                    Id  RequestId      = new Id();
                    RequestId.Value = CloseId;
                    Bool result = client.closeOrder(RequestId);

                    if (result.Value)
                    {
                        Console.WriteLine("Order closed succesfully!\n");
                    }
                    else
                    {
                        Console.WriteLine("Order does not exist!\n");
                    }
                }
                else if (command == "showActiveOrders")
                {
                    var    reply           = client.getActiveOrders(new Empty());
                    var    iterator        = reply.Values.GetEnumerator();
                    string activeOrdersMsg = "";
                    do
                    {
                        var OrderIt = iterator.Current;
                        if (OrderIt != null)
                        {
                            var    ProductsIt  = OrderIt.Products.Values.GetEnumerator();
                            string productsMsg = "";

                            do
                            {
                                var prd = ProductsIt.Current;
                                if (prd != null)
                                {
                                    productsMsg += prd.Name + ",";
                                }
                            } while (ProductsIt.MoveNext());

                            activeOrdersMsg += String.Format("id:{0} table:{1} products:{2} \n", OrderIt.Id,
                                                             OrderIt.Table, productsMsg);
                        }
                    } while (iterator.MoveNext());

                    if (String.IsNullOrEmpty(activeOrdersMsg))
                    {
                        Console.WriteLine("No active orders yet\n");
                    }
                    else
                    {
                        Console.WriteLine(activeOrdersMsg);
                    }
                }
                else if (command == "showClosedOrders")
                {
                    var    reply           = client.getClosedOrders(new Empty());
                    var    iterator        = reply.Values.GetEnumerator();
                    string closedOrdersMsg = "";
                    do
                    {
                        var OrderIt = iterator.Current;
                        if (OrderIt != null)
                        {
                            var    ProductsIt  = OrderIt.Products.Values.GetEnumerator();
                            string productsMsg = "";

                            do
                            {
                                var prd = ProductsIt.Current;
                                if (prd != null)
                                {
                                    productsMsg += prd.Name + ",";
                                }
                            } while (ProductsIt.MoveNext());

                            closedOrdersMsg += String.Format("id:{0} table:{1} products:{2} \n", OrderIt.Id,
                                                             OrderIt.Table, productsMsg);
                        }
                    } while (iterator.MoveNext());

                    if (String.IsNullOrEmpty(closedOrdersMsg))
                    {
                        Console.WriteLine("No closed orders yet\n");
                    }
                    else
                    {
                        Console.WriteLine(closedOrdersMsg);
                    }
                }
                else
                {
                    Console.WriteLine("Wrong command\n");
                }
            }

            channel.ShutdownAsync().Wait();
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();
        }
Beispiel #24
0
 object EndianObjectCodec_I.ReadBool(byte[] block, int offset)
 {
     return(Bool.Read(block, offset));
 }
Beispiel #25
0
        public override void Handle(IClient client, Tokens tokens)
        {
            string          name                = tokens.GetString(1);
            string          nickname            = tokens.GetString(2);
            int             scrollspeed         = tokens.GetInteger(3);
            Dimension       size                = tokens.GetDimension(4);
            Point           position            = tokens.GetPoint(6);
            string          background_image    = tokens.GetString(8);
            BackgroundStyle background_style    = (BackgroundStyle)tokens.GetEnum(9);
            string          unknown             = tokens.GetString(10);
            Color           foreground          = tokens.GetColor(11);
            Color           background          = tokens.GetColor(12);
            Color           channel_red         = tokens.GetColor(13);
            Color           channel_blue        = tokens.GetColor(14);
            int             font_size           = tokens.GetInteger(15);
            int             line_height         = tokens.GetInteger(16);
            int             nicklist_font_size  = tokens.GetInteger(17);
            Color           nicklist_background = tokens.GetColor(18);
            Bool            unknown2            = tokens.GetBoolean(19);
            string          combobox_value      = tokens.GetString(20);
            Bool            combobox_visible    = tokens.GetBoolean(21);
            int             message_maximum     = tokens.GetInteger(22);
            Bool            button_help         = tokens.GetBoolean(23);
            Bool            button_report       = tokens.GetBoolean(24);
            Bool            button_feedback     = tokens.GetBoolean(25);
            Bool            button_search       = tokens.GetBoolean(26);
            string          unknown3            = tokens.GetString(27);
            string          unknown4            = tokens.GetString(28);
            Bool            unknown5            = tokens.GetBoolean(29);

            Console.WriteLine("INCOMING CHANNEL FRAME");
            Console.WriteLine("\tname = " + name);
            Console.WriteLine("\tnickname = " + nickname);
            Console.WriteLine("\tscrollspeed = " + scrollspeed);
            Console.WriteLine("\tsize = " + size.ToString());
            Console.WriteLine("\tposition = " + position.ToString());
            Console.WriteLine("\tbackground_image = " + background_image);
            Console.WriteLine("\tbackground_style = " + background_style);
            Console.WriteLine("\tunknown = " + unknown);
            Console.WriteLine("\tforeground = " + foreground.ToString());
            Console.WriteLine("\tbackground = " + background.ToString());
            Console.WriteLine("\tchannel_red = " + channel_red.ToString());
            Console.WriteLine("\tchannel_blue = " + channel_blue.ToString());
            Console.WriteLine("\tfont_size = " + font_size);
            Console.WriteLine("\tline_height = " + line_height);
            Console.WriteLine("\tnicklist_font_size = " + nicklist_font_size);
            Console.WriteLine("\tnicklist_background = " + nicklist_background.ToString());
            Console.WriteLine("\tunknown2 = " + unknown2.ToString());
            Console.WriteLine("\tcombobox_value = " + combobox_value);
            Console.WriteLine("\tcombobox_visible = " + combobox_visible.ToString());
            Console.WriteLine("\tmessage_maximum = " + message_maximum);
            Console.WriteLine("\tbutton_help = " + button_help.ToString());
            Console.WriteLine("\tbutton_report = " + button_report.ToString());
            Console.WriteLine("\tbutton_feedback = " + button_feedback.ToString());
            Console.WriteLine("\tbutton_search = " + button_search.ToString());
            Console.WriteLine("\tunknown3 = " + unknown3);
            Console.WriteLine("\tunknown4 = " + unknown4);
            Console.WriteLine("\tunknown5 = " + unknown5.ToString());

            ((Client)client.GetCore()).CreateChannelFrame(name, delegate(UI.ChannelFrame window) {
                window.SetChannel(name);
                window.SetNickname(nickname);
                window.SetSize(size);
                window.SetLocation(position);
                window.SetScrollspeed(scrollspeed);
                window.SetForeground(foreground);
                window.SetBackground(background);
                window.SetBackground(background_image, background_style);
                window.SetChannelStyle(channel_red, channel_blue);
                window.SetFontSize(font_size);
                window.SetLineHeight(line_height);
                window.SetNicklist(nicklist_font_size, nicklist_background);

                window.Show();
            });
        }
Beispiel #26
0
 public Not(Bool origin) => _origin = origin;
Beispiel #27
0
 public static extern Bool SetOverlayQuad(Bool onTop, IntPtr texture, IntPtr device, Posef pose, Vector3f scale);
Beispiel #28
0
        public void ExecuteTest3()
        {
            var exp = new Bool(false);

            Assert.False(exp);
        }
 public static extern Result ovrp_GetNodePositionValid(Node nodeId, ref Bool nodePositionValid);
 public abstract void PrepareResources(DateTime presentTargetTime, out Bool isContentDirty);
Beispiel #31
0
 public static extern Bool ovrp_SetAppMonoscopic(Bool value);
Beispiel #32
0
 /// <summary>        
 /// Set PowerEnabled field</summary>
 /// <param name="powerEnabled_">Nullable field value to be set</param>      
 public void SetPowerEnabled(Bool? powerEnabled_)
 {
     SetFieldValue(18, 0, powerEnabled_, Fit.SubfieldIndexMainField);
 }
Beispiel #33
0
 /// <summary>        
 /// Set SpdEnabled field</summary>
 /// <param name="spdEnabled_">Nullable field value to be set</param>      
 public void SetSpdEnabled(Bool? spdEnabled_)
 {
     SetFieldValue(15, 0, spdEnabled_, Fit.SubfieldIndexMainField);
 }
Beispiel #34
0
 /// <summary>        
 /// Set AutoWheelCal field</summary>
 /// <param name="autoWheelCal_">Nullable field value to be set</param>      
 public void SetAutoWheelCal(Bool? autoWheelCal_)
 {
     SetFieldValue(12, 0, autoWheelCal_, Fit.SubfieldIndexMainField);
 }
Beispiel #35
0
 /// <summary>        
 /// Set CadEnabled field</summary>
 /// <param name="cadEnabled_">Nullable field value to be set</param>      
 public void SetCadEnabled(Bool? cadEnabled_)
 {
     SetFieldValue(16, 0, cadEnabled_, Fit.SubfieldIndexMainField);
 }
Beispiel #36
0
		public static extern Bool ovrp_SetAppMonoscopic(Bool value);
Beispiel #37
0
		public static extern Bool ovrp_SetEyeOcclusionMeshEnabled(Bool value);
Beispiel #38
0
 public virtual void Visit(Bool node)
 {
 }
Beispiel #39
0
 static extern Status XIGrabDevice(IntPtr display, int deviceid, Window grab_window, Time time,
     Cursor cursor, int grab_mode, int paired_device_mode, Bool owner_events, XIEventMask[] mask);
Beispiel #40
0
 /// <summary>        
 /// Set ShimanoDi2Enabled field</summary>
 /// <param name="shimanoDi2Enabled_">Nullable field value to be set</param>      
 public void SetShimanoDi2Enabled(Bool? shimanoDi2Enabled_)
 {
     SetFieldValue(44, 0, shimanoDi2Enabled_, Fit.SubfieldIndexMainField);
 }
        public void GetProperties()
        {
            DrawingObjectEnumerator drawingObjectEnum = drawingHandler.GetDrawingObjectSelector().GetSelected();
            if (drawingObjectEnum.GetSize() == 1)
            {
                while (drawingObjectEnum.MoveNext())
                {
                    if (drawingObjectEnum.Current is Tekla.Structures.Drawing.GridLine)
                    {
                        Tekla.Structures.Drawing.GridLine grid = (Tekla.Structures.Drawing.GridLine)drawingObjectEnum.Current;
                        if (grid.Attributes.DrawOnlyTextLabelsNotGridLines) drawOnlyTextLabelsNotGridLines = Bool.True;
                        else drawOnlyTextLabelsNotGridLines = Bool.False;

                        if (grid.Attributes.DrawTextAtEndOfGridLine) drawTextAtEndOfGridLine = Bool.True;
                        else drawTextAtEndOfGridLine = Bool.False;

                        if (grid.Attributes.DrawTextAtStartOfGridLine) drawTextAtStartOfGridLine = Bool.True;
                        else drawTextAtStartOfGridLine = Bool.False;

                        if (grid.Attributes.Font.Bold) fontBold = Bool.True; else fontBold = Bool.False;

                        fontColour = grid.Attributes.Font.Color;
                        fontHeight = grid.Attributes.Font.Height.ToString();

                        if (grid.Attributes.Font.Italic) fontItalic = Bool.True; else fontItalic = Bool.False;

                        fontName = grid.Attributes.Font.Name;
                        frameColour = grid.Attributes.Frame.Color;
                        if (grid.Attributes.Frame.Type == FrameTypes.Circle) frameType = FrameTypeEnum.Circle;
                        else if (grid.Attributes.Frame.Type == FrameTypes.Diamond) frameType = FrameTypeEnum.Diamond;
                        else if (grid.Attributes.Frame.Type == FrameTypes.Hexagon) frameType = FrameTypeEnum.Hexagon;
                        else if (grid.Attributes.Frame.Type == FrameTypes.Line) frameType = FrameTypeEnum.Line;
                        else if (grid.Attributes.Frame.Type == FrameTypes.None) frameType = FrameTypeEnum.None;
                        else if (grid.Attributes.Frame.Type == FrameTypes.Rectangular) frameType = FrameTypeEnum.Rectangular;
                        else if (grid.Attributes.Frame.Type == FrameTypes.Round) frameType = FrameTypeEnum.Round;
                        else if (grid.Attributes.Frame.Type == FrameTypes.Sharpened) frameType = FrameTypeEnum.Sharpened;
                        else if (grid.Attributes.Frame.Type == FrameTypes.Triangle) frameType = FrameTypeEnum.Triangle;
                        lineColour = grid.Attributes.Line.Color;

                        if (grid.Attributes.Line.Type == LineTypes.DashDot) lineType = LineTypeEnum.DashDot;
                        else if (grid.Attributes.Line.Type == LineTypes.DashDoubleDot) lineType = LineTypeEnum.DashDoubleDot;
                        else if (grid.Attributes.Line.Type == LineTypes.DashedLine) lineType = LineTypeEnum.DashedLine;
                        else if (grid.Attributes.Line.Type == LineTypes.DottedLine) lineType = LineTypeEnum.DottedLine;
                        else if (grid.Attributes.Line.Type == LineTypes.SlashDash) lineType = LineTypeEnum.SlashDash;
                        else if (grid.Attributes.Line.Type == LineTypes.SlashedLine) lineType = LineTypeEnum.SlashedLine;
                        else if (grid.Attributes.Line.Type == LineTypes.SolidLine) lineType = LineTypeEnum.SolidLine;
                        else if (grid.Attributes.Line.Type == LineTypes.UndefinedLine) lineType = LineTypeEnum.UndefinedLine;

                        offsetAtEndOfLine = grid.Attributes.OffsetAtEndOfLine.ToString();
                        offsetAtStartOfLine = grid.Attributes.OffsetAtStartOfLine.ToString();
                        gridLabelText = grid.EndLabel.GridLabelText;
                    }
                }
            }
            if (drawingObjectEnum.GetSize() > 1)
            {
                drawOnlyTextLabelsNotGridLines = new Bool();
                drawTextAtEndOfGridLine = new Bool();
                drawTextAtStartOfGridLine = new Bool();
                fontColour = new DrawingColors();
                fontHeight = "";
                fontBold = new Bool();
                fontItalic = new Bool();
                fontName = "";
                frameColour = new DrawingColors();
                frameType = new FrameTypeEnum();
                lineColour = new DrawingColors();
                lineType = new LineTypeEnum();
                offsetAtEndOfLine = "";
                offsetAtStartOfLine = "";
                gridLabelText = "";
            }
        }
 public void GetProperties()
 {
     DrawingObjectEnumerator drawingObjectEnum = drawingHandler.GetDrawingObjectSelector().GetSelected();
     if (drawingObjectEnum.GetSize() == 1)
     {
         while (drawingObjectEnum.MoveNext())
         {
             if (drawingObjectEnum.Current is Tekla.Structures.Drawing.View)
             {
                 Tekla.Structures.Drawing.View drawingView = (Tekla.Structures.Drawing.View)drawingObjectEnum.Current;
                 scale = drawingView.Attributes.Scale.ToString("F02");
                 sizeXMin = drawingView.RestrictionBox.MinPoint.X.ToString("F02");
                 sizeXMax = drawingView.RestrictionBox.MaxPoint.X.ToString("F02");
                 sizeYMin = drawingView.RestrictionBox.MinPoint.Y.ToString("F02");
                 sizeYMax = drawingView.RestrictionBox.MaxPoint.Y.ToString("F02");
                 sizeDepthDown = Math.Abs(drawingView.RestrictionBox.MinPoint.Z).ToString("F02");
                 sizeDepthUp = drawingView.RestrictionBox.MaxPoint.Z.ToString("F02");
                 viewExtension = drawingView.Attributes.ViewExtensionForNeighbourParts.ToString("F02");
                 if (drawingView.Attributes.FixedViewPlacing) fixedViewPlacing = Bool.True; else fixedViewPlacing = Bool.False;
                 if (drawingView.Attributes.Shortening.CutParts) cutParts = Bool.True; else cutParts = Bool.False;
                 minimumLength = drawingView.Attributes.Shortening.MinimumLength.ToString("F02");
             }
         }
     }
     else if (drawingObjectEnum.GetSize() > 1)
     {
         scale = "";
         sizeXMin = "";
         sizeXMax = "";
         sizeYMin = "";
         sizeYMax = "";
         sizeDepthDown = "";
         sizeDepthUp = "";
         viewExtension = "";
         fixedViewPlacing = new Bool();
         cutParts = new Bool();
         minimumLength = "";
     }
 }
Beispiel #43
0
 private static void XInputEnable_(Bool arg0);
Beispiel #44
0
 public static extern Bool ovrp_SetAppIgnoreVrFocus(Bool value);
Beispiel #45
0
 /// <summary>        
 /// Set Completed field
 /// Comment: TRUE if this activity has been started</summary>
 /// <param name="completed_">Nullable field value to be set</param>      
 public void SetCompleted(Bool? completed_)
 {
     SetFieldValue(4, 0, completed_, Fit.SubfieldIndexMainField);
 }
Beispiel #46
0
        public virtual void OnRender(Texture2D targetBase, Bool forward)
        {
            lock (lockObject)
            {
                DataStream datastream;

                if (capture == null)
                    return;

                if(nextFrame!=null)
                    nextFrame.Dispose();

                if (!forward)
                {
                    var pos = capture.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES);
                    pos-=4;
                    if(pos>=0)
                        capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES, pos);
                }

                // get the next frame
                nextFrame = capture.QueryFrame();

                if (nextFrame == null)
                {
                    capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES, 0);
                    nextFrame = capture.QueryFrame();
                }

                if (nextFrame != null)
                {
                    // lock the data for reading
                    System.Drawing.Bitmap bitmap = nextFrame.ToBitmap();
                    System.Drawing.Imaging.BitmapData bitdata = bitmap.LockBits(new System.Drawing.Rectangle(0, 0, VideoSize.Width, VideoSize.Height),
                                                                                System.Drawing.Imaging.ImageLockMode.ReadOnly,
                                                                                System.Drawing.Imaging.PixelFormat.Format32bppRgb);

                    // update the texture to the next data
                    dev.ImmediateContext.MapSubresource(targetBase, 0, MapMode.WriteDiscard, MapFlags.None, out datastream);

                    datastream.Write(bitdata.Scan0, 0, bitdata.Height * bitdata.Stride);

                    dev.ImmediateContext.UnmapSubresource(targetBase, 0);

                    // unlock the data
                    bitmap.UnlockBits(bitdata);
                    bitmap.Dispose();
                }
                else
                {
                    capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES, 0);
                }

                return;

                if (isVideoStopped)
                    return;

                if (!isDirty)
                    return;

                // update the texture

                isDirty = false;

            }
        }
Beispiel #47
0
 public extern static int XGrabButton(IntPtr display,
     int button, uint modifiers, Window grab_window,
     Bool owner_events, EventMask event_mask,
     GrabMode pointer_mode, GrabMode keyboard_mode,
     Window confine_to, Cursor cursor);
Beispiel #48
0
 /// <summary>        
 /// Set AutoPowerZero field</summary>
 /// <param name="autoPowerZero_">Nullable field value to be set</param>      
 public void SetAutoPowerZero(Bool? autoPowerZero_)
 {
     SetFieldValue(13, 0, autoPowerZero_, Fit.SubfieldIndexMainField);
 }
Beispiel #49
0
		public static extern Bool ovrp_SetAppIgnoreVrFocus(Bool value);
Beispiel #50
0
 private bool CompBool(bool value, Op op, Bool cvalue)
 {
     if(cvalue != Bool.Nil)
     {
         switch (op)
         {
             case Op.NotSet:
                 return false;
             case Op.Equal:
                 return cvalue.Compare(value);
             case Op.NotEqual:
                 return !cvalue.Compare(value);
             default:
                 return false;
         }
     }
     return false;
 }
Beispiel #51
0
 public static extern Bool ovrp_SetTrackingPositionEnabled(Bool value);
Beispiel #52
0
 /// <summary>        
 /// Set Repeat field</summary>
 /// <param name="repeat_">Nullable field value to be set</param>      
 public void SetRepeat(Bool? repeat_)
 {
     SetFieldValue(6, 0, repeat_, Fit.SubfieldIndexMainField);
 }
 private static void AssertEqual(bool expected, Bool value)
 {
     Assert.AreEqual(expected, (bool)value);
 }
Beispiel #54
0
 /// <summary>        
 /// Set Enabled field</summary>
 /// <param name="enabled_">Nullable field value to be set</param>      
 public void SetEnabled(Bool? enabled_)
 {
     SetFieldValue(10, 0, enabled_, Fit.SubfieldIndexMainField);
 }
 /// <summary>	
 /// Get an array of boolean variables.	
 /// </summary>	
 /// <param name="offset">Must be set to 0; this is reserved for future use.  </param>
 /// <param name="count">The number of array elements to set. </param>
 /// <returns>Returns one of the following {{Direct3D 10 Return Codes}}. </returns>
 /// <unmanaged>HRESULT ID3D10EffectScalarVariable::GetBoolArray([Out, Buffer] BOOL* pData,[None] int Offset,[None] int Count)</unmanaged>
 public bool[] GetBoolArray(int offset, int count)
 {
     var temp = new Bool[count];
     GetBoolArray(temp, offset, count);
     return Utilities.ConvertToBoolArray(temp);
 }        
 void IDrawingSurfaceContentProviderNative.PrepareResources(DateTime presentTargetTime, out Bool isContentDirty)
 {
     isContentDirty = true;
 }
        public void GetProperties()
        {
            ModelObjectEnumerator modelObjectEnum = model.GetModelObjectSelector().GetSelectedObjects();
            if (modelObjectEnum.GetSize() == 1)
            {
                while (modelObjectEnum.MoveNext())
                {
                    if (modelObjectEnum.Current is Tekla.Structures.Model.BoltGroup)
                    {
                        BoltGroup boltGroup = (BoltGroup)modelObjectEnum.Current;
                        boltSize = boltGroup.BoltSize.ToString();
                        boltStandard = boltGroup.BoltStandard.ToString();
                        if (boltGroup.BoltType == BoltGroup.BoltTypeEnum.BOLT_TYPE_SITE)
                            boltType = BoltTypeEnum.Site;
                        else if (boltGroup.BoltType == BoltGroup.BoltTypeEnum.BOLT_TYPE_WORKSHOP)
                            boltType = BoltTypeEnum.Workshop;

                        if (boltGroup.ThreadInMaterial == BoltGroup.BoltThreadInMaterialEnum.THREAD_IN_MATERIAL_YES)
                            threadMaterial = ThreadMaterialEnum.Yes;
                        else if (boltGroup.ThreadInMaterial == BoltGroup.BoltThreadInMaterialEnum.THREAD_IN_MATERIAL_NO)
                            threadMaterial = ThreadMaterialEnum.No;

                        cutLength = boltGroup.CutLength.ToString();
                        extraLength = boltGroup.ExtraLength.ToString();
                        boltGroupShape = boltGroup.GetType().Name;

                        if (boltGroup is BoltArray)
                        {
                            BoltArray boltArray = (BoltArray)boltGroup;

                            string boltPositionX = "";
                            for (int i = 0; i < boltArray.GetBoltDistXCount(); i++)
                                boltPositionX = boltPositionX + boltArray.GetBoltDistX(i).ToString() + " ";
                            boltDistX = boltPositionX.Trim();

                            string boltPositionY = "";
                            for (int i = 0; i < boltArray.GetBoltDistYCount(); i++)
                                boltPositionY = boltPositionY + boltArray.GetBoltDistY(i).ToString() + " ";
                            boltDistY = boltPositionY.Trim();
                        }
                        else if (boltGroup is BoltXYList)
                        {
                            BoltXYList boltXYList = (BoltXYList)boltGroup;

                            string boltPositionX = "";
                            for (int i = 0; i < boltXYList.GetBoltDistXCount(); i++)
                                boltPositionX = boltPositionX + boltXYList.GetBoltDistX(i).ToString() + " ";
                            boltDistX = boltPositionX.Trim();

                            string boltPositionY = "";
                            for (int i = 0; i < boltXYList.GetBoltDistYCount(); i++)
                                boltPositionY = boltPositionY + boltXYList.GetBoltDistY(i).ToString() + " ";
                            boltDistY = boltPositionY.Trim();
                        }
                        else if (boltGroup is BoltCircle)
                        {
                            BoltCircle boltCircle = (BoltCircle)boltGroup;
                            boltDistX = boltCircle.NumberOfBolts.ToString();
                            boltDistY = boltCircle.Diameter.ToString();
                        }

                        tolerance = boltGroup.Tolerance.ToString();

                        if (boltGroup.HoleType == BoltGroup.BoltHoleTypeEnum.HOLE_TYPE_SLOTTED)
                            holeType = HoleTypeEnum.Slotted;
                        else if (boltGroup.HoleType == BoltGroup.BoltHoleTypeEnum.HOLE_TYPE_OVERSIZED)
                            holeType = HoleTypeEnum.Oversized;

                        slottedHoleX = boltGroup.SlottedHoleX.ToString();
                        slottedHoleY = boltGroup.SlottedHoleY.ToString();

                        if (boltGroup.RotateSlots == BoltGroup.BoltRotateSlotsEnum.ROTATE_SLOTS_ODD)
                            rotateSlots = RotateSlotEnum.Odd;
                        else if (boltGroup.RotateSlots == BoltGroup.BoltRotateSlotsEnum.ROTATE_SLOTS_EVEN)
                            rotateSlots = RotateSlotEnum.Even;
                        else if (boltGroup.RotateSlots == BoltGroup.BoltRotateSlotsEnum.ROTATE_SLOTS_PARALLEL)
                            rotateSlots = RotateSlotEnum.Parallel;

                        if (boltGroup.Position.Plane == Position.PlaneEnum.LEFT) positionOnPlane = PositionPlaneEnum.Left;
                        else if (boltGroup.Position.Plane == Position.PlaneEnum.MIDDLE) positionOnPlane = PositionPlaneEnum.Middle;
                        else if (boltGroup.Position.Plane == Position.PlaneEnum.RIGHT) positionOnPlane = PositionPlaneEnum.Right;
                        positionOnPlaneOffset = boltGroup.Position.PlaneOffset.ToString("F02");

                        if (boltGroup.Position.Rotation == Position.RotationEnum.FRONT) positionRotation = PositionRotationEnum.Front;
                        else if (boltGroup.Position.Rotation == Position.RotationEnum.TOP) positionRotation = PositionRotationEnum.Top;
                        else if (boltGroup.Position.Rotation == Position.RotationEnum.BACK) positionRotation = PositionRotationEnum.Back;
                        else if (boltGroup.Position.Rotation == Position.RotationEnum.BELOW) positionRotation = PositionRotationEnum.Below;
                        positionRotationOffset = boltGroup.Position.RotationOffset.ToString("F02");

                        if (boltGroup.Position.Depth == Position.DepthEnum.BEHIND) positionAtDepth = PositionDepthEnum.Behind;
                        else if (boltGroup.Position.Depth == Position.DepthEnum.FRONT) positionAtDepth = PositionDepthEnum.Front;
                        else if (boltGroup.Position.Depth == Position.DepthEnum.MIDDLE) positionAtDepth = PositionDepthEnum.Middle;
                        positionAtDepthOffset = boltGroup.Position.DepthOffset.ToString("F02");
                        offsetFromStartX = boltGroup.StartPointOffset.Dx.ToString("F02");
                        offsetFromStartY = boltGroup.StartPointOffset.Dy.ToString("F02");
                        offsetFromStartZ = boltGroup.StartPointOffset.Dz.ToString("F02");
                        offsetFromEndX = boltGroup.EndPointOffset.Dx.ToString("F02");
                        offsetFromEndY = boltGroup.EndPointOffset.Dy.ToString("F02");
                        offsetFromEndZ = boltGroup.EndPointOffset.Dz.ToString("F02");

                        if (boltGroup.Hole1) hole1 = Bool.True; else hole1 = Bool.False;
                        if (boltGroup.Hole2) hole2 = Bool.True; else hole2 = Bool.False;
                        if (boltGroup.Hole3) hole3 = Bool.True; else hole3 = Bool.False;
                        if (boltGroup.Hole4) hole4 = Bool.True; else hole4 = Bool.False;
                        if (boltGroup.Hole5) hole5 = Bool.True; else hole5 = Bool.False;

                        if (boltGroup.Washer1) washer1 = Bool.True; else washer1 = Bool.False;
                        if (boltGroup.Washer2) washer2 = Bool.True; else washer2 = Bool.False;
                        if (boltGroup.Washer3) washer3 = Bool.True; else washer3 = Bool.False;

                        if (boltGroup.Nut1) nut1 = Bool.True; else nut1 = Bool.False;
                        if (boltGroup.Nut2) nut2 = Bool.True; else nut2 = Bool.False;

                        if (boltGroup.Bolt) boltShaft = Bool.True; else boltShaft = Bool.False;
                    }
                }
            }
            if (modelObjectEnum.GetSize() > 1)
            {
                boltSize = "";
                boltStandard = "";
                boltType = new BoltTypeEnum();
                threadMaterial = new ThreadMaterialEnum();
                cutLength = "";
                extraLength = "";
                boltGroupShape = "";
                boltDistX = "";
                boltDistY = "";
                tolerance = "";
                slottedHoleX = "";
                slottedHoleY = "";
                rotateSlots = new RotateSlotEnum();
                holeType = new HoleTypeEnum();
                positionOnPlane = new PositionPlaneEnum();
                positionOnPlaneOffset = "";
                positionRotation = new PositionRotationEnum();
                positionRotationOffset = "";
                positionAtDepth = new PositionDepthEnum();
                positionAtDepthOffset = "";
                offsetFromStartX = "";
                offsetFromStartY = "";
                offsetFromStartZ = "";
                offsetFromEndX = "";
                offsetFromEndY = "";
                offsetFromEndZ = "";
                hole1 = new Bool();
                hole2 = new Bool();
                hole3 = new Bool();
                hole4 = new Bool();
                hole5 = new Bool();
                boltShaft = new Bool();
                washer1 = new Bool();
                washer2 = new Bool();
                washer3 = new Bool();
                nut1 = new Bool();
                nut2 = new Bool();
            }
        }
Beispiel #58
0
		public static extern Bool ovrp_SetTrackingPositionEnabled(Bool value);
 public void GetProperties()
 {
     DrawingObjectEnumerator drawingObjectEnum = drawingHandler.GetDrawingObjectSelector().GetSelected();
     if (drawingObjectEnum.GetSize() == 1)
     {
         while (drawingObjectEnum.MoveNext())
         {
             if (drawingObjectEnum.Current is Tekla.Structures.Drawing.Bolt)
             {
                 Tekla.Structures.Drawing.Bolt drawingBolt = (Tekla.Structures.Drawing.Bolt)drawingObjectEnum.Current;
                 boltRepresentation = drawingBolt.Attributes.Representation;
                 if (drawingBolt.Attributes.SymbolContainsAxis) symbolContainsAxis = Bool.True; else symbolContainsAxis = Bool.False;
                 if (drawingBolt.Attributes.SymbolContainsHole) symbolContainsHole = Bool.True; else symbolContainsHole = Bool.False;
                 colour = drawingBolt.Attributes.Color;
             }
         }
     }
     else if (drawingObjectEnum.GetSize() > 1)
     {
         boltRepresentation = new Bolt.Representation();
         symbolContainsAxis = new Bool();
         SymbolContainsHole = new Bool();
         colour = new DrawingColors();
     }
 }
Beispiel #60
-1
		public static extern Bool ovrp_SetOverlayQuad2(Bool onTop, Bool headLocked, IntPtr texture, IntPtr device, Posef pose, Vector3f scale);