/***************************************************************************
 *                          Zanoza Modeler v2.x                            *
 *      This is unpublished propietary source code of Zanoza Software.     *
 *      The copyright notice does not evidence any actual or intended      *
 *                    publication of such source code.                     *
 *                                                                         *
 *                Copyright (c) 2002-2008 Zanoza Software.                 *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class ISnappingProcessor
 *--------------------------------------------------------------------------
 * @created: Thursday, October 16, 2003 15:47:49
 */

#if !defined(ISnappingProcessor_h_included)
#define ISnappingProcessor_h_included
//forward declaration of this class might require
namespace services
{ class ISnappingProcessor; class CSnappingProcessorCol; };
#include <zmodeler.h>
#include <core/coreTypes.h>
#include <services/zmServices.h>
#include <services/ISnappingService.h>
#include <core/ui/IViewport.h>


namespace services
{
  
  class ISnappingProcessor : public ZUnknown
  {
  public:
    virtual ZRESULT processLocation(services::ISnappingService* pService, core::ui::IViewport* pVPort, ZLine3D& inputLine, ZPoint& inputCursor)=0;
    /* Processes a set of points for snap condition. returns ZRESULT_OK on success 
     * with offset vector in pVector and point's index in pIndex parameters (if applied) */
    virtual ZRESULT processPoints(core::ui::IViewport* pVPort, ZPoint3DSeq& seqPoints, ZVector* pOffset=NULL, long* pIndex=NULL)=0;
  
  };//class ISnappingProcessor
  
  //
  // collection template
  //
  class CSnappingProcessorCol : public ZUnknown,
      public ZIntrCollection<ISnappingProcessor>
  {
  public:
    INTERFACE_FUNCTIONS_DEFAULT(CSnappingProcessorCol)
  };//class CSnappingProcessorCol
};//services

#endif
