/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.7
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.sundogsoftware.silverlining;

public class CloudLayer {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  protected CloudLayer(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CloudLayer obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        SilverLiningCloudLayerFactoryJNI.delete_CloudLayer(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CloudTypes GetType() {
    return CloudTypes.swigToEnum(SilverLiningCloudLayerFactoryJNI.CloudLayer_GetType(swigCPtr, this));
  }

  public void SetType(CloudTypes type) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetType(swigCPtr, this, type.swigValue());
  }

  public void SetEnabled(boolean enabled, long fadeTimeMS) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetEnabled__SWIG_0(swigCPtr, this, enabled, fadeTimeMS);
  }

  public void SetEnabled(boolean enabled) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetEnabled__SWIG_1(swigCPtr, this, enabled);
  }

  public boolean GetEnabled() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetEnabled(swigCPtr, this);
  }

  public boolean IsRenderable() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_IsRenderable(swigCPtr, this);
  }

  public void SetBaseWidth(double meters) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetBaseWidth(swigCPtr, this, meters);
  }

  public double GetBaseWidth() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetBaseWidth(swigCPtr, this);
  }

  public void SetBaseLength(double meters) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetBaseLength(swigCPtr, this, meters);
  }

  public double GetBaseLength() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetBaseLength(swigCPtr, this);
  }

  public void SetBaseAltitude(double meters) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetBaseAltitude(swigCPtr, this, meters);
  }

  public double GetBaseAltitude() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetBaseAltitude(swigCPtr, this);
  }

  public void SetThickness(double meters) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetThickness(swigCPtr, this, meters);
  }

  public double GetThickness() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetThickness(swigCPtr, this);
  }

  public void SetDensity(double coveragePercentage) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetDensity(swigCPtr, this, coveragePercentage);
  }

  public double GetDensity() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetDensity(swigCPtr, this);
  }

  public void SetLayerPosition(double eastCoord, double southCoord) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetLayerPosition(swigCPtr, this, eastCoord, southCoord);
  }

  public void GetLayerPosition(SWIGTYPE_p_double east, SWIGTYPE_p_double south) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_GetLayerPosition(swigCPtr, this, SWIGTYPE_p_double.getCPtr(east), SWIGTYPE_p_double.getCPtr(south));
  }

  public void SetIsInfinite(boolean inf) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetIsInfinite(swigCPtr, this, inf);
  }

  public boolean GetIsInfinite() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetIsInfinite(swigCPtr, this);
  }

  public void SetWind(double windX, double windZ) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetWind(swigCPtr, this, windX, windZ);
  }

  public void GetWind(SWIGTYPE_p_double windX, SWIGTYPE_p_double windZ) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_GetWind(swigCPtr, this, SWIGTYPE_p_double.getCPtr(windX), SWIGTYPE_p_double.getCPtr(windZ));
  }

  public void SetCloudAnimationEffects(double voxelSpinRate, boolean enableGrowth, int initialGrowthIterations, int timeStepInterval) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetCloudAnimationEffects__SWIG_0(swigCPtr, this, voxelSpinRate, enableGrowth, initialGrowthIterations, timeStepInterval);
  }

  public void SetCloudAnimationEffects(double voxelSpinRate, boolean enableGrowth, int initialGrowthIterations) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetCloudAnimationEffects__SWIG_1(swigCPtr, this, voxelSpinRate, enableGrowth, initialGrowthIterations);
  }

  public void SetCloudAnimationEffects(double voxelSpinRate, boolean enableGrowth) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetCloudAnimationEffects__SWIG_2(swigCPtr, this, voxelSpinRate, enableGrowth);
  }

  public void SetCloudWrapping(boolean wrap) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetCloudWrapping(swigCPtr, this, wrap);
  }

  public boolean GetCloudWrapping() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetCloudWrapping(swigCPtr, this);
  }

  public void SetFadeTowardEdges(boolean fade) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetFadeTowardEdges(swigCPtr, this, fade);
  }

  public boolean GetFadeTowardEdges() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetFadeTowardEdges(swigCPtr, this);
  }

  public void SetPrecipitation(int type, double intensity, double nearClip, double farClip) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetPrecipitation__SWIG_0(swigCPtr, this, type, intensity, nearClip, farClip);
  }

  public void SetPrecipitation(int type, double intensity, double nearClip) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetPrecipitation__SWIG_1(swigCPtr, this, type, intensity, nearClip);
  }

  public void SetPrecipitation(int type, double intensity) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetPrecipitation__SWIG_2(swigCPtr, this, type, intensity);
  }

  public SWIGTYPE_p_std__mapT_int_double_t GetPrecipitation() {
    return new SWIGTYPE_p_std__mapT_int_double_t(SilverLiningCloudLayerFactoryJNI.CloudLayer_GetPrecipitation(swigCPtr, this), false);
  }

  public boolean HasPrecipitationAtPosition(double x, double y, double z) {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_HasPrecipitationAtPosition(swigCPtr, this, x, y, z);
  }

  public boolean IsInsideCloud(double x, double y, double z) {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_IsInsideCloud(swigCPtr, this, x, y, z);
  }

  public void SetAlpha(double pAlpha) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SetAlpha(swigCPtr, this, pAlpha);
  }

  public double GetAlpha() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_GetAlpha(swigCPtr, this);
  }

  public boolean SupportsShadowMaps() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_SupportsShadowMaps(swigCPtr, this);
  }

  public void GenerateShadowMaps(boolean arg0) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_GenerateShadowMaps(swigCPtr, this, arg0);
  }

  public boolean BindShadowMap(int textureStage, SWIGTYPE_p_double m) {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_BindShadowMap(swigCPtr, this, textureStage, SWIGTYPE_p_double.getCPtr(m));
  }

  public void SeedClouds(Atmosphere atm) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_SeedClouds(swigCPtr, this, Atmosphere.getCPtr(atm), atm);
  }

  public void AddLightningListener(SWIGTYPE_p_SilverLining__LightningListener listener) {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_AddLightningListener(swigCPtr, this, SWIGTYPE_p_SilverLining__LightningListener.getCPtr(listener));
  }

  public void ClearLightningListeners() {
    SilverLiningCloudLayerFactoryJNI.CloudLayer_ClearLightningListeners(swigCPtr, this);
  }

  public boolean ForceLightning() {
    return SilverLiningCloudLayerFactoryJNI.CloudLayer_ForceLightning(swigCPtr, this);
  }

  public final static class PrecipitationTypes {
    public final static CloudLayer.PrecipitationTypes NONE = new CloudLayer.PrecipitationTypes("NONE");
    public final static CloudLayer.PrecipitationTypes RAIN = new CloudLayer.PrecipitationTypes("RAIN");
    public final static CloudLayer.PrecipitationTypes DRY_SNOW = new CloudLayer.PrecipitationTypes("DRY_SNOW");
    public final static CloudLayer.PrecipitationTypes WET_SNOW = new CloudLayer.PrecipitationTypes("WET_SNOW");
    public final static CloudLayer.PrecipitationTypes SLEET = new CloudLayer.PrecipitationTypes("SLEET");
    public final static CloudLayer.PrecipitationTypes NUM_PRECIP_TYPES = new CloudLayer.PrecipitationTypes("NUM_PRECIP_TYPES");

    public final int swigValue() {
      return swigValue;
    }

    public String toString() {
      return swigName;
    }

    public static PrecipitationTypes swigToEnum(int swigValue) {
      if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
        return swigValues[swigValue];
      for (int i = 0; i < swigValues.length; i++)
        if (swigValues[i].swigValue == swigValue)
          return swigValues[i];
      throw new IllegalArgumentException("No enum " + PrecipitationTypes.class + " with value " + swigValue);
    }

    private PrecipitationTypes(String swigName) {
      this.swigName = swigName;
      this.swigValue = swigNext++;
    }

    private PrecipitationTypes(String swigName, int swigValue) {
      this.swigName = swigName;
      this.swigValue = swigValue;
      swigNext = swigValue+1;
    }

    private PrecipitationTypes(String swigName, PrecipitationTypes swigEnum) {
      this.swigName = swigName;
      this.swigValue = swigEnum.swigValue;
      swigNext = this.swigValue+1;
    }

    private static PrecipitationTypes[] swigValues = { NONE, RAIN, DRY_SNOW, WET_SNOW, SLEET, NUM_PRECIP_TYPES };
    private static int swigNext = 0;
    private final int swigValue;
    private final String swigName;
  }

}
