/***************************************************************************
 *                          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 ISceneViewport
 *   Viewport for viewing the scene
 *--------------------------------------------------------------------------
 * @created: Saturday, January 18, 2003 17:30:24
 */

#if !defined(ISceneViewport_h_included)
#define ISceneViewport_h_included
//forward declaration of this class might require
namespace core
{ namespace ui
  { class ISceneViewport; }; };
#include <zmodeler.h>
#include <core/ui/uiTypes.h>
#include <core/ui/IViewport.h>


namespace core
{
  namespace ui
  {
    
    class ISceneViewport : public core::ui::IViewport
    {
    public:
      /* provides an unified vector of view direction */
      virtual ZRESULT getViewDirection(ZVector& vect)=0;
      virtual ZRESULT getViewPosition(ZPoint3D& pos)=0;
      virtual ZRESULT setViewDirection(ZVector vect)=0;
      virtual ZRESULT setViewPosition(ZPoint3D pos)=0;
      virtual ZRESULT getUpDirection(ZVector& vect)=0;
      virtual ZRESULT setUpDirection(ZVector vect)=0;
      /* Provide zoom-factor. Zoom factor is a float value specifying 1.0f scene unit is
       * [zoom] screen pixels (e.g. zoom 50.0f coverts 2.0f to 100 pixels) */
      virtual ZRESULT getZoom(float& fZoom)=0;
      virtual ZRESULT setZoom(float fZoom)=0;
      /* Provides matrix of world,view,projection - transformation of this viewport */
      virtual ZRESULT getTransformation(ZMatrix& matrix)=0;
    
    };//class ISceneViewport
  };//ui
};//core

#endif
