ViewerControls
Viewer controls
Constructor Summary
| Public Constructor | ||
| public | 
       constructor(stage: Stage)  | 
    |
Member Summary
| Public Members | ||
| public get | 
      
       scene center position  | 
    |
| public get | 
      
       scene rotation  | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
Method Summary
| Public Methods | ||
| public | 
      
       align scene to basis matrix  | 
    |
| public | 
       applyMatrix(matrix: Matrix4 | Array): undefined apply rotation matrix to scene  | 
    |
| public | 
      
       center scene  | 
    |
| public | 
      
       Trigger render and emit changed event  | 
    |
| public | 
      
       camera distance  | 
    |
| public | 
       getOrientation(optionalTarget: Matrix4): OrientationMatrix get scene orientation  | 
    |
| public | 
      
       | 
    |
| public | 
       orient(orientation: OrientationMatrix | Array): undefined set scene orientation  | 
    |
| public | 
       rotate(quaternion: Quaternion | Array): undefined rotate scene  | 
    |
| public | 
      
       spin scene on axis  | 
    |
| public | 
      
       translate scene  | 
    |
| public | 
      
       zoom scene  | 
    |
Public Constructors
Public Methods
public changed(): undefined source
Trigger render and emit changed event
Emit:
ViewerControls.signals.changed  | 
        
      
public distance(z: Number): undefined source
camera distance
Params:
| Name | Type | Attribute | Description | 
| z | Number | distance  | 
    
public getOrientation(optionalTarget: Matrix4): OrientationMatrix source
get scene orientation
Params:
| Name | Type | Attribute | Description | 
| optionalTarget | Matrix4 | pre-allocated target matrix  | 
    
public getPositionOnCanvas() source
public orient(orientation: OrientationMatrix | Array): undefined source
set scene orientation
Params:
| Name | Type | Attribute | Description | 
| orientation | OrientationMatrix | Array | scene orientation  | 
    
public rotate(quaternion: Quaternion | Array): undefined source
rotate scene
Params:
| Name | Type | Attribute | Description | 
| quaternion | Quaternion | Array | rotation quaternion  | 
    
    
  