/***************************************************************************
 *                          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 ISceneEventHandler
 *   Events in the scene
 *--------------------------------------------------------------------------
 * @created: Tuesday, April 20, 2004 13:05:37
 */

#if !defined(ISceneEventHandler_h_included)
#define ISceneEventHandler_h_included
//forward declaration of this class might require
namespace core
{ namespace events
  { class ISceneEventHandler; class CSceneEventHandlerCol; }; };
#include <zmodeler.h>
#include <core/events/eventsTypes.h>
#include <core/events/IEventHandler.h>
#include <scene/INode.h>


namespace core
{
  namespace events
  {
    
    class ISceneEventHandler : public core::events::IEventHandler
    {
    public:
      virtual ZRESULT onAddNode(scene::INode* pNode)=0;
      virtual ZRESULT onDropNode(scene::INode* pNode)=0;
      virtual ZRESULT onChangeNode(scene::INode* pNode, DWORD dwBits)=0;
      virtual ZRESULT onLinkNode(scene::INode* pNode, scene::INode* pNewParent, scene::INode* pOldParent=NULL)=0;
      virtual ZRESULT onNodeVisibility(scene::INode* pNode)=0;
      virtual ZRESULT onNodeSelection(scene::INode* pNode)=0;
      virtual ZRESULT onNodeActivation(scene::INode* pNode)=0;
    
    };//class ISceneEventHandler
    
    //
    // collection template
    //
    class CSceneEventHandlerCol : public ZUnknown,
        public ZIntrCollection<ISceneEventHandler>
    {
    public:
      INTERFACE_FUNCTIONS_DEFAULT(CSceneEventHandlerCol)
    };//class CSceneEventHandlerCol
  };//events
};//core

#endif
