本文整理汇总了C#中NsNode类的典型用法代码示例。如果您正苦于以下问题:C# NsNode类的具体用法?C# NsNode怎么用?C# NsNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NsNode类属于命名空间,在下文中一共展示了NsNode类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: MarkAttribute
public MarkAttribute(NsNode parent, string label, PointF point, int plyid)
{
m_parent = parent;
m_label = "Mark";
m_plyid = plyid;
if (point != PointF.Empty)
m_point = point;
else
m_point = new PointF();
}
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:10,代码来源:MarkAttribute.cs
示例17: RBFCurve
public RBFCurve(NsNode parent, string label, List<double[]> fitPoints, IBasisFunction basis, IRBFPolynomial poly, double relaxation)
: base(label, parent)
{
Add(new CenterArrayNode(this));
basis.CopyTo(this);
poly.CopyTo(this);
Relaxation = relaxation;
OriginalFitPoints = fitPoints;
Fit(fitPoints, relaxation);
}
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:10,代码来源:RBFCurve.cs
示例18: ContourNode
public ContourNode(NsNode parent, string label, ITracker tracker)
: base(label, parent)
{
Attributes.Add(new ContourAttribute(this, null, null));
if (tracker != null)
{
Attach(tracker);
if (tracker is INodeView)
Attach(tracker as INodeView);
}
}
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:11,代码来源:ContourNode.cs
示例19: TapeRosette
void TapeRosette(NsNode node, int ply, double den, double width)
{
double rad = 0;
if (radius.Text != "")
rad = double.Parse(radius.Text);
if (rad <= 0)
{
MessageBox.Show("Must enter a positive radius");
return;
}
double ntapes = 0;
if ( numtapes.Text != "")
ntapes = double.Parse(numtapes.Text);
if (ntapes <= 0)
{
MessageBox.Show("Must enter a positive number of tapes");
return;
}
double[] ang = angles.Point;
if (Math.Abs(ang[0]) < 1e-5 && Math.Abs(ang[1]) < 1e-5)
{
MessageBox.Show("Both angles cannot be 0");
return;
}
List<IAttribute> lines = new List<IAttribute>(3);
List<double[]> pnts = null;
PointAttribute pnt;
if (node.SimpleQuery("PointAttribute=*", lines, true))
{
pnts = new List<double[]>(lines.Count);
foreach (IAttribute atr in lines)
{
if (atr is PointAttribute)
{
pnt = atr as PointAttribute;
pnts.Add((double[])pnt.Value);
}
}
}
if (pnts != null && pnts.Count >= 1)
CreateRosettes(pnts, ply, den, width, rad, ntapes, ang[0], ang[1]);
}
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:46,代码来源:ContourMaker.cs
示例20: TapeContour
void TapeContour(NsNode node, int ply, double den, double width)
{
double[] dir = direction.Point;
if (Math.Abs(dir[0]) < 1e-5 && Math.Abs(dir[1]) < 1e-5)
{
MessageBox.Show("Must specify a taping direction");
return;
}
double[] ofs = offset.Point;
List<IAttribute> lines = new List<IAttribute>(1);
List<devDept.Geometry.Point3D> pnts = null;
if (node.SimpleQuery("PolylineAttribute=*", lines, true))
{
pnts = (List<devDept.Geometry.Point3D>)lines[0].Value;
}
if (pnts != null && pnts.Count > 2)
CreateContour(den, width, dir, ofs, pnts);
}
开发者ID:GMTurbo,项目名称:Free-Form-Matcher,代码行数:20,代码来源:ContourMaker.cs
注:本文中的NsNode类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论