QT图形视图框架

图形视图框架

The Graphics View Framework

目录:
1.The Graphics View Architecture(图形试图框架)
--The Scene(场景)
--The View(视图)
--The Item(对象)
3.The Graphics View Coordinate System(图形视图坐标系)
--Item Coordinates(对象坐标)
--Scene Coordinates(场景坐标)
--View Coordinates(视图坐标)
--Coordinate Mapping(坐标映射)

4.Key Features(主要特征)
--Zooming and rotating(缩放和旋转)
--Printing(打印)
--Drag and Drop(拖拉拖放)
--Cursors and Tooltips(光标和提示框)
--Animation(动画效果)
--OpenGL Rendering(OpenGL渲染)
--Item Groups(对象组)
--Widgets and Layouts(组件和布局)
--Embedded Widget Support(嵌入式组件支持)

5.Performance(性能)
--Floating Point Instructions(浮点运算指令)

Graphics View provides a surface for managing and interacting with a large number of custom-made 2D graphical items, and a view widget for visualizing the items, with support for zooming and rotation.
The framework includes an event propagation architecture that allows precise double-precision interaction capabilities for the items on the scene. Items can handle key events, mouse press, move, release and double click events, and they can also track mouse movement.
Graphics View uses a BSP (Binary Space Partitioning) tree to provide very fast item discovery, and as a result of this, it can visualize large scenes in real-time, even with millions of items.
Graphics View was introduced in Qt 4.2, replacing its predecessor, QCanvas.

图形视图提供一个可管理和交互大量可定制2D图形对象的surface ,和一个可视化的视图组件,并且支持缩放和旋转。

这个框架包含了一个事件传播架构,它能在场景中允许对象有精确的双精度交互能力。对象能够处理重要事件,例如,鼠标按下、移动、放开和双击等事件,它也能够跟踪鼠标的移动。

图形视图使用BSP树(Binary Space Partitioning/二进制空间分区)来提供非常快的对象的发现,当然,它能在实时中可视化大的场景,即使有百万计的对象。

图形视图是在QT4.2引入,并取代QCanvas

注:本文翻译也参考了http://blog.csdn.net/aladdina/article/details/5413545,感谢前辈的努力!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值