2.2.6.15.1 GraphObjCurveTool::Create

Description

To create major graph object.

Syntax

int Create( LPCSTR lpcszXFName, DWORD dwCntrl = 0, const TreeNode & trGUI = NULL, int nROIShape = SHAPE_RECT )

Parameters

lpcszXFName
[Input]the name of the attached X-Function
dwCntrl
[Input]0 or GCTC_FREE_FORM_RECT. 0 for vertical/horizontal line. GCTC_FREE_FORM_RECT for free line.
trGUI
[Input] the setting tree
nROIShape
[Input] the shape of the major graph object, default is SHAPE_RECT.

Return

Returns 0 for no error.

-1, no active graph window in current project.

-2, no valid graph layer.

1, the major graph object not created successfully.

2, when fail to set trGUI.

3 and 4, when fail to create the attached graph object.

Examples

Remark

See Also

Header to Included

GraphObjTools.h