/***************************************************************************
 *                          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 IUVNodeSwitcher
 *   Interfaces switches IScene and ISubset nodes to scene and uv-mapping nodes
 *   depending on what viewport you are acting with. UV-Mapper viewport performs
 *   switching of nodes before/after drawing, acting with buttons etc.
 *--------------------------------------------------------------------------
 * @created: Tuesday, January 13, 2004 12:11:07
 */

#if !defined(IUVNodeSwitcher_h_included)
#define IUVNodeSwitcher_h_included
//forward declaration of this class might require
namespace shared
{ class IUVNodeSwitcher; };
#include <zmodeler.h>

#include <scene/INode.h>


namespace shared
{
  
  class IUVNodeSwitcher : public ZUnknown
  {
  public:
    virtual ZRESULT switchToUV(void)=0;
    virtual ZRESULT switchToScene(void)=0;
    virtual ZRESULT getUVNodeCount(long& nCount)=0;
    /* Provides all available UVNodes. */
    virtual ZRESULT getUVNodes(scene::CNodeCol** ppNodes)=0;
    /* Provides set of nodes which are used by available UVNodes */
    virtual ZRESULT getTargetNodes(scene::CNodeCol** ppNodes)=0;
    /* Provides sequence of used materials (by all nodes) */
    virtual ZRESULT getUsedMaterials(tLongSeq& seqIndx)=0;
    /* Provides set of material used by supplied target-object */
    virtual ZRESULT getMaterialsByTarget(scene::INode* pTarget, tLongSeq& seqIndx)=0;
    /* Provides set of nodes which used supplied material */
    virtual ZRESULT getNodesByMaterial(long nMaterial, scene::CNodeCol** ppNodes)=0;
    /* Provides set of nodes that correspond to supplied target node */
    virtual ZRESULT getNodesByTarget(scene::INode* pTarget, scene::CNodeCol** ppNodes)=0;
    virtual ZRESULT getCurrentUVNodes(scene::CNodeCol** ppNodes)=0;
    virtual ZRESULT setCurrentUVNodes(scene::CNodeCol* pNodes)=0;
    virtual ZRESULT setCurrentMaterial(long nMat)=0;
    virtual ZRESULT getCurrentMaterial(long& nMat)=0;
  
  };//class IUVNodeSwitcher
};//shared

#endif
