RotateScale Module
Types
Type | Description |
Functions and values
Function or value | Description |
|
|
|
|
|
|
|
|
Full Usage:
findSelectedSymbols compList model
Parameters:
ComponentId list
model : Model
Returns: Symbol list
|
|
Full Usage:
flipBlock compList model flip
Parameters:
ComponentId list
-
List of ComponentId's of selected components
model : Model
-
Current symbol model
flip : FlipType
-
Type of flip to do
Returns: Model
New flipped symbol model
|
|
|
|
|
|
|
|
Full Usage:
getPortAB wModel wireSyms
Parameters:
Model
wireSyms : wireSymbols
Returns: Port * Port
|
|
Full Usage:
getScalingFactorAndOffsetCentre min matchMin max matchMax
Parameters:
float
matchMin : float
max : float
matchMax : float
Returns: float * float
|
|
|
|
|
|
|
|
Full Usage:
noSymbolOverlap boxesIntersect boundingBoxes sym
Parameters:
BoundingBox -> BoundingBox -> bool
boundingBoxes : Map<ComponentId, BoundingBox>
sym : Symbol
Returns: bool
|
|
Full Usage:
oneCompBoundsBothEdges selectedSymbols
Parameters:
Symbol list
Returns: bool
|
|
Full Usage:
optimiseSymbol wModel symbol boundingBoxes
Parameters:
Model
symbol : Symbol
boundingBoxes : Map<ComponentId, BoundingBox>
Returns: Model
|
|
|
|
|
HLP23: To test this, it must be given two symbols interconnected by wires. It then resizes symbolToSize so that the connecting wires are exactly straight HLP23: It should work out the interconnecting wires (wires) from the two symbols, wModel.Wires and sModel.Ports It will do nothing if symbolToOrder is not a Custom component (which has adjustable size).
|
|
|
Full Usage:
rotateBlock compList model rotation
Parameters:
ComponentId list
-
List of ComponentId's of selected components
model : Model
-
Current symbol model
rotation : Rotation
-
Type of rotation to do
Returns: Model
New rotated symbol model
|
|
|
|
|
|
|
|
|
|
Full Usage:
scaleSymbolInBlock scaleType block sym
Parameters:
ScaleType
-
Scale up or down. Scaling distance is constant
block : BoundingBox
-
Bounding box of selected components
sym : Symbol
-
Symbol to be rotated
Returns: Symbol
New symbol after scaled about block centre.
|
|
Full Usage:
updateOrInsert symConnData edge cid
Parameters:
SymConnDataT
edge : Edge
cid : ComponentId
Returns: SymConnDataT
|
|