OpenCASCADE Documentation System

OpenCASCADE Documentation System

[email protected]

Abstract. Doxygen is the de facto standard tool for generating documentation from annotated C++ sources, but it also supports other popular programming languages. You can also use doxygen for creating normal documentation, as OpenCASCADE did for its references and user’s guide documents.

Key Words. OpenCASCADE, Doxygen, Documentation System

1. Introduction

Doxygen基本上已经成了从C++代码生成文档的一个标准工具。OpenCASCADE就利用Doxygen来根据源代码生成References文档,还利用其生成HTML和PDF格式的User Guide文档。使用Doxygen来生成文档,只需要按照一定的格式,就可以自动生成看上去比较专业的文档。

本文主要对Doxygen用来生成User Guide的方法做一定的介绍。根据代码生成References文档的方法请参考Doxygen的文档说明。

Figure 1.1 Doxygen GUI

2. Prerequisites

为了自动生成PDF格式的文档,还需要准备全如下工具:

v Doxygen 1.8.4版本及以上;

v Graphviz的Dot,用来生成文档中的类图;

v MikTeX:用来生成PDF格式的文档;

v Inkscape:只有当要生成PDF格式中带有SVG格式的图片时需要;

v MathJax:当生成的HTML或CHM中有数学公式时需要;

这些工具都可以从网上下载得到。

3. Markdown Support of Doxygen

Markdown支持是从Doxygen1.8.0开始的,Markdown就是还格式语法的普通文本,由John Gruber编写,其目的是:

The design goal for Markdown’s formatting syntax is to make it as readable as possible. The idea is that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions. While Markdown’s syntax has been influenced by several existing text-to-HTML filters, the single biggest source of inspiration for Markdown’s syntax is the format of plain text email.

当你按照Markdown格式来写文档时,只需要将*.md文件放到文档文件夹中,Doxygen会自动搜索并生成相对应的文档。这里列举几个Markdown的例子。

3.1 Tables表格

生成表格可以用如下的文本来表示:

生成的表格样式如下图所示:

Figure 3.1 Tables in Markdown

3.2 Code Blocks代码片段

使用~~来隔离代码,若在其带上后缀名,还将根据后缀名来给代码高亮。如下所示为给C++代码着色:

Figure 3.2 Code blocks in Markdown

小段代码着色也可用标记@code和@endcode来标记。

3.3 Images插入图片

插入图片使用如下标记:

Figure 3.3 OCC logo

4. Conclusion

使用OCC这种方式来生成文档,感觉还是很不错的。我就使用这种方式生成了程序IsoAlgo的文档,看上比较专业,如下图所示:

Figure 4.1 IsoAlgo User Guide

PDF Version: OpenCASCADE Documentation System

时间: 2024-12-21 16:58:28

OpenCASCADE Documentation System的相关文章

freeCAD下载与安装

官方安装: freeCAD稳定版 freeCAD官方提供了几个稳定版本供开发者使用: Windows (XP, Vista and 7, 32 and 64bits), Mac OS X (Lion 10.7), 和 Debian-based Linux systems (Debian, Ubuntu, 32 and 64bits). 以下几个链接为freeCAD的稳定版本. 也有不稳定版本: FreeCAD Files page , 提供最前沿的新功能,工具,但可能更容易崩溃或包含与早期的版本

Windows软件在Linux上的等价/替代/模仿软件列表 (抄一个)

Last update: 16.07.2003, 31.01.2005, 27.05.2005 您可在以下网站发现本列表最新版:http://www.linuxrsp.ru/win-lin-soft/. This page on other languages: Russian, Italian, Spanish, French, German. 从Windows转向Linux的一个最大困难就是缺乏对相关软件的认识.新手总是在寻找 Windows软件的替代品,但老鸟却难以回答,因为他们对Wind

vim学习资料

开始学习vim,我习惯性的上官网看documentation.一般都会有quick start之类的,vim也不例外,不过它是需要在vim中用命令来查看,还好我稍微知道点vim,否则还真看不懂这文档. :help tutor 而查看完整在线手册的方法,如官网所说:Vim's online documentation system, accessible via the :help command.[1]不过伟大的GFW带来的副作用就是上很多官网都慢的让人抓狂. 无意间还发现一个博客:"易水博客&

收集的Java科学计算库

将数学.物理.生物.航天.经济学等的计算集成到单一系统架构,提供了细致全面的计算系统. 科学计算框架 Catalano http://www.oschina.net/p/catalano Catalano Framework 是一个 Java 和 Android 的科学计算框架. 主要计算功能: 图像处理 模糊逻辑 数学计算 统计 机器学习 神经网络 科学计算可移植扩展工具包 PETSc http://www.oschina.net/p/petsc PETSc(Portable, Extensi

Installation and Upgrading

Cumulative Feature Overview Identifies product features available to you when upgrading. This tool requires Microsoft Excel. Any user should consult this document, as needed. Note: Make sure to enable macros when prompted to do so. Otherwise, the Mic

ios 总结

1 ocoa Touch Layer{ App Extensions https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/index.html Handoff https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/Handoff/HandoffFundamentals

【Linux命令详解】9、在Linux下获取帮助—(help、man、info)

9.在linux系统下获取帮助 本节主要学习在linux系统下如何获取和使用帮助,这些命令有help.man.info等. 9.1 help: 可以查看内部Shell命令的帮助信息. 9.1.1 命令语法: help[选项][命令] 9.1.2选项参数: help命令选项含义: -d   显示命令简短的主题描述 -s   显示命令简短的语法描述 9.1.3 实例: 例1:查看能使用help命令查看帮助信息的命令. [[email protected] ~]# help     GNU bash,

C++开源库集合

| Main | Site Index | Download | mimetic A free/GPL C++ MIME Library mimetic is a free/GPL Email library (MIME) written in C++ designed to be easy to use and integrate but yet fast and efficient. It is based on the C++ standard library and heavily us

第四章 文件和目录

本章主要介绍文件目录的创建.删除.读写.设置访问权限以及获取文件或目录的属性等: 唯一需要强调的可能就是:目录也是一种文件 获取文件目录的属性 关键函数 stat/fstat/lstat用于获取文件的信息,如文件的所有者,权限,修改和访问时间等等 #include <sys/stat.h> int fstat(int fildes, struct stat *buf); // 获取已打开的文件的相关信息 int fstat64(int fildes, struct stat64 *buf);