介绍在Ques3D中使用面向对象开发.doc

  1. 1、本文档共30页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
介绍在Ques3D中使用面向对象开发

Introduction to Object Oriented Development in Quest3D 介绍在Quest3D Introduction简介Quest3D 4.0 introduces a new way of development: the Object Oriented system. This way of development is quite comparable to Object Oriented Programming as supported in modern programming languages, such as C#, Java en C++. Quest3D4.0引入了一个新的发展方式:面向对象的系统。这种发展方式是相当类似现代编程语言,如C的支持面向对象编程,JAVAC ++ The OO System in Quest3D is based on the same concept, however it is important to explain OO terms used in the Quest3D context. This article is an introduction, needed to understand the basics of OO programming in Quest3D and the reason why OO development in Quest3D is necessary. 在Quest3D面向对象系统是基于相同的概念,但重要的是要解释在Quest3D下使用的面向对象的术语。本文是介绍了解面向对象编程在Quest3DQuest3D中使用面向对象。 Important definitions重要定义 Objects对象 Objects are entities within the Quest3D program, that can contain data and functions. Data can be for instance 3D object data, matrices, vectors, text, etc. Functions can operate on data that is contained by the object, or invoke functions of other objects. When invoking a function, additional input can be provided using parameters. 对象是“实体”Quest3D程序,可以包含数据和功能。数据可以为3D对象的实例数据,矩阵,向量,文本等功能,可以操作对象中的数据,或调用其他对象的功能。当调用一个功能,可以提供额外的输入参数。 Interfaces接口 Interfaces define which functions and data the object exposes to the outside world. The outside world will be able to invoke functions using the interface, without knowing what actual kind of object it is dealing with. It only knows there is an entity, with a certain interface. 接口定义功能和数据对象向外界公开。外世界,将能够使用接口调用函数,处理不知道实际的对象。只知道有一个实体,具有一定的接口。 Interfaces can also contain default implementations of functions. All objects that use a certain interface, automatically contain the default implementation.接口包含实现功能。所有使用某个接口的对象,自动包含的实现。 Classes 类 In Quest3D a class is a definition of an object type. Quest3D Objects are instances of classes. In a class, we can define which Interfaces are supported by the object type and, if needed, specialize functions for the class type. Default

文档评论(0)

rvd137 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档