2.3.1.8 GETN_BEGIN_USE_BRANCH


Name

GETN_BEGIN_USE_BRANCH

Declaration

#define GETN_BEGIN_USE_BRANCH(_NODE_NAME) _tmpSubNode = _tmpNode.GetNode(#_NODE_NAME);TreeNode _tmSaveUse_##_NODE_NAME = _tmpNode; _tmpNode = _tmpSubNode;

Remark

GETN_BEGIN_USE_BRANCH and GETN_END_USE_BRANCH can direct reuse an already exist branch treenode.

Parameters

_NODE_NAME
[input]branch node exist.

Return

Examples

EX1

#include <GetNbox.h>
void GETN_BEGIN_USE_BRANCH_ex()
{
    GETN_TREE(testTree)
 
    GETN_CHECK(FitAllCurves, "Fit All Curves", 0)
      GETN_BEGIN_BRANCH(Fit, "Fitting Options") GETN_OPTION_BRANCH(GETNBRANCH_OPEN) //Match GETN_END_BRANCH
           GETN_CHECK(FixIntercept, "Fix Intercept", 0)
           GETN_CHECK(FixSlope, "Fix Slope", 0)
      GETN_END_BRANCH(Fit)    //Match GETN_BEGIN_BRANCH
    GETN_NUM(Points, "Points", 20)
 
    GETN_BEGIN_USE_BRANCH(Fit)
        GETN_SLIDEREDIT(min, "From", 0, "0|255|255")
        GETN_SLIDEREDIT(max, "To", 255, "0|255|255")
    GETN_END_USE_BRANCH(Fit)
 
    if(GetNBox(testTree, NULL, NULL, NULL, NULL))
    out_tree(testTree);
}

See Also

GETN_END_USE_BRANCH

Header to Include

GetNBox.h

Reference