Class TLspPaintedObjectsQuery

java.lang.Object
com.luciad.view.lightspeed.query.ALspPaintQuery<Collection<Object>>
com.luciad.view.lightspeed.query.TLspPaintedObjectsQuery

public class TLspPaintedObjectsQuery extends ALspPaintQuery<Collection<Object>>
Query to retrieve all objects that are painted and overlap with a certain view region.

This query only takes the objects that are currently painted into account.

Since:
2012.0
See Also:
  • Constructor Details

    • TLspPaintedObjectsQuery

      public TLspPaintedObjectsQuery(TLspPaintRepresentationState aPaintRepresentationState, ILcdBounds aViewBounds)
      Creates a new objects query.
      Parameters:
      aPaintRepresentationState - the paint representation state
      aViewBounds - the view bounds or null if unrestricted
  • Method Details

    • getPaintRepresentationState

      public TLspPaintRepresentationState getPaintRepresentationState()
      Returns the paint representation state that should be queried.
      Returns:
      the paint representation state
    • getViewBounds

      public ILcdBounds getViewBounds()
      Returns the view bounds that should be queried or null if unrestricted.
      Returns:
      the view bounds or null
    • getResult

      public Collection<Object> getResult()
      Returns the objects.
      Specified by:
      getResult in class ALspPaintQuery<Collection<Object>>
      Returns:
      the objects, never null.
    • object

      public boolean object(Object aDomainObject)
      Called for all domain objects that are included in this query.
      Parameters:
      aDomainObject - the domain object
      Returns:
      true if the query should continue, false if it should stop