////////////////////////////////////////////////////////////////////////////////
//
//  SvgTransformGroup.cs - This file is part of Svg2Xaml.
//
//    Copyright (C) 2009,2011 Boris Richter <himself@boris-richter.net>
//
//  --------------------------------------------------------------------------
//
//  Svg2Xaml is free software: you can redistribute it and/or modify it under 
//  the terms of the GNU Lesser General Public License as published by the 
//  Free Software Foundation, either version 3 of the License, or (at your 
//  option) any later version.
//
//  Svg2Xaml is distributed in the hope that it will be useful, but WITHOUT 
//  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
//  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 
//  License for more details.
//  
//  You should have received a copy of the GNU Lesser General Public License 
//  along with Svg2Xaml. If not, see <http://www.gnu.org/licenses/>.
//
//  --------------------------------------------------------------------------
//
//  $LastChangedRevision$
//  $LastChangedDate$
//  $LastChangedBy$
//
////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;
using System.Windows.Media;

namespace Svg2Xaml
{

  //****************************************************************************
  class SvgTransformGroup
    : SvgTransform
  {
    //==========================================================================
    public readonly List<SvgTransform> Transforms = new List<SvgTransform>();

    //==========================================================================
    public SvgTransformGroup(SvgTransform[] transforms)
    {
      foreach(SvgTransform transform in transforms)
        Transforms.Add(transform);
    }

    //==========================================================================
    public override Transform ToTransform()
    {
      TransformGroup transform_group = new TransformGroup();

      foreach(SvgTransform transform in Transforms)
        transform_group.Children.Add(transform.ToTransform());

      return transform_group;
    }

  } // class SvgTransformGroup

}
