Class TLspProjectedObjectTranslationHandle
java.lang.Object
com.luciad.view.lightspeed.editor.handle.ALspHandle
com.luciad.view.lightspeed.editor.handle.ALspEditHandle
com.luciad.view.lightspeed.editor.handle.ALsp3StepEditHandle
com.luciad.view.lightspeed.editor.handle.ALspObjectTranslationHandle
com.luciad.view.lightspeed.editor.handle.TLspObjectTranslationHandle
com.luciad.view.lightspeed.editor.handle.TLspProjectedObjectTranslationHandle
An edit handle that allows the user to translate a 3D shape, by dragging the projected
shape across the terrain.
By default, this handle supports the following 3D objects:
ILcdEditableExtrudedShape
: the projected shape is the base shape drawn on the terrainILcd3DEditableBounds
: the projected shapes is a 2D bounds drawn on the terrainILcd3DEditableSphere
andILcd3DEditableDome
: the projected shape is a circle on the terrainILcd3DEditablePointList
: the projected shape is a 2D polyline drawn on the terrainILcdVariableGeoBuffer
: The projected shape is a variable geobuffer on the terrain.TLcdLonLatHeightBuffer
: The projected shape is a lon-lat buffer drawn on the terrain.
getProjectedShape
method to support custom shapes.- Since:
- 2012.0
-
Field Summary
Fields inherited from class com.luciad.view.lightspeed.editor.handle.ALspHandle
PRIORITY_2D_CONTOUR, PRIORITY_2D_POINT, PRIORITY_2D_SHAPE, PRIORITY_3D_CONTOUR, PRIORITY_3D_POINT, PRIORITY_3D_SHAPE, PRIORITY_MULTIPLE_SHAPES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ILcdShape
getProjectedShape
(Object aGeometry, TLspContext aContext) Returns the projected shape of the given geometry.Returns a style target provider that can generate geometry for the given visual editing component type, or an empty list if no geometry can be generated for the given type.protected boolean
isObjectTouched
(int aX, int aY, TLspEditContext aEditContext) Returns whether the edited object is touched.Methods inherited from class com.luciad.view.lightspeed.editor.handle.TLspObjectTranslationHandle
onActivate, onActivate, onDeactivate, onDeactivate, process, process
Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALspObjectTranslationHandle
canActivate, canActivate, canDeactivate, canDeactivate, canProcess, canProcess, isTranslateOnDrag, requestsFocus, requestsFocus, setTranslateOnDrag
Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALsp3StepEditHandle
handleAWTEvent, handleFXEvent, isActive
Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALspEditHandle
getGeometry
Methods inherited from class com.luciad.view.lightspeed.editor.handle.ALspHandle
getCursor, getCursorFX, getPriority, getProperties, setCursor, setCursorFX, setPriority
-
Constructor Details
-
TLspProjectedObjectTranslationHandle
-
-
Method Details
-
getStyleTargetProviders
Description copied from class:ALspHandle
Returns a style target provider that can generate geometry for the given visual editing component type, or an empty list if no geometry can be generated for the given type.TLspEditHandleStyler
allows you to register different styles for each visual component type.- Overrides:
getStyleTargetProviders
in classTLspObjectTranslationHandle
- Parameters:
aType
- avisual editing component type
- Returns:
- a list of style target providers, or an empty list if no style targets can be created for the given
visual editing component type
-
isObjectTouched
Description copied from class:ALspObjectTranslationHandle
Returns whether the edited object is touched. The default implementation queries the layer of the edited object using a touch query, using the paint representation specified at construction time.- Overrides:
isObjectTouched
in classALspObjectTranslationHandle
- Parameters:
aX
- the x coordinate in the viewaY
- the y coordinate in the viewaEditContext
- the edit context- Returns:
true
if the object is touched
-
getProjectedShape
Returns the projected shape of the given geometry. By default, this method supports the following 3D objects:ILcdEditableExtrudedShape
: the projected shape is the base shape drawn on the terrainILcd3DEditableBounds
: the projected shapes is a 2D bounds drawn on the terrainILcd3DEditableSphere
andILcd3DEditableDome
: the projected shape is a circle on the terrainILcd3DEditablePointList
: the projected shape is a 2D polyline drawn on the terrainILcdVariableGeoBuffer
: The projected shape is a variable geobuffer on the terrain.TLcdLonLatHeightBuffer
: The projected shape is a lon-lat buffer drawn on the terrain.
IllegalArgumentException
. Override this method to add support for other shapes.- Parameters:
aGeometry
- the shape for which a projected shape should be returned.aContext
- the context in which the projected shape will be painted, i.e. this context contains the layer in which this handle is painted.- Returns:
- the projected shape of the given geometry.
-