/***************************************************************************
 *                          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 IControlPoint
 *--------------------------------------------------------------------------
 * @created: Monday, September 15, 2003 14:40:19
 */

#if !defined(IControlPoint_h_included)
#define IControlPoint_h_included
//forward declaration of this class might require
namespace scene
{ class IControlPoint; class CControlPointCol; };
#include <zmodeler.h>
#include <scene/zmSceneTypes.h>

namespace scene
{
  
  class IControlPoint : public ZUnknown, public ZEntityBase
  {
  public:
    virtual ZRESULT setType(eControlPoint type)=0;
    virtual ZRESULT getType(eControlPoint& type)=0;
    virtual ZRESULT setControlPosition(ZPoint3D pt)=0;
    virtual ZRESULT getControlPosition(ZPoint3D& pt)=0;
    virtual ZRESULT setControlVector(eControlVector type, ZVector v)=0;
    virtual ZRESULT getControlVector(eControlVector type, ZVector& v)=0;
    /* Sets segment detalization (which goes from this point to the next one). Setting detalization
     * to 0 will turn segment to line. */
    virtual ZRESULT setDetalization(long nDetail, bool bAuto=false)=0;
    virtual ZRESULT getDetalization(long& nDetail, bool* pAuto=NULL)=0;
  
  };//class IControlPoint
  
  //
  // collection template
  //
  class CControlPointCol : public ZUnknown,
      public ZIntrCollection<IControlPoint>
  {
  public:
    INTERFACE_FUNCTIONS_DEFAULT(CControlPointCol)
  };//class CControlPointCol
};//scene

#endif
