Class ALcdDGNLevelFilter

java.lang.Object
com.luciad.format.dgn.ALcdDGNLevelFilter
All Implemented Interfaces:
ILcdFilter, Serializable, Predicate

public abstract class ALcdDGNLevelFilter extends Object implements ILcdFilter
This class describes a DGN level filter. A filter is a subset of levels.

You can check if a given level is included by this filter through contains(com.luciad.format.dgn.TLcdDGNLevel).

You can retrieve all accepted levels through getLevelIDs().

This filter is also an ILcdFilter that accepts model elements that correspond to its set of levels. Cells are accepted if at least on element inside is accepted.

Since:
10.2
See Also:
  • Constructor Details

    • ALcdDGNLevelFilter

      protected ALcdDGNLevelFilter(String aName)
      Creates a new level filter
      Parameters:
      aName - The filter name
  • Method Details

    • getName

      public String getName()
      Returns the name of this filter
      Returns:
      The filter's name
    • contains

      public boolean contains(TLcdDGNLevel aLevel)
      Checks whether the given level is included in this filter.
      Parameters:
      aLevel - A level
      Returns:
      true if the level is included, false if the level is excluded
    • contains

      public abstract boolean contains(int aLevelID)
      Checks whether the given level is included in this filter.
      Parameters:
      aLevelID - A level ID (code)
      Returns:
      true if the level is included, false if the level is excluded
    • getLevelIDs

      public abstract int[] getLevelIDs()
      Return all levels that are accepted by this filter.
      Returns:
      the level IDs (codes) that are accepted by this filter.
    • accept

      public boolean accept(Object aObject)
      Tests if a given object passes the filter or not. The actual test condition is specified by the implementation of this interface. Passes DGN model elements that are included in the set of levels.
      Specified by:
      accept in interface ILcdFilter
      Parameters:
      aObject - the object to be tested by the filter.
      Returns:
      true if the object passes the filter, false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object