alignto,aligntoshape

http://www.itjxue.com  2023-01-09 16:42  来源:未知  点击次数: 

this.el.alignTo(Ext.getBody(), 'br-br');这句话的‘br-br’是什么意思

alignTo( element, [position], [offsets], [animate] ) : Ext.Element

Aligns this element with another element relative to the specified anchor points. If the other element is the document it aligns it to the viewport. The position parameter is optional, and can be specified in any one of the following formats:

Blank: Defaults to aligning the element's top-left corner to the target's bottom-left corner ("tl-bl").

One anchor (deprecated): The passed anchor position is used as the target element's anchor point. The element being aligned will position its top-left corner (tl) to that point. This method has been deprecated in favor of the newer two anchor syntax below.

Two anchors: If two values from the table below are passed separated by a dash, the first value is used as the element's anchor point, and the second value is used as the target's anchor point.

In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than that specified in order to enforce the viewport constraints. Following are all of the supported anchor positions:

Value Description

----- -----------------------------

tl The top left corner (default)

t The center of the top edge

tr The top right corner

l The center of the left edge

c In the center of the element

r The center of the right edge

bl The bottom left corner

b The center of the bottom edge

br The bottom right corner

Example Usage:

// align el to other-el using the default positioning ("tl-bl", non-constrained)

el.alignTo("other-el");

// align the top left corner of el with the top right corner of other-el (constrained to viewport)

el.alignTo("other-el", "tr?");

// align the bottom right corner of el with the center left edge of other-el

el.alignTo("other-el", "br-l?");

// align the center of el with the bottom left corner of other-el and

// adjust the x position by -6 pixels (and the y position by 0)

el.alignTo("other-el", "c-bl", [-6, 0]);

求解:关于c语言中,宏定义的问题。。。。

视你输入的数值(对象的长度),将其按4边界对齐。

例如若某个对象的长度为18,那么在为其分配空间时,通过NLMSG_ALIGN宏就可以计算出最接近其的4的倍数为((18+4-1) ~(3)) = 20,这样便为其申请/分配20字节空间。

这是32位微控制器/微处理器中为了防止非对齐操作产生Exception而添加的保护措施。

3dmax快捷键

Max-native tools(These tools come with 3DS Max by default)

将选中物体移动到所编辑的图层 Shift+1

Attach 附加 Alt+。

Align (对齐选择) Alt + A

Align X(模型顶点下使用 x轴向对齐) Shift + X (非默认)

Align Y (模型顶点下使用 y轴向对齐) Shift + Y (非默认)

Align Z (模型顶点下使用z轴向对齐) Shift + Z (非默认)

Angle Snap Toggle (角度捕捉) A

Auto Key Mode Toggle (自动关键帧 ) N

Bevel (Poly) (Settings) (倒角设置) Shift + Space

Bevel (Poly) (倒角) Shift + Ctrl + B

Boolean Compound Object(布尔运算) Alt + B

Build Loop Corner Shift + N

Build Loop End Shift + M

Camera View 摄像机视角 C

Cap (Poly) (封口) Alt + P

Chamfer (Poly) (Second one) Shift + Ctrl + C

Clone Ctrl + V

collapse(Poly) Ctrl+Alt+C

Connect Vertex (Poly) Alt + Shift + WF

ConnectOptions Shift + C

Create Camera From View Ctrl + C

Cut (Poly) Alt + C

Display as See-Through Toggle Alt + X

Detach (分离) Alt+,

Edge Bridge (桥接) Shift + B

Edge Constraint Toggle (Poly) Shift + V

Edge Remove Ctrl + R

Enable Axis Constraints in Snaps Toggle Alt + D

Expert Mode Toggle Ctrl + X

Extrude Edge )Poly) Ctrl + B

Face Constraint Toggle (Poly) Shift + D

Front View F

Hide (Poly) Alt + H

Hide Grids Toggle G

Hide Unselected Alt + I

Inset Face (Poly) Ctrl + Space

Isolate Selection Alt + Q

Left View L

Loop Shift + T

Material Editor Toggle M

Maximize Viewport Toggle Alt + W

Perspective User View P

ProBoolean Compound Object Alt + V

Redo Scene Operation Ctrl + Y

Render Shift + Q

Render to Texture Dialog Toggle 0

Ring Shift + R

Save File Ctrl + S

Select All Ctrl + A

Select and Move W

Select and Rotate E

Select by Name H

Select Invert Ctrl + I

Select None Ctrl + D

Set Flow Shift + Ctrl + S

Show End Result (First One) Space

Show Statistics Toggle 7

Smart Scale R

Smart Select Q

Snaps Toggle S

Step Mode Toggle Shift + S

Sub-Object Level 1 1

Sub-Object Level 2 2

Sub-Object Level 3 3

Sub-Object Level 4 4

Sub-Object Level 5 5

Swift Loop Alt + S

swift Loop (添加循环边) Alt+s,Alt+1

Target Weld (Poly) Shift + W

Top View T

Transform Gizmo Toggle X

Undo Scene Operation Ctrl + Z

Unhide All (Poly) Alt + U

View Edged Faces Toggle (高亮线显示模型) F4

Viewport Safeframes Toggle(显示线框开关) Shift + F

Viewport Selection Shade Selected Faces Toggle F2

Viewport Selection Show Selection Bracket Toggle(显示物体外轮廓线) J

Wireframe / Smooth+Highlights Toggle (线框显示) F3

Zoom Extents All Selected (将选中物体居中屏幕) Z

石墨 拓扑工具

Step Build(构建) Alt+Ctrl+E

Extend(延长) Alt+Ctrl+W

Optimize(优化) Alt+Ctrl+R

External Scripts(Download and run the script to make it work)

——————————————————————————————————

Align Objects to Vector (将对象与向量对齐) Ctrl + N

Align Pivot to Direction (将枢轴与方向对齐) Ctrl + M

Align to Surface(Clavertech) (对齐到表面) Alt + Shift + A

Align Viewport to Face (Part of Soulburn Scripts. See below) (对准视口面对) Ctrl + F

——————————————————————————————————

Extend Borders Alt + Shift + E

Quickly Select Convex Edges Alt + Ctrl + C

Regularize Edge Loop (EditPoly) Alt + Shift + D

soulburnScriptsListerUI Shift + Ctrl + A

Straighten Edge Alt + Shift + S

Max-native tools(These tools come with 3DS Max by default)

*Bevel (Poly) (Settings) B

*Bevel (Poly) Shift + Space

Center Pivot 0

*Chamfer (Poly) (Second one) Alt + Ctrl + C

Create Shape from Edges (Poly) 9

Detach (Poly) D

Edit Poly Modifier `

Grid Align (Poly) Shift + G

Hinge Face from Edge (Poly) Shift + H

Ignore Backfacing Shift + Ctrl + B

Make Planar (Poly) Shift + E

Meshsmooth (Poly) (First One) 6

PolyDraw Extend Ctrl + 2

PolyDraw StepBuild Ctrl + 1

PolyDraw Topology Ctrl + 3

PolyShift Move Ctrl + 4

Quick Align Shift + A

Quickslice (Poly) Shift + Ctrl + Q

*Redo Scene Operation Shift + Ctrl + Z

Render Setup... F10

Reset XForm -

Screen Coordinate System Shift + Ctrl + C

Select By Angle Alt + Shift + B

Set Keys K

Straighten Loops Alt + Ctrl + S

View Coordinate System Shift + Ctrl + X

External Scripts(Download and run the script to make it work)

3 Point Align Ctrl+F

RapidTools

rapidMeshCleanUp (RapidTools) Shift + 2

rapidQCap (RapidTools) Shift + 1

3dmax官方默认快捷键:

Edit Normal

Break Normals B

Reset Normals R

Unify Normals U

Unwrap UV

Pelt Map Alt+Q

Relax Shift+R

(责任编辑:IT教学网)

更多

相关Illustrator教程文章

推荐Illustrator教程文章