public class TLspPaintedObjectsTouchQuery extends ALspPaintQuery<Collection<ALspTouchInfo>>
touched(com.luciad.view.lightspeed.layer.ALspWorldTouchInfo)
methods may be called multiple times for the same object if it is touched
at multiple points. This implementation collects all touched points.Constructor and Description |
---|
TLspPaintedObjectsTouchQuery(TLspPaintRepresentationState aPaintRepresentationState,
ILcdBounds aViewBounds,
double aSensitivity)
Creates a new touched objects query.
|
TLspPaintedObjectsTouchQuery(TLspPaintRepresentationState aPaintRepresentationState,
ILcdPoint aViewPoint,
double aSensitivity)
Creates a new touched objects query.
|
Modifier and Type | Method and Description |
---|---|
TLspPaintRepresentationState |
getPaintRepresentationState()
Returns the paint representation state that should be queried.
|
Collection<ALspTouchInfo> |
getResult()
Returns the touch infos of all objects that are touched.
|
double |
getSensitivity()
Returns the sensitivity in pixels.
|
ILcdBounds |
getViewBounds()
Returns the view bounds that should be queried or
null if unrestricted. |
boolean |
touched(ALspViewTouchInfo aTouchInfo)
Called for all objects that are touched at a point in view coordinates.
|
boolean |
touched(ALspWorldTouchInfo aTouchInfo)
Called for all objects that are touched at a point in world coordinates.
|
public TLspPaintedObjectsTouchQuery(TLspPaintRepresentationState aPaintRepresentationState, ILcdPoint aViewPoint, double aSensitivity)
aPaintRepresentationState
- the paint representation stateaViewPoint
- the view pointaSensitivity
- the sensitivitypublic TLspPaintedObjectsTouchQuery(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<ALspTouchInfo> getResult()
getResult
in class ALspPaintQuery<Collection<ALspTouchInfo>>
null
.public boolean touched(ALspWorldTouchInfo aTouchInfo)
aTouchInfo
may change after this method call returns. The implementation
can create a ALspTouchInfo.clone()
if it still needs
it after the method call returns.aTouchInfo
- the touch infotrue
if the query should continue, false
if it should stoppublic boolean touched(ALspViewTouchInfo aTouchInfo)
aTouchInfo
may change after this method call returns. The implementation
can create a ALspTouchInfo.clone()
if it still needs
it after the method call returns.aTouchInfo
- the touch infotrue
if the query should continue, false
if it should stop