/************************************************************************/
/* Copyright 1998 MBARI							*/
/************************************************************************/
#ifndef _VIEWINGMAP_H
#define _VIEWINGMAP_H

#include <Vk/VkDoubleBuffer.h>
#include "DmGuiObject.h"

/*
CLASS 
ViewingMapArea

DESCRIPTION
Display current camera and light geometry

AUTHOR
Tom O'Reilly
*/
class ViewingMapArea : public VkDoubleBuffer
{
  public:
  
  ViewingMapArea(const char *name, Widget parent);
  ~ViewingMapArea();

  const char *className()
  {
    return "ViewingMapArea";
  }
  
  virtual void draw();

  protected:
  Display *_display;
  GC _gc;
};


/*
CLASS 
ViewingMap

DESCRIPTION
Display current camera and light geometry. Contains ViewingMapArea.

AUTHOR
Tom O'Reilly
*/
class ViewingMap : public DmGuiObject
{
  public:
  
  ViewingMap(const char *name, Widget parent);
  ~ViewingMap();

  const char *className()
  {
    return "ViewingMap";
  }
  
  virtual void updateGui(DM_Item handle = 0);

  protected:
  ViewingMapArea *_mapArea;
};


#endif
