题目
IT英语翻译!谢谢!(请不要用翻译工具翻译)
The top and right handles affect only themselves, which means that they do not use the
m_handles list. The center point of the shape is not affected; the horizontal direction is not
affected by the top handler nor is the vertical direction affected by the right handle.
Listings 7-30 and 7-31 show how the roles are handled. The listings look very similar; the
only difference is the direction in which they act.
Let’s look at the details of Listing 7-30; that is, the top handle. The listing starts with an if
clause that ensures that the shape will not be too small. If that’s the case, pass the current
position as the next position to the QGraphicsItem itemChange method.
If the handled shape is big enough, continue by limiting the movement to the direction
of the handle (you don’t allow horizontal movement for the top handle). Then you translate
the shape being handled so the center of the shape is the origo of the coordina
The top and right handles affect only themselves, which means that they do not use the
m_handles list. The center point of the shape is not affected; the horizontal direction is not
affected by the top handler nor is the vertical direction affected by the right handle.
Listings 7-30 and 7-31 show how the roles are handled. The listings look very similar; the
only difference is the direction in which they act.
Let’s look at the details of Listing 7-30; that is, the top handle. The listing starts with an if
clause that ensures that the shape will not be too small. If that’s the case, pass the current
position as the next position to the QGraphicsItem itemChange method.
If the handled shape is big enough, continue by limiting the movement to the direction
of the handle (you don’t allow horizontal movement for the top handle). Then you translate
the shape being handled so the center of the shape is the origo of the coordina
提问时间:2020-06-13
答案
顶部右边的把手只对它们自身有影响,也就是说它们不会是
使用中间一排的把手.外部形状的中心点是不会受到影响.
水平偏转也不会受到顶部或者说垂直方向也不会影响右把手.
7-30和7-31的列表显示了它是如何操作的,这些物品看起来
十分的相似,唯一的不同是它们的操作方向不同.
让我们来仔细看一下物品7-30,在顶端把手上,列表以条件从
句开始就可以保证它的形状不会太小.如果这是事实,那么把通
过这个位置当成是下一个位置的QGraphicsItem itemChange方法.
如果这个把手足够大,那就继续限制把手方向(你不需要让顶部
把手作水平运动),然后,你就可以通过改变把手形状而使中心
中心点作为坐标系的起点.
这也就为你通过运动来缩放比例作了准备.物体也就转变到了最
初的位置,开关表在左,QGraphicsItem itemChange方法在一定条
件下的运动就是决定事件.
使用中间一排的把手.外部形状的中心点是不会受到影响.
水平偏转也不会受到顶部或者说垂直方向也不会影响右把手.
7-30和7-31的列表显示了它是如何操作的,这些物品看起来
十分的相似,唯一的不同是它们的操作方向不同.
让我们来仔细看一下物品7-30,在顶端把手上,列表以条件从
句开始就可以保证它的形状不会太小.如果这是事实,那么把通
过这个位置当成是下一个位置的QGraphicsItem itemChange方法.
如果这个把手足够大,那就继续限制把手方向(你不需要让顶部
把手作水平运动),然后,你就可以通过改变把手形状而使中心
中心点作为坐标系的起点.
这也就为你通过运动来缩放比例作了准备.物体也就转变到了最
初的位置,开关表在左,QGraphicsItem itemChange方法在一定条
件下的运动就是决定事件.
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
热门考点
- 1共同语言是民族的基本特征对不对?
- 2原子核自发地放出电子的现象称为 β衰变 ,开始时科学家曾认为β衰变中只放出电子 ,即β粒子 ,后来发现 ,,除了放出电子以外 ,还放出一种叫作“反中微子”的粒子 ,反中微子不带电 ,与其他物质的相互作
- 3如果你是一名科学家,最想从事的海洋研究是什么,为什么.
- 4M ={2,a,b} N={2a,2,b²} M等于N 求 a,b
- 5含有'手'的成语的解释
- 6陆羽与《茶经》课文的主要内容
- 7“劳动课”“周会”“少先队活动”用英语怎么说
- 8想象力比知识更重要,因为知识是有限的,而想象力概括这世界的一切.这句名言在强调一种什么精神
- 9为什么任何数的零次方都等于一?
- 10Would you like to answer the question?___ ___ ___ answer the questions?