計測ライン(線分)の長さを計算

Namespace: fvalgcli
Assembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)

Syntax

C#
public static int fnFIE_edge1d_calc_projection_line_length(
	DSGMT_T line,
	ref int length
)
Visual Basic
Public Shared Function fnFIE_edge1d_calc_projection_line_length ( 
	line As DSGMT_T,
	ByRef length As Integer
) As Integer

Parameters

line
Type: fvalgcli..::..DSGMT_T
計測ライン(線分)
  • st 始点
  • ed 終点
length
Type: System..::..Int32%
濃度プロファイルの長さ

Return Value

Type: Int32
以下のエラーコードを返します。

エラーコード:
f_err内容
F_ERR_NONE正常終了
F_ERR_INVALID_PARAM不正なパラメータが渡された
  • length が IntPtr.Zero
F_ERR_NO_LICENCEライセンスエラー、または未初期化エラー

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        public void fnFIE_edge1d_calc_projection_line_length(DSGMT_T line)
        {
            try
            {
                int length = 0;
                int status = api.fnFIE_edge1d_calc_projection_line_length(line, ref length);
                Assert.IsTrue(status == (int)f_err.F_ERR_NONE, "fnFIE_edge1d_calc_projection_line_length: エラーが発生しました。({0})", (f_err)status);
                Console.WriteLine("fnFIE_edge1d_calc_projection_line_length");
                Console.WriteLine("length={0}", length);
            }
            finally
            {
            }
        }
    }
}


Visual Basic Copy imageCopy
'    $Revision: 1.1 $

Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli

Public Partial Class FIE
    Public Sub fnFIE_edge1d_calc_projection_line_length(line As DSGMT_T)
        Try
            Dim length As Integer = 0
            Dim status As Integer = api.fnFIE_edge1d_calc_projection_line_length(line, length)
            Assert.IsTrue(status = CInt(f_err.F_ERR_NONE), "fnFIE_edge1d_calc_projection_line_length: エラーが発生しました。({0})", CType(status, f_err))
            Console.WriteLine("fnFIE_edge1d_calc_projection_line_length")
            Console.WriteLine("length={0}", length)
        Finally
        End Try
    End Sub
End Class

See Also