public class TLcyCompositeCameraLinkerFactory extends TLcyGenericComposite<ALcyCameraLinkerFactory>
Composite implementation of ALcyCameraLinkerFactory
.
TLcyGenericComposite
PRIORITY_DEFAULT, PRIORITY_FALLBACK
Constructor and Description |
---|
TLcyCompositeCameraLinkerFactory()
Default constructor.
|
TLcyCompositeCameraLinkerFactory(ILcyLucyEnv aLucyEnv)
Construct a
TLcyCompositeCameraLinkerFactory working on the Lucy
back-end. |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateCameraLinker(ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent,
String aType,
List<Object> aObjects,
List<ILcdModel> aModels)
Consults the leaf
ALcyCameraLinkerFactory instances to see if this composite
factory can create an ALcyCameraLinker . |
ALcyCameraLinker |
createCameraLinker(ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent,
String aType,
List<Object> aObjects,
List<ILcdModel> aModels)
This composite implementation consults all the leaf
ALcyCameraLinkerFactory
instances to create an ALcyCameraLinker . |
add, add, getList, getPriority, iterator, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public TLcyCompositeCameraLinkerFactory()
Default constructor.
The created instance will only work on the ALcyCameraLinkerFactory
instances
registered to it. If you want to use all registered ALcyCameraLinkerFactory
instances of the Lucy back-end, use TLcyCompositeCameraLinkerFactory(com.luciad.lucy.ILcyLucyEnv)
instead.
public TLcyCompositeCameraLinkerFactory(ILcyLucyEnv aLucyEnv)
Construct a TLcyCompositeCameraLinkerFactory
working on the Lucy
back-end.
It will use all ALcyCameraLinkerFactory
instances registered to the
back-end, and adding and/or removing ALcyCameraLinkerFactory
to/from this
TLcyCompositeCameraLinkerFactory
will respectively add/remove it as service
from the back-end.
If you want to create a TLcyCompositeCameraLinkerFactory
which does not use
the back-end, use TLcyCompositeCameraLinkerFactory()
instead.
aLucyEnv
- The Lucy back-endTLcyCompositeCameraLinkerFactory()
,
ILcyLucyEnv.addService(Object, int)
,
ILcyLucyEnv.removeService(Object)
public boolean canCreateCameraLinker(ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent, String aType, List<Object> aObjects, List<ILcdModel> aModels)
Consults the leaf ALcyCameraLinkerFactory
instances to see if this composite
factory can create an ALcyCameraLinker
. It respects the priority of the
ALcyCameraLinkerFactory
instances: factories with a higher priority will be
consulted before factories with a lower priority.
aMapComponent
- The map component in which the camera linker should link the camera.aType
- The camera type. See general javadoc of this class.aObjects
- The objects to track. See general javadoc of this class.aModels
- The models belonging to the objects. Should have same size as aObjects.true
if it can create a camera linker, false
if not.createCameraLinker(ILcyGenericMapComponent, String, List, List)
public ALcyCameraLinker createCameraLinker(ILcyGenericMapComponent<? extends ILcdView,? extends ILcdLayer> aMapComponent, String aType, List<Object> aObjects, List<ILcdModel> aModels)
This composite implementation consults all the leaf ALcyCameraLinkerFactory
instances to create an ALcyCameraLinker
. It respects the priority of the
ALcyCameraLinkerFactory
instances: factories with a higher priority will be
consulted before factories with a lower priority.
aMapComponent
- The map component in which the camera linker should link the camera.aType
- The camera type. See general javadoc of this class.aObjects
- The objects to track. See general javadoc of this class.aModels
- The models belonging to the objects. Should have same size as aObjects.null
.IllegalArgumentException
- When no camera linker factory compatible with the given parameters is part
of this composite factory, an exception will be thrown. Therefore we suggest to
only call this method if
#canCreateCameraLinker
returned true
for the given parameters.