Sketcher
Extends:
Static Member Summary
| Static Public Members | ||
| public static |
pixelSizes: * |
|
Static Method Summary
| Static Public Methods | ||
| public static |
mixinPixelSizedGeometry(pixelSizes: *) A mixin which adds capability of specifying sizes in screen pixels. |
|
| public static |
registerVisualization(view: *, obj: *) Makes given THREE object suitable for visualization on given View. |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(options: *) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
font: * |
|
| public |
modelData: * |
|
| public |
modelMethods: * |
|
| public set |
server: * |
|
| public get |
server: * |
|
| public |
socket: * |
|
| public |
stateDiff: * |
|
Method Summary
| Public Methods | ||
| public |
askConstraintParams(oldParams: *): * |
|
| public |
|
|
| public |
buttonClick(buttonId: *) |
|
| public |
chooseTool(toolName: *): * |
|
| public |
click(): * |
|
| public |
deleteSketch(): * |
|
| public |
deselectSketch(options: *): boolean |
|
| public |
|
|
| public |
moveUnderConstraints(object: *, newPnt: *) |
|
| public |
newSketch(position: *, quaternion: *, item: *): * |
|
| public |
newSketchFromPlane(plane: *): * |
|
| public |
redo() |
|
| public |
refresh() |
|
| public |
requestAllButtonChanges(isSketchMode: *) |
|
| public |
selectSketch(sketch: *): boolean |
|
| public |
setActionCursor(action: *) |
|
| public |
setIncrementalLevel(value: *) |
|
| public |
setPrompt(promptText: *) |
|
| public |
sketchAreaClicked(sketch: *) |
|
| public |
sketchAreaRightClicked(sketch: *) |
|
| public |
|
|
| public |
switchToOrthographicCamera(view: *, sketch: *) |
|
| public |
switchToPerspectiveCamera(view: *) |
|
| public |
undo() |
|
Static Public Members
public static pixelSizes: * source
Static Public Methods
public static mixinPixelSizedGeometry(pixelSizes: *) source
A mixin which adds capability of specifying sizes in screen pixels. All sizes are kept in a single list 'pixelSizes'. Method 'updateSizes' is added: it should be called by user when camera/size changes. It passes geometrical sizes (in local object space) to method 'setGeomSizes'. If 'getSizingPoint' method is present in class, it is called to get calibrating position in local space of the object (otherwise origin is used).
Params:
| Name | Type | Attribute | Description |
| pixelSizes | * |
public static registerVisualization(view: *, obj: *) source
Makes given THREE object suitable for visualization on given View. It adds interaction on the object with update method. The update method allows to automatically recalculate sizes and visible geometry of the object. The function can be called many times, but the object must not have other interaction on it. Ideally, this method should be called immediately after the object has been created.
Params:
| Name | Type | Attribute | Description |
| view | * | ||
| obj | * |
Public Constructors
public constructor(options: *) source
Params:
| Name | Type | Attribute | Description |
| options | * |
Public Members
public constraintExpression: * source
public constraintFixed: * source
public constraintValue: * source
public currentCursor: * source
public currentSketch: * source
public font: * source
public modelData: * source
public modelMethods: * source
public set server: * source
public get server: * source
public socket: * source
public stateDiff: * source
Public Methods
public askConstraintParams(oldParams: *): * source
Params:
| Name | Type | Attribute | Description |
| oldParams | * |
Return:
| * |
public autoconstraintAll() source
public buttonClick(buttonId: *) source
Params:
| Name | Type | Attribute | Description |
| buttonId | * |
public interactionPointMoved() source
public moveUnderConstraints(object: *, newPnt: *) source
Params:
| Name | Type | Attribute | Description |
| object | * | ||
| newPnt | * |
public newSketch(position: *, quaternion: *, item: *): * source
Params:
| Name | Type | Attribute | Description |
| position | * | ||
| quaternion | * | ||
| item | * |
Return:
| * |
public newSketchFromPlane(plane: *): * source
Params:
| Name | Type | Attribute | Description |
| plane | * |
Return:
| * |
public redo() source
public refresh() source
public requestAllButtonChanges(isSketchMode: *) source
Params:
| Name | Type | Attribute | Description |
| isSketchMode | * |
public setActionCursor(action: *) source
Params:
| Name | Type | Attribute | Description |
| action | * |
public setIncrementalLevel(value: *) source
Params:
| Name | Type | Attribute | Description |
| value | * |
public setPrompt(promptText: *) source
Params:
| Name | Type | Attribute | Description |
| promptText | * |
public sketchAreaClicked(sketch: *) source
Params:
| Name | Type | Attribute | Description |
| sketch | * |
public sketchAreaRightClicked(sketch: *) source
Params:
| Name | Type | Attribute | Description |
| sketch | * |
public solveConstraints() source
public switchToOrthographicCamera(view: *, sketch: *) source
Params:
| Name | Type | Attribute | Description |
| view | * | ||
| sketch | * |
public switchToPerspectiveCamera(view: *) source
Params:
| Name | Type | Attribute | Description |
| view | * |