/*=========================================================================

  Program:   ParaView
  Module:    vtkPVLookingGlassSettings.h

  Copyright (c) Kitware, Inc.
  All rights reserved.
  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
/**
 * @class vtkPVLookingGlassSettings
 * @brief Stores Looking Glass renderer settings
 *
 * Unlike other settings classes, this is not a singleton class. It stores
 * view-specific settings for the Looking Glass. The associated view is set
 * view SetView.
 */

#ifndef vtkPVLookingGlassSettings_h
#define vtkPVLookingGlassSettings_h

#include "vtkObject.h"

#include "vtkPVRenderView.h"

#include "vtkLookingGlassSettingsModule.h" // for VTKLOOKINGGLASSSETTINGS_EXPORT

class VTKLOOKINGGLASSSETTINGS_EXPORT vtkPVLookingGlassSettings : public vtkObject
{
public:
  static vtkPVLookingGlassSettings* New();
  vtkTypeMacro(vtkPVLookingGlassSettings, vtkObject);
  void PrintSelf(ostream& os, vtkIndent indent) override;

  vtkSetObjectMacro(View, vtkPVRenderView);
  vtkGetObjectMacro(View, vtkPVRenderView);

  vtkSetMacro(FocalPlaneMovementFactor, double);
  vtkGetMacro(FocalPlaneMovementFactor, double);

  vtkSetMacro(DeviceIndex, int);
  vtkGetMacro(DeviceIndex, int);

  vtkSetMacro(RenderRate, int);
  vtkGetMacro(RenderRate, int);

  vtkSetMacro(NearClippingLimit, double);
  vtkGetMacro(NearClippingLimit, double);

  vtkSetMacro(FarClippingLimit, double);
  vtkGetMacro(FarClippingLimit, double);

protected:
  vtkPVLookingGlassSettings();
  ~vtkPVLookingGlassSettings() override;

  vtkPVRenderView* View = nullptr;
  double FocalPlaneMovementFactor;
  int DeviceIndex = 0;
  int RenderRate = 0;
  double NearClippingLimit;
  double FarClippingLimit;

  vtkCamera* GetActiveCamera();

private:
  vtkPVLookingGlassSettings(const vtkPVLookingGlassSettings&) = delete;
  void operator=(const vtkPVLookingGlassSettings&) = delete;
};

#endif
