Interface ILcdViewshedFactory
- All Known Implementing Classes:
TLcd3DMeshViewshedFactory,TLcdExtrudedPolygonViewshedFactory,TLcdPolygonViewshedFactory,TLcdTerrainViewshedFactory
This interface defines a factory that is capable creating viewsheds for specific domain objects.
A viewshed factory creates viewsheds for domain objects. It is used primarily to facilitate the creation of various viewsheds, including complex composite viewsheds consisting of a hierarchy of different types of smaller viewsheds.
A viewshed factory performs all necessary transformations to a domain object to ensure that the resulting viewsheds are defined in the correct model reference.
- Since:
- 11.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Checks if the factory can create a viewshed for the given object.createViewshed(Object aObject, ILcdModelModelTransformation aModelModelTransformation) Creates anILcdViewshedfor the given object.
-
Method Details
-
createViewshed
Creates an
ILcdViewshedfor the given object. This method will only return valid results ifcanCreateViewshed(Object, com.luciad.transformation.ILcdModelModelTransformation)returns true for the given parameters.- Parameters:
aObject- The object for which a viewshed will be created.aModelModelTransformation- The transformation that transforms the domain object to the reference in which the viewshed should be defined. The source reference should be the reference ofaObjectandaModel. The destination reference is the desired reference of the viewshed.- Returns:
- The created viewshed for the given object
-
canCreateViewshed
Checks if the factory can create a viewshed for the given object.
- Parameters:
aObject- The object to check.aModelModelTransformation- The transformation that transforms the domain object to the reference in which the viewshed should be defined. The source reference should be the reference ofaObjectandaModel. The destination reference is the desired reference of the viewshed.- Returns:
- true if this viewshed factory can create a viewshed for the given parameter; false otherwise
-