public class Ilv3DSymbolManager extends Object implements SDMPropertyChangeListener, SDMModelListener
Ilv3DViewBoundsDataSource
.
If you need to instantiate a symbol manager manually, you can do, for example:Ilv3DModel model=view3d.get3DModel(); IlvSDMEngine engine=IlvSDMEngine.getSDMEngine((IlvGrapher)model.getManager()); Ilv3DSymbolManager symbolManager=new Ilv3DSymbolManager(engine,view3d); model.setSymbolManager(symbolManager);
Constructor and Description |
---|
Ilv3DSymbolManager(IlvSDMEngine engine,
Ilv3DView view)
Creates a new symbol manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addSymbol(Ilv3DSymbol symbol3d)
Adds a 3D symbol manually
|
void |
adjustmentFinished(SDMModelEvent event)
Updates the list of 3D symbols (Implementation of
SDMModelListener ). |
void |
clearSymbols()
removes all symbols
|
void |
dataChanged(SDMModelEvent event)
Updates the list of 3D symbols (Implementation of
SDMModelListener ). |
void |
displaySymbols(GL2 gl)
Repaints all symbols.
|
IlvSDMEngine |
getEngine()
Returns the SDM engine.
|
Ilv3DSymbol |
getSymbol3D(int index)
Returns the symbol 3D information at the specified position in this Vector.
|
int |
getSymbol3DCount()
Returns the number of 3D Symbols .
|
Ilv3DSymbolStyle |
getSymbolStyle()
Returns the style to use for symbols.
|
void |
linkDestinationChanged(SDMModelEvent event)
Does nothing (Implementation of
SDMModelListener ). |
void |
linkSourceChanged(SDMModelEvent event)
Does nothing (Implementation of
SDMModelListener ). |
void |
objectAdded(SDMModelEvent event)
Updates the list of 3D symbols
|
void |
objectRemoved(SDMModelEvent event)
Updates the list of 3D symbols (Implementation of
SDMModelListener ). |
void |
propertyChanged(SDMPropertyChangeEvent event)
Updates the list of 3D symbols (Implementation of
SDMModelListener ). |
void |
setSymbolStyle(Ilv3DSymbolStyle symbolStyle)
Sets the style options to use to display symbols.
|
public Ilv3DSymbolManager(IlvSDMEngine engine, Ilv3DView view)
engine
- engine used to build the sample graphic object for a node.view
- view used for coordinate conversion, ground height computation and camera information.public Ilv3DSymbolStyle getSymbolStyle()
public void setSymbolStyle(Ilv3DSymbolStyle symbolStyle)
symbolStyle
- The style options.public void adjustmentFinished(SDMModelEvent event)
SDMModelListener
).adjustmentFinished
in interface SDMModelListener
event
- The event.SDMModelListener.adjustmentFinished(ilog.views.sdm.event.SDMModelEvent)
public void dataChanged(SDMModelEvent event)
SDMModelListener
).dataChanged
in interface SDMModelListener
event
- The event.SDMModelListener.dataChanged(ilog.views.sdm.event.SDMModelEvent)
public void displaySymbols(GL2 gl)
gl
- The JOGL Context.public int getSymbol3DCount()
public Ilv3DSymbol getSymbol3D(int index)
index
- index of element to return.ArrayIndexOutOfBoundsException
- index is out of rangepublic void linkDestinationChanged(SDMModelEvent event)
SDMModelListener
).linkDestinationChanged
in interface SDMModelListener
event
- The event.SDMModelListener.linkDestinationChanged(ilog.views.sdm.event.SDMModelEvent)
public void linkSourceChanged(SDMModelEvent event)
SDMModelListener
).linkSourceChanged
in interface SDMModelListener
event
- The event.SDMModelListener.linkSourceChanged(ilog.views.sdm.event.SDMModelEvent)
public void objectAdded(SDMModelEvent event)
objectAdded
in interface SDMModelListener
event
- The event.SDMModelListener.objectAdded(ilog.views.sdm.event.SDMModelEvent)
public void objectRemoved(SDMModelEvent event)
SDMModelListener
).objectRemoved
in interface SDMModelListener
event
- The event.SDMModelListener.objectRemoved(ilog.views.sdm.event.SDMModelEvent)
public void propertyChanged(SDMPropertyChangeEvent event)
SDMModelListener
).propertyChanged
in interface SDMPropertyChangeListener
event
- The event.SDMPropertyChangeListener.propertyChanged(ilog.views.sdm.event.SDMPropertyChangeEvent)
public void addSymbol(Ilv3DSymbol symbol3d)
symbol3d
- The Symbol.public void clearSymbols()
public IlvSDMEngine getEngine()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.