上一页 1 ··· 12 13 14 15 16
摘要: 这个文章里比较全了,转过来方便一下。 http://www.functionx.com/cpp/keywords/typedef.htm 真TM全,中文的有人写么? An Alias for a Known Type In C++, you can declare a variable using one of the built-in data types:In the same way, y... 阅读全文
posted @ 2010-12-10 13:09 justin_s 阅读(537) 评论(1) 推荐(0) 编辑
摘要: 把QString视为一Stream使用。 QTextStream的相关函数 QTextStream ( QString * string, QIODevice::OpenMode openMode = QIODevice::ReadWrite ) void setString ( QString * string, QIODevice::OpenMode openMode = QIODevice:... 阅读全文
posted @ 2010-12-07 21:32 justin_s 阅读(3722) 评论(0) 推荐(0) 编辑
摘要: enum是一个好东西。 In C and C++, enum types can be used to set up collections of named integer constants. (The keyword enum is short for ``enumerated''.) syntax:The enum keyword is used to create an enumerat... 阅读全文
posted @ 2010-12-07 15:38 justin_s 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 今天看实验室一个项目的源码,其中设计模式随处可见。。 这是一个Mesh类,其中有一个friend class : MeshDelegate, 显然是一个delegate模式了。 参考Wiki上的条目: 一个简单的用法:instead of performing one of its stated tasks, delegates that task to an associated helper ... 阅读全文
posted @ 2010-12-07 13:21 justin_s 阅读(807) 评论(0) 推荐(1) 编辑
摘要: 这是领域内一经典文章,可贵的是其代码是开源的,对其对待分析有助于国内水平的普遍提高。 因为刚开始写,不完整,不严密,可能不正确,暂时不允许任何形式的软、硬拷贝及转载等。 同行交流请加gtak: justin.seeley.cn@gmail.com 按问答的方式,直接切入。 1. 模型是如何载入的? 模型存放在 src/data下,相关有目录有texture,objects,models,char... 阅读全文
posted @ 2010-12-06 21:18 justin_s 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 参考网友作品,来源难寻,如有不妥请邮件联系: justin.seeley.cn@gmail.com Qt的国际化做的非常好。 1. unicode支持 a. QString & QChar QString背面原本的思想是用16bit而非8bit来存储character[字符],因此可以支持到65,000左右character.Qt的QString使用unicode来存储字符串,也就是说每一个... 阅读全文
posted @ 2010-12-06 18:30 justin_s 阅读(480) 评论(0) 推荐(0) 编辑
摘要: Qt中设计模式随处可见。 QFSFileEngine is the default file engine for accessing regular files. It is provided for convenience; by subclassing this class, you can alter its behavior slightly, without having to wri... 阅读全文
posted @ 2010-12-06 14:57 justin_s 阅读(683) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*-""" Copyright Left (c) justin.seeley.cn@gmail.com Any usage of this code sniplet is not allowed without author 's permission"""import cv def single_channel_hist( channel ): """ c... 阅读全文
posted @ 2010-12-02 16:57 justin_s 阅读(2976) 评论(0) 推荐(0) 编辑
摘要: Trouble spliting RGB image into its 3 channels with cvSplitHi Doug,Maybe you have already sorted this out. I just ran into the same problem and Iwas just going to add to this when I figured out the so... 阅读全文
posted @ 2010-12-01 21:45 justin_s 阅读(748) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16