Class ShadedReliefImpl

Object
ShadedReliefImpl
All Implemented Interfaces:
ShadedRelief

public class ShadedReliefImpl extends Object implements ShadedRelief
Default implementation of ShadedRelief.
Author:
iant
  • Constructor Details

    • ShadedReliefImpl

      public ShadedReliefImpl()
    • ShadedReliefImpl

      public ShadedReliefImpl(FilterFactory factory)
  • Method Details

    • getReliefFactor

      public Expression getReliefFactor()
      The ReliefFactor gives the amount of exaggeration to use for the height of the ?hills.? A value of around 55 (times) gives reasonable results for Earth-based DEMs. The default value is system-dependent.
      Specified by:
      getReliefFactor in interface ShadedRelief
      Returns:
      an expression which evaluates to a double.
    • isBrightnessOnly

      public boolean isBrightnessOnly()
      indicates if brightnessOnly is true or false. Default is false.
      Specified by:
      isBrightnessOnly in interface ShadedRelief
      Returns:
      boolean brightnessOn.
    • setBrightnessOnly

      public void setBrightnessOnly(boolean flag)
      turns brightnessOnly on or off depending on value of flag.
      Specified by:
      setBrightnessOnly in interface ShadedRelief
      Parameters:
      flag - boolean
    • setReliefFactor

      public void setReliefFactor(Expression reliefFactor)
      The ReliefFactor gives the amount of exaggeration to use for the height of the ?hills.? A value of around 55 (times) gives reasonable results for Earth-based DEMs. The default value is system-dependent.
      Specified by:
      setReliefFactor in interface ShadedRelief
      Parameters:
      reliefFactor - an expression which evaluates to a double.
    • accept

      public Object accept(TraversingStyleVisitor visitor, Object data)
      Description copied from interface: ShadedRelief
      calls the visit method of a StyleVisitor
      Specified by:
      accept in interface ShadedRelief
      Parameters:
      visitor - the style visitor
    • accept

      public void accept(StyleVisitor visitor)
      Specified by:
      accept in interface ShadedRelief
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object