/* Copyright (C) 2004-2009 MBSim Development Team
 *
 * This library 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 2.1 of the License, or (at your option) any later version. 
 *  
 * This library 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 this library; if not, write to the Free Software 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
 *
 * Contact: martin.o.foerg@googlemail.com
 */

#ifndef _CONTACT_KINEMATICS_SPHERE_RECTANGLE_H_
#define _CONTACT_KINEMATICS_SPHERE_RECTANGLE_H_

#include "contact_kinematics.h"

namespace MBSim {

  class Sphere; 
  class Plate;

  /**
   * \brief pairing sphere to plate
   * \author Kilian Grundl
   *
   * \todo: edge problems not handled yet
   * \todo: what about contact "below" plate
   */
  class ContactKinematicsSpherePlate : public ContactKinematics {
    public:
      /* INHERITED INTERFACE */
      void assignContours(const std::vector<Contour*> &contour) override;
      void updateg(SingleContact &contact, int i=0) override;
      /***************************************************/

    private:
      /**
       * \brief contour index
       */
      int isphere, iplate;
      
      /**
       * \brief contour classes
       */
      Sphere *sphere;
      Plate *plate;

  };

}

#endif
