Squeak Class Documentation category index | class index  
 
WonderlandWrapperMorph
  category: Balloon3D-Wonderland Morphs
  superclass: Morph
  subclasses:

A WonderlandWrapperMorph is temporarily created by Cmd-Clicking on an object in a 3D world. The wrappers map the behavior of morphs into 3D worlds so that 2D interactions result in appropriate changes in the 3D world (e.g., dragging, resizing) and state changes as well (e.g., color).

Wrappers are created as a hierarchical morph list on the object they represent. This is necessary to allow accesses to higher levels in the 3D hierarchy. Note that there are currently several inconsistent behaviors for 3D objects. This is related to the ridiculous attempt of HandMorph to completely understand the interaction hierarchy, e.g., the HandMorph dispatches all events to what it *thinks* the receiver should be. Naturally, this fails completely for 3D worlds where there is no hierarchy of morphs but which may nevertheless use input events.

instance methods
  accessing
  color
color:
getCameraMorph
hasHalo:
knownName
transferHalo:from:

  drawing
  drawOn:
fullDrawOn:

  handles
  addHandlesTo:box:
addSimpleHandlesTo:box:
balloonHelpTextForHandle:
dismissViaHalo
dragEndFromHalo:with:
dragMoveFromHalo:with:
dragPositionOffset
dragPositionOffset:
dragStartFromHalo:with:
dupEndFromHalo:with:
dupMoveFromHalo:with:
dupStartFromHalo:with:
extractTexture:
grabFromHalo:with:
growEndFromHalo:with:
growMoveFromHalo:with:
growPositionOffset
growPositionOffset:
growStartFromHalo:with:
openViewerForArgument
removeAllHandlesBut:
renameTo:
rotateEndFromHalo:with:
rotateMoveFromHalo:with:
rotateStartFromHalo:with:
tearOffTile

  initialization
  createHierarchy
setActor:

  menu
  addCustomMenuItems:hand:
getActiveTextureState
getHQTextureState
getTextureAdjust
paintTexture
setUserPointOfView
toggleActiveTextureState
toggleHQTextureState
toggleTextureAdjust

  private
  computeBounds:
computeFullBounds:
undo:using:
undoOnTop:using:

class methods
  instance creation
  on:

instance methods
  accessing top  
 

color


 

color:

Change the color of the actor


 

getCameraMorph


 

hasHalo:


 

knownName

If a formal name has been handed out for this object, answer it, else nil


 

transferHalo:from:

Progressively transfer the halo to the next likely recipient


  drawing top  
 

drawOn:


 

fullDrawOn:

Draw the full Morphic structure on the given Canvas


  handles top  
 

addHandlesTo:box:

Add halo handles to the halo. Apply the halo filter if appropriate


 

addSimpleHandlesTo:box:


 

balloonHelpTextForHandle:

Answer a string providing balloon help for the given halo handle


 

dismissViaHalo

The user has clicked in the delete halo-handle. This provides a hook in case some concomitant action should be taken, or if the particular morph is not one which should be put in the trash can, for example.


 

dragEndFromHalo:with:


 

dragMoveFromHalo:with:


 

dragPositionOffset


 

dragPositionOffset:


 

dragStartFromHalo:with:


 

dupEndFromHalo:with:


 

dupMoveFromHalo:with:


 

dupStartFromHalo:with:


 

extractTexture:


 

grabFromHalo:with:


 

growEndFromHalo:with:


 

growMoveFromHalo:with:


 

growPositionOffset


 

growPositionOffset:


 

growStartFromHalo:with:


 

openViewerForArgument

Open up a viewer for a player associated with the morph in question. Temporarily, if shift key is down, open up an instance browser on the morph itself, not the player, with tiles showing, instead


 

removeAllHandlesBut:


 

renameTo:

Set Player name in costume. Update Viewers. Fix all tiles (old style). fix References. New tiles: recompile, and recreate open scripts. If coming in from disk, and have name conflict, References will already have new name.


 

rotateEndFromHalo:with:


 

rotateMoveFromHalo:with:


 

rotateStartFromHalo:with:


 

tearOffTile


  initialization top  
 

createHierarchy

Create a wrapper hierarchy representing the owners of the receiver


 

setActor:


  menu top  
 

addCustomMenuItems:hand:

Add morph-specific items to the given menu which was invoked by the given hand. This method provides is invoked both from the halo-menu and from the control-menu regimes.


 

getActiveTextureState


 

getHQTextureState


 

getTextureAdjust


 

paintTexture


 

setUserPointOfView


 

toggleActiveTextureState


 

toggleHQTextureState


 

toggleTextureAdjust


  private top  
 

computeBounds:


 

computeFullBounds:


 

undo:using:

Check if we need to add an undo action.


 

undoOnTop:using:

Check if we need to add an undo action.


class methods
  instance creation top  
 

on: