Skip to content

get_operator_infoGetOperatorInfoGetOperatorInfoget_operator_infoget_operator_info🔗

説明🔗

get_operator_infoGetOperatorInfoGetOperatorInfoget_operator_infoget_operator_info — HALCON オペレーターに関する情報を取得する。

書式🔗

get_operator_info( proc_name OperatorName, string Slot, out string Information )void GetOperatorInfo( const HTuple& OperatorName, const HTuple& Slot, HTuple* Information )static void HOperatorSet.GetOperatorInfo( HTuple operatorName, HTuple slot, out HTuple information )def get_operator_info( operator_name: str, slot: str ) -> Sequence[str]

def get_operator_info_s( operator_name: str, slot: str ) -> strHerror get_operator_info( const char* OperatorName, const char* Slot, char* Information )

Herror T_get_operator_info( const Htuple OperatorName, const Htuple Slot, Htuple* Information )

static HTuple HInfo::GetOperatorInfo( const HString& OperatorName, const HString& Slot )

static HTuple HInfo::GetOperatorInfo( const char* OperatorName, const char* Slot )

static HTuple HInfo::GetOperatorInfo( const wchar_t* OperatorName, const wchar_t* Slot ) (Windows only)

static HTuple HInfo.GetOperatorInfo( string operatorName, string slot )

説明🔗

オペレーター get_operator_infoGetOperatorInfo を利用して、 あるオペレーターに関するオンラインテキストを呼び出すことができます (get_operator_nameGetOperatorName を参照)。すべてのオペレーター (Slotslotslot) に対して利用できる情報の形式は、オペレーター query_operator_infoQueryOperatorInfo を使用して呼び出すことができます。 以下に示す slot が利用可能です:

  • 'short'"short": オペレーターの簡単な説明

  • 'abstract'"abstract": オペレーターの説明

  • 'chapter'"chapter": オペレーター階層内の章の名前(HALCON マニュアル内の章と節)

  • 'functionality'"functionality": 機能性はオペレーターが割り当てられるオブジェクトクラスに相当

  • 'keywords'"keywords": オペレーターのキーワード(オプション)

  • 'example'"example": オペレーターの使用に対する例(オプション)。オペレーター ‘example.LANGUAGE’ \(\in\) {trias,c,c++,c#,vb.net}) は可能であればある言語に対する例題を呼び出します。もし、言語が指示されて いないかその 言語に対する利用可能な例がない場合、TRIAS 例が返されます。

  • 'complexity'"complexity": オペレーターの複雑性(オプション)

  • 'effect'"effect": 使用不可

  • 'parallelization'"parallelization": オペレーターのタイムアウトと並列動作

  • ‘execution information’: オペレーターのタイムアウトと並列動作

  • 'parallel_method'"parallel_method": オペレーター自動並列化メソッド

  • 'interrupt_mode'"interrupt_mode": オペレーターが扱う事ができる割り込みモード これらの割り込みモードの使用方法と設定方法については、 set_operator_timeoutSetOperatorTimeout と interrupt_operatorInterruptOperator を参照してください。

  • 'alternatives'"alternatives": オペレーターの他の選択候補の(オプション)

  • 'see_also'"see_also": より多くの情報を含むオペレーター(オプション)

  • 'predecessor'"predecessor": 可能な前処理の候補

  • 'successor'"successor": 可能な後処理の候補

  • 'result_state'"result_state": オペレーターの戻り値(2 (H_MSG_TRUE), 3 (H_MSG_FALSE), 5 (H_MSG_FAIL), 4 (H_MSG_VOID)または EXCEPTION)

  • 'attention'"attention": オペレーターの正しい使用に関する制限と アドバイス(オプション)

  • 'parameter'"parameter": オペレーターのパラメーターの名前、 (get_param_infoGetParamInfo を参照)

  • 'references'"references": 書籍の参考文献(オプション)

  • 'module'"module": オペレーターが割り当てられるモジュール

  • 'dynamic_modules'"dynamic_modules": オペレーターがダイナミックライセンスで割り当て可能なモジュールの一覧(用途に応じて)。

  • 'html_path'"html_path": オペレーターの HTML ドキュメントがあるディレクトリ

  • 'warning'"warning": オペレータを使う際の警告

  • 'compute_device'"compute_device": オペレーターでサポートされている計算デバイスのリスト

テキストは operators_[LANG].ref、operators_[LANG].sta、 operators_[LANG].key、operators_[LANG].num と operators_[LANG].idx から取り出されます。それは HALCON によって、カレントデ ィレクトリあるいは ‘help_dir’ (各 ‘user_help_dir’ ) ( get_systemGetSystem と set_systemSetSystem を参照)内で検索します。。

注意🔗

結果のエンコーディングはUTF-8です。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

OperatorNameoperatorNameoperator_name (input_control) proc_name → (string)HTuple (HString)HTuple (string)strHtuple (char*)

より多くの情報を必要とするオペレーターの名前

初期値: 'get_operator_info'"get_operator_info"

Slotslotslot (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

要求された情報

初期値: 'abstract'"abstract"
値のリスト: 'abstract', 'alternatives', 'attention', 'chapter', 'chapter_id', 'complexity', 'compute_device', 'dynamic_modules', 'example', 'execution information', 'functionality', 'html_path', 'interrupt_mode', 'keywords', 'module', 'parallel_method', 'parallelization', 'parameter', 'predecessor', 'references', 'result_state', 'see_also', 'short', 'successor', 'warning'"abstract", "alternatives", "attention", "chapter", "chapter_id", "complexity", "compute_device", "dynamic_modules", "example", "execution information", "functionality", "html_path", "interrupt_mode", "keywords", "module", "parallel_method", "parallelization", "parameter", "predecessor", "references", "result_state", "see_also", "short", "successor", "warning"

Informationinformationinformation (output_control) string(-array) → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

情報(もし利用できる情報がなければ空)

結果🔗

パラメーターが正しく、ヘルプファイルが利用できるならば、 オペレーター get_operator_infoGetOperatorInfo は値 2 (H_MSG_TRUE) を返します。そう でなければ、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

get_keywordsGetKeywords, search_operatorSearchOperator, get_operator_nameGetOperatorName, query_operator_infoQueryOperatorInfo, query_param_infoQueryParamInfo, get_param_infoGetParamInfo

後処理の候補

get_param_namesGetParamNames, get_param_numGetParamNum, get_param_typesGetParamTypes

他の選択候補

get_param_namesGetParamNames

関連項目

query_operator_infoQueryOperatorInfo, get_param_infoGetParamInfo, get_operator_nameGetOperatorName, get_param_numGetParamNum, get_param_typesGetParamTypes

モジュール🔗

Foundation