public ILSceneGraphNodeEventArgs(ILSceneGraphNode node) { Node = node; }
private void getAllShapes(ILSceneGraphNode node, List<ILShape> ret) { foreach (ILSceneGraphNode n in node) { if (n is ILSceneGraphShapedLeaf) { ILSceneGraphShapedLeaf snode = n as ILSceneGraphShapedLeaf; if (snode.Shape != null) ret.Add(snode.Shape); } getAllShapes(n,ret); } }
/// <summary> /// add new node as child of another node /// </summary> /// <param name="node"></param> /// <param name="parent"></param> public void AddNode(ILSceneGraphNode node, ILSceneGraphInnerNode parent) { parent.Add(node); }
/// <summary> /// add new node to root node /// </summary> /// <param name="node"></param> public void AddNode(ILSceneGraphNode node) { AddNode(node, m_root); }
protected override void OnNodeRemoved(ILSceneGraphNode node) { if (NodeRemoved != null && !m_eventingSuspended) { NodeRemoved(this, new ILSceneGraphNodeEventArgs(node)); } }
public ILSceneGraphNodeEventArgs(ILSceneGraphNode node) { Node = node; }