/***************************************************************************
 *                          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 INodeFilter
 *   The filter for the INode.
 *   INodeFilter transparently inherits:
 *   core::INamed
 *   core::IStatus
 *--------------------------------------------------------------------------
 * @created: Tuesday, April 20, 2004 12:21:09
 */

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


namespace scene
{
  
  class INodeFilter : public ZUnknown
  {
  public:
    /* Returns ZRESULT_OK on success pass and ZRESULT_FALSE on
     * unsuccesfull pass (not passed). bAffectChildren specifies whether
     * ret-val is the same for all children. */
    virtual ZRESULT pass(scene::INode* pNode, bool& bAffectChildren)=0;
  
  };//class INodeFilter
  
  //
  // collection template
  //
  class CNodeFilterCol : public ZUnknown,
      public ZIntrCollection<INodeFilter>
  {
  public:
    INTERFACE_FUNCTIONS_DEFAULT(CNodeFilterCol)
  };//class CNodeFilterCol
};//scene

#endif
