Example #1
0
    private XObjectHash AddValue(string key, XObjectValues value)
    {
        XObjectSet set = Pool <XObjectSet> .Pop();

        set.value = value;
        this._objectSet.Add(key, set);
        return(this);
    }
Example #2
0
    private XObjectHash AddValue(string key, XObjectValues value)
    {
        if (this._objectSet == null)
        {
            this._objectSet = new Dictionary <string, XObjectSet>();
        }
        XObjectSet set = new XObjectSet();

        set.value = value;
        this._objectSet.Add(key, set);
        return(this);
    }
Example #3
0
    public XObjectHash AddControlPoint(string key, params float[] values)
    {
        if (!this._objectSet.ContainsKey(key))
        {
            Add(key, 0f);
        }
        XObjectSet    objSet = this._objectSet[key];
        XObjectValues value  = objSet.value;

        value.controlPoint = values;
        objSet.value       = value;
        return(this);
    }