Class Filter

java.lang.Object
gaiasky.util.filter.Filter

public class Filter extends Object
  • Constructor Details

    • Filter

      public Filter(FilterRule rule)
      Creates a filter with only one rule
      Parameters:
      rule - The filter rule.
    • Filter

      public Filter(String operation, FilterRule... rules)
      Creates a new filter with the given rules and linking operation
      Parameters:
      rules - The rules list
      operation - The operation: 'and', 'or'
    • Filter

      public Filter(String operation, com.badlogic.gdx.utils.Array<FilterRule> rules)
  • Method Details

    • deepCopy

      public Filter deepCopy()
    • evaluate

      public boolean evaluate(IParticleRecord pb)
    • hasRules

      public boolean hasRules()
    • getRules

      public com.badlogic.gdx.utils.Array<FilterRule> getRules()
    • getOperation

      public Filter.IOperation getOperation()
    • setOperation

      public void setOperation(String op)
    • getOperationString

      public String getOperationString()
    • getOperationFromString

      public Filter.IOperation getOperationFromString(String op)
    • addRule

      public void addRule(FilterRule rule)
    • removeRule

      public boolean removeRule(FilterRule rule)