当前位置: 首页>>代码示例>>C#>>正文


C# NsNode类代码示例

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


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

示例1: TreeForm

 public TreeForm()
 {
     InitializeComponent();
     NsNode node = new NsNode("root");
     node.Attach(nsNodeTree1);
     node.Update();
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:7,代码来源:TreeForm.cs

示例2: Center3d

 public Center3d(NsNode parent, System.Xml.XmlNode xml)
     : this()
 {
     m_parent = parent;
     if (!FromXml(xml))
         throw new AttributeXmlFormatException(this, xml, "Failed to read xml");
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:7,代码来源:RbfSurface.cs

示例3: TapeRefAttribute

 public TapeRefAttribute(NsNode parent, string Label, string ItemNumber, double Width)
 {
     m_parent = parent;
     m_width = Width;
     m_label = Label;
     m_itemnumber = ItemNumber;
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:7,代码来源:TapeRefAttribute.cs

示例4: ContourTracker

 public ContourTracker(string label)
 {
     m_node = new NsNode(label);
     Random rand = new Random();
     int i = rand.Next(5345);
     m_node.Add(new ContourAttribute(m_node, null, null));
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:7,代码来源:ContourTracker.cs

示例5: NsNodeFlow

 /// <summary>
 /// Constructs a node flow on a given node
 /// </summary>
 /// <param name="node">the node to flow</param>
 public NsNodeFlow(NsNode node)
 {
     InitializeComponent();
     InitializeFlow();
     m_node = node;
     if (Node != null)
         Reload();
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:12,代码来源:NsNodeFlow.cs

示例6: PassList

 public PassList(NsNode parent, string label, Point3D[][] xyzs, Point3D[][] uvws, double[][] speeds, double[][] caxes)
     : this(parent, label)
 {
     for (int i = 0; i < xyzs.GetLength(0); i++)
     {
         Add(new PassNode(this, xyzs[i], uvws[i], speeds[i], caxes[i]));
     }
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:8,代码来源:PassList.cs

示例7: PlyAttribute

 public PlyAttribute(NsNode parent, int id, int speed, string taperef, Color color)
 {
     m_parent = parent;
     m_id = id;
     m_speed = speed;
     m_taperef = taperef;
     m_color = color;
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:8,代码来源:PlyAttribute.cs

示例8: CustomBasis

 public CustomBasis(NsNode parent, double A, double B, double C, double D)
     : this(parent)
 {
     a = A;
        b = B;
        c = C;
        d = D;
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:8,代码来源:RBFBasii.cs

示例9: MeshNode

        public MeshNode(NsNode parent, System.Xml.XmlNode xml)
            : base(parent, xml)
        {
            //if(!FromXml(xml))
               //     throw new AttributeXmlFormatException(null, xml, "Failed to read xml");

               //Add(new MatrixNode(this, "Transformation", 4, 4));
        }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:8,代码来源:MeshNode.cs

示例10: MatrixNode

 public MatrixNode(NsNode parent, string Label, double[,] vals)
 {
     m_parent = parent;
     Add(new IntAttribute(this, "Rows", vals.GetLength(0)));
     Add(new IntAttribute(this, "Columns", vals.GetLength(1)));
     for (int i = 0; i < vals.GetLength(0); i++)
         for (int j = 0; j < vals.GetLength(1); j++)
             Add(new DoubleAttribute(this, "[" + i + "," + j + "]", vals[i, j]));
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:9,代码来源:MatrixAttribute.cs

示例11: ArrayAttribute

 public ArrayAttribute(NsNode parent, XmlNode xml)
     : this(parent, null, null)
 {
     if (!FromXml(xml))
     {
         System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(1, true);
         throw new AttributeXmlFormatException(this, xml, "Failed to read xml (" + stackFrame.GetMethod() + " ln: " + stackFrame.GetFileLineNumber() +")");
     }
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:9,代码来源:ArrayAttribute.cs

示例12: TapeAttribute

 public TapeAttribute(NsNode parent, string label, IList<PointF> points)
 {
     m_parent = parent;
     m_label = label;// Parent.IndexOf(this).ToString();
     if (points != null)
         m_points = new List<PointF>(points);
     else
         m_points = new List<PointF>();
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:9,代码来源:TapeAttribute.cs

示例13: AddNode

 private void AddNode()
 {
     NsNode node = new NsNode("new", Node);
     NsNodeEditor edit = new NsNodeEditor(node);
     if (edit.ShowDialog() == DialogResult.OK)
     {
         nodeList.Items.Add(CreateNodeItem(node));
         nodeList.Refresh();
     }
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:10,代码来源:NsNodeEditor.cs

示例14: YarnDoc

 public YarnDoc(string label, NsNode parent)
 {
     if (Path.GetExtension(label) != string.Empty)
     {
         m_doc = new NsNode(Path.GetFileName(label), parent);
         Open3dl(label);
     }
     else
         m_doc = new NsNode(label, parent);
 }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:10,代码来源:YarnDoc.cs

示例15: PolylineAttribute

        public PolylineAttribute(NsNode parent, string label, IList<double[]> points)
        {
            m_parent = parent;
            if (points != null)
                m_points = new List<double[]>(points);
            else
                m_points = new List<double[]>();

            Label = label;
        }
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:10,代码来源:PolylineAttribute.cs


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