public virtual void RestoreStateFrom(IDictionary <string, object> mapping)
 {
     this.ModelTranslation     = (Vector3D)mapping["modelTranslation"];
     this.ModelScaling         = (double)mapping["modelScaling"];
     this.ModelOrientation     = (QuaternionD)mapping["modelOrientation"];
     this.ViewScaling          = (double)mapping["viewScaling"];
     this.modelBoundsFitType_0 = (ModelBoundsFitType)mapping["modelBoundsFitType"];
     this.double_1             = (double)mapping["margin"];
 }
 public void CopyFrom(SimpleTransformationProviderBase from)
 {
     this.vector3D_0    = from.vector3D_0;
     this.double_0      = from.double_0;
     this.quaternionD_0 = from.quaternionD_0;
     this.viewScaling   = from.viewScaling;
     this.viewWindow    = from.viewWindow;
     this.modelBounds.CopyFrom(from.modelBounds);
     this.bool_0 = from.bool_0;
     this.modelBoundsFitType_0 = from.modelBoundsFitType_0;
     this.double_1             = from.double_1;
 }