public class IlvMake3DFlyThroughInteractor extends IlvMakePolyPointsInteractor implements IlvPolyPointsObjectFactory, IlvMapLayerStyleControl
Modifier and Type | Class and Description |
---|---|
static class |
IlvMake3DFlyThroughInteractor.RestartingDataSource
Data source that updates the fly-through action at load time.
|
Constructor and Description |
---|
IlvMake3DFlyThroughInteractor()
Creates a new
IlvMake3DFlyThroughInteractor . |
IlvMake3DFlyThroughInteractor(IlvInputStream stream)
Reads a new
IlvMake3DFlyThroughInteractor . |
Modifier and Type | Method and Description |
---|---|
protected void |
addPolyPoints(IlvGraphic obj)
Adds the object to the manager.
|
protected static Ilv3DTrajectory |
create3DTrajectory(IlvCoordinate[] coords,
IlvFlyThroughStyle style)
Creates a trajectory.
|
protected static IlvFlyThroughAction |
createFlyThroughAction(Ilv3DTrajectory traj,
IlvMapLayer layer,
Ilv3DView view)
Creates a fly-through action.
|
IlvMapLayer |
createMapInsertionLayer()
Creates the map layer to contain fly-through.
|
IlvGraphic |
createObject(IlvPoint[] points)
Creates an
IlvGraphic component representing the fly-through trajectory. |
protected IlvGraphic |
makePolyPoint(IlvPoint[] points)
Creates an
IlvGraphic component from the specified IlvPoint array. |
boolean |
mustReload(NamedPropertyEvent event)
Indicates if such named property change necessitates rebuilding the raster data
source.
|
boolean |
mustReload(StyleEvent event)
Indicates if such style event necessitate rebuilding the raster data
source.
|
protected static void |
update3DFlyThrough(IlvMapControllingPolyline flyThroughGraphic,
IlvMapLayer flyThroughLayer)
Updates the fly-through action when the polygon changes.
|
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object.
|
accept, allowsMultiplePoints, allowsMultiplePoints, attach, count, detach, doIt, drawGhost, endOnDoubleClick, getBackground, getCursor, getForeground, getMinPointsDistance, getObjectFactory, getPoints, isAllowingMultiplePoints, isCreationInSubManagersAllowed, isGrapherMode, isGridMode, isOpaqueMode, isPermanent, isSelectionMode, isXORGhost, numberOfPointsReached, processMouseEvent, processMouseMotionEvent, react, reInitialize, setAllowingMultiplePoints, setBackground, setCreationInSubManagersAllowed, setCursor, setForeground, setGrapherMode, setGridMode, setMinPointsDistance, setObjectFactory, setOpaqueMode, setPermanent, setSelectionMode
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IlvMake3DFlyThroughInteractor(IlvInputStream stream)
IlvMake3DFlyThroughInteractor
.stream
- The stream to read from.public IlvMake3DFlyThroughInteractor()
IlvMake3DFlyThroughInteractor
.public IlvMapLayer createMapInsertionLayer()
protected IlvGraphic makePolyPoint(IlvPoint[] points)
IlvGraphic
component from the specified IlvPoint
array.makePolyPoint
in class IlvMakePolyPointsInteractor
points
- The point array representing the fly-through trajectory.IlvMakePolyPointsInteractor.setObjectFactory(ilog.views.interactor.IlvPolyPointsObjectFactory)
,
IlvMakePolyPointsInteractor.setBackground(java.awt.Color)
,
IlvMakePolyPointsInteractor.setForeground(java.awt.Color)
public IlvGraphic createObject(IlvPoint[] points)
IlvGraphic
component representing the fly-through trajectory.createObject
in interface IlvPolyPointsObjectFactory
points
- The point array representing the fly-through trajectory.IlvGraphic
created representing the fly-through.IlvPolyPointsObjectFactory.createObject(ilog.views.IlvPoint[])
protected static void update3DFlyThrough(IlvMapControllingPolyline flyThroughGraphic, IlvMapLayer flyThroughLayer)
flyThroughGraphic
- The polygon on the 2D view.flyThroughLayer
- The layer containing the styling parameters.protected static Ilv3DTrajectory create3DTrajectory(IlvCoordinate[] coords, IlvFlyThroughStyle style)
coords
- The table of latitude/longitude coordinates.style
- The style to retrieve speed and altitude for each point.protected static IlvFlyThroughAction createFlyThroughAction(Ilv3DTrajectory traj, IlvMapLayer layer, Ilv3DView view)
traj
- The trajectory.layer
- The layer (used only for name in default implementation).view
- The 3D view..
protected void addPolyPoints(IlvGraphic obj)
addObject
on
the manager in default mode.
The method calls addNode
on the grapher in grapher mode if the
interactor is attached to a grapher view.
IlvMakePolyPointsInteractor.isSelectionMode()
returns
true
and the created object is selectable
(IlvManager.isSelectable(IlvGraphic)
), the created object is selected
(see IlvManager.setSelected(IlvGraphic, boolean, boolean)
)
and all the other objects are deselected
(see IlvManager.deSelectAll(boolean, boolean)
).addPolyPoints
in class IlvMakePolyPointsInteractor
obj
- The polypoint object.IlvMakePolyPointsInteractor.addPolyPoints(ilog.views.IlvGraphic)
public boolean mustReload(StyleEvent event)
mustReload
in interface IlvMapLayerStyleControl
event
- The event sent by the StyleListener
installed on the
layer style.true
when a rebuild is necessary.public boolean mustReload(NamedPropertyEvent event)
mustReload
in interface IlvMapLayerStyleControl
event
- The event sent by the StyleListener
installed on the
layer style.true
when a rebuild is necessarypublic void write(IlvOutputStream stream)
write
in interface IlvPersistentObject
stream
- the output streamIlvPersistentObject.write(ilog.views.io.IlvOutputStream)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.