public class TLspPaintedObjectsBoundsQuery extends ALspPaintQuery<Collection<ALspBoundsInfo>>
bounds(com.luciad.view.lightspeed.layer.ALspWorldBoundsInfo)
methods may be called multiple times for the same object if it has multiple
bounds. This implementation collects all bounds.Constructor and Description |
---|
TLspPaintedObjectsBoundsQuery(TLspPaintRepresentationState aPaintRepresentationState,
ILcdBounds aViewBounds,
double aSensitivity)
Creates a new objects bounds query.
|
TLspPaintedObjectsBoundsQuery(TLspPaintRepresentationState aPaintRepresentationState,
ILcdPoint aViewPoint,
double aSensitivity)
Creates a new objects bounds query.
|
Modifier and Type | Method and Description |
---|---|
boolean |
bounds(ALspViewBoundsInfo aBoundsInfo)
Called for all objects with view bounds.
|
boolean |
bounds(ALspWorldBoundsInfo aBoundsInfo)
Called for all objects with world bounds.
|
TLspPaintRepresentationState |
getPaintRepresentationState()
Returns the paint representation state that should be queried.
|
Collection<ALspBoundsInfo> |
getResult()
Returns the bounds infos of all objects.
|
double |
getSensitivity()
Returns the sensitivity in pixels.
|
ILcdBounds |
getViewBounds()
Returns the view bounds that should be queried or
null if unrestricted. |
public TLspPaintedObjectsBoundsQuery(TLspPaintRepresentationState aPaintRepresentationState, ILcdPoint aViewPoint, double aSensitivity)
aPaintRepresentationState
- the paint representation stateaViewPoint
- the view pointaSensitivity
- the sensitivitypublic TLspPaintedObjectsBoundsQuery(TLspPaintRepresentationState aPaintRepresentationState, ILcdBounds aViewBounds, double aSensitivity)
aPaintRepresentationState
- the paint representation stateaViewBounds
- the view bounds or null
if unrestrictedaSensitivity
- the sensitivitypublic TLspPaintRepresentationState getPaintRepresentationState()
public ILcdBounds getViewBounds()
null
if unrestricted.null
public double getSensitivity()
public Collection<ALspBoundsInfo> getResult()
getResult
in class ALspPaintQuery<Collection<ALspBoundsInfo>>
null
.public boolean bounds(ALspWorldBoundsInfo aBoundsInfo)
aBoundsInfo
may change after this method call returns. The implementation
can create a ALspBoundsInfo.clone()
if it still needs
it after the method call returns.aBoundsInfo
- the bounds infotrue
if the query should continue, false
if it should stoppublic boolean bounds(ALspViewBoundsInfo aBoundsInfo)
aBoundsInfo
may change after this method call returns. The implementation
can create a ALspBoundsInfo.clone()
if it still needs
it after the method call returns.aBoundsInfo
- the bounds infotrue
if the query should continue, false
if it should stop