点群の消去
Namespace: FVIL.GDIAssembly: FVILbasic (in FVILbasic.dll) Version: 3.1.0.0 (3.1.0.17)
Syntax
C# |
---|
public virtual void Clear() |
Visual Basic |
---|
Public Overridable Sub Clear |
Remarks
全ての点群を解放します。
Resize(Int32) に 0 を指定した場合と同様です。
Examples
ソースコード:
C# | Copy |
---|---|
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using fvalgcli; // FvPluginXXXX attribute requires fvalgcli namespace User.SampleCode.GDI { public partial class GdiPoints { // ============================================================ /// <summary> /// クリア. /// </summary> /// <remarks> /// /// </remarks> [FvPluginExecute] public void Clear() { // 0) 配列の作成. fvalgcli.PNT_T[] datas = new fvalgcli.PNT_T[10]; for (int i = 0; i < 10; i++) { datas[i].x = i * 10 + i; datas[i].y = i * 10 + i; } FVIL.PNT_T_ARRAY pnts = new FVIL.PNT_T_ARRAY(datas); // 1) インスタンスの準備と生成. FVIL.GDI.CFviGdiPoints src = new FVIL.GDI.CFviGdiPoints(pnts); // 2) 処理実行. src.Clear(); // E) 確認. Console.WriteLine("src.Count={0}", src.Count); } } } |
Visual Basic | Copy |
---|---|
Imports System.Collections.Generic Imports System.Text Imports System.Drawing Imports fvalgcli ' FvPluginXXXX attribute requires fvalgcli Namespace SampleCode.GDI Public Partial Class GdiPoints ' ============================================================ ''' <summary> ''' クリア. ''' </summary> ''' <remarks> ''' ''' </remarks> <FvPluginExecute> _ Public Sub Clear() ' 0) 配列の作成. Dim datas As fvalgcli.PNT_T() = New fvalgcli.PNT_T(9) {} For i As Integer = 0 To 9 datas(i).x = i * 10 + i datas(i).y = i * 10 + i Next Dim pnts As New FVIL.PNT_T_ARRAY(datas) ' 1) インスタンスの準備と生成. Dim src As New FVIL.GDI.CFviGdiPoints(pnts) ' 2) 処理実行. src.Clear() ' E) 確認. Console.WriteLine("src.Count={0}", src.Count) End Sub End Class End Namespace |