在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → Samlight编程手册

Samlight编程手册

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:0.79M
  • 下载次数:7
  • 浏览次数:200
  • 发布时间:2020-09-02
  • 实例类别:一般编程问题
  • 发 布 人:robot666
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
Scanner Application Modules
7.2.16 Radial Text 7.2.2 BarCode Properties. 7.2.2.1 Control Codes for Text and Barcode String.... 7.2.2.2 Inverse barcode 7. 2.2. 3 DataMatrixEx Code 72.3 SerialNumber Properties…… 62 7. 23. 1 Number mode 62 7.2.3.2 Format 7.2.3.2.1 Serialnumber formats 7.2.3.2.2 Date Time formats 7.2.3.3 ASCll Files 7.2. 4 PixelArrayProperties. 7. 2. 4. 1 Intensity. 7.2.4.2| nvert. 7.2. 4.3 Brightness 7.2.4.4 Limits 7.2.5 Spiral 70 7.2.5.1 Overview 7.2.5.2 Functions 7.2.5.3 EXample........... 8 Position size and rotation 73 9 Import/Export.mmm.. mmm 9.1 Formats OBI.B.... ∴80 9.2 Styles. 81 9.3 Resolution 83 9.4 File Access 83 9.5 calls 83 9.6 EXample.::. ∴4……84 10 Load and save,…nn 85 11 Entity Reference... n000000000000D国aaa日 B888888888888BB88888B8B888a 86 1.1 Scobiect.. 86 11.1.1 ScEntity.… ScEntity2D.. ScElement2D 11.1.1.1.1.1 ScPolyLine2D 11.1.1.1.1.1.1 ScEllipse2D.. 11.1.1.1.1.1.2 ScRectangle2D 11.1.1.1.1.1.3 ScTriangle2D. 11.1.1.1.1.2 ScSingleLine2D 11.1.1.1.1.3 ScLineArray2D. 102 11.1.1.1.1.3.1 ScHatch 104 11.1.1.1.2 ScEntity2D Container 104 11.1.1.1.2. 1 ScLayer.::. 104 11.1.1.1.2.2 ScVarEntity2D.... 105 11.1.1.1.2.2. 1 ScSequence2 D. 105 11.1.1. 1.3 ScGroup2D. 106 111.1.1.3.1 ScEntities2D 11.1.1.1.3.1.1 ScJobroot 108 11.1.1.1.3.2 ScLineArrays2D 111 1.1.1 4 ScControl 11.1.1.1.4.1 ScPolyLines2D 11.1.1.14.2 ScEvent 112 11.1. 1.2 ScEntity3D. 11.1.1.2.1 ScElement3D 16 11.1.1.2.2 ScEntity 3DContainer 17 11.1.1.2.3 ScGroup3D..… 11.1.1.2.3.1 ScEntities3D 1.1.2 ScControlMotion 118 11.1.3 ScControlAdlo 121 12 Function Reference 123 2.1 Interface Functions of sc kernel. dll 123 2.2 nterface functions of sc tria slicer dll 130 13 Index… …132 1Introduction 1.1 Version History Date Changes Author 16.12.2008 Description of ScSetLongValue()added michael.pfeiffer@scaps.com 04.02.2009deScriptionofTriaslicerDllanddataformatsaddedmichaelpfeiffer(@scaps.com 12.02.2009DescriptionofTriaslicerDlldataformatsextendedmichaelpfeiffer(@scaps.com 1.2 Safety The goods delivered by SCAPS are designed to control a laser scanner system. Laser radiation may effect a person 's health or may otherwise cause damage. Prior to installation and operation compliance with all relevant laser safety regulations has to be secured. the client shall solely be responsible to strictly comply with all applicable and relevant safety regulations regarding installation and operation of the system at any time The goods will be delivered without housing The client shall be solely responsible to strictly comply with all relevant safety regulations for integration and operation of the goods delivered 1.3 Overview The main intention of this paper is to cover the frequently used principles and commands for working with entities. The scope is restricted to 2D entities only Future releases will also cover the 3D entities or they are described in a separate document. This paper should give the sAm2D user a compact overview about the main manipulation possibilities for entities and should show on practical examples how specific tasks can be programmed. It will be extended in future in respect to customer needs. The syntax of the function calls and programming examples are similar to the vB-Basic Syntax For other programming languages the calling conventions may differ. Please contact SCAPS Gmbh for further information about that 2 Description 2.1Basic Types There are 3 main types of entities Groups Containers Elemen Groups and Containers can be thought as structuring entities. Elements keep the real data like points lines and pixels Inside this manual all entities are of the basic type ScEntity 2D. So, when referring to a group, container or element a Group2D, Container 2D or Element2D can be substituted 2.2 Class Hierarchy Following all classes are listed hierarchically together with references to the sections where these classes are described. Beside of these sections a function reference can be found at the end of the document where the functions of several selected object types are described in detail Scobject ScEntit ScEntity 2D 7 Fehler: Referenz nicht gefunden ScEditGroup2D ScElement2D ScLine Array 2D 6 Elements ScHatc 6 Elements ScPixelArray2D 6 Elements ScScanner PixelArray2D 6.4 Pixe/Arr ScPointc/ 2D ScPolyLine2D 6 Elements ScEllipse2D 6 Elements ScRectangle 2D. 6 Elements ScSpline2D ScTriangle2D 6 Eements cSpiral2I ScSingleLine 2D (deprecated) ScEntity2DContainel 6.3 Example ScBarCode 12chars 2D 3 Generation 5 Containers 5 Containers ScChar2D ScBarCode 7.2. 2 BarCode Properties ScBarcode 12 5 Containers ScBarCode 39 5 Containers ScWin Text2D 5 Containers Sc∨ ar Entity2D ScSequence 2D c SeriaINumber2D 5 Containers ScGroup2D roups EnTities 2D ScJobroot Scchars2D ScBar Code Chars 2D ScBarCode 39Chars2D ScWin T extchars2D 3 Generation, 4 Groups ScEntities2D 3 Generation, 4 GI Sc obroot 7. 2.3 SerialNumberProperties ScLineArrays 4 Groups Sc尸 ixelArrays2D 4 Grol ScPolyLines2D 4 Groups ScChain2D ScControl ScEvent ScControlMotion ScControladlo The 3 D-entities have to be used like their two-dimensional pendants and therefore are not described separately, please refer to the description of the 2D-entities too ScObject ScEntity SC Entity 3D SC Edit Group3D SC Elements sc Layer solid SC LineArray3D 6 Elements Sc Line Box3D sc Pixe/Array 3D 6 Elements Sc Pointc/oud3D SC Poly 3D 6 Elements Sc TriaMesh3D Sc TriaSolid sc Tria Box sc Triac SC Tria Cylinder Sc Tria Sphere SC_ Entity 3DContainer: 6.3 Example SC Group3D 4 Groups SC Entities 3D 3 Generation, 4 Groups SC_ LineArrays丶 Sc PolyLines 4 3 Generation The main steps for generating an entity are Define a variable of the desired type Call the entity constructor Add the entity to some context. ( mainly to a group or to the main job entity) Initialize and update the properties (call ScUpdateProperties()) To call ScUpdatePrcperties() is important after entity generation. It initializes the variant Properties of the entity(see also VariantProperties) In later versions the call to this function will allow that user defined properties can be assigned to the entity The scUpdatePropercies() must not be called for every entity generation inside a generation process where more entities are generated. It can also be placed after the generation process to a call to the main group ScUpdateProperties() function(see Example 2) Example 1, generation of a barcode entity: Dim Barcode as scbarcode12chars2D i variable definition set Barcode New ScBarcode12chars2D entity construction gGroupView2d ScAdd Barcode add to the main iob Barcode. ScUpdateProperties Update the properties the next line is only necessary if working with the view to display gV2dCtrl. ScGetview2D. ScNewvisual Barcode, 0 Example 2, generation of a text group with 10 text entities: 7 Dim Text(10) As ScWinTextChars 2D i VEriable definition Dim TextGroup as ScEntities2D Di as lon Set TextGrour New Scf,ntities2.D entity construction For n=o to 9 Set Text(n)=New ScWinTextChars2D entity construction TextGroup ScAdd Text(n) Next n TextGroup. ScUpdateProperties Update the properties this command will also go through ScUpdateProperties of all Text entities inside the text gGroupView2d ScAdd TextGrcup add to the main job the next line is only necessary if working with the view to display gV2dCtrl. SCGetview2D. SCNewvi sual TextGroup, 0 8 4Groups 2D groups are the following entity types CCEntitieszd can keep every kind of entity2D ScPolyLines2D can only keep entities of type ScPoyline2D ScLineArrays2D can only keep entities of type ScLineArray2D ScPixelArrays2D can only keep entities of type ScPixelArray2D ScWinTextchars2D can only keep entities of type scwinText2D The above groups are all derived from the abstract entity ScGroup2D The ScGroup2D entity can be never generated directly. The methods and properties will be available after one of the above entities are generated The group keeps all sub entities in a list Entity Index Entity HOF Entity 1 Iteration Marking Entity2 Entity 3 3 TOL Table 1: Index and Marking order of Groups HOF Head of the list TOL Tail of the list The single entities inside a group are referenced by an index, name or can be retrieved by an iteration process The iteration process and also the marking process starts always on Hol and goes towards the TOL 9 【实例截图】
【核心代码】

标签:

实例下载地址

Samlight编程手册

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警