Filter.IsApplicable

導入

v4.0

詳細

フィルタが入力オブジェクトに適合している場合は、true を戻します。このメソッドを使用すると、指定されたタイプのオブジェクトでフィルタを使用できるかどうかをすばやく判断できます。

C#構文

Boolean Filter.IsApplicable( Object in_pObjects );

スクリプト構文

oBoolean = Filter.IsApplicable( Object );

戻り値

Boolean

パラメータ

パラメータ タイプ 説明
Object SIObjectX3DObjectSubComponentPropertyまたはXSICollection 呼び出し側でこの引数が省略された場合は、関数は現在選択されているオブジェクトからなる XSICollection オブジェクトを受け取ります。

VBScript の例

'--------------------------------------------------------------------

'This example shows how to use the IsApplicable method 

'

' README: install the example from the filter object help 

' page before running this example.

'--------------------------------------------------------------------

set f = Application.Filters("LargeMesh")	

if ( typename(f) <> "Nothing" ) then

	set model = ActiveSceneRoot

	set cone = model.AddGeometry( "Cone", "MeshSurface" )

	LogMessage f.name & ".IsApplicable("& cone &"): " & f.IsApplicable(cone)

	'INFO : "LargeMesh.IsApplicable(cone): True"

end if