Exemplo n.º 1
0
 protected CurveViewModelBase([NotNull] CurveEditorViewModel editor, CurveViewModelBase parent)
     : base(editor.SafeArgument(nameof(editor)).ServiceProvider)
 {
     Editor = editor;
     Parent = parent;
     children.CollectionChanged += ChildrenCollectionChanged;
 }
Exemplo n.º 2
0
 public Vector3KeyFrameCurveViewModel([NotNull] CurveEditorViewModel editor, [NotNull] ComputeAnimationCurve <Vector3> computeCurve, CurveViewModelBase parent = null, string name = null)
     : base(editor, parent, computeCurve, name)
 {
     Children.Add(new Vector3ComponentCurveViewModel(editor, this, computeCurve, VectorComponent.X));
     Children.Add(new Vector3ComponentCurveViewModel(editor, this, computeCurve, VectorComponent.Y));
     Children.Add(new Vector3ComponentCurveViewModel(editor, this, computeCurve, VectorComponent.Z));
 }
Exemplo n.º 3
0
 protected KeyFrameCurveViewModel([NotNull] CurveEditorViewModel editor, CurveViewModelBase parent, [NotNull] ComputeAnimationCurve <TValue> computeCurve, string name = null)
     : base(editor, parent, computeCurve, name)
 {
     KeyFramesNode                    = CurveNode[nameof(computeCurve.KeyFrames)].Target;
     KeyFramesNode.ItemChanged       += KeyFramesContentChanged;
     controlPoints.CollectionChanged += ControlPointsCollectionChanged;
 }
Exemplo n.º 4
0
 public Vector3ComponentCurveViewModel([NotNull] CurveEditorViewModel editor, CurveViewModelBase parent, [NotNull] ComputeAnimationCurve <Vector3> computeCurve, VectorComponent component)
     : base(editor, parent, computeCurve, component)
 {
     if (component == VectorComponent.W)
     {
         throw new ArgumentException("Vector component 'W' is invalid, only 'X', 'Y' and 'Z' are supported.", nameof(component));
     }
 }
Exemplo n.º 5
0
 public Color4KeyFrameCurveViewModel([NotNull] CurveEditorViewModel editor, [NotNull] ComputeAnimationCurve <Color4> computeCurve, CurveViewModelBase parent = null, string name = null)
     : base(editor, parent, computeCurve, name)
 {
     Children.Add(new Color4ComponentCurveViewModel(editor, this, computeCurve, ColorComponent.R));
     Children.Add(new Color4ComponentCurveViewModel(editor, this, computeCurve, ColorComponent.G));
     Children.Add(new Color4ComponentCurveViewModel(editor, this, computeCurve, ColorComponent.B));
     Children.Add(new Color4ComponentCurveViewModel(editor, this, computeCurve, ColorComponent.A));
 }
Exemplo n.º 6
0
 protected VectorComponentCurveViewModel([NotNull] CurveEditorViewModel editor, CurveViewModelBase parent, [NotNull] ComputeAnimationCurve <TValue> computeCurve, VectorComponent component)
     : base(editor, parent, computeCurve)
 {
     Component = component;
     Color     = Editor.GetColor(component);
 }
Exemplo n.º 7
0
 public Vector4ComponentCurveViewModel([NotNull] CurveEditorViewModel editor, CurveViewModelBase parent, [NotNull] ComputeAnimationCurve <Vector4> computeCurve, VectorComponent component)
     : base(editor, parent, computeCurve, component)
 {
 }
Exemplo n.º 8
0
 public FloatKeyFrameCurveViewModel([NotNull] CurveEditorViewModel editor, [NotNull] ComputeAnimationCurve <float> computeCurve, CurveViewModelBase parent = null, string name = null)
     : base(editor, parent, computeCurve, name)
 {
 }
Exemplo n.º 9
0
 protected DecomposedCurveViewModel([NotNull] CurveEditorViewModel editor, CurveViewModelBase parent, [NotNull] IComputeCurve <TValue> computeCurve, string name = null)
     : base(editor, parent, computeCurve, name)
 {
 }
Exemplo n.º 10
0
 public RotationCurveViewModel([NotNull] CurveEditorViewModel editor, [NotNull] IComputeCurve <Quaternion> computeCurve, CurveViewModelBase parent = null, string name = null)
     : base(editor, parent, computeCurve, name)
 {
 }
 public RotationComponentCurveViewModel([NotNull] CurveEditorViewModel editor, CurveViewModelBase parent, [NotNull] ComputeAnimationCurve <Quaternion> computeCurve, VectorComponent component)
     : base(editor, parent, computeCurve)
 {
     Component = component;
     Color     = Editor.GetColor(component);
 }
Exemplo n.º 12
0
 public Color4CurveViewModel([NotNull] CurveEditorViewModel editor, [NotNull] IComputeCurve <Color4> computeCurve, CurveViewModelBase parent = null, string name = null)
     : base(editor, parent, computeCurve, name)
 {
 }