retrive the graph layer from the tree node
GraphLayer get_graph_layer( const TreeNode & trNode )
a valid graph layer if successful
EX1
//This example get the active graph layer. void get_graph_layer_ex1() { GraphPage gp; gp.Create(); Tree trNode; set_active_layer(trNode); //Get the Info. of the active layer GraphLayer gl = get_graph_layer(trNode); ASSERT(gp.GetName() == gl.GetPage().GetName()); out_str("The active graph layer is: " + gl.GetPage().GetName() + "(" + gl.GetIndex() + ")"); }
set_active_layer
origin.h