protected override void OnNodeRemoved(ILSceneGraphNode node)
 {
     if (NodeRemoved != null && !m_eventingSuspended)
     {
         NodeRemoved(this, new ILSceneGraphNodeEventArgs(node));
     }
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 /// <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);
 }
Exemple #4
0
 /// <summary>
 /// add new node to root node
 /// </summary>
 /// <param name="node"></param>
 public void AddNode(ILSceneGraphNode node)
 {
     AddNode(node, m_root);
 }