• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# LayerType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中LayerType的典型用法代码示例。如果您正苦于以下问题:C# LayerType类的具体用法?C# LayerType怎么用?C# LayerType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LayerType类属于命名空间,在下文中一共展示了LayerType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ABS_Layer

 public ABS_Layer(LayerType T_in, double depth_in, double Flow_Resistance, double _porosity, double YoungsModulus, double density, double PoissonsRatio, double tortuosity, double Viscous_Characteristic_Length, double Thermal_Permeability, double SpeedofSound)
 {
     T = T_in;
     depth = depth_in;
     Flow_Resist = Flow_Resistance;
     porosity = _porosity;
 }
开发者ID:MengdiGuo,项目名称:PachydermAcoustic_Rhinoceros,代码行数:7,代码来源:Classes_Absorption_Analytics.cs


示例2: CreateLayer

 public ILayer CreateLayer(int neurons, LayerType type)
 {
     var layer = new Layer();
     layer.Type = type;
     layer.Neurons = (List<INeuron>) neuronFactory.CreateNeuronCollection(neurons);
     return layer;
 }
开发者ID:reneincer,项目名称:nn-simple,代码行数:7,代码来源:LayerFactory.cs


示例3: ColorLayer

 public ColorLayer(LayerType type,
 DataUsed dataused,
 Interp interp,
 ProcessLayer calcdata,
 IGradientMap gr,
 double param1 = 0,
 double param2 = 0,
 double cycle = 1,
 double alpha = 1,
 double saturation = 1,
 double value = 1,
 LayerExtra alphaextr = LayerExtra.LAYER_EXTRA_NORMAL,
 LayerExtra saturationextr = LayerExtra.LAYER_EXTRA_NORMAL,
 LayerExtra valueextr = LayerExtra.LAYER_EXTRA_NORMAL)
 {
     c_type = type;
       c_dataused = dataused;
       c_interp = interp;
       c_valueextr = valueextr;
       c_saturationextr = saturationextr;
       c_alphaextr = alphaextr;
       c_param1 = param1;
       c_param2 = param2;
       c_value = value;
       c_saturation = saturation;
       c_alpha = alpha;
       c_cycle = cycle;
       c_calcdata = calcdata;
       c_gr = gr;
 }
开发者ID:sztupy,项目名称:RestFract,代码行数:30,代码来源:ColorLayer.cs


示例4: GetLayerColor

 private Color GetLayerColor(LayerType fx)
 {
     Color color = null;
     switch (fx)
     {
         case LayerType.f1:
             color = Color.FromColorIndex(ColorMethod.ByAci, 7);
             break;
         case LayerType.f2:
             color = Color.FromColorIndex(ColorMethod.ByAci, 210);
             break;
         case LayerType.f3:
             color = Color.FromColorIndex(ColorMethod.ByAci, 1);
             break;
         case LayerType.f4:
             color = Color.FromColorIndex(ColorMethod.ByAci, 70);
             break;
         case LayerType.f5:
             color = Color.FromColorIndex(ColorMethod.ByAci, 132);
             break;
         case LayerType.f6:
             color = Color.FromColorIndex(ColorMethod.ByAci, 132);
             break;
         case LayerType.AC:
             color = Color.FromColorIndex(ColorMethod.ByAci, 1);
             break;
     }
     return color;
 }
开发者ID:anielii,项目名称:Acommands,代码行数:29,代码来源:LayerManager.cs


示例5: DrawAction

 /// <summary>
 /// Constructor for Drawing PolyLines and Polygons
 /// </summary>
 /// <param name="layerType"></param>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="bEditingStarted"></param>
 /// <param name="mainControler"></param>
 public DrawAction(LayerType layerType, double x, double y, bool bEditingStarted, MainControler mainControler)
 {
     this.layerType = layerType;
     this.mainControler = mainControler;
     this.x = x;
     this.y = y;
     this.bEditingStarted = bEditingStarted;
 }
开发者ID:ntj,项目名称:GravurGIS,代码行数:16,代码来源:DrawAction.cs


示例6: CreateIfDoesntExists

 private void CreateIfDoesntExists(string layerName, LayerType fx, bool isPlottable)
 {
     Transaction trans = db.TransactionManager.StartTransaction();
     using (trans)
     {
         CreateIfDoesntExists(trans, layerName, fx, isPlottable);
         trans.Commit();
     }
 }
开发者ID:anielii,项目名称:Acommands,代码行数:9,代码来源:LayerManager.cs


示例7: CreateLayerGameObject

 GameObject CreateLayerGameObject(string name, LayerType type)
 {
     GameObject layer = new GameObject(name);
     layer.transform.parent = mParent.transform;
     layer.transform.localPosition = new Vector3(0,0,((int)type) * -1);
     layer.transform.localEulerAngles = Vector3.zero;
     layer.transform.localScale = Vector3.one;
     return layer;
 }
开发者ID:marcochiu2-c,项目名称:MainMenu,代码行数:9,代码来源:LayerMgr.cs


示例8: OnElementChanged

		/// <summary>
		/// Called when [element changed].
		/// </summary>
		/// <param name="e">The e.</param>
		protected override void OnElementChanged(ElementChangedEventArgs<Image> e)
		{
			base.OnElementChanged(e);

			if (e.OldElement == null && (int)Android.OS.Build.VERSION.SdkInt < 15)
			{
				LayerType it = new LayerType ();
				SetLayerType(it, null);
			}
		}
开发者ID:XnainA,项目名称:XamarinProfile,代码行数:14,代码来源:CircleImageRenderer.cs


示例9: LayerControl

 public LayerControl(string name, bool visible, LayerType type)
 {
     this.visible = visible;
     this.type = type;
     this.Initialize();
     this.Index = "0";
     this.Name = name;
     this.Text = name;
     this.Selected = false;
 }
开发者ID:ClementDidier,项目名称:GameMapEditor,代码行数:10,代码来源:LayerControl.cs


示例10: CreateLayerTypeObject

    GameObject CreateLayerTypeObject(string name, LayerType lType)
    {
        GameObject layer = new GameObject(name);
        layer.transform.SetParent(layerParent);
        layer.transform.localEulerAngles = Vector3.zero;
        layer.transform.localScale = Vector3.one;
        layer.transform.localPosition = new Vector3(0, 0, (int)lType);

        return layer;
    }
开发者ID:MohanLi,项目名称:Demo,代码行数:10,代码来源:LayerMgr.cs


示例11: GameTileLayer

        public GameTileLayer(int width, int height, LayerType.LayerTypesEnum layerType)
            : base(width, height, layerType)
        {
            m_layerLayout = new GameTile[width, height];

            //Set tile layer layout to be empty
            for (int x = 0; x < m_layoutWidth; x++)
                for (int y = 0; y < m_layoutHeight; y++)
                    m_layerLayout[x, y] = new GameTile(EMPTYTILEINDEX, new Point(x * TileWidth, y * TileHeight));
        }
开发者ID:BoyuanZhang,项目名称:monogame_tile_solution,代码行数:10,代码来源:GameTileLayer.cs


示例12: TileLayer

        public TileLayer(int width, int height, LayerType.LayerTypesEnum layerType)
        {
            m_tileTextureList = new List<Texture2D>();

            m_layoutWidth = width;
            m_layoutHeight = height;

            m_layerType = layerType;

            m_alphaChannel = 1.0f;
        }
开发者ID:BoyuanZhang,项目名称:monogame_tile_solution,代码行数:11,代码来源:TileLayer.cs


示例13: GetLayer

 private LayerTableRecord GetLayer(string layerName, LayerType fx, bool isPlottable, Transaction trans)
 {
     LayerTableRecord ltr = new LayerTableRecord();
     ltr.Name = layerName;
     Color color = GetLayerColor(fx);
     ltr.Color = color;
     LinetypeTable ltt = trans.GetObject(db.LinetypeTableId, OpenMode.ForRead) as LinetypeTable;
     ltr.LinetypeObjectId = ltt["Continuous"];
     ltr.IsPlottable = isPlottable;
     return ltr;
 }
开发者ID:anielii,项目名称:Acommands,代码行数:11,代码来源:LayerManager.cs


示例14: deleteLayer

        public void deleteLayer(LayerType layerType)
        {
            layers[(int)layerType].isSet = false;

            layers[(int)layerType].breakLinks();

            if (layerType == LayerType.SILICON_N ^ layerType == LayerType.SILICON_P)
                via = false;

            draw();
        }
开发者ID:macbernick,项目名称:celltronix,代码行数:11,代码来源:Cell.cs


示例15: Layer

        //---------------------------------------------------------------------
        public Layer(LayerName name, LayerType type)
        {
            this.name = name;
            this.type = type;
            this.carbon = 0.0;
            this.nitrogen = 0.0;

            this.decayValue = 0.0;
            this.fractionLignin = 0.0;

            this.netMineralization = 0.0;
            this.grossMineralization = 0.0;
        }
开发者ID:LANDIS-II-Foundation,项目名称:Extensions-Succession,代码行数:14,代码来源:Layer.cs


示例16: EditorTileLayer

        public EditorTileLayer(int width, int height, LayerType.LayerTypesEnum layerType)
            : base(width, height, layerType)
        {
            m_layerLayout = new EditorTile[width, height];

            //Set tile layer layout to be empty
            for (int x = 0; x < m_layoutWidth; x++)
                for (int y = 0; y < m_layoutHeight; y++)
                    m_layerLayout[x, y] = new EditorTile(EMPTYTILEINDEX, new Point(x * TileWidth, y * TileHeight));

            //initialize tile rectangle, only it's position will be changing in draws, not it's width or height unless tilewidth, or tileheight we changed
            m_tileRectangle = new Rectangle(0, 0, TileLayer.TileWidth, TileLayer.TileHeight);
        }
开发者ID:BoyuanZhang,项目名称:monogame_tile_solution,代码行数:13,代码来源:EditorTileLayer.cs


示例17: SetLayer

    public void SetLayer(GameObject current,LayerType type)
    {
        if(mLayerDic.Count < Enum.GetNames(typeof(LayerType)).Length){
            LayerInit();
        }

        current.transform.parent = mLayerDic[type].transform;
        UIPanel[] panelArr = current.GetComponentsInChildren<UIPanel>(true);

        foreach(UIPanel panel in panelArr){
            panel.depth += (int)type;
        }
    }
开发者ID:marcochiu2-c,项目名称:MainMenu,代码行数:13,代码来源:LayerMgr.cs


示例18: LayerPane_ItemTypeChanged

        private void LayerPane_ItemTypeChanged(object sender, int index, LayerType type)
        {
            if (this.ActiveMapPanel != null)
            {
                GameMapLayer layer = this.ActiveMapPanel.Map.GetLayerAt(index);

                if (layer != null)
                {
                    layer.Type = type;
                }
                else throw new NullReferenceException("Tentative de modification du type d'un objet inexistant");
            }
            else throw new NullReferenceException("Tentative de modification d'un control enfant inexistant");
        }
开发者ID:ClementDidier,项目名称:GameMapEditor,代码行数:14,代码来源:MainFrame.cs


示例19: SetLayer

 /// <summary>
 /// 设置Layer
 /// </summary>
 /// <param name="obj"></param>
 /// <param name="lType"></param>
 public void SetLayer(GameObject obj, LayerType lType)
 {
     int nums = Enum.GetNames(typeof(LayerType)).Length;
     if (layerTypeDict.Count < nums)
     {
         InitLayerType();
     }
     obj.transform.SetParent(layerTypeDict[lType].transform);
     UIPanel[] panels = obj.GetComponentsInChildren<UIPanel>(true);
     foreach (UIPanel panel in panels)
     {
         panel.depth += (int)lType;
     }
 }
开发者ID:MohanLi,项目名称:Demo,代码行数:19,代码来源:LayerMgr.cs


示例20: LayerTypeToString

    public static string LayerTypeToString(LayerType type)
    {
        switch(type)
        {
            case LayerType.Actor:
                return "Actor";
            case LayerType.Mothership:
                return "Mothership";
            case LayerType.Projectile:
                return "Projectile";
        }

        return "Invalid";
    }
开发者ID:Game-Group,项目名称:dog-fighter,代码行数:14,代码来源:TeamHelper.cs



注:本文中的LayerType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Layout类代码示例发布时间:2022-05-24
下一篇:
C# LayerMask类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap