Class TLcyCompositeModelHeightProviderFactory

java.lang.Object
com.luciad.lucy.util.TLcyGenericComposite<ILcdModelHeightProviderFactory>
com.luciad.lucy.util.height.TLcyCompositeModelHeightProviderFactory
All Implemented Interfaces:
ILcdModelHeightProviderFactory, Iterable<ILcdModelHeightProviderFactory>

public class TLcyCompositeModelHeightProviderFactory extends TLcyGenericComposite<ILcdModelHeightProviderFactory> implements ILcdModelHeightProviderFactory

A composite implementation of ILcdModelHeightProviderFactory according to the composite design pattern.

When creating a new TLcyCompositeModelHeightProviderFactory using the default constructor (see TLcyCompositeModelHeightProviderFactory()), the created instance will only work on/with the ILcdModelHeightProviderFactorys registered on this composite instance (see addModelHeightProviderFactory(com.luciad.util.height.ILcdModelHeightProviderFactory) and removeModelHeightProviderFactory(com.luciad.util.height.ILcdModelHeightProviderFactory)).

When creating a new TLcyCompositeModelHeightProviderFactory using the constructor specifying an ILcyLucyEnv instance (see TLcyCompositeModelHeightProviderFactory(com.luciad.lucy.ILcyLucyEnv), the created instance will work on the Lucy back-end services. It will use all registered ILcdModelHeightProviderFactory instances of the Lucy back-end, adding and/or removing an ILcdModelHeightProviderFactory will add/remove the ILcdModelHeightProviderFactory as service from Lucy, ... .

Creating an ILcdHeightProvider using the back-end based implementation can be done by creating a new instance of this class:


 //Create a new instance whenever you need it.
 TLcyCompositeModelHeightProviderFactory factory = new TLcyCompositeModelHeightProviderFactory( aLucyEnv );
 ILcdHeightProvider provider = factory.createHeightProvider( aModel, aRequiredPropertiesSFCT, aOptionalProperties );
 //There is no need to keep a reference to the composite instance, you can create a new one
 //the next time you would need it
 factory = null;
 

To retrieve a more detailed explanation of the required and optional properties, see ILcdModelHeightProviderFactory.

Since:
10.0