/**
 * Copyright (C) 2016  Alexander Schmidt
 *
 * This file is part of Seamulator.
 *
 * Seamulator is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Seamulator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Seamulator.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

class SeaView
{
 public:
  SeaView(double distance, double azimuth, double altitude);
  void onMouseEvent(int button, int state, int x, int y);
  void onMouseMove(int x, int y);
  void setupView() const;

 private:
  static constexpr double DISTANCE_MULTIPLIER = 0.1f;

  double m_distance;
  double m_azimuth;
  double m_altitude;
  int m_mouseDownPos[2];
  double m_mouseDownAltitude;
  double m_mouseDownAzimuth;
};
