setStateFromJSON method

dynamic setStateFromJSON(
  1. dynamic json
)

Implementation

setStateFromJSON(json) {
  // var state = JSON.parse( json );

  // if ( state.arcballState != null ) {

  // 	_cameraMatrixState.fromArray( state.arcballState.cameraMatrix.elements );
  // 	_cameraMatrixState.decompose( camera.position, camera.quaternion, camera.scale );

  // 	camera.up.copy( state.arcballState.cameraUp );
  // 	camera.near = state.arcballState.cameraNear;
  // 	camera.far = state.arcballState.cameraFar;

  // 	camera.zoom = state.arcballState.cameraZoom;

  // 	if ( camera is PerspectiveCamera ) {

  // 		camera.fov = state.arcballState.cameraFov;

  // 	}

  // 	_gizmoMatrixState.fromArray( state.arcballState.gizmoMatrix.elements );
  // 	_gizmoMatrixState.decompose( _gizmos.position, _gizmos.quaternion, _gizmos.scale );

  // 	camera.updateMatrix();
  // 	camera.updateProjectionMatrix();

  // 	_gizmos.updateMatrix();

  // 	_tbRadius = calculateTbRadius( camera );
  // 	var gizmoTmp = new Matrix4().copy( _gizmoMatrixState0 );
  // 	makeGizmos( _gizmos.position, _tbRadius );
  // 	_gizmoMatrixState0.copy( gizmoTmp );

  // 	camera.lookAt( _gizmos.position );
  // 	updateTbState( STATE2.IDLE, false );

  // 	dispatchEvent( _changeEvent );

  // }
}