Class ALspGraphicsEffect

java.lang.Object
com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
Direct Known Subclasses:
ALspLight, TLspAtmosphere, TLspFog

public abstract class ALspGraphicsEffect extends Object
Describes a global graphics effect applicable to an ILspView. Similar to ALspStyle, graphics effects are purely descriptive objects: it is up to layers and painters to decide how the desired effect can best be realized in terms of OpenGL rendering.

Effects can be added to the view via TLspGraphicsEffects, which in turn is available from TLspViewServices. Effects can be toggled on and off with setEnabled(boolean), and support the use of property change listeners.

Since:
2013.0
  • Constructor Details

    • ALspGraphicsEffect

      protected ALspGraphicsEffect()
      Default constructor.
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether this effect is enabled. Painters and layers must honor this setting. The default is true.
      Returns:
      whether the effect is enabled
    • setEnabled

      public void setEnabled(boolean aEnabled)
      Enables or disables this effect.
      Parameters:
      aEnabled - whether or not to enable this effect
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Adds a property change listener to this effect.
      Parameters:
      listener - the listener to add
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Removes a property change listener from this effect.
      Parameters:
      listener - the listener to remove
    • firePropertyChange

      protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
      Fires a property change event for this effect.
      Parameters:
      propertyName - the name of the property
      oldValue - the old value of the property
      newValue - the new value of the property
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object