/***************************************************************************
 *                          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 IScene
 *   The scene interface. Scene is a tree-structure of nodes.
 *--------------------------------------------------------------------------
 * @created: Tuesday, April 20, 2004 11:56:35
 */

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


namespace scene
{
  
  class IScene : public ZUnknown
  {
  public:
    /* Provides scene hierarchy root as is. */
    virtual ZRESULT getRoot(scene::INode** ppNode)=0;
    virtual ZRESULT getNodeService(services::INodeService** ppService)=0;
    /* Attaches node to the tree */
    virtual ZRESULT attachNode(scene::INode* pNode, scene::INode* pParent)=0;
    virtual ZRESULT detachNode(scene::INode* pNode)=0;
    /* Relinks existen node to supplied parent. If NULL is passed,
     * node is linked to scene root */
    virtual ZRESULT relinkNode(scene::INode* pNode, scene::INode* pParent=NULL)=0;
    virtual ZRESULT getBoundary(ZPoint3D& ptMin, ZPoint3D& ptMax)=0;
    /* notifies scene on changes in bounding of the node */
    virtual ZRESULT boundingChange(scene::INode* pNode)=0;
  
  };//class IScene
};//scene

#endif
