private void ActionReceiver_OnAction(NodeAction sender, NodeActionEvent action, Context context, NodeActionProvider trigger, TraverseAction traverser, IntPtr userdata) { // Locked in edit or render (render) by caller if ((action == NodeActionEvent.IS_TRAVERSABLE) || (action == NodeActionEvent.IS_NOT_TRAVERSABLE)) { pendingActivations.Add(new ActivationInfo(action, trigger as Node)); } else { trigger?.ReleaseNoDelete(); // We are getting ref counts on objects in scene graph and these need to be released immediately } traverser?.ReleaseNoDelete(); context?.ReleaseNoDelete(); }
private static void TraverseFolders(VirtualFolder clientFolder, VirtualFolder serviceFolder, TraverseAction assertAction) { assertAction(clientFolder, serviceFolder); //get child folders var cFolders = clientFolder.GetFolders().ToArray(); var sFolders = serviceFolder.GetFolders().ToArray(); Assert.AreEqual(sFolders.Count(), cFolders.Count()); for (int i = 0; i < sFolders.Length; i++) { TraverseFolders(cFolders[i], sFolders[i], assertAction); } }
public void Render(Context context, UInt32 size_x, UInt32 size_y, UInt32 width, TraverseAction action) { Camera_render(GetNativeReference(), context.GetNativeReference(), size_x, size_y, width, action.GetNativeReference()); }
protected void Traverse(TraverseAction assertAction) { TraverseFolders(ClientRoot, ServiceRoot, assertAction); }
/** * If <code>pAction.isMemberTraversionEnabled() == true</code> this method * traverses all <code>JSOM</code> members that belong to <code>this</code> * by calling the <code>traverseAll(...)</code> method on these members with * <code>pAction</code> as argument. * <p> * Calling the methods <code>pAction.performAction(this)</code> and <code> * pAction.actionPerformed(this)</code> is up to classes that implement all * the abstract methods not implemented by this class. * * @see JSOM#traverseAll(TraverseAction) * * @param pAction User define traverse actions. * * @throws NullPointerException if <code>pAction</code> is <code> * null</code>. */ public virtual void traverseAll(TraverseAction pAction) { if (pAction.isMemberTraversingEnabled()) { // Traverse the members. getModifierList().traverseAll(pAction); if (mGenericTypeParamTree != null) { if (mGenericTypeParams == null) { resolveGenericTypeParameters(); } foreach (GenericTypeParameter param in mGenericTypeParams) { param.traverseAll(pAction); } } FormalParameterList formalParams = getFormalParameters(); if (formalParams != null) { formalParams.traverseAll(pAction); } ThrowsClause throwsClause = getThrowsClause(); if (throwsClause != null) { throwsClause.traverseAll(pAction); } } }
/** * If <code>pAction.isMemberTraversionEnabled() == true</code> this method * traverses all <code>JSOM</code> members that belong to <code>this</code> * by calling the <code>traverseAll(...)</code> method on these members with * <code>pAction</code> as argument. * <p> * Calling the methods <code>pAction.performAction(this)</code> and <code> * pAction.actionPerformed(this)</code> is up to classes that implement all * the abstract methods not implemented by this class. * * @see JSOM#traverseAll(TraverseAction) * * @param pAction User define traverse actions. * * @throws NullPointerException if <code>pAction</code> is <code> * null</code>. */ public override void traverseAll(TraverseAction pAction) { if (pAction.isMemberTraversingEnabled()) { // Traverse the members. base.traverseAll(pAction); if (hasMethodDeclaration()) { foreach (MethodDeclaration declaration in mMethodDecls) { declaration.traverseAll(pAction); } } } }