本文整理汇总了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();
}
示例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");
}
示例3: TapeRefAttribute
public TapeRefAttribute(NsNode parent, string Label, string ItemNumber, double Width)
{
m_parent = parent;
m_width = Width;
m_label = Label;
m_itemnumber = ItemNumber;
}
示例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));
}
示例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();
}
示例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]));
}
}
示例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;
}
示例8: CustomBasis
public CustomBasis(NsNode parent, double A, double B, double C, double D)
: this(parent)
{
a = A;
b = B;
c = C;
d = D;
}
示例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));
}
示例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]));
}
示例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() +")");
}
}
示例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>();
}
示例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();
}
}
示例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);
}
示例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;
}