public interface SceneController extends WWObject, Disposable
Modifier and Type | Method and Description |
---|---|
ClutterFilter |
getClutterFilter()
Returns the current clutter filter.
|
DrawContext |
getDrawContext()
Returns the current draw context.
|
double |
getFramesPerSecond()
Returns the current average frames drawn per second.
|
double |
getFrameTime()
Returns the per-frame timestamp.
|
GLRuntimeCapabilities |
getGLRuntimeCapabilities()
Returns the
GLRuntimeCapabilities associated with this SceneController. |
GpuResourceCache |
getGpuResourceCache()
Returns this scene controller's GPU Resource cache.
|
Model |
getModel()
Indicates the scene controller's model.
|
PickedObjectList |
getObjectsInPickRectangle()
Returns the list of picked objects that intersect the current pick rectangle.
|
java.util.Collection<PerformanceStatistic> |
getPerFrameStatistics()
Returns the current per-frame statistics.
|
PickedObjectList |
getPickedObjectList()
Returns the list of picked objects at the current pick point.
|
java.awt.Point |
getPickPoint()
Returns the current pick point in AWT screen coordinates.
|
java.awt.Rectangle |
getPickRectangle()
Returns the current pick rectangle in AWT screen coordinates.
|
java.util.Collection<java.lang.Throwable> |
getRenderingExceptions()
Returns the rendering exceptions accumulated by this SceneController during the last frame as a
Collection of Throwable objects. |
ScreenCreditController |
getScreenCreditController()
Returns the current screen credit controller.
|
SectorGeometryList |
getTerrain()
Returns the terrain geometry used to draw the most recent frame.
|
double |
getVerticalExaggeration()
Indicates the current vertical exaggeration.
|
View |
getView()
Returns the current view.
|
boolean |
isDeepPickEnabled()
Indicates whether all items under the cursor are identified during picking and within
SelectEvent s. |
void |
reinitialize()
Reinitializes the scene controller.
|
int |
repaint()
Cause the window to regenerate the frame, including pick resolution.
|
void |
setClutterFilter(ClutterFilter clutterFilter)
Specifies the clutter filter to use.
|
void |
setDeepPickEnabled(boolean tf)
Specifies whether all items under the cursor are identified during picking and within
SelectEvent s. |
void |
setGLRuntimeCapabilities(GLRuntimeCapabilities capabilities)
Sets the
GLRuntimeCapabilities associated with this SceneController to the specified parameter. |
void |
setGpuResourceCache(GpuResourceCache gpuResourceCache)
Specifies the GPU Resource cache to use.
|
void |
setModel(Model model)
Specifies the scene controller's model.
|
void |
setPerFrameStatisticsKeys(java.util.Set<java.lang.String> keys)
Specifies the performance values to monitor.
|
void |
setPickPoint(java.awt.Point pickPoint)
Specifies the current pick point in AWT screen coordinates, or
null to indicate that there is no
pick point. |
void |
setPickRectangle(java.awt.Rectangle pickRect)
Specifies the current pick rectangle in AWT screen coordinates, or
null to indicate that there is no
pick rectangle. |
void |
setScreenCreditController(ScreenCreditController screenCreditRenderer)
Specifies the
ScreenCreditController to use for displaying screen credits for
the model of this screen controller. |
void |
setVerticalExaggeration(double verticalExaggeration)
Specifies the exaggeration to apply to elevation values of terrain and other displayed items.
|
void |
setView(View view)
Sets the current view.
|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
onMessage
dispose
ClutterFilter getClutterFilter()
DrawContext getDrawContext()
double getFramesPerSecond()
double getFrameTime()
GLRuntimeCapabilities getGLRuntimeCapabilities()
GLRuntimeCapabilities
associated with this SceneController.GpuResourceCache getGpuResourceCache()
Model getModel()
null
if the scene controller has no model.null
if the scene controller has no model.PickedObjectList getObjectsInPickRectangle()
java.util.Collection<PerformanceStatistic> getPerFrameStatistics()
PickedObjectList getPickedObjectList()
java.awt.Point getPickPoint()
null
if no pick point is current.setPickPoint(java.awt.Point)
java.awt.Rectangle getPickRectangle()
null
if no pick rectangle is current.setPickRectangle(java.awt.Rectangle)
java.util.Collection<java.lang.Throwable> getRenderingExceptions()
Collection
of Throwable
objects.ScreenCreditController getScreenCreditController()
setScreenCreditController(gov.nasa.worldwind.render.ScreenCreditController)
SectorGeometryList getTerrain()
double getVerticalExaggeration()
View getView()
AVKey.VIEW
property change
event.boolean isDeepPickEnabled()
SelectEvent
s.void reinitialize()
int repaint()
void setClutterFilter(ClutterFilter clutterFilter)
clutterFilter
- the clutter filter to use. May be null to indicate no decluttering.void setDeepPickEnabled(boolean tf)
SelectEvent
s.tf
- true to identify all items under the cursor during picking, otherwise false.void setGLRuntimeCapabilities(GLRuntimeCapabilities capabilities)
GLRuntimeCapabilities
associated with this SceneController to the specified parameter.capabilities
- the GLRuntimeCapabilities to be associated with this SceneController.java.lang.IllegalArgumentException
- if the capabilities are null.void setGpuResourceCache(GpuResourceCache gpuResourceCache)
gpuResourceCache
- the texture cache.void setModel(Model model)
AVKey.MODEL
property change event.model
- the scene controller's model.void setPerFrameStatisticsKeys(java.util.Set<java.lang.String> keys)
PerformanceStatistic
for the
available keys.keys
- the performance statistic keys to monitor.void setPickPoint(java.awt.Point pickPoint)
null
to indicate that there is no
pick point. Each frame, this scene controller determines which objects are drawn at the pick point and places
them in a PickedObjectList. This list can be accessed by calling getPickedObjectList()
.
If the pick point is null
, this scene controller ignores the pick point and the list of objects
returned by getPickedObjectList is empty.pickPoint
- the current pick point, or null
.void setPickRectangle(java.awt.Rectangle pickRect)
null
to indicate that there is no
pick rectangle. Each frame, this scene controller determines which objects intersect the pick rectangle and
places them in a PickedObjectList. This list can be accessed by calling getObjectsInPickRectangle()
.
If the pick rectangle is null
, this scene controller ignores the pick rectangle and the list of
objects returned by getObjectsInPickRectangle is empty.pickRect
- the current pick rectangle, or null
.void setScreenCreditController(ScreenCreditController screenCreditRenderer)
ScreenCreditController
to use for displaying screen credits for
the model of this screen controller.screenCreditRenderer
- the screen credit controller. May be null, in which case screen credits are not
displayed.void setVerticalExaggeration(double verticalExaggeration)
verticalExaggeration
- the vertical exaggeration to apply.void setView(View view)
view
- the view.