This manual explains how to use Open CASCADE Technology (OCCT) Foundation Classes. It provides basic documentation on foundation classes.
Foundation Classes provide a variety of general-purpose services such as automated dynamic memory management (manipulation of objects by handle), collections, exception handling, genericity by down-casting and plug-in creation.
本手册介绍如何使用开源 CASCADE 技术(OCCT)基础类库,并提供基础类的基本文档说明。
基础类库提供多种通用服务,例如自动化动态内存管理(通过句柄操作对象)、集合、异常处理,以及通过向下转型和插件创建实现的泛型特性。
Root classes are the basic data types and classes on which all the other classes are built. They provide:
根类是构建所有其他类的基本数据类型和类,其功能包括:
Strings are classes that handle dynamically sized sequences of characters based on UTF-8 and UTF-16 encodings. Strings may also be manipulated by handles, and consequently be shared. Strings are implemented in the TCollection package.
字符串类基于 UTF-8 和 UTF-16 编码处理动态长度的字符序列,也可通过句柄操作以实现共享。字符串在 TCollection 包中实现。
Collections are the classes that handle dynamically sized aggregates of data. Collection classes are generic and rely on C++ templates.
Collections include a wide range of generic classes such as run-time sized arrays, lists, stacks, queues, sets and hash maps. Collections are implemented in the TCollection and NCollection packages.
集合类处理动态大小的数据聚合,具有泛型特性并依赖 C++ 模板,包含运行时大小的数组、列表、栈、队列、集合和哈希映射等多种泛型类。集合在 TCollection 和 NCollection 包中实现。
The TColStd package provides frequently used instantiations of generic classes from the TCollection package with objects from the Standard package or strings from the TCollection package.
TColStd 包提供 TCollection 包中泛型类的常用实例化,这些实例化对象来自 Standard 包或 TCollection 包中的字符串。
These classes provide commonly used mathematical algorithms and basic calculations (addition, multiplication, transposition, inversion, etc.) involving vectors and matrices.
这些类提供涉及向量和矩阵的常用数学算法和基本计算(加法、乘法、转置、求逆等)。
Open CASCADE Technology primitive geometric types are a STEP-compliant implementation of basic geometric and algebraic entities. They provide:
Descriptions of elementary geometric shapes:
Points,
Vectors,
Lines,
Circles and conics,
Planes and elementary surfaces,
Positioning of these shapes in space or in a plane by means of an axis or a coordinate system,
Definition and application of geometric transformations to these shapes:
Translations
Rotations
Symmetries
Scaling transformations
Composed transformations
Tools (coordinates and matrices) for algebraic computation.
开源 CASCADE 技术的基本几何类型是符合 STEP 标准的基本几何和代数实体实现,包括:
Open CASCADE Technology common math algorithms provide a C++ implementation of the most frequently used mathematical algorithms. These include:
Algorithms to solve a set of linear algebraic equations,
Algorithms to find the minimum of a function of one or more independent variables,
Algorithms to find roots of one, or of a set, of non-linear equations,
Algorithms to find the eigen-values and eigen-vectors of a square matrix.
开源 CASCADE 技术的通用数学算法提供 C++ 实现的常用数学算法,包括:
A hierarchy of commonly used exception classes is provided, all based on class Standard_Failure, the root of exceptions. Exceptions describe exceptional situations, which can arise during the execution of a function. With the raising of an exception, the normal course of program execution is abandoned. The execution of actions in response to this situation is called the treatment of the exception.
系统提供基于异常根类 Standard_Failure 的常用异常类层次结构。异常用于描述函数执行过程中可能出现的异常情况,当异常抛出时,程序会放弃正常执行流程,针对该情况执行的操作称为异常处理。
These are various classes supporting date and time information.
这些类支持日期和时间等多种信息。
Foundation Classes also include implementation of several low-level services that facilitate the creation of customizable and user-friendly applications with Open CASCADE Technology. These include:
基础类库还包括若干底层服务的实现,便于使用开源 CASCADE 技术创建可定制的用户友好型应用,包括: