Update は、オペレータが自己評価すると予測されるときは常に呼び出されます。 これは、カスタム オペレータで最も重要なコールバックです。 データが読み込まれ、操作され、接続されているオブジェクトに再度書き込まれます。これらの処理はすべて、Update コールバックのスコープ内で行われます。
| 注 | オペレータの実装の最適化に役立つさまざまなヒントについては、「カスタム オペレータ」セクションを参照してください。 |
public class <operator_name>
{
public bool Update( Context in_context )
{
...
}
}
|
CStatus <operator_name>_Update( CRef& in_context )
{
...
}
|
function <operator_name>_Update( in_context )
{
...
}
|
def <operator_name>_Update( in_context ):
...
|
Function <filter_name>_Update( in_context )
...
End Function
|
sub <operator_name>_Update
{
my $in_context = shift;
}
|
<operator_name>は、PluginRegistrar.RegisterOperator の呼び出しで指定されている名前です。この名前に含まれるスペースはアンダースコアに置き換えられます。
| パラメータ | Language | タイプ | 詳細 |
|---|---|---|---|
| in_context | スクリプティングおよび C# | OperatorContext | Context.Source は CustomOperator を返します。 |
| C++ | CRef& | OperatorContext オブジェクトへのリファレンス。 Context::GetSource は CustomOperator を返します。 |