AttachCopyToView 指令

来自GeoGebra Manual
跳转至: 导航搜索
Accessories dictionary.png
本页为官方文件,一般使用者无法修改,若有任何误谬,请与官方联络。如欲编辑,请至本页的开放版


AttachCopyToView( <物件>, <视区 0|1|2> )
若 <视区> 为 0,(会在主绘图区)建立 <物件> 的应变副本。若 <视区> 为 1 或 2,会在指定的 Menu view graphics.svg (主、副)绘图区建立 <物件> 的应变副本,但这些副本的尺寸会是常数。
范例:
poly = Polygon((0, 0), (1, 0), (1, 1), (0, 1))
输入 AttachCopyToView(poly, 1) 会在相同位置建立一个相同尺寸的正方形。
备注: 一旦副本建立后,GeoGebra 会自动在副本物件的定义补上其他四个引数到指令中(请参考下一个语法)。
AttachCopyToView( <物件>, <视区 0|1|2>, <点 1>, <点 2>, <萤幕点 1>, <萤幕点 2> )
If View = 0, a copy of given object is created. For View = 1 or View = 2 this command creates a dependent copy of given object whose size in given Menu view graphics.svg Graphics View is transformed using the affine transform that maps Point 1 to a point whose screen coordinates (in pixels) are equal to Screen Point 1, and Point 2 to a point with screen coordinates equal to Screen Point 2.
范例:
Let poly = Polygon((0, 0), (1, 0), (1, 1), (0, 1)).
If Graphics View 1 is active, AttachCopyToView(poly, 1, (0, 0), (1, 1), (0, 0), (100, 100)) creates a 100px x 100px square in the top left corner of the Graphics View.
备注: All points of the object are copied, even if they lie outside the view.
© 2024 International GeoGebra Institute