CreateArrow

The CreateArrow method creates an arrow in the 3D Window.

 

HRESULT CreateArrow (

[in] double HeadX,

[in] double HeadY,

[in] double Elevation,

[in] double Direction,

[in] double Length,

[in, defaultvalue(4)] int Style,

[in, defaultvalue(0x0000ff00)] long LineColor,

[in, defaultvalue(FT_NONE)] double FillOpacity,

[in, defaultvalue(0x00646464)] long FillColor,

[in, defaultvalue(HSC_PIVOT_RELATIVE)] HeightStyleCode HeightStyle,

[in, defaultvalue(0)] long GroupID,

[in, defaultvalue("")] BSTR Description,

[out, retval] ITerrainArrow5** pITerrainArrow5)

Parameters:

The HeightStyleCode enum can use any of the following values:

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.

TE_E_MPTNOTLOADED

An MPT file must be loaded in TerraExplorer for this method to work.

TE_E_INFOTREE_PARENTNOTGROUP

The group ID entered does not represent a valid group in the information tree.

TE_E_INTERNAL

TerraExplorer was unable to create the object. To get more information about this error use the IErrorInfo Interface.

TE_E_NOLICENCE

Your license does not allow the use of this feature.

Remarks:

At creation time, the elevation parameter indicates the tip of the arrow’s head above the terrain. If the client wants to later change that (via the object’s SetPosition() method), the height is measured from the center of the arrow.