Class TLspExternalView
- All Implemented Interfaces:
ILcdPropertyChangeSource,ILcdLayered,ILcdTreeLayered,ILcdView,ILspView,Serializable
view that renders into an externally created OpenGL context.
This view can be integrated in non-Java (e.g. C++) applications, using JNI.
The intended usage is as follows:
- Launch a JVM with all LuciadLightspeed classes on its classpath.
- Create an OpenGL context using your windowing toolkit of choice (e.g. Qt, WinForms, ...).
- While the GL context is current, instantiate a
TLspExternalView. - Attach an
ILcdViewInvalidationListenerto the view and make it trigger repaints of the host widget. - Call
display()whenever the host OpenGL widget requires repainting (this view cannot automatically repaint itself when it is invalidated). - Call
setSize(int, int)when the widget's dimensions change. - Convert input events from the host windowing toolkit into Java AWT events and pass them to the
handleAWTEvent()method. Destroythis view when it is no longer needed.
display(), setSize(int, int) and destroy() methods
require the host GL context to be current. Note that the view will use the
AWT event dispatch thread to repaint any Swing overlay components added to it.
Care should be taken to prevent such components from accessing the view on the
wrong thread (e.g. by using ILcdGLDrawable.invokeLater(ILcdGLRunnable)
to defer access to the view's state until the next repaint).
This view does not offer application-level integration, only the core view display and UI event integration.
- Since:
- 2016.1.19
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.ILspView
ILspView.ViewType -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new external view with a default configuration.TLspExternalView(int aWidth, int aHeight) Deprecated.Creates a new external view with the given width and height. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Adds the given layer to the view.voidaddLayeredListener(ILcdLayeredListener aILcdLayeredListener) Deprecated.Registers the givenILcdLayeredListenerto be notified when layers are added, removed or moved in the flat list.voidaddLayerModelListener(ILcdModelListener aModelListener) Deprecated.Adds aILcdModelListenerto receive model change events from any layer's model in this view.voidaddLayerSelectionListener(ILcdSelectionListener aSelectionListener) Deprecated.Adds the givenILcdSelectionListenerto the view so that is notified of any selection changes in any of the view's layers.addLayersFor(ILcdModel aModel) Deprecated.Adds a model to be displayed in this view.voidDeprecated.AddsaModelto be displayed in thisILcdView.voidDeprecated.Registers the givenPropertyChangeListenerto be notified when this view's properties change.voidaddViewInvalidationListener(ILcdViewInvalidationListener aInvalidationListener) Deprecated.Registers anILcdViewInvalidationListenerto be informed when the view's contents are invalid.voidaddViewListener(ILspViewListener aViewListener) Deprecated.Adds the givenILspViewListenerto the view to be notified of initialization, disposal or render events.booleancontainsLayer(ILcdLayer aILcdLayer) Deprecated.Returns whether the flat list representation of the hierarchical layer structure contains the given layer.voiddestroy()Deprecated.Frees resources associated with this view.voiddisplay()Deprecated.Repaint this view.doubleDeprecated.Gets the vertical exaggeration factor that is applied to altitudes and elevations in this view.Deprecated.Returns the view's background clear color.Deprecated.Gets the controller that the view uses to forward input events to.Deprecated.Returns the OpenGL drawable associated with this view.intDeprecated.Returns the view's current height in number of screen pixels.Deprecated.Gets the currently used label placer.getLayer(int i) Deprecated.Returns the layer at the given index.Deprecated.Sets the factory used to create layers for models added to the view usingaddModel.Deprecated.Returns an AWT component whose contents are overlaid on top of the view.Deprecated.Returns a handler to report paint exceptions.Deprecated.Gets the order object that determines the order in which layers and their various painters are invoked.Deprecated.Returns the minimum required OpenGL profile that an end user system must support in order to be compatible with this view.Deprecated.Returns the root node of the tree structure.Deprecated.Returns a view services object which provides various utilities that can be leveraged by the view's layers.Deprecated.Convenience method that returns whether the view is currently configured for 2D or 3D visualization.Deprecated.Returns the transformation that is used to transform from view coordinates to world coordinates and vice versa.intgetWidth()Deprecated.Returns the view's current width in number of screen pixels.Deprecated.Returns the view's current world coordinate system.voidhandleAWTEvent(AWTEvent aEvent) Deprecated.Pass UI events from the host UI toolkit into the Lightspeed view.intDeprecated.Returns the index of the given layeraLayerin the flat list representation of the hierarchical structure.voidinvalidate(boolean aRepaint, Object aSource, String aReason) Deprecated.Invalidate the content of thisILcdView.voidinvokeLater(Runnable aRunnable) Deprecated.Schedules the specified runnable to be executed on the Swing EDT.booleanDeprecated.Returns true if the view automatically updates its representation upon receiving any event that might require an update.intDeprecated.Returns the number of layers in the flat list representation of the hierarchical layer structure.Deprecated.Returns theILcdLayerof the flat list that contains the givenILcdModel.layers()Deprecated.Returns anEnumerationof all theILcdLayers currently in the flat list representation of the hierarchical layer structure, starting from the bottom layer to the top layer.Deprecated.Returns anEnumerationof all theILcdLayers currently in the flat list representation of the hierarchical layer structure, starting from the top layer to the bottom layer.voidmoveLayerAt(int i, ILcdLayer aILcdLayer) Deprecated.Moves the given layer (which is already inILcdLayered) to the existing index aIndex.voidDeprecated.Remove all the layers from the hierarchical layer structure and the flat list representation.voidremoveLayer(ILcdLayer aILcdLayer) Deprecated.Removes a layer from both the hierarchical layer structure and the flat list representation.voidremoveLayeredListener(ILcdLayeredListener aILcdLayeredListener) Deprecated.Unregisters the givenILcdLayeredListenerfrom receiving layered events for the flat list.voidremoveLayerModelListener(ILcdModelListener aModelListener) Deprecated.Unregisters the givenILcdModelListenerfrom receiving model change events from any layer's model in this view.voidremoveLayerSelectionListener(ILcdSelectionListener aSelectionListener) Deprecated.Removes the givenILcdSelectionListenerfrom the view so that it is no longer notified of selection changes.voidremoveModel(ILcdModel aILcdModel) Deprecated.Removes a single representation of the specified model from this view, if it is present in the view.voidDeprecated.Unregisters the givenPropertyChangeListenerfrom receiving property change events for this view.voidremoveViewInvalidationListener(ILcdViewInvalidationListener aInvalidationListener) Deprecated.Unregisters anILcdViewInvalidationListenerso that it is no longer informed of invalidation events for this view.voidremoveViewListener(ILspViewListener aViewListener) Deprecated.Removes the givenILspViewListenerfrom the view.voidsetAltitudeExaggerationFactor(double aVerticalExaggerationFactor) Deprecated.Sets the vertical exaggeration factor that is applied to altitudes and elevations in this view.voidsetAutoUpdate(boolean b) Deprecated.Sets whether to update the view's representation automatically to keep it in sync with its state and the state of its models.voidsetBackground(Color aColor) Deprecated.Sets the view's background clear color.voidsetController(ILspController aController) Deprecated.Sets the controller that the view will forward input events to.voidsetLabelPlacer(ILspLabelPlacer aPlacer) Deprecated.Sets the label placer to be used by this view.voidsetLayerFactory(ILspLayerFactory aLayerFactory) Deprecated.Sets the factory used to create layers for models added to the view usingaddModel.voidsetPaintingOrder(ILspPaintingOrder aPaintingOrder) Deprecated.Sets the order object that determines the order in which layers and their various painters are invoked.voidsetSize(int aWidth, int aHeight) Deprecated.Resize this view after the host widget or window changed size.voidsetViewXYZWorldTransformation(ALspViewXYZWorldTransformation aViewXYZWorldTransformation) Deprecated.Sets the transformation that is used to transform from view coordinates to world coordinates and vice versa.voidsetXYZWorldReference(ILcdXYZWorldReference aXYZWorldReference) Deprecated.Sets the view's world coordinate system, repainting the view according toisAutoUpdate.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.view.ILcdLayered
addLayeredListener, removeLayeredListenerMethods inherited from interface com.luciad.view.lightspeed.ILspView
getDPIScale, getLayers
-
Constructor Details
-
TLspExternalView
Deprecated.Creates a new external view with a default configuration. CallsetSize(int, int)to adjust the view to the dimensions of the external OpenGL viewport.- Throws:
UnsatisfiedLinkError- when the OpenGL binding native libraries could not be loaded
-
TLspExternalView
Deprecated.Creates a new external view with the given width and height.- Throws:
UnsatisfiedLinkError- when the OpenGL binding native libraries could not be loaded
-
-
Method Details
-
getOverlayComponent
Deprecated.Returns an AWT component whose contents are overlaid on top of the view. This is very similar to the overlay component of a regular view: seeILspAWTView.getOverlayComponent(). Note that the components added to the overlay container are painted to an offscreen buffer. Because they are technically invisible, there are some limitations to the functionality of the overlay components. Popup menus, for instance, will not work (and as a result, neither will combo boxes).- Returns:
- a component whose contents are overlaid on top of the view
- See Also:
-
addLayerSelectionListener
Deprecated.Description copied from interface:ILspViewAdds the givenILcdSelectionListenerto the view so that is notified of any selection changes in any of the view's layers.- Specified by:
addLayerSelectionListenerin interfaceILspView- Parameters:
aSelectionListener- the selection listener to add
-
removeLayerSelectionListener
Deprecated.Description copied from interface:ILspViewRemoves the givenILcdSelectionListenerfrom the view so that it is no longer notified of selection changes.- Specified by:
removeLayerSelectionListenerin interfaceILspView- Parameters:
aSelectionListener- the selection listener to remove
-
addLayerModelListener
Deprecated.Description copied from interface:ILspViewAdds aILcdModelListenerto receive model change events from any layer's model in this view.- Specified by:
addLayerModelListenerin interfaceILspView- Parameters:
aModelListener- the listener that will be notified of model change events from any layer's model in this view.
-
removeLayerModelListener
Deprecated.Description copied from interface:ILspViewUnregisters the givenILcdModelListenerfrom receiving model change events from any layer's model in this view.- Specified by:
removeLayerModelListenerin interfaceILspView- Parameters:
aModelListener- a listener that the view will no longer notify of model change events
-
getViewXYZWorldTransformation
Deprecated.Description copied from interface:ILspViewReturns the transformation that is used to transform from view coordinates to world coordinates and vice versa.- Specified by:
getViewXYZWorldTransformationin interfaceILspView- Returns:
- the transformation that is used to transform from view coordinates to world coordinates and vice versa.
-
setViewXYZWorldTransformation
public void setViewXYZWorldTransformation(ALspViewXYZWorldTransformation aViewXYZWorldTransformation) Deprecated.Description copied from interface:ILspViewSets the transformation that is used to transform from view coordinates to world coordinates and vice versa.TLspViewTransformationUtilprovides a convenient way to set up a 2D or 3D view.- Specified by:
setViewXYZWorldTransformationin interfaceILspView- Parameters:
aViewXYZWorldTransformation- the transformation that is used to transform from view coordinates to world coordinates and vice versa.
-
addLayer
Deprecated.Description copied from interface:ILspViewAdds the given layer to the view. -
addLayersFor
Deprecated.Description copied from interface:ILspViewAdds a model to be displayed in this view. To this effect, the view asks its layer factory to create one or moreILspLayers for the model, and adds that to its layer list. This method returns the layers that were created, or null if the layer factory failed to create a layer.- Specified by:
addLayersForin interfaceILspView- Parameters:
aModel- the model to be added to the view as a new layer- Returns:
- the layers that were added
-
getController
Deprecated.Description copied from interface:ILspViewGets the controller that the view uses to forward input events to.- Specified by:
getControllerin interfaceILspView- Returns:
- the controller the view uses to forward input events to
-
setController
Deprecated.Description copied from interface:ILspViewSets the controller that the view will forward input events to. Only one controller can be active at a time. It is the responsibility of the view to callstartInteractionwhen a controller is set on the view, andterminateInteractionwhen the controller is removed from the view. To detach a controller from the view, you either set another controller or you set the controller tonull. Furthermore, the view is responsible for providing input events to the controller via itsILcdAWTEventListener.handleAWTEvent(java.awt.AWTEvent)handleAWTEvent} method. Finally, the view must also invoke thepaintmethod of its controller any time the view itself is repainted.- Specified by:
setControllerin interfaceILspView- Parameters:
aController- the controller to be used for the view
-
getXYZWorldReference
Deprecated.Description copied from interface:ILspViewReturns the view's current world coordinate system.- Specified by:
getXYZWorldReferencein interfaceILspView- Returns:
- the view's world coordinate system
-
setXYZWorldReference
Deprecated.Description copied from interface:ILspViewSets the view's world coordinate system, repainting the view according toisAutoUpdate.TLspViewTransformationUtilprovides a convenient way to set up a 2D or 3D view.- Specified by:
setXYZWorldReferencein interfaceILspView- Parameters:
aXYZWorldReference- the new world reference associated to this view
-
getLayerFactory
Deprecated.Description copied from interface:ILspViewSets the factory used to create layers for models added to the view usingaddModel.- Specified by:
getLayerFactoryin interfaceILspView- Returns:
- the factory used to create layers for models added to the view
-
setLayerFactory
Deprecated.Description copied from interface:ILspViewSets the factory used to create layers for models added to the view usingaddModel.- Specified by:
setLayerFactoryin interfaceILspView- Parameters:
aLayerFactory- the factory that will be used to create layers for models added to the view
-
removeModel
Deprecated.Description copied from interface:ILcdViewRemoves a single representation of the specified model from this view, if it is present in the view.- Specified by:
removeModelin interfaceILcdView
-
addModel
Deprecated.Description copied from interface:ILcdViewAddsaModelto be displayed in thisILcdView. -
containsLayer
Deprecated.Description copied from interface:ILcdTreeLayeredReturns whether the flat list representation of the hierarchical layer structure contains the given layer. More formally, returns
trueif and only if the flat list representation contains at least one layerlsuch that (aLayer==null ? l==null : aLayer.equals(l)).Calling this method with the root node will return
false, since the root node is not a part of the flat list representation.- Specified by:
containsLayerin interfaceILcdLayered- Specified by:
containsLayerin interfaceILcdTreeLayered- Parameters:
aILcdLayer- the layer to check whether it is in the flat list representation- Returns:
truewhen the flat list representation contains the given layer,falseotherwise
-
removeAllLayers
public void removeAllLayers()Deprecated.Description copied from interface:ILcdTreeLayeredRemove all the layers from the hierarchical layer structure and the flat list representation. An event will be fired for every layer that has been removed. This will not remove the root node.
- Specified by:
removeAllLayersin interfaceILcdLayered- Specified by:
removeAllLayersin interfaceILcdTreeLayered
-
removeLayer
Deprecated.Description copied from interface:ILcdTreeLayeredRemoves a layer from both the hierarchical layer structure and the flat list representation. When removing an
ILcdLayerTreeNodeall of its children will also be removed. An event will then be generated for every layer that has been removed (one for the node and one for each of its child layers).It is not possible to remove the root node
- Specified by:
removeLayerin interfaceILcdLayered- Specified by:
removeLayerin interfaceILcdTreeLayered- Parameters:
aILcdLayer- the layer to remove. If the layer is not in the flat list, this method has no effect.
-
moveLayerAt
public void moveLayerAt(int i, ILcdLayer aILcdLayer) throws NoSuchElementException, ArrayIndexOutOfBoundsException Deprecated.Description copied from interface:ILcdLayeredMoves the given layer (which is already inILcdLayered) to the existing index aIndex. When a layer is moved down, all layers in between the previous and future position of the given layer (including the layer at index aIndex) are moved one position up. When a layer is moved up, all layers in between the previous and future position of the given layer (including the layer at index aIndex) are moved one position down.More formally, let previousIndex be the index of
aLayerbefore the move. If previousIndex < aIndex, then the index of allILcdLayerobjects in from previousIndex + 1 to aIndex is decremented with 1. If previousIndex > aIndex, then the index of allILcdLayerobjects in from aIndex to previousIndex -1 is incremented with 1.- Specified by:
moveLayerAtin interfaceILcdLayered- Parameters:
i- the index of the position where to move the layer.aILcdLayer- the layer to move.- Throws:
NoSuchElementException- ifaLayeris not in thisILcdLayered.ArrayIndexOutOfBoundsException- ifaIndexis not an index of one of the layers of thisILcdLayered.
-
indexOf
Deprecated.Description copied from interface:ILcdTreeLayeredReturns the index of the given layer
aLayerin the flat list representation of the hierarchical structure.- Specified by:
indexOfin interfaceILcdLayered- Specified by:
indexOfin interfaceILcdTreeLayered- Parameters:
aILcdLayer- the layer whose index to return- Returns:
- the index of
aLayerin the flat list representation - Throws:
NoSuchElementException- ifaLayeris not in the flat list
-
layerOf
Deprecated.Description copied from interface:ILcdTreeLayeredReturns theILcdLayerof the flat list that contains the givenILcdModel.- Specified by:
layerOfin interfaceILcdLayered- Specified by:
layerOfin interfaceILcdTreeLayered- Parameters:
aILcdModel- the model to check for in the flat list- Returns:
- the
ILcdLayerof the flat list that contains the givenILcdModel. - Throws:
NoSuchElementException- if there is no layer containing the given model
-
getLayer
Deprecated.Description copied from interface:ILspViewReturns the layer at the given index.- Specified by:
getLayerin interfaceILcdLayered- Specified by:
getLayerin interfaceILcdTreeLayered- Specified by:
getLayerin interfaceILspView- Parameters:
i- the index of the requested layer- Returns:
- the layer at the given index
- Throws:
ArrayIndexOutOfBoundsException- if the given index is invalid
-
layersBackwards
Deprecated.Description copied from interface:ILcdTreeLayeredReturns an
Enumerationof all theILcdLayers currently in the flat list representation of the hierarchical layer structure, starting from the top layer to the bottom layer. This does not include the root node.- Specified by:
layersBackwardsin interfaceILcdLayered- Specified by:
layersBackwardsin interfaceILcdTreeLayered- Returns:
- an
Enumerationof all theILcdLayers currently in the flat list, starting from the top layer to the bottom layer. Does not include the root node.
-
layers
Deprecated.Description copied from interface:ILcdTreeLayeredReturns an
Enumerationof all theILcdLayers currently in the flat list representation of the hierarchical layer structure, starting from the bottom layer to the top layer. This does not include the root node.- Specified by:
layersin interfaceILcdLayered- Specified by:
layersin interfaceILcdTreeLayered- Returns:
- an
Enumerationof all theILcdLayers currently in the flat list, starting from the bottom layer to the top layer. Does not include the root node.
-
layerCount
public int layerCount()Deprecated.Description copied from interface:ILcdTreeLayeredReturns the number of layers in the flat list representation of the hierarchical layer structure. This does not include the root node.
- Specified by:
layerCountin interfaceILcdLayered- Specified by:
layerCountin interfaceILcdTreeLayered- Returns:
- the number of layers in the flat list. Does not include the root node.
-
removeLayeredListener
Deprecated.Description copied from interface:ILcdTreeLayeredUnregisters the givenILcdLayeredListenerfrom receiving layered events for the flat list.- Specified by:
removeLayeredListenerin interfaceILcdLayered- Specified by:
removeLayeredListenerin interfaceILcdTreeLayered- Parameters:
aILcdLayeredListener- the listener that will no longer be notified of changes in the flat list.- See Also:
-
addLayeredListener
Deprecated.Description copied from interface:ILcdTreeLayeredRegisters the givenILcdLayeredListenerto be notified when layers are added, removed or moved in the flat list.- Specified by:
addLayeredListenerin interfaceILcdLayered- Specified by:
addLayeredListenerin interfaceILcdTreeLayered- Parameters:
aILcdLayeredListener- the listener that from now on will be notified of all changes to the flat list.- See Also:
-
getRootNode
Deprecated.Description copied from interface:ILcdTreeLayeredReturns the root node of the tree structure.
- Specified by:
getRootNodein interfaceILcdTreeLayered- Returns:
- the root node of the tree structure
-
addViewInvalidationListener
Deprecated.Description copied from interface:ILspViewRegisters anILcdViewInvalidationListenerto be informed when the view's contents are invalid. This can happen directly (e.g. by callingILcdView.invalidate(boolean, Object, String)) or indirectly (e.g. by using a controller)- Specified by:
addViewInvalidationListenerin interfaceILspView- Parameters:
aInvalidationListener- the listener to notify when the view has been invalidated- See Also:
-
removeViewInvalidationListener
Deprecated.Description copied from interface:ILspViewUnregisters anILcdViewInvalidationListenerso that it is no longer informed of invalidation events for this view.- Specified by:
removeViewInvalidationListenerin interfaceILspView- Parameters:
aInvalidationListener- the listener to no longer notify when the view has been invalidated- See Also:
-
addViewListener
Deprecated.Description copied from interface:ILspViewAdds the givenILspViewListenerto the view to be notified of initialization, disposal or render events.- Specified by:
addViewListenerin interfaceILspView- Parameters:
aViewListener- the view listener to add
-
removeViewListener
Deprecated.Description copied from interface:ILspViewRemoves the givenILspViewListenerfrom the view.- Specified by:
removeViewListenerin interfaceILspView- Parameters:
aViewListener- the view listener to remove.
-
getBackground
Deprecated.Description copied from interface:ILspViewReturns the view's background clear color.- Specified by:
getBackgroundin interfaceILspView- Returns:
- the color which is used for clearing the background
-
setBackground
Deprecated.Description copied from interface:ILspViewSets the view's background clear color.- Specified by:
setBackgroundin interfaceILspView- Parameters:
aColor- the color to be used for clearing the background
-
getGLDrawable
Deprecated.Description copied from interface:ILspViewReturns the OpenGL drawable associated with this view. The drawable acts as the view's entry point to the OpenGL API. The default implementation of this method returnsnull.- Specified by:
getGLDrawablein interfaceILspView- Returns:
- the OpenGL drawable associated with this view
-
getWidth
public int getWidth()Deprecated.Description copied from interface:ILspViewReturns the view's current width in number of screen pixels. Divide by the DPI scale to obtain toolkit pixels. -
getHeight
public int getHeight()Deprecated.Description copied from interface:ILspViewReturns the view's current height in number of screen pixels. Divide by the DPI scale to obtain toolkit pixels. -
addPropertyChangeListener
Deprecated.Description copied from interface:ILspViewRegisters the givenPropertyChangeListenerto be notified when this view's properties change.- Specified by:
addPropertyChangeListenerin interfaceILcdPropertyChangeSource- Specified by:
addPropertyChangeListenerin interfaceILspView- Parameters:
listener- the listener to notify of changes of this view's properties- See Also:
-
removePropertyChangeListener
Deprecated.Description copied from interface:ILspViewUnregisters the givenPropertyChangeListenerfrom receiving property change events for this view.- Specified by:
removePropertyChangeListenerin interfaceILcdPropertyChangeSource- Specified by:
removePropertyChangeListenerin interfaceILspView- Parameters:
listener- the listener that should no longer be notified of changes of this views properties- See Also:
-
invalidate
Deprecated.Description copied from interface:ILcdViewInvalidate the content of thisILcdView.- Specified by:
invalidatein interfaceILcdView- Parameters:
aRepaint- if true, this ILcdView shall be repainted immediately.aSource- the class instance that calls this method. Used for tracing.aReason- a message associated with this call. Used for tracing.
-
isAutoUpdate
public boolean isAutoUpdate()Deprecated.Description copied from interface:ILspViewReturns true if the view automatically updates its representation upon receiving any event that might require an update. Such events can include changes to properties of the view or to an Object in a model, or addition/removal of models.- Specified by:
isAutoUpdatein interfaceILcdView- Specified by:
isAutoUpdatein interfaceILspView- Returns:
- true if the view automatically updates when necessary; false if the view must be repainted manually
- See Also:
-
setAutoUpdate
public void setAutoUpdate(boolean b) Deprecated.Description copied from interface:ILspViewSets whether to update the view's representation automatically to keep it in sync with its state and the state of its models.- Specified by:
setAutoUpdatein interfaceILcdView- Specified by:
setAutoUpdatein interfaceILspView- Parameters:
b- true if the view should update automatically; false if it will be repainted manually- See Also:
-
destroy
public void destroy()Deprecated.Frees resources associated with this view. The view must not be used anymore after this method has been called. This method should only be called by the host application, and the OpenGL context must be current. -
getPaintingOrder
Deprecated.Description copied from interface:ILspViewGets the order object that determines the order in which layers and their various painters are invoked.- Specified by:
getPaintingOrderin interfaceILspView- Returns:
- the painting order object
-
setPaintingOrder
Deprecated.Description copied from interface:ILspViewSets the order object that determines the order in which layers and their various painters are invoked.- Specified by:
setPaintingOrderin interfaceILspView- Parameters:
aPaintingOrder- the painting order object
-
setAltitudeExaggerationFactor
public void setAltitudeExaggerationFactor(double aVerticalExaggerationFactor) Deprecated.Description copied from interface:ILspViewSets the vertical exaggeration factor that is applied to altitudes and elevations in this view. Note that this method throws an exception when a non-strict positive value is passed to it (i.e. a negative number or0). It is possible to disable terrain elevation usingILspTerrainSupport#setElevationEnabled. A factor of1.0results in no exaggeration.- Specified by:
setAltitudeExaggerationFactorin interfaceILspView- Parameters:
aVerticalExaggerationFactor- the vertical exaggeration factor- See Also:
-
getAltitudeExaggerationFactor
public double getAltitudeExaggerationFactor()Deprecated.Description copied from interface:ILspViewGets the vertical exaggeration factor that is applied to altitudes and elevations in this view. All elevations are multiplied with this factor during visualization. The exaggeration factor must be strictly positive. A factor of1.0results in no exaggeration. Values between 0 and 1 result in reduced relief, values higher than 1 result in increased relief. Rendering artifacts may occur when using values that are too small or too large; for most applications, values below 1 and above 20 or so will not produce useful results.- Specified by:
getAltitudeExaggerationFactorin interfaceILspView- Returns:
- the vertical exaggeration factor
-
getLabelPlacer
Deprecated.Description copied from interface:ILspViewGets the currently used label placer.- Specified by:
getLabelPlacerin interfaceILspView- Returns:
- the current placer, never
null.
-
setLabelPlacer
Deprecated.Description copied from interface:ILspViewSets the label placer to be used by this view.A label placer positions the labels of all the view's layers. The layers are only responsible for painting of their labels, not de-cluttering them.
- Specified by:
setLabelPlacerin interfaceILspView- Parameters:
aPlacer- the new placer, nevernull.- See Also:
-
getRequiredOpenGLProfile
Deprecated.Description copied from interface:ILspViewReturns the minimum required OpenGL profile that an end user system must support in order to be compatible with this view. This profile does NOT take into account any of the layers or painters that are present in the view -- these should be checked individually to get a complete overview of an application's OpenGL requirements. All current implementations of this method returnTLspOpenGLProfile.LIGHTSPEED_MINIMUM.- Specified by:
getRequiredOpenGLProfilein interfaceILspView- Returns:
- a
TLspGLProfile
-
getServices
Deprecated.Description copied from interface:ILspViewReturns a view services object which provides various utilities that can be leveraged by the view's layers. Examples include caching mechanisms and asynchronous processing support. Note that this method returns null if invoked after a call toILspView.destroy().- Specified by:
getServicesin interfaceILspView- Returns:
- a view services object
-
getPaintExceptionHandler
Deprecated.Description copied from interface:ILspViewReturns a handler to report paint exceptions. The view, as well as layers and painters can use this handler if they encounter an exception during painting. Because painting may happen asynchronously, the handler may be called from different threads.- Specified by:
getPaintExceptionHandlerin interfaceILspView- Returns:
- a handler to report paint exceptions.
-
getViewType
Deprecated.Description copied from interface:ILspViewConvenience method that returns whether the view is currently configured for 2D or 3D visualization. This is actually determined by the type ofILspView.getViewXYZWorldTransformation():TLspViewXYZWorldTransformation2Dmaps toILspView.ViewType.VIEW_2DTLspViewXYZWorldTransformation3Dmaps toILspView.ViewType.VIEW_3D
getViewType()is equivalent to aninstanceoftest on theALspViewXYZWorldTransformation.- Specified by:
getViewTypein interfaceILspView- Returns:
- the current view type
-
display
public void display()Deprecated.Repaint this view. Typically part of repainting a widget in the host UI toolkit. This method should only be called by the host application, and the OpenGL context must be current. You can attach aview invalidation listenerto this view to be notified when LuciadLightspeed decides this view should be repainted (e.g. when data is updated). You can then repaint the host widget, as LuciadLightspeed will not actively repaint this view. -
setSize
public void setSize(int aWidth, int aHeight) Deprecated.Resize this view after the host widget or window changed size. This method should only be called by the host application, and the OpenGL context must be current. -
handleAWTEvent
Deprecated.Pass UI events from the host UI toolkit into the Lightspeed view. You must convert the UI events from your toolkit into AWT events. Mouse events are passed to the appropriate component in the view'soverlay panel(if any). If there are no overlay components under the cursor, or if the incoming event is not a mouse event, the event is passed on to the view'sILspController. This method should only be called by the host application. Note that event dispatching to overlaid Swing components has some limitations. As mentioned above, only mouse events are supported. All events other thanMouseEventare only handled by the view's controller. Notably, this prevents the use of various text input components such asJTextField. Furthermore, the view does not automatically generate events that could be considered a "side effect" of mouse button and motion events, such as click, double click or enter/exit. -
invokeLater
Deprecated.Schedules the specified runnable to be executed on the Swing EDT. This method returns immediately, without waiting for the runnable to execute. Note that if the view is destroyed, any runnables that are still pending will be discarded without being executed.- Specified by:
invokeLaterin interfaceILspView- Parameters:
aRunnable- the runnable to be executed- Since:
- 2019.0
-