WallItem
Extends:
Direct Subclass:
Indirect Subclass:
A Wall Item is an entity to be placed related to a wall.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
The currently applied wall edge. |
|
public |
|
|
public |
refVec: * used for finding rotations |
|
public |
|
|
public |
|
|
public |
visible: * |
|
public |
|
Method Summary
Public Methods | ||
public |
boundMove(vec3: *) takes the move vec3, and makes sure object stays bounded on plane |
|
public |
changeWallEdge(wallEdge: *) |
|
public |
closestWallEdge(): * Get the closet wall edge. |
|
public |
Returns an array of planes to use other than the ground plane for passing intersection to clickPressed and clickDragged |
|
public |
getWallOffset(): * |
|
public |
moveToPosition(vec3: *, intersection: *) |
|
public |
|
|
public |
|
|
public |
removed() |
|
public |
resized() |
|
public |
updateEdgeVisibility(visible: *, front: *) |
|
public |
|
Inherited Summary
From class Item | ||
public |
Show rotate option in context menu |
|
public |
bhelper: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
canvasWD: * |
|
public |
canvasWH: * |
|
public |
|
|
public |
|
|
public |
|
|
public |
dragOffset: * dragging |
|
public |
|
|
public |
|
|
public |
|
|
public |
errorGlow: * |
|
public |
|
|
public |
geometry: * |
|
public |
halfSize: * |
|
public |
|
|
public |
|
|
public |
material: * |
|
public |
metadata: * |
|
public |
model: * |
|
public |
Does this object affect other floor items |
|
public |
|
|
public |
|
|
public |
|
|
public |
resizable: * |
|
public |
|
|
public |
scene: * |
|
public |
|
|
public |
texture: * |
|
public |
wirematerial: * |
|
public |
clickDragged(intersection: *) |
|
public |
clickPressed(intersection: *) intersection has attributes point (vec3) and object (THREE.Mesh) |
|
public |
|
|
public |
createGlow(color: *, opacity: *, ignoreDepth: *): * |
|
public |
customIntersectionPlanes(): *[] Returns an array of planes to use other than the ground plane for passing intersection to clickPressed and clickDragged |
|
public |
getCorners(xDim: *, yDim: *, position: *): * returns the 2d corners of the bounding polygon |
|
public |
getDepth(): * |
|
public |
getHeight(): * |
|
public |
getMaterial(): * |
|
public |
getMaterialColor(index: *): * |
|
public |
getMetaData(): {"item_name": *, "item_type": *, "format": *, "model_url": *, "xpos": *, "ypos": *, "zpos": *, "rotation": *, "scale_x": *, "scale_y": *, "scale_z": *, "fixed": *, "material_colors": *} |
|
public |
|
|
public |
getWidth(): * |
|
public |
|
|
public |
|
|
public |
|
|
public |
mouseOff() |
|
public |
|
|
public |
moveToPosition(vec3: *) |
|
public |
objectHalfSize(): * |
|
public |
|
|
public |
remove() |
|
public |
removed() |
|
public |
resize(height: *, width: *, depth: *) |
|
public |
resized() Subclass can define to take action after a resize. |
|
public |
rotate(intersection: *) |
|
public |
setFixed(fixed: *) |
|
public |
setMaterialColor(color: *, index: *) |
|
public |
setProportionalResize(flag: *) |
|
public |
setScale(x: *, y: *, z: *) |
|
public |
|
|
public |
|
|
public |
showError(vec3: *) |
|
public |
switchWireframe(flag: *) |
|
public |
updateCanvasTexture(canvas: *, context: *, material: *, w: *, h: *, wPrefix: *, hPrefix: *) |
|
public |
on is a bool |
Public Constructors
Public Members
public visible: * source
Public Methods
public boundMove(vec3: *) source
takes the move vec3, and makes sure object stays bounded on plane
Params:
Name | Type | Attribute | Description |
vec3 | * |
public changeWallEdge(wallEdge: *) source
Params:
Name | Type | Attribute | Description |
wallEdge | * |
public customIntersectionPlanes(): * source
Returns an array of planes to use other than the ground plane for passing intersection to clickPressed and clickDragged
Override:
Item#customIntersectionPlanesReturn:
* |
public moveToPosition(vec3: *, intersection: *) source
Override:
Item#moveToPositionParams:
Name | Type | Attribute | Description |
vec3 | * | ||
intersection | * |
public redrawWall() source
public updateEdgeVisibility(visible: *, front: *) source
Params:
Name | Type | Attribute | Description |
visible | * | ||
front | * |