Package com.luciad.format.pol
Class TLcdPOLModelEncoder
java.lang.Object
com.luciad.format.pol.TLcdPOLModelEncoder
- All Implemented Interfaces:
ILcdModelEncoder,Serializable
@LcdService(service=ILcdModelEncoder.class,
priority=20000)
public class TLcdPOLModelEncoder
extends Object
implements ILcdModelEncoder
ILcdModelEncoder implementation to export ILcdModel objects to
Polygon files which can be read by Jeppesen's TAAM application.
The current implementation supports exporting of
ILcdPOLGeometryimplementationsILcdPointimplementationsILcdPointListimplementations.ILcdExtrudedimplementations where the base shape is aILcdPolygonor aILcdPolyline.
ILcdPOLAttributeProvider set to provide POL specific attributes
for arbitrary elements in the model.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if the model contains any elements that this encoder can process.booleanReturns whether this model encoder can save the specified model to the location it originally came from.voidExports the specified model to the specified destination.Returns a short, displayable name for the format thisILcdModelEncoderencodes to.Returns the POL attribute provider to provide POL specific attributes for arbitrary elements.protected booleanisPOLElement(Object aElement) Test whether an object can be exported as a POL element.voidSaves the model to the location where it originally came from.voidsetPOLAttributeProvider(ILcdPOLAttributeProvider aPOLAttributeProvider) Sets the POL attribute provider to provide POL specific attributes for arbitrary elements.
-
Field Details
-
TYPE_NAME
- See Also:
-
DISPLAY_NAME
- See Also:
-
-
Constructor Details
-
TLcdPOLModelEncoder
public TLcdPOLModelEncoder()
-
-
Method Details
-
getPOLAttributeProvider
Returns the POL attribute provider to provide POL specific attributes for arbitrary elements.- Returns:
- the POL attribute provider to provide POL specific attributes for arbitrary elements.
- See Also:
-
setPOLAttributeProvider
Sets the POL attribute provider to provide POL specific attributes for arbitrary elements.- Parameters:
aPOLAttributeProvider- the POL attribute provider to provide POL specific attributes for arbitrary elements.- See Also:
-
canSave
Description copied from interface:ILcdModelEncoderReturns whether this model encoder can save the specified model to the location it originally came from. Often this will only be a simple test, for example checking the type of the model's model descriptor.- Specified by:
canSavein interfaceILcdModelEncoder- Parameters:
aModel- the model to be verified.- Returns:
trueif this encoder can save the model in the location where it originally came from,falseotherwise.- See Also:
-
getDisplayName
Description copied from interface:ILcdModelEncoderReturns a short, displayable name for the format thisILcdModelEncoderencodes to.- Specified by:
getDisplayNamein interfaceILcdModelEncoder- Returns:
- the displayable name of this
ILcdModelEncoder.
-
save
Description copied from interface:ILcdModelEncoderSaves the model to the location where it originally came from.- Specified by:
savein interfaceILcdModelEncoder- Parameters:
aModel- the model to be saved.- Throws:
IllegalArgumentException- if the model cannot be saved by this encoder (!canSave(aModel)).IOException- if an I/O error occurs during encoding.
-
canExport
Tests if the model contains any elements that this encoder can process. This implementation callsisPOLElement(java.lang.Object)for every object in the model until 1 object passes the test.- Specified by:
canExportin interfaceILcdModelEncoder- Parameters:
aModel- the model to export.aDestination- not used.- Returns:
- true if at least one element can be exported.
- See Also:
-
export
Description copied from interface:ILcdModelEncoderExports the specified model to the specified destination.- Specified by:
exportin interfaceILcdModelEncoder- Parameters:
aModel- the model to be exported.aString- the location where the model should be saved. Typically, this is a name for the output file, but it can also point to a file containing the required properties to create a set of data files.- Throws:
IllegalArgumentException- if the model cannot be saved by this encoder (!canExport(aModel, aDestinationName)).IOException- if an I/O error occurs during encoding.
-
isPOLElement
Test whether an object can be exported as a POL element.- Parameters:
aElement-- Returns:
- true if the element is an implementation of
ILcdPOLGeometry,ILcdPoint,ILcdPointListor an extruded shape based on aILcdPolygonor aILcdPolyline.
-