10.07.2015 Views

HALCON Extension Package Programmer's Manual

HALCON Extension Package Programmer's Manual

HALCON Extension Package Programmer's Manual

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16 CHAPTER 2. OPERATOR DESCRIPTION (’DEF’-FILES)The information specified up to now is already sufficient to integrate an operator within the<strong>HALCON</strong>/<strong>Extension</strong> <strong>Package</strong> Interface by using ÓÑÔ. It describes the operator properly andmay be specified as a “one line short version” of the -file according to the following syntax:ÜØÖÒÓÔÖØÓÖÒÑ ¹ ÁÒØÖÒÈÖÓÙÖÁÒÔÙØÇØ×ÇÙØÔÙØÇØ×ÁÒÔÙØØÖÐÈÖÑ×ÇÙÔÙØØÖÐÈÖÑ×℄Chapter 2.2 explains the meaning of the single identifiers and the name convention. Pleasenote, that in contrast to the header mentioned there, the short version header must be finishedby a semicolon (;) and that the default type and the number of values is specified together withthe name of a control parameter (ÁÒÔÙØØÖÐÈÖÑ× and ÇÙÔÙØØÖÐÈÖÑ×). This is doneby concatenating a dollar sign and an additional character to the name encoding the type andnumber of values (cf. the example in Fig. 2.1).Ù×ÖÒ× ¹ ÁÈÍ×ÖËÐØÊÓÒ×ÊÓÒËÐØÊÓÛ°¸ÓÐÙÑÒ°℄Figure 2.1: Short version of the definition of the operator Ù×Ö Ò× (cf.±ÀÄÇÆÊÇÇ̱ÒÜÑÔÐ×Ò ÒØÖÒÐÓÒÙ×ÖÒÒÖÓÒØÙÖ׺).The following table shows how to code types and number of values into a character. Lower-casecharacters stand for exactly one value in the specified parameter. This corresponds to assigningÑÙÐØÚÐÙ Ð× in the extended version. Capital letters specify parameters that containmore than one value passed as a tuple (ÑÙÐØÚÐÙ ØÖÙ).TypeC-typeCodeOne Value Unlimited NumberInteger ÐÓÒ i IFloating-point Value ÓÙÐ f FString Ö s SThe specification described so far is sufficient to integrate the operator into C applications.However, in general the new operators should also be usable by HDevelop or within C++ applications.To achieve this, an extended version of the operator description must be generated.This is described in the following section.2.2 Extended Operator DescriptionAn operator description within a -file must start with a Ö. The following entries arevariable in their order. All of these slots begin with a determined keyword and are finished by asemicolon (). Semicolons within the text not defining the end of a slot must be quoted with abackslash ().Some slots are language dependent: For example ×ÓÖغÒÐ× contains a short descriptionof the operator in English, ×ÓÖغÖÑÒ the same description in German. The currently supportedlanguages are English and German. In order to allow an international usage of operatorswe strongly recommend always to provide all ºÒÐ× slots.<strong>HALCON</strong> <strong>Extension</strong> <strong>Package</strong> Interface / 2000-11-16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!