/***************************************************************************
 *                          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 Zanoza Software.                   *
 *                                                                         *
 *                        All rights reserved.                             *
 ***************************************************************************
 *--------------------------------------------------------------------------
 * @author:   Oleg Melashenko
 *--------------------------------------------------------------------------
 * @purpose:  Declaration of the class INode
 *   The data tree node. Each node transparently inherits:
 *   - scene::ITransformable
 *   - scene::IAnimateable
 *   - core::IStatus
 *   - core::INamed
 *   [opt]- scene::IBoundable
 *   [opt]- core::ui::controls::IUserDefinedOptions
 *--------------------------------------------------------------------------
 * @created: 8 марта 2003 г. 16:47:10
 */

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

namespace scene
{
  
  class INode : public ZUnknown, public ZEntityBase
  {
  public:
    /* Provides interface for navigation. */
    virtual ZRESULT getParent(scene::INode** ppParent)=0;
    virtual ZRESULT getChildren(CNodeCol** ppChildren)=0;
    /* Sets parent node */
    virtual ZRESULT setParent(scene::INode* pParent)=0;
    virtual ZRESULT setChildren(CNodeCol* pChildren)=0;
    virtual ZRESULT queryNodeOperation(eNodeOperation no, scene::INode* pNode, DWORD dwRes=0)=0;
    virtual ZRESULT changed(DWORD dwBits)=0;
    virtual ZRESULT clone(scene::INode** ppNode, bool bShareData=false)=0;
  
  };//class INode
  
  //
  // collection template
  //
  class CNodeCol : public ZUnknown,
      public ZIntrCollection<INode>
  {
  public:
    INTERFACE_FUNCTIONS_DEFAULT(CNodeCol)
  };//class CNodeCol
};//scene

#endif
